/* Heart-Adventure Stylesheet v3.6 */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

/* Blurred Wavy Background */
.wavy-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background: radial-gradient(circle at center, #800080, #ff00ff, #4b0082, #121212);
    background-size: 50% 50%;
    animation: moveWaves 20s linear infinite;
    filter: blur(100px);
    opacity: 0.5;
}

@keyframes moveWaves {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, 5%) rotate(5deg); }
    50% { transform: translate(10%, 0) rotate(0deg); }
    75% { transform: translate(5%, -5%) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Navigation / Title Bar */
.navbar {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    z-index: 100;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    container-type: inline-size;
    overflow: visible;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-short {
    display: none;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1;
}

.nav-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.btn-text {
    display: inline;
}

/* Active Link State */
.nav-links a.btn.active {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Medium displays: reduce padding & gap */
@media (max-width: 900px) {
    .navbar {
        padding: 0 2%;
    }
    .nav-links {
        gap: 6px;
    }
    .nav-links a.btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 5px;
    }
}

/* Mobile displays: collapse buttons to compact icons */
@media (max-width: 720px) {
    .navbar {
        padding: 0 10px;
    }
    .nav-links {
        gap: 6px;
    }
    .btn-text {
        display: none;
    }
    .nav-links a.btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .nav-icon {
        width: 17px;
        height: 17px;
    }
}

/* Very narrow mobile screens (< 440px) */
@media (max-width: 440px) {
    .navbar {
        padding: 0 8px;
    }
    .logo-full {
        display: none;
    }
    .logo-short {
        display: inline;
        font-size: 1.15rem;
    }
    .nav-links {
        gap: 4px;
    }
    .nav-links a.btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    .nav-icon {
        width: 15px;
        height: 15px;
    }
}

/* Container query support for scoped resizing */
@container (max-width: 720px) {
    .nav-links {
        gap: 6px;
    }
    .btn-text {
        display: none;
    }
    .nav-links a.btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .nav-icon {
        width: 17px;
        height: 17px;
    }
}

@container (max-width: 440px) {
    .logo-full {
        display: none;
    }
    .logo-short {
        display: inline;
        font-size: 1.15rem;
    }
    .nav-links {
        gap: 4px;
    }
    .nav-links a.btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    .nav-icon {
        width: 15px;
        height: 15px;
    }
}

/* Page Viewport Wrapper */
body.wrapper-body {
    overflow: hidden;
    height: 100vh;
    min-height: 100vh;
}

.viewport-container {
    width: 100%;
    height: calc(100vh - 50px);
    position: relative;
    overflow: hidden;
    background-color: #121212;
}

.viewport-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Main Content Container */
.content-container {
    max-width: 920px;
    width: 90%;
    margin: 2rem auto;
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1;
}

h1 {
    color: #fff;
    margin-top: 0;
}

.btn {
    text-decoration: none;
    background: linear-gradient(45deg, #008080, #00aaaa);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.4);
}

.btn-dnd {
    background: linear-gradient(45deg, #800000, #b22222);
}

.btn-dnd:hover {
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.4);
}

.btn-qbittorrent {
    background: linear-gradient(45deg, #1d4ed8, #3b82f6);
}

.btn-qbittorrent:hover {
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Plex – brand amber/orange */
.btn-plex {
    background: linear-gradient(45deg, #C37D0A, #E5A00D);
}

.btn-plex:hover {
    box-shadow: 0 5px 15px rgba(229, 160, 13, 0.5);
}

/* ─── Hover tooltip (used on Plex button) ───────────────── */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(22, 24, 30, 0.95);
    color: #e0e0e0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 9999;
}

/* Arrow */
[data-tooltip]::after {
    content: '';
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(22, 24, 30, 0.95);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 9999;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── Admin dropdown ─────────────────────────────────── */

/* The trigger button */
.btn-admin {
    background: linear-gradient(45deg, #374151, #6b7280);
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    color: white;
}

.btn-admin:hover {
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4);
}

.btn-admin.active {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.dropdown-caret {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Container needs relative + visible overflow to allow panel to escape navbar */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible;
}

/* Transparent full-screen overlay — shown when dropdown is open.
   z-index 99: above the iframe (no stacking context) but BELOW the navbar (100),
   so the dropdown panel inside the navbar is always clickable. */
#dropdown-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    cursor: default;
}

#dropdown-overlay.active {
    display: block;
}

/* Panel – hidden by default, shown when .open is on the container */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(22, 24, 30, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    padding: 6px;
    z-index: 9999;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
}

.nav-dropdown.open .dropdown-menu {
    display: flex;
}

.nav-dropdown.open .dropdown-caret {
    transform: rotate(180deg);
}

/* Each item in the dropdown – styled as full pill buttons matching the nav */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dropdown-item:hover {
    filter: brightness(1.15);
    transform: translateX(2px);
}

.dropdown-item.active {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Per-item colours matching the top-level buttons */
#link-search.dropdown-item {
    background: linear-gradient(45deg, #e28743, #eab676);
}

#link-torrents.dropdown-item {
    background: linear-gradient(45deg, #1d4ed8, #3b82f6);
}

#link-media-tools.dropdown-item {
    background: linear-gradient(45deg, #b8860b, #e5a00d);
}

/* Mobile: Admin button becomes icon-only circle */
@media (max-width: 720px) {
    .btn-admin {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .btn-admin .btn-text,
    .btn-admin .dropdown-caret {
        display: none;
    }
}

@media (max-width: 440px) {
    .btn-admin {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

/* Card Base */
.card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.card a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    align-self: flex-start;
    transition: color 0.2s ease;
}

/* Red DnD Style Cards */
.card-campaign, .card-sheets {
    border-color: rgba(255, 69, 0, 0.15);
}

.card-campaign:hover, .card-sheets:hover {
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.15);
    border-color: rgba(255, 69, 0, 0.4);
}

.card-campaign h3, .card-sheets h3 {
    color: #ff4500;
}

.card-campaign a, .card-sheets a {
    color: #ff4500;
}

.card-campaign a:hover, .card-sheets a:hover {
    color: #ff6347;
}

/* DiceCloud Glass Card */
.card-dicecloud {
    background: rgba(15, 32, 67, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(33, 150, 243, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.card-dicecloud:hover {
    border-color: rgba(33, 150, 243, 0.6);
    box-shadow: 0 12px 30px rgba(33, 150, 243, 0.25);
}

.card-dicecloud h3 {
    color: #4fc3f7;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.card-dicecloud p {
    color: #e0f7fa;
}

/* Glass card glow background effect */
.card-dicecloud::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 60%);
    pointer-events: none;
    transition: transform 0.5s ease;
}

.card-dicecloud:hover::before {
    transform: translate(10%, 10%);
}

.btn-dicecloud {
    background: linear-gradient(45deg, #1976d2, #2196f3);
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease !important;
}

.btn-dicecloud:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.5);
    background: linear-gradient(45deg, #2196f3, #4fc3f7);
}

/* Media Requests Custom Styles */
.btn-requests {
    background: linear-gradient(45deg, #7c3aed, #db2777);
}

.btn-requests:hover {
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.requests-page .content-container {
    max-width: 1240px;
    width: 94%;
    box-sizing: border-box;
}

body.requests-page.is-framed {
    display: block;
    min-height: auto;
}

body.requests-page.is-framed .content-container {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2rem) !important;
    background: transparent;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}

.requests-page-header {
    margin-block-end: 1.75rem;
}

.requests-page-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    letter-spacing: -0.02em;
}

.requests-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 62ch;
}

/* Two Column Layout for Requests page */
.requests-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.25rem);
    align-items: start;
}

@media (min-width: 900px) {
    .requests-layout {
        grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    }
}

/* Request Form Styling */
.request-form-card {
    background: rgba(30, 30, 36, 0.72);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .request-form-card {
        position: sticky;
        top: 1.5rem;
    }
}

.request-form-card h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.requester-status-badge {
    font-size: 0.75rem;
    color: #94a3b8;
}

.form-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    color: #fff;
    font-family: inherit;
    font-size: max(1rem, 0.95rem);
    min-height: 44px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.requests-page .form-input {
    width: 100%;
}

.requests-page textarea.form-input {
    min-height: 92px;
    resize: vertical;
    line-height: 1.45;
}

.form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.form-input:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

select.form-input {
    cursor: pointer;
    width: 100%;
}

select.form-input option {
    background: #1e1e1e;
    color: #fff;
}

.btn-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

/* Grid layout for cards */
.requests-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.requests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.requests-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.requests-title-group h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #fff;
}

.requests-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
}

.requests-count:empty {
    display: none;
}

.search-filter-bar {
    display: flex;
    gap: 0.75rem;
    flex: 1 1 280px;
    max-width: 520px;
    width: 100%;
    flex-wrap: wrap;
}

.search-input {
    flex: 1 1 200px;
    min-width: 0;
}

.filter-select {
    flex: 0 1 165px;
    min-width: 145px;
}

@media (max-width: 540px) {
    .search-filter-bar {
        max-width: none;
    }
    .filter-select {
        flex: 1 1 100%;
    }
}

.requests-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.25rem;
}

/* Request Card Styling */
.card-request {
    background: rgba(30, 30, 36, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card-request:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.card-request::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #db2777);
    opacity: 0.85;
}

.card-request.acquired::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.request-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.request-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.request-media-info {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
}

.media-emoji {
    font-size: 1.35rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.media-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Badge styling */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap !important;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.badge-pending {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.06);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.05);
    animation: pulseGlow 2s infinite alternate;
}

.badge-acquired {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.06);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.05); }
    100% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.2); }
}

.request-meta {
    font-size: 0.82rem;
    color: #a1a1aa;
    line-height: 1.4;
}

.request-notes {
    font-size: 0.85rem;
    color: #d4d4d8;
    background: rgba(0, 0, 0, 0.24);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border-left: 2px solid rgba(167, 139, 250, 0.35);
    min-height: 2.25rem;
    line-height: 1.45;
    font-style: italic;
    overflow-wrap: anywhere;
}

.request-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.85rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.request-actions {
    display: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-active .request-actions {
    display: flex;
}

.btn-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ccc;
    padding: 0.38rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-action:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-action-autograb {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

.btn-action-autograb:hover {
    background: rgba(56, 189, 248, 0.24);
    border-color: #38bdf8;
    color: #e0f2fe;
}

.btn-action-acquire {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.2);
}

.btn-action-acquire:hover {
    background: rgba(52, 211, 153, 0.1);
    border-color: #34d399;
}

.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

/* Modal Overlay & Modal Window */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-card h3 {
    margin-top: 0;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-card p {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.5rem;
}

/* Submit Button & General Forms */
.btn-submit {
    width: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: center;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 24px;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #888;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    grid-column: 1 / -1;
}

/* =========================================
   Karaoke Lounge Custom Styles
   ========================================= */

.btn-karaoke {
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
    color: #fff !important;
    border: none;
}

.karaoke-page .content-container {
    max-width: 1240px;
    width: 94%;
    box-sizing: border-box;
}

body.karaoke-page.is-framed {
    display: block;
    min-height: auto;
}

body.karaoke-page.is-framed .content-container {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem) !important;
    background: transparent;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}

.btn-karaoke:hover {
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.45);
    transform: translateY(-1px);
}

.karaoke-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem 1.5rem;
    flex-wrap: wrap;
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}

.karaoke-banner-intro {
    flex: 1 1 300px;
    min-width: 0;
}

.karaoke-banner-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.party-key-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.party-key-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(236, 72, 153, 0.5);
}

.key-status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.btn-text-action {
    background: none;
    border: none;
    color: #ec4899;
    font-weight: 600;
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.85rem;
    text-decoration: underline;
}

.btn-text-action:hover {
    color: #f472b6;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.75rem;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: #fff;
    border-bottom: 2px solid #ec4899;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 500;
}

.tab-badge.queue-badge {
    background: rgba(236, 72, 153, 0.25);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInTab 0.25s ease-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: YouTube Search */
.search-box-card {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.8rem;
}

.search-bar-row {
    display: flex;
    gap: 12px;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.search-input-wrapper input {
    width: 100%;
}

.search-input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    pointer-events: none;
}

.search-hero-input {
    padding-left: 44px !important;
    padding-right: 40px !important;
    font-size: 1rem !important;
    height: 48px;
    border-radius: 10px !important;
}

.btn-clear-input {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

.btn-search-submit {
    padding: 0 24px !important;
    height: 48px;
    border-radius: 10px !important;
    font-size: 1rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

/* Search Filter Mode Toggle */
.search-filter-pill-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 3px 4px 3px 12px;
}

.search-filter-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
}

.search-toggle-group {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 9999px;
    padding: 2px;
    gap: 2px;
}

.btn-search-toggle {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-search-toggle:hover {
    color: #f1f5f9;
}

.btn-search-toggle.active {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}

/* Video Results Grid */
.yt-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

.video-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(236, 72, 153, 0.35);
}

.video-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-thumb-container:hover .video-thumb {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.2s;
}

.video-thumb-container:hover .video-play-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 44px;
    height: 44px;
    background: rgba(236, 72, 153, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    padding-left: 3px;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
}

.video-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.video-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f1f5f9;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.video-channel {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.video-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-preview-action {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.btn-preview-action:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-request-action {
    flex: 1.4;
    padding: 8px 10px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    justify-content: center;
}

/* Preview Modal */
.modal-preview-card {
    max-width: 720px !important;
    width: 95% !important;
    padding: 1.25rem !important;
}

.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    min-width: 0;
}

.preview-modal-header h4 {
    min-width: 0;
    flex: 1;
}

.btn-close-modal {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.btn-close-modal:hover {
    color: #fff;
}

.video-embed-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.preview-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Tab 2: Song Library */
.library-header-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.library-search-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.library-search-wrapper input {
    width: 100%;
    padding-left: 40px !important;
}

.library-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

.library-card {
    background: rgba(30, 30, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, border-color 0.2s;
}

.library-card:hover {
    border-color: rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

.library-card-info {
    flex-grow: 1;
    min-width: 0;
}

.library-song-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-song-artist {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-badges {
    display: flex;
    gap: 6px;
}

.badge-type {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
}

.badge-lang {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
}

.btn-enqueue-action {
    flex-shrink: 0;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

/* Tab 3: Queue Layout */
.queue-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 900px) {
    .queue-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.queue-panel {
    background: rgba(30, 30, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.panel-header > div {
    min-width: 0;
    flex: 1 1 auto;
}

.gpu-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

.gpu-status-pill.idle {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.gpu-status-pill.busy {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.status-pulse {
    width: 6px;
    height: 6px;
    background-color: #ec4899;
    border-radius: 50%;
    animation: pulseGlow 1.2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

.queue-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
}

.queue-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    transition: all 0.2s;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.queue-card.processing {
    border-color: rgba(236, 72, 153, 0.5);
    background: rgba(236, 72, 153, 0.05);
}

.current-singer-card {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.07);
}

.queue-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
}

.queue-card-title {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    min-width: 0;
    flex: 1 1 140px;
}

.queue-card-title.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.queue-card-top .badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 2px 7px;
    border-radius: 6px;
}

.queue-card-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px 12px;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
}

.queue-card-meta > * {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.queue-progress-step {
    color: #fb7185;
    font-style: italic;
    font-size: 0.78rem;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Stage specific items */
.stage-singer-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1 1 auto;
}

.stage-singer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    vertical-align: middle;
}

.stage-singer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.stage-singer-name {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.stage-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.stage-song-details {
    min-width: 0;
    flex: 1 1 160px;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.35;
}

.stage-video-badge {
    color: #f472b6;
    font-size: 0.78rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.now-singing-pill {
    background: #10b981;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.queue-order-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.badge-queued {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-processing {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.badge-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   KARAOKE LOUNGE: ARTIST GROUPING & CONSOLIDATED SONG CARDS
   ============================================================ */

.artist-group-section {
    margin-bottom: 2rem;
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.artist-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.artist-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.artist-icon {
    font-size: 1.25rem;
}

.artist-name-heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.artist-songs-count {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.artist-songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .artist-songs-grid {
        grid-template-columns: 1fr;
    }
}

.song-card {
    background: rgba(28, 28, 34, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.song-card:hover {
    border-color: rgba(236, 72, 153, 0.4);
    background: rgba(35, 35, 42, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(236, 72, 153, 0.1);
}

.song-card-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
}

.song-card-cover-wrap {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.song-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.song-card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
}

.song-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.song-card-title-wrap {
    min-width: 0;
    flex: 1;
}

.song-card-title {
    margin: 0 0 5px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.song-card-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.song-card-badges::-webkit-scrollbar {
    display: none;
}

.song-card-badges .badge {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.video-tags-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-tags-row::-webkit-scrollbar {
    display: none;
}

.video-tags-row .badge {
    white-space: nowrap !important;
    flex-shrink: 0;
}

.btn-fav-song {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s, border-color 0.15s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.btn-fav-song:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.45);
    transform: scale(1.15);
}

.btn-fav-song.is-fav {
    background: rgba(236, 72, 153, 0.18);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}

.song-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.song-card-actions .btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.song-card-actions .btn.admin-only {
    padding: 5px 9px;
    font-size: 0.76rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

.song-card-actions .btn.admin-only:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.song-card-actions .btn-preview-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.song-card-actions .btn-preview-action:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.song-card-actions .btn-preview-action.playing {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.5);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.song-card-actions .btn-enqueue-action {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
}

.song-card-actions .btn-enqueue-action:hover {
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.55);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .song-card {
        padding: 0.9rem;
    }
    .song-card-body {
        gap: 10px;
    }
    .song-card-cover-wrap {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }
    .song-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .song-card-actions .btn {
        padding: 5px 10px;
        font-size: 0.78rem;
    }
}

.song-versions-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 2px;
}

.version-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 18, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 7px 10px;
    gap: 8px;
}

.version-label-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.version-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.tag-vocals {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.tag-instrumental {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.version-actions-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-track-preview {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-track-preview:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-track-preview.playing {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.btn-sing-track {
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.btn-sing-vocals {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    color: #fff !important;
}

.btn-sing-instrumental {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #fff !important;
}

/* Floating Bottom Audio Preview Bar */
.audio-preview-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(18, 18, 20, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
    z-index: 950;
    padding: 0.8rem 1.25rem;
    box-sizing: border-box;
    animation: slideUpBar 0.3s ease-out;
}

body.has-preview-bar {
    padding-bottom: 90px !important;
}

@keyframes slideUpBar {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.preview-bar-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.preview-track-info {
    min-width: 180px;
    max-width: 280px;
    flex-shrink: 0;
}

.preview-now-playing-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ec4899;
    font-weight: 700;
    margin-bottom: 2px;
}

.preview-track-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-track-artist {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    max-width: 550px;
}

.btn-preview-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ec4899;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, background-color 0.15s;
}

.btn-preview-circle:hover {
    transform: scale(1.08);
    background: #db2777;
}

.preview-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.preview-time {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: monospace;
    min-width: 32px;
}

.preview-seek-slider {
    flex-grow: 1;
    accent-color: #ec4899;
    cursor: pointer;
    height: 4px;
    border-radius: 2px;
}

.preview-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-preview-enqueue {
    padding: 7px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

.btn-preview-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.btn-preview-close:hover {
    color: #fff;
}

/* ============================================================
   KARAOKE LOUNGE & QUEUE MOBILE RESPONSIVENESS
   ============================================================ */

.karaoke-banner-title {
    font-size: 2.2rem;
}

@media (max-width: 768px) {
    .content-container {
        padding: 1.5rem 1rem !important;
        width: 95% !important;
    }
    .queue-panel {
        padding: 1.1rem 0.9rem !important;
    }
    .queue-card {
        padding: 0.75rem 0.85rem !important;
    }
    .karaoke-banner {
        padding: 1.25rem 1rem !important;
    }
    .yt-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 640px) {
    .karaoke-banner-title {
        font-size: 1.6rem !important;
    }
    .karaoke-banner {
        padding: 1.1rem 0.85rem !important;
        gap: 1rem !important;
    }
    .tabs-nav {
        margin-bottom: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .tab-btn {
        padding: 8px 14px;
        font-size: 0.88rem;
        flex-shrink: 0;
    }
    .queue-card-top {
        gap: 6px;
    }
    .stage-card-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }
    .audio-preview-bar {
        padding: 0.6rem 0.8rem;
    }
    .preview-bar-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .preview-track-info {
        min-width: 0;
        max-width: 100%;
        flex: 1 1 100%;
    }
    .preview-controls-row {
        max-width: 100%;
        width: 100%;
    }
    .preview-right-actions {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }
    .jukebox-banner {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 14px !important;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 1rem 0.6rem !important;
        width: 98% !important;
        margin: 0.5rem auto !important;
    }
    .queue-panel {
        padding: 0.85rem 0.65rem !important;
        border-radius: 10px !important;
    }
    .panel-header {
        margin-bottom: 0.85rem !important;
        padding-bottom: 0.75rem !important;
    }
    .panel-header h3 {
        font-size: 1.05rem !important;
    }
    .queue-card {
        padding: 0.65rem 0.75rem !important;
    }
    .search-bar-row,
    .library-header-bar {
        flex-direction: column;
        gap: 8px;
    }
    .btn-search-submit,
    #btnRefreshLibrary {
        width: 100%;
        justify-content: center;
    }
    .version-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .version-actions-wrap {
        justify-content: flex-end;
    }
    .modal-card {
        padding: 1.5rem 1rem !important;
    }
}

/* ==========================================================================
   Word-Level Karaoke Special Effects (GPU-accelerated CSS Keyframes)
   ========================================================================== */

/* 1. Neon Blink & Glow */
.fx-neon {
    transition: all 0.2s ease;
}
.fx-neon.singing,
.fx-neon.active-singing,
.fx-neon.fx-active {
    animation: fxNeonBlink 0.8s ease-in-out infinite alternate !important;
}
@keyframes fxNeonBlink {
    0%, 100% {
        filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #00f0ff) drop-shadow(0 0 25px #00f0ff);
        transform: scale(1.02);
    }
    45% {
        filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #ff00de) drop-shadow(0 0 15px #ff00de);
    }
    50% {
        filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #ff00de);
        opacity: 0.85;
    }
    55% {
        filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 12px #00f0ff) drop-shadow(0 0 30px #00f0ff);
        opacity: 1;
    }
}

/* 2. Explode Pop & Sparks */
.fx-explode {
    display: inline-block;
    transform-origin: center center;
}
.fx-explode.singing,
.fx-explode.active-singing,
.fx-explode.fx-active {
    animation: fxExplodePop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}
@keyframes fxExplodePop {
    0% {
        transform: scale(0.85);
        filter: brightness(1);
    }
    40% {
        transform: scale(1.42);
        filter: brightness(2) drop-shadow(0 0 22px #ffeb3b) drop-shadow(0 0 40px #ff5722);
    }
    70% {
        transform: scale(1.15);
        filter: brightness(1.3) drop-shadow(0 0 12px #ff9800);
    }
    100% {
        transform: scale(1.08);
        filter: brightness(1.15) drop-shadow(0 0 8px #ff5722);
    }
}

/* 3. Flame & Embers */
.fx-fire {
    display: inline-block;
}
.fx-fire.singing,
.fx-fire.active-singing,
.fx-fire.fx-active {
    animation: fxFireFlicker 0.4s ease-in-out infinite alternate !important;
}
@keyframes fxFireFlicker {
    0% {
        filter: drop-shadow(0 0 4px #ffffff) drop-shadow(0 -4px 8px #ffeb3b) drop-shadow(0 -10px 18px #ff5722) drop-shadow(0 -18px 25px #b71c1c);
        transform: skewX(-1.5deg) scaleY(1.04);
    }
    50% {
        filter: drop-shadow(0 0 6px #ffffff) drop-shadow(0 -6px 12px #ffc107) drop-shadow(0 -14px 22px #ff3d00) drop-shadow(0 -22px 30px #d50000);
        transform: skewX(1.5deg) scaleY(1.08);
    }
    100% {
        filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 -5px 10px #ffea00) drop-shadow(0 -12px 20px #ff6d00) drop-shadow(0 -20px 28px #b71c1c);
        transform: skewX(0deg) scaleY(1.06);
    }
}

/* 4. Cyber Glitch RGB Split */
.fx-glitch {
    display: inline-block;
    position: relative;
}
.fx-glitch.singing,
.fx-glitch.active-singing,
.fx-glitch.fx-active {
    animation: fxGlitchShake 0.35s steps(2, start) infinite !important;
}
@keyframes fxGlitchShake {
    0% {
        filter: drop-shadow(-2px 0 0 #00ffff) drop-shadow(2px 0 0 #ff0055);
        transform: translate(0, 0);
    }
    25% {
        filter: drop-shadow(3px -1px 0 #00ffff) drop-shadow(-3px 1px 0 #ff0055);
        transform: translate(-2px, 1px) skewX(-2deg);
    }
    50% {
        filter: drop-shadow(-2px 1px 0 #00ffff) drop-shadow(2px -1px 0 #ff0055);
        transform: translate(2px, -1px);
    }
    75% {
        filter: drop-shadow(1px 0 0 #00ffff) drop-shadow(-1px 0 0 #ff0055);
        transform: translate(1px, 1px) skewX(2deg);
    }
    100% {
        filter: drop-shadow(-3px 0 0 #00ffff) drop-shadow(3px 0 0 #ff0055);
        transform: translate(-1px, 0);
    }
}

/* 5. Sine Wave Float */
.fx-wavy {
    display: inline-block;
    animation: fxWavyFloat 1.8s ease-in-out infinite;
}
.fx-wavy.singing,
.fx-wavy.active-singing,
.fx-wavy.fx-active {
    animation: fxWavyFloatActive 0.7s ease-in-out infinite !important;
    filter: drop-shadow(0 6px 14px rgba(56, 189, 248, 0.75));
}
@keyframes fxWavyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes fxWavyFloatActive {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-2deg); }
    75% { transform: translateY(4px) rotate(2deg); }
}

/* 6. Rainbow Chroma Flow */
.fx-rainbow {
    display: inline-block;
}
.fx-rainbow.singing,
.fx-rainbow.active-singing,
.fx-rainbow.fx-active {
    animation: fxRainbowShift 2s linear infinite !important;
}
@keyframes fxRainbowShift {
    0% { filter: hue-rotate(0deg) drop-shadow(0 0 10px rgba(255, 0, 128, 0.8)); }
    50% { filter: hue-rotate(180deg) drop-shadow(0 0 14px rgba(0, 255, 200, 0.9)); }
    100% { filter: hue-rotate(360deg) drop-shadow(0 0 10px rgba(255, 0, 128, 0.8)); }
}

/* 7. Earthquake Tremor */
.fx-shake {
    display: inline-block;
}
.fx-shake.singing,
.fx-shake.active-singing,
.fx-shake.fx-active {
    animation: fxEarthquake 0.12s linear infinite !important;
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.85));
}
@keyframes fxEarthquake {
    0% { transform: translate(2px, 1px) rotate(0deg); }
    20% { transform: translate(-2px, -2px) rotate(-1deg); }
    40% { transform: translate(-3px, 0px) rotate(1deg); }
    60% { transform: translate(3px, 2px) rotate(0deg); }
    80% { transform: translate(1px, -1px) rotate(1deg); }
    100% { transform: translate(-1px, 2px) rotate(-1deg); }
}

/* 8. Pop & Bounce */
.fx-bounce {
    display: inline-block;
    transform-origin: bottom center;
}
.fx-bounce.singing,
.fx-bounce.active-singing,
.fx-bounce.fx-active {
    animation: fxBounceSquash 0.5s cubic-bezier(0.28, 0.84, 0.42, 1) forwards !important;
}
@keyframes fxBounceSquash {
    0% { transform: scale(1, 1) translateY(0); }
    25% { transform: scale(1.35, 0.75) translateY(-12px); filter: drop-shadow(0 8px 16px rgba(250, 204, 21, 0.8)); }
    50% { transform: scale(0.9, 1.25) translateY(-4px); }
    75% { transform: scale(1.1, 0.95) translateY(-1px); }
    100% { transform: scale(1.05, 1.05) translateY(0); filter: drop-shadow(0 4px 10px rgba(250, 204, 21, 0.5)); }
}

/* 9. Metallic Gold Chrome */
.fx-gold {
    display: inline-block;
}
.fx-gold.singing,
.fx-gold.active-singing,
.fx-gold.fx-active {
    filter: drop-shadow(0 0 6px #fff7ed) drop-shadow(0 0 16px #eab308) drop-shadow(0 0 28px #ca8a04);
    animation: fxGoldSheen 1.2s ease-in-out infinite alternate !important;
}
@keyframes fxGoldSheen {
    0% { filter: drop-shadow(0 0 5px #fef08a) drop-shadow(0 0 14px #eab308); }
    100% { filter: drop-shadow(0 0 12px #ffffff) drop-shadow(0 0 24px #facc15) drop-shadow(0 0 35px #ca8a04); }
}

/* 10. Ethereal Mist & Ghost Float */
.fx-ghost {
    display: inline-block;
    opacity: 0.85;
    transition: all 0.4s ease;
}
.fx-ghost.singing,
.fx-ghost.active-singing,
.fx-ghost.fx-active {
    opacity: 1;
    animation: fxGhostFloat 1.4s ease-in-out infinite alternate !important;
}
@keyframes fxGhostFloat {
    0% {
        transform: translateY(0) scale(1);
        filter: blur(0.5px) drop-shadow(0 0 12px rgba(167, 139, 250, 0.7)) drop-shadow(0 0 24px rgba(192, 132, 252, 0.4));
    }
    100% {
        transform: translateY(-8px) scale(1.06);
        filter: blur(1.5px) drop-shadow(0 0 18px rgba(192, 132, 252, 0.9)) drop-shadow(0 0 36px rgba(147, 51, 234, 0.6));
    }
}

/* 11. High-Voltage Electric Arc */
.fx-electric {
    display: inline-block;
}
.fx-electric.singing,
.fx-electric.active-singing,
.fx-electric.fx-active {
    animation: fxElectricArc 0.25s linear infinite !important;
}
@keyframes fxElectricArc {
    0% {
        filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 12px #38bdf8) drop-shadow(0 0 22px #2563eb);
        transform: scale(1.02);
    }
    33% {
        filter: drop-shadow(-2px -2px 2px #fff) drop-shadow(2px 2px 14px #60a5fa) drop-shadow(0 0 28px #1d4ed8);
        transform: scale(1.05) translate(1px, -1px);
    }
    66% {
        filter: drop-shadow(2px -1px 3px #fff) drop-shadow(-2px 1px 16px #93c5fd) drop-shadow(0 0 32px #3b82f6);
        transform: scale(1.03) translate(-1px, 1px);
    }
    100% {
        filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 14px #38bdf8) drop-shadow(0 0 25px #2563eb);
        transform: scale(1.02);
    }
}

/* 12. Melting Liquid Drip */
.fx-drip {
    display: inline-block;
}
.fx-drip.singing,
.fx-drip.active-singing,
.fx-drip.fx-active {
    animation: fxMeltingDrip 1.2s ease-in-out infinite alternate !important;
}
@keyframes fxMeltingDrip {
    0% {
        transform: scaleY(1);
        filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.6));
    }
    100% {
        transform: scaleY(1.18) translateY(3px);
        filter: drop-shadow(0 6px 14px rgba(34, 197, 94, 0.9));
    }
}/* Universal Vector SVG Icon Styles */
.svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -0.15em;
    width: 1.1em;
    height: 1.1em;
    max-width: 22px;
    max-height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    box-sizing: content-box;
}
.svg-icon.fill-current {
    fill: currentColor;
    stroke: none;
}
.svg-icon.spin {
    animation: svgSpin 1.2s linear infinite;
}
@keyframes svgSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   ALBUM GROUPING & MODERN DECLUTTERED CHIP STYLES
   ============================================================ */

.album-card-section {
    background: rgba(22, 22, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.album-header-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(30, 27, 75, 0.5), rgba(24, 24, 32, 0.6));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.album-cover-box {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-meta-wrap {
    flex: 1;
    min-width: 0;
}

.album-title-text {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
}

.album-sub-text {
    font-size: 0.82rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.album-badge-count {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

.album-songs-list {
    display: flex;
    flex-direction: column;
}

.album-song-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
    gap: 14px;
}

.album-song-chip:last-child {
    border-bottom: none;
}

.album-song-chip:hover {
    background: rgba(255, 255, 255, 0.04);
}

.album-song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.album-song-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.album-song-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-icon-utility {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-icon-utility svg {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
}

.btn-icon-utility:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: scale(1.06);
}

.btn-icon-utility.btn-fav-chip.is-fav {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.4);
    color: #f472b6;
}

.btn-icon-utility.playing {
    background: rgba(14, 165, 233, 0.25);
    border-color: rgba(14, 165, 233, 0.6);
    color: #38bdf8;
}

.btn-sing-primary {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
    transition: all 0.15s ease;
}

.btn-sing-primary:hover {
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.55);
    transform: translateY(-1px);
}

/* ============================================================
   DEDICATED JUKEBOX TAB STYLES
   ============================================================ */

.jukebox-tab-hud {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(24, 24, 38, 0.85));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.jukebox-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.jukebox-hud-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.jukebox-hud-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jukebox-filter-pills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.filter-pill.active {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

.jukebox-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .album-header-banner {
        padding: 12px 16px;
    }
    .album-song-chip {
        padding: 10px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .album-song-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .jukebox-card-grid {
        grid-template-columns: 1fr;
    }
}

