:root {
    --primary: #000000;
    --secondary: #6B4EE6;
    --accent: #FF7EB3;
    --bg-light: #F4EFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --white: #FFFFFF;
    --card-rock: #9D85FF;
    --card-popular: #FFB347;
    --radius-lg: 32px;
    --radius-md: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

.screen {
    max-width: 450px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--white);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

/* Splash Screen */
#splash-screen {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 30px 30px 100px 30px;
    /* Aumentado o padding inferior para subir o quadro */
    text-align: center;
}

.splash-illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    /* Ajusta o enquadramento para baixo */
    z-index: 1;
    filter: brightness(0.9);
    /* Leve escurecida para destacar o card */
}

.splash-content {
    background: rgba(255, 255, 255, 0.35);
    /* Mais transparente */
    backdrop-filter: blur(25px);
    /* Desfoque mais forte */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    /* Reflexo da luz */
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.15);
    /* Sombra mais difusa */
    width: 90%;
    max-width: 450px;
    /* Para não esticar em telas grandes */
    padding: 20px 20px;
    border-radius: 30px;
    /* Mais arredondado */
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    /* Centraliza */
}

.splash-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.splash-content p {
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-start {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s;
}

.btn-start:active {
    transform: scale(0.98);
}

/* Catalog Screen */
#catalog-screen {
    padding: 20px;
    display: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    max-width: 450px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 20px 20px 0 20px;
    position: relative;
    z-index: 10;
}

.header-login-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vokal-logo-header {
    height: 40px;
    width: auto;
    display: block;
}

.vokal-logo-splash {
    height: 60px;
    width: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255, 126, 179, 0.3));
}

.vokal-logo-sidebar {
    height: 35px;
    width: auto;
    margin-bottom: 8px;
    opacity: 0.9;
}

.menu-icon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: 24px;
    height: 24px;
}

.menu-icon span {
    background: var(--secondary);
    border-radius: 2px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #FFE0E0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-with-actions h1 {
    margin-bottom: 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.search-container {
    background: #F8F8F8;
    border-radius: var(--radius-md);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.search-container input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    outline: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.see-all {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Collections Cards */
.collections-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.collections-grid::-webkit-scrollbar {
    display: none;
}

.collection-card {
    min-width: 160px;
    height: 200px;
    border-radius: var(--radius-md);
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.3s;
}

.collection-card.rock {
    background-color: var(--card-rock);
}

.collection-card.popular {
    background-color: var(--card-popular);
}

.collection-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.collection-card span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.collection-img {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 120px;
}

/* Recommended List */
.song-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.song-thumb {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: #EEE;
    object-fit: cover;
}

.song-info {
    flex: 1;
}

.song-info h4 {
    font-size: 1rem;
    font-weight: 700;
}

.song-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-sing {
    background: black;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sing:hover {
    transform: scale(1.05);
}

.btn-sing.btn-listen {
    background: linear-gradient(135deg, #6B4EE6 0%, #FF7EB3 100%);
    color: white;
    border: none;
}

.btn-sing.btn-delete {
    background: rgba(255, 75, 43, 0.1);
    color: #FF4B2B;
    padding: 8px 12px;
}

.vokal-label {
    color: #6B4EE6;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Library Specific - Layout Vertical */
.screen-library .song-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 20px !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid #eee !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.screen-library .song-item-header {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
}

.screen-library .song-actions {
    display: flex !important;
    flex-direction: row !important;
    /* Garante que os botões fiquem lado a lado */
    gap: 10px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    padding-top: 5px;
}

.screen-library .btn-sing {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    padding: 12px 20px !important;
    height: 45px;
}

.screen-library .btn-listen,
.screen-library .btn-delete {
    flex: 0 0 45px !important;
    /* Mantém ícones quadrados */
    width: 45px !important;
    height: 45px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
}

.library-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Player Overlay */
#player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#main-video {
    width: 100%;
    max-height: 100vh;
}

.player-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1001;
}

.player-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
}

.next-btn {
    display: none;
    /* Escondido por padrão, ativado via JS */
    background: linear-gradient(135deg, rgba(107, 78, 230, 0.6) 0%, rgba(255, 126, 179, 0.6) 100%);
    box-shadow: 0 0 20px rgba(107, 78, 230, 0.3);
}

.close-player {
    background: rgba(0, 0, 0, 0.3);
}

.jam-player-btn {
    background: linear-gradient(135deg, #FF7EB3 0%, #6B4EE6 100%);
    box-shadow: 0 0 20px rgba(255, 126, 179, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 78, 230, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Sidebar Menu Premium */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3000;
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    border-radius: 0 40px 40px 0;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2999;
    display: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeInSidebar 0.3s forwards;
}

@keyframes fadeInSidebar {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.sidebar-user-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.sidebar-user-info p {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
    font-weight: 600;
}

.sidebar-item i {
    font-size: 1.1rem;
    color: var(--secondary);
    width: 24px;
    text-align: center;
    transition: transform 0.3s;
}

.sidebar-item:hover {
    background: rgba(107, 78, 230, 0.1);
    color: var(--secondary);
    transform: translateX(8px);
}

.sidebar-item:hover i {
    transform: scale(1.2);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.05) 100%);
    margin: 20px 0;
}

.sidebar-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-footer h2 {
    color: var(--primary);
    font-weight: 800;
}

.sidebar-footer p {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.title-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    margin-top: 20px;
    width: 100%;
}

.title-with-actions h1 {
    margin-bottom: 0;
    font-size: 2.2rem;
    font-weight: 700;
}

/* ── New Mode Buttons (Floating Side Tabs) ──────────────────── */
#inline-mode-btns {
    position: fixed;
    right: 0;
    top: 20px;
    /* Subido mais ainda para o topo */
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    z-index: 3000;
}

.mode-btn-pill {
    display: flex;
    flex-direction: row-reverse;
    /* Ícone na direita, texto na esquerda */
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 30px 0 0 30px;
    padding: 0 15px;
    width: 55px;
    /* Tamanho do ícone visível */
    height: 55px;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    color: white;
    box-shadow: -5px 10px 25px rgba(0, 0, 0, 0.3);
}

.mode-btn-pill i {
    font-size: 1.4rem;
    min-width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    /* Espaço da borda direita */
}

.mode-text {
    opacity: 0;
    margin-right: 0;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Expansão Lateral */
.mode-btn-pill:hover,
.mode-btn-pill:active {
    width: 190px;
    background: var(--primary);
    padding-left: 25px;
}

.mode-btn-pill:hover .mode-text,
.mode-btn-pill:active .mode-text {
    opacity: 1;
    margin-right: 15px;
}

.mode-btn-pill.party {
    background: linear-gradient(135deg, #FF7EB3 0%, #FF758C 100%);
}

.mode-btn-pill.jam {
    background: linear-gradient(135deg, #6B4EE6 0%, #9575CD 100%);
}

.mode-btn-pill.disabled-feature {
    filter: grayscale(1) opacity(0.3);
    cursor: not-allowed;
}

@media (max-width: 768px) {
    #inline-mode-btns {
        top: 20px;
    }
}

/* ── JAM Modal Card ──────────────────────────────────────────── */
.jam-modal-card {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(107, 78, 230, 0.4);
    width: 90%;
    max-width: 420px;
    padding: 36px 32px;
    border-radius: 32px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 80px rgba(107, 78, 230, 0.3);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.jam-modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.jam-modal-header p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.5;
}

.jam-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.jam-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.jam-queue-preview {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 14px;
}

/* ── Mini QR (durante reprodução no JAM) ─────────────────────── */
#mini-qr {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 10px;
    z-index: 1003;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

#mini-qr:hover {
    transform: scale(1.08);
}

.mini-qr-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

#mini-qr img {
    border-radius: 6px;
}
}

.party-btn i {
    font-size: 1.3rem;
    animation: firePulse 1.5s infinite alternate;
}

@keyframes floatBtn {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.02);
    }
}

@keyframes firePulse {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 2px orange);
    }

    to {
        transform: scale(1.2);
        filter: drop-shadow(0 0 10px red);
    }
}

/* Score Modal - VOKAL Engine */
#score-modal {
    z-index: 9999 !important;
}

.score-card {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    border: 4px solid var(--secondary);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.final-score {
    font-size: 6rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 10px 0;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #6B4EE6 0%, #FF7EB3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(107, 78, 230, 0.3));
}

#score-rank {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 10px;
}

#score-feedback {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 5px;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.confeto {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    border-radius: 2px;
    animation: fallConfetti 3s linear infinite;
    z-index: 1;
}

@keyframes fallConfetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(450px) rotate(720deg);
        opacity: 0;
    }
}

.collections-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px 25px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.collections-container::-webkit-scrollbar {
    display: none;
}

.category-card {
    min-width: 170px;
    height: 220px;
    scroll-snap-align: start;
    background: white;
    padding: 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Alinha o texto no topo */
    position: relative;
    overflow: hidden;
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.category-card h3 {
    font-size: 1.6rem;
    /* Tamanho ajustado para palavras longas */
    font-weight: 800;
    margin: 0;
    text-shadow: none;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.song-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    /* Pouquinho menor para melhor harmonia */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Nunca mais vai quebrar de linha */
}

.category-icon-3d {
    position: absolute;
    right: -25px;
    /* Empurra mais para a borda */
    bottom: -15px;
    /* Empurra para o chão do card */
    width: 160px;
    /* Imagem enorme para preencher a área */
    height: 170px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(-8px 12px 20px rgba(0, 0, 0, 0.3));
    /* Sombra reforçada para destaque */
    transition: transform 0.3s ease;
}

/* Centralização específica para a categoria Festa */
.category-card[data-category="festa"] .category-icon-3d {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 185px;
    height: 195px;
    /* Proporcional para não cortar */
}

.category-card[data-category="festa"]:hover .category-icon-3d {
    transform: translateX(-50%) scale(1.08) translateY(-5px);
}

.category-card:hover .category-icon-3d {
    transform: scale(1.08) translateX(-5px) translateY(-5px);
}

.category-fallback-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 3.5rem;
    opacity: 0.3;
    z-index: 1;
}

/* ── TV Queue Panel ─────────────────────────────────────────── */
#tv-queue-panel {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 260px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    z-index: 1002;
    max-height: 60vh;
    overflow-y: auto;
}

.tv-queue-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-q-pos {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(107, 78, 230, 0.4);
    color: #a78bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.tv-q-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tv-q-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-q-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.tv-q-dl {
    font-size: 0.75rem;
}

/* ── Now Playing Bar ────────────────────────────────────────── */
#now-playing-bar {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 40px 28px 24px;
    z-index: 1002;
    pointer-events: none;
}

.np-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

#np-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

#np-requester {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

/* ── TV Idle Screen ─────────────────────────────────────────── */
#tv-idle {
    display: none;
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at top, #1a0a3e 0%, #0d0d0d 70%);
    z-index: 900;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.idle-logo {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 10px;
    background: linear-gradient(135deg, #6B4EE6, #FF7EB3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    animation: idlePulse 3s ease-in-out infinite;
}

@keyframes idlePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.idle-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 500px;
}

.idle-qr-box {
    background: white;
    padding: 16px;
    border-radius: 24px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 60px rgba(107, 78, 230, 0.4);
}

.idle-url {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
    font-family: monospace;
    margin-bottom: 36px;
}

.idle-queue-section {
    max-width: 420px;
    width: 100%;
}

.idle-queue-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

/* ── Score Countdown ────────────────────────────────────────── */
.score-countdown {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.score-countdown span {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 800;
}

/* ── Animate Fade ───────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.4s ease forwards;
}

/* User Dropdown Premium Glassmorphism */
.dropdown-menu {
    position: absolute;
    top: 75px;
    right: 20px;
    width: 240px;
    padding: 12px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    transform-origin: top right;
}

.dropdown-menu.active {
    display: flex;
    animation: premiumMenuFade 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.dropdown-header {
    padding: 10px 15px;
    margin-bottom: 5px;
}

.dropdown-header p {
    color: #1d1d1f;
    font-size: 1rem;
    margin: 0;
}

.dropdown-header span {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 8px 10px;
}

.dropdown-item {
    padding: 12px 15px;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(107, 78, 230, 0.1);
    transform: translateX(5px);
    color: var(--primary);
}

.dropdown-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 78, 230, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary);
}

@keyframes premiumMenuFade {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Disabled Features */
.disabled-feature {
    filter: grayscale(1) opacity(0.4);
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ── Score Countdown ────────────────────────────────────────── */
.score-countdown {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.score-countdown span {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 800;
}

/* ── Animate Fade ───────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.4s ease forwards;
}

/* User Dropdown Premium Glassmorphism */
.dropdown-menu {
    position: absolute;
    top: 75px;
    right: 20px;
    width: 240px;
    padding: 12px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    transform-origin: top right;
}

.dropdown-menu.active {
    display: flex;
    animation: premiumMenuFade 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.dropdown-header {
    padding: 10px 15px;
    margin-bottom: 5px;
}

.dropdown-header p {
    color: #1d1d1f;
    font-size: 1rem;
    margin: 0;
}

.dropdown-header span {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 8px 10px;
}

.dropdown-item {
    padding: 12px 15px;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(107, 78, 230, 0.1);
    transform: translateX(5px);
    color: var(--primary);
}

.dropdown-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 78, 230, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary);
}

@keyframes premiumMenuFade {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Disabled Features */
.disabled-feature {
    filter: grayscale(1) opacity(0.4);
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ── Mobile Optimization: Premium Bottom Dock ────────────────── */
@media (max-width: 768px) {
    #floating-btns {
        bottom: 25px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
        width: auto;
        max-width: 92%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        padding: 10px 15px;
        border-radius: 35px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        align-items: center;
        justify-content: center;
        z-index: 2500;
    }

    #floating-btns button {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 25px;
        box-shadow: none;
        animation: none;
        flex: 1;
        white-space: nowrap;
    }

    #catalog-screen {
        padding-bottom: 100px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Premium Toast Notifications ────────────────── */
.vokal-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 15000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.vokal-toast {
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 24px;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    pointer-events: auto;
}

.vokal-toast.show {
    transform: translateX(0);
}

.vokal-toast.success {
    border-left: 4px solid #00F0FF;
}

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

.vokal-toast.info {
    border-left: 4px solid #6B4EE6;
}

.vokal-toast i {
    font-size: 1.2rem;
}

.vokal-toast.success i {
    color: #00F0FF;
}

.vokal-toast.error i {
    color: #FF4B2B;
}

.vokal-toast.info i {
    color: #6B4EE6;
}

/* ── Premium Modal Register ────────────────── */
.premium-modal {
    background: rgba(10, 10, 15, 0.7) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border-radius: 32px !important;
}

.premium-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    color: #fff !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.premium-input:focus {
    outline: none !important;
    border-color: #FF7EB3 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(255, 126, 179, 0.15) !important;
}