@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&family=Poppins:wght@300;400;600&display=swap');

:root {
    --bg-dark: #000000;
    --accent-primary: #d946ef;
    --accent-secondary: #2d43d8;
    --accent-neon: #a020f0;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 15px rgba(160, 32, 240, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
}

body:not(.landing-page-root) {
    height: 100vh;
    /* overflow permitido para Android TV / projetores que usam Chrome desktop */
    overflow-y: auto;
}

/* Apenas em desktop padrão: fixa altura e esconde scroll do body (painéis rolam internamente) */
@media (min-width: 901px) and (pointer: fine) {
    body:not(.landing-page-root) {
        overflow: hidden;
    }
}

/* 1. Layout Base */
.dashboard {
    display: grid;
    grid-template-columns: var(--sidebar-left, 350px) 1fr var(--sidebar-right, 300px);
    grid-template-rows: var(--header-height, 90px) 1fr auto;
    height: 100vh;
    gap: 15px;
    padding: 15px;
}

/* Barra de Atalhos de Teclado â€” sempre visÃ­vel, linha abaixo do player */
.hotkey-bar {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.hotkey-bar kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 0.68rem;
    font-family: monospace;
    color: #fff;
    margin-right: 3px;
}

.panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 2. Header */
.header.panel {
    grid-column: 1 / 4;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-logo {
    height: 45px;
    filter: drop-shadow(0 0 5px var(--accent-neon));
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 8px;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, #2d43d8, #d946ef, #2d43d8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(217, 70, 239, 0.5);
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* 3. Catalog (Left Sidebar - Full Height) */
.sidebar-search {
    grid-row: 2 / 3;
    height: 100%;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--neon-shadow);
}

.song-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 15px;
    padding-right: 5px;
}

.song-list::-webkit-scrollbar {
    width: 5px;
}

.song-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.song-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--accent-neon);
}

.lyrics-preview {
    color: var(--accent-primary) !important;
    font-size: 0.7rem;
    font-style: italic;
}

/* 4. Main Player Center */
.main-player {
    grid-row: 2 / 3;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* PERFECT CENTERING */
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.05) 0%, transparent 70%);
    overflow: hidden;
}

.video-container {
    width: 95%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Progress Bar Integration */
.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 200;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary), var(--accent-neon));
    box-shadow: 0 0 15px var(--accent-primary);
    transition: width 0.1s linear;
}

.progress-time-display {
    position: absolute;
    bottom: 12px;
    right: 20px;
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 201;
    letter-spacing: 1px;
}

.current-info {
    display: none;
    /* Replaced by Floating Info Box above */
}

.current-info h1 {
    font-size: 2.2rem;
    font-family: 'Montserrat', sans-serif;
}

.current-info p {
    color: var(--accent-primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Floating Controls (Compact centered) */
.compact-controls-wrapper {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.compact-controls-wrapper.autohide {
    opacity: 0;
    transform: translateY(50px);
}

.controls.compact-panel {
    pointer-events: auto;
    width: auto;
    min-width: 780px;
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(30px);
    border: 1px solid var(--accent-neon);
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

@media (max-height: 500px) {
    .controls.compact-panel {
        height: 44px !important;
        /* Ainda mais compacto */
        min-width: unset !important;
        width: 90vw !important;
        padding: 0 15px !important;
        bottom: 5px !important;
        gap: 5px !important;
    }

    .btn-main {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.8rem !important;
    }

    .btn-control {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    .compact-controls-wrapper {
        bottom: 8px !important;
    }

    .control-section {
        gap: 8px !important;
    }

    .tone-control,
    .volume-control {
        padding: 2px 8px !important;
        gap: 5px !important;
    }

    .control-label {
        font-size: 0.55rem !important;
        min-width: 35px !important;
    }
}

#btnShuffle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.6rem;
    margin-left: 10px;
}

#btnShuffle:hover {
    background: var(--accent-primary);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.5);
    border-color: var(--accent-primary);
}

.control-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-control,
.btn-mini {
    background: none;
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control {
    width: 45px;
    height: 45px;
}

.btn-mini {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.tone-control,
.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.divider {
    width: 1px;
    height: 35px;
    background: var(--glass-border);
    margin: 0 5px;
}

.control-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    min-width: 60px;
    text-align: center;
}

#volRange {
    display: none;
    /* We use buttons now usually, but kept for logic */
}

.btn-main {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 25px var(--accent-primary);
}

.btn-main:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--accent-primary);
}

/* 5. Sidbar Queue (with QR at bottom) */
.sidebar-queue {
    grid-row: 2 / 3;
    display: flex !important;
    flex-direction: column;
}

.queue-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 15px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
}

.qr-sidebar-box {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.qr-container {
    width: 140px;
    height: 140px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    margin: 0 auto;
}

.qr-container img {
    max-width: 100%;
}

.promo-badge-static {
    margin: 15px auto 0 auto;
    width: fit-content;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 30px;
    font-weight: 900;
    font-size: 0.8rem;
}

/* 6. Scoring Experience */
.suspense-layer,
.score-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.suspense-layer {
    background: radial-gradient(circle, #2d43d8 0%, #000 100%);
}

.score-overlay {
    background: rgba(0, 0, 0, 0.96);
    animation: fadeIn 0.8s ease;
}

.suspense-text {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 12px;
    animation: flash 0.8s infinite alternate;
}

.score-number {
    font-size: 10rem;
    font-weight: 900;
    color: gold;
    text-shadow: 0 0 50px gold;
}

@keyframes flash {
    from {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes modalPop {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 6.1 Coming Next Experience (v16) */
.coming-next-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    animation: fadeIn 0.5s ease;
    text-align: center;
    padding: 40px;
}

.cn-badge {
    background: var(--accent-primary);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px var(--accent-primary);
    animation: pulse-glow 2s infinite;
}

.cn-phrase {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    max-width: 900px;
    text-shadow: 0 0 50px rgba(217, 70, 239, 0.5);
    animation: scale-up 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cn-spinner {
    margin-top: 50px;
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.cn-spinner::after {
    content: "";
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--accent-primary);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px var(--accent-primary);
    }
}

@keyframes scale-up {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Otimização de Anúncios para Landscape */
@media (max-height: 500px) {
    .coming-next-overlay {
        padding: 20px !important;
    }

    .cn-badge {
        font-size: 0.8rem !important;
        padding: 5px 15px !important;
        margin-bottom: 15px !important;
    }

    .cn-phrase {
        font-size: 1.8rem !important;
        max-width: 85vw !important;
    }

    .cn-spinner {
        margin-top: 20px !important;
        width: 40px !important;
        height: 3px !important;
    }
}

@keyframes loading-bar {
    to {
        left: 0;
    }
}

/* Legend & Modals */
.hotkey-legend {
    position: fixed;
    bottom: 135px;
    right: 40px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--accent-neon);
    border-radius: 20px;
    padding: 25px;
    width: 320px;
    display: none;
    z-index: 10000;
    /* Acima do Player */
}

/* 7. DJ Personalization & Stats (v17) */
.dj-mini-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: -5px;
}

.stat-bubble {
    background: rgba(217, 70, 239, 0.1);
    border: 1px solid rgba(217, 70, 239, 0.2);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dj-watermark {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    width: clamp(100px, 12vw, 180px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.5s;
}

.dj-watermark img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Fix Tabela Admin (v17) */
#mainAdminTable th,
#mainAdminTable td {
    padding: 15px 10px;
    vertical-align: middle;
}

.status-badge {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 5px 10px;
}

.user-info {
    min-width: 200px;
}

.dj-footer-badge {
    position: absolute;
    bottom: 20px;
    left: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-primary);
    padding: 8px 20px;
    border-radius: 4px 15px 15px 4px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #fff;
    z-index: 100;
    text-transform: uppercase;
    animation: fadeIn 1s ease;
}

/* Modal Z-Index Overrides */
#hostAuthOverlay {
    z-index: 2000000 !important;
}

.modal-overlay {
    z-index: 1000000 !important;
}

#trialExpiredModal {
    z-index: 3000000 !important;
}

#trialTimerBanner {
    z-index: 1500000 !important;
}

.hotkey-legend h3 {
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.hotkey-legend li {
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
}

.hotkey-legend li span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 2px 10px;
    font-weight: 700;
    font-family: monospace;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.modal-content {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-primary);
    border-radius: 30px;
    padding: 40px;
    width: 500px;
    text-align: center;
    box-shadow: 0 0 50px rgba(217, 70, 239, 0.3);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.modal-body {
    margin: 20px 0;
}

.modal-body input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid var(--accent-neon);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    outline: none;
    text-align: center;
    margin-top: 10px;
    transition: border-color 0.3s;
}

.modal-body input[type="text"]:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.3);
}

/* SugestÃµes de Cantores (Chips) no Modal */
.user-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    max-height: 120px;
    overflow-y: auto;
    padding: 5px;
}

.user-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
}

.user-chip:hover {
    background: rgba(217, 70, 239, 0.1);
    border-color: var(--accent-primary);
}

.user-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-chip i {
    font-size: 0.8rem;
    opacity: 0.4;
}

.user-chip.recent {
    border-style: dashed;
    opacity: 0.7;
}

.user-chip.recent:hover {
    opacity: 1;
    border-style: solid;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-modal {
    padding: 14px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 900;
    font-size: 0.6rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-modal.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 5px 20px rgba(217, 70, 239, 0.4);
}

.btn-modal.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.6);
}

.btn-host-google:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.btn-host-facebook {
    background: #1877F2;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.3);
    transition: all 0.3s;
    margin: 15px auto 0;
    width: 100%;
    max-width: 320px;
}

.btn-host-facebook:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(24, 119, 242, 0.5);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FORMULÃRIO DE E-MAIL (WEB HOST)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.auth-separator {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 30px auto;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-separator span {
    padding: 0 15px;
}

.auth-form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-input-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: 0.3s;
}

.auth-input-group:focus-within {
    border-color: var(--accent-primary);
    background: rgba(217, 70, 239, 0.05);
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.2);
}

.auth-input-group i {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    width: 25px;
}

.auth-input-group input {
    background: none;
    border: none;
    color: white;
    padding: 15px 10px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
}

.btn-auth-submit {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(217, 70, 239, 0.3);
    transition: 0.3s;
    margin-top: 10px;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(217, 70, 239, 0.5);
}

.auth-forgot {
    margin-top: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    cursor: pointer;
    transition: 0.2s;
}

.auth-forgot:hover {
    color: var(--accent-primary);
}

.auth-switch {
    margin-top: 25px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
}

.auth-switch span {
    color: var(--accent-primary);
    font-weight: 700;
    cursor: pointer;
    margin-left: 8px;
    text-decoration: underline;
}

.btn-modal.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.btn-modal.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Scoring Text */
.score-label {
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.score-phrase {
    font-size: 1.4rem;
    color: #fff;
    max-width: 75%;
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    font-weight: 300;
    animation: fadeIn 1s ease 0.5s both;
}

.score-singer {
    margin-top: 20px;
    font-size: 1.2rem;
    color: gold;
    font-weight: 700;
    animation: fadeIn 1s ease 1s both;
}

/* --- BARRA SUPERIOR: DESKTOP (NOVA VERSÃO) --- */
.fs-queue-box {
    position: absolute;
    top: 0 !important;
    /* cola no topo do player */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 8, 8, 0.98) !important;
    border: 1px solid rgba(160, 32, 240, 0.5) !important;
    border-radius: 0 0 18px 18px !important;
    padding: 10px 30px !important;
    /* era 22px 60px */
    z-index: 8000;
    width: auto;
    min-width: 700px !important;
    /* era 850px */
    max-width: 95%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

.fs-label-header {
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    position: static;
    /* tira o absolute */
    margin-bottom: 6px;
    width: 100%;
    text-align: center;
}

.fs-row-container {
    display: flex;
    align-items: center;
    gap: 24px;
    /* era 40px */
    width: 100%;
    justify-content: center;
}

.fs-col-pc {
    display: flex;
    align-items: center;
    gap: 10px;
    /* era 20px */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.fs-col-pc.current {
    background: rgba(217, 70, 239, 0.08);
    border-radius: 10px;
    padding: 6px 12px;
    opacity: 1;
}

.fs-rank-pc {
    font-size: 0.65rem;
    /* era 1.1rem */
    font-weight: 700;
    color: var(--text-muted);
}

.fs-col-pc.current .fs-rank-pc {
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.fs-name-pc {
    font-size: 0.95rem;
    /* era 1.4rem */
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.fs-col-pc.current .fs-name-pc {
    font-size: 1.1rem;
    color: #fff;
}

.fs-col-pc:not(.current) .fs-name-pc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.fs-song-pc {
    font-size: 0.72rem;
    /* era 0.85rem */
    color: var(--text-muted);
    max-width: 220px;
    /* era 300px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-divider-v-pc {
    width: 2px;
    height: 32px;
    /* era 45px */
    background: rgba(217, 70, 239, 0.2);
}

/* --- RESPONSIVIDADE FILA FULLSCREEN --- */
@media (max-width: 900px) {
    .fs-queue-box {
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 600px !important;
        border-radius: 15px !important;
        padding: 4px 12px !important;
        border: 1px solid rgba(160, 32, 240, 0.5) !important;
        min-width: unset !important;
    }

    .fs-name-pc {
        font-size: 0.78rem !important;
    }

    .fs-col-pc.current .fs-name-pc {
        font-size: 0.88rem !important;
    }

    .fs-song-pc {
        font-size: 0.62rem !important;
        max-width: 150px !important;
    }

    .fs-row-container {
        gap: 12px !important;
    }
}

@media (max-height: 500px) {
    .fs-queue-box {
        top: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) scale(0.85) !important;
        transform-origin: top center !important;
        width: 90% !important;
        max-width: 600px !important;
        border-radius: 12px !important;
        padding: 2px 10px !important;
        min-width: unset !important;
        border: 1px solid rgba(160, 32, 240, 0.5) !important;
    }

    .fs-name-pc {
        font-size: 0.72rem !important;
    }

    .fs-col-pc.current .fs-name-pc {
        font-size: 0.82rem !important;
    }

    .fs-row-container {
        gap: 10px !important;
    }
}


.fs-queue-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

.fs-rank {
    color: var(--accent-primary);
    font-weight: 900;
    min-width: 30px;
}

.fs-name {
    font-weight: 700;
    flex-grow: 1;
}

.fs-song {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Queue item detail */
.queue-item .rank {
    width: 30px;
    height: 30px;
    background: var(--accent-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.queue-item .info {
    flex-grow: 1;
}

.queue-item .name {
    font-weight: 700;
}

.queue-item .song {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.queue-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.queue-actions i {
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.6rem;
}

.queue-actions i.fa-chevron-up:hover,
.queue-actions i.fa-chevron-down:hover {
    color: gold;
    transform: scale(1.2);
}

.queue-actions i.fa-trash:hover {
    color: #ff4444;
    transform: scale(1.1);
}

.star-btn {
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.2s;
    padding: 5px;
}

.star-btn.active,
.star-btn:hover {
    color: gold;
}

/* Song Item Sub-Elements */
.song-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.song-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Status indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: -5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Placeholder */
.placeholder-msg {
    color: var(--text-muted);
    font-size: 1.2rem;
    letter-spacing: 3px;
}

/* Score overlay special */
.score-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.96);
    animation: fadeIn 0.8s ease;
}

/* Floating Info Box */
.floating-info-box {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-neon);
    padding: 12px 40px;
    border-radius: 50px;
    z-index: 50;
    text-align: center;
    min-width: 350px;
    max-width: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.floating-info-box .info-label {
    font-size: 0.6rem;
    color: var(--accent-primary);
    font-weight: 900;
    letter-spacing: 3px;
}

.floating-info-box h1 {
    font-size: 1.5rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-info-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Code Entry Overlay */
.code-overlay {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.code-box {
    background: #000;
    border: 3px solid var(--accent-primary);
    padding: 20px 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.5);
}

.code-label {
    color: var(--accent-primary);
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4px;
}

.code-digits {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 8px;
    font-family: 'Montserrat', sans-serif;
}

.code-song-name {
    margin-top: 6px;
    color: gold;
    font-weight: 700;
    font-size: 0.85rem;
    min-height: 1.2em;
}

/* BG Glow Effects */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(45, 67, 216, 0.1);
    top: -200px;
    left: -200px;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(217, 70, 239, 0.08);
    bottom: -100px;
    right: -100px;
}



/* Catalog: Dual Buttons (Ã¢â€“Â¶ and +) */
.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.song-info {
    flex-grow: 1;
    min-width: 0;
}

.song-info strong {
    display: block;
    font-size: 0.82rem;
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.song-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.song-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

.btn-song-play,
.btn-song-queue {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-song-play {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.4);
}

.btn-song-play:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.7);
}

.btn-song-queue {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1.1rem;
}

.btn-song-queue:hover {
    background: rgba(255, 255, 255, 0.2);
    color: gold;
    border-color: gold;
}

/* Modal: Singer Input Premium */
.modal-artist {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

#singerName {
    width: 100% !important;
    padding: 18px 20px !important;
    font-size: 1.3rem !important;
    border: 2px solid var(--accent-neon) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: white !important;
    border-radius: 15px !important;
    outline: none !important;
    text-align: center !important;
    transition: border-color 0.3s !important;
    font-family: 'Poppins', sans-serif !important;
}

#singerName:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.4) !important;
}

/* Scoring: Reveal Animations */
.reveal-animation {
    animation: tensReveal 0.6s ease-out;
}

@keyframes tensReveal {
    from {
        transform: scale(1.3);
        color: gold;
    }

    to {
        transform: scale(1);
        color: gold;
    }
}

.reveal-pulse {
    animation: fullReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fullReveal {
    0% {
        transform: scale(0.7);
        opacity: 0.5;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.score-big {
    font-size: 12rem !important;
    animation: fullReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cinematic Video Overlays (Crop watermarks) */
.video-crop-top,
.video-crop-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 11%;
    background: #000;
    z-index: 10;
    pointer-events: none;
}

.video-crop-top {
    top: 0;
}

.video-crop-bottom {
    bottom: 0;
}

/* Compact Singer Form (during playback) */
.compact-singer-form {
    position: absolute;
    bottom: 110px;
    /* above the control bar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--accent-primary);
    border-radius: 30px;
    padding: 10px 20px;
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.4);
    white-space: nowrap;
    animation: slideDown 0.3s ease;
}

.csf-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csf-label strong {
    color: #fff;
}

.csf-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-neon);
    border-radius: 20px;
    color: white;
    padding: 8px 16px;
    font-size: 0.95rem;
    outline: none;
    min-width: 180px;
}

.csf-input:focus {
    border-color: var(--accent-primary);
}

.csf-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
}

.csf-btn:hover {
    transform: scale(1.2);
}

.csf-close {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    cursor: pointer;
}

.csf-close:hover {
    color: #ff4444;
}

/* Code Overlay: compact version */
.code-overlay {
    position: fixed;
    bottom: 110px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
    animation: slideDown 0.3s ease;
}

.code-box {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--accent-primary);
    padding: 12px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.4);
}

/* Screensaver */
.screensaver-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.screensaver-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.screensaver-img.active {
    opacity: 1;
}

/* 7. Responsividade Universal (Auto-Scale) */
:root {
    --sidebar-left: 350px;
    --sidebar-right: 300px;
    --header-height: 90px;
}

@media (max-width: 1600px),
(max-height: 900px) {
    :root {
        --sidebar-left: 300px;
        --sidebar-right: 250px;
        --header-height: 70px;
    }

    html {
        font-size: 14px;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .controls.compact-panel {
        min-width: 700px;
        transform: scale(0.9);
        bottom: 20px;
    }

    .panel {
        padding: 15px;
    }
}

@media (max-width: 1366px),
(max-height: 768px) {
    :root {
        --sidebar-left: 260px;
        --sidebar-right: 220px;
        --header-height: 60px;
    }

    html {
        font-size: 13px;
    }

    .brand-title {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .controls.compact-panel {
        min-width: 600px;
        transform: scale(0.85);
        bottom: 15px;
    }
}

/* Video Overlay Banner */
.video-overlay-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: #000;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    border-bottom: 3px solid var(--accent-primary);
}

.video-overlay-banner .banner-left img {
    height: 80px;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.video-overlay-banner .banner-right span {
    display: block;
    text-align: right;
    color: #fff;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 3px;
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
}

/* 10. QR Fullscreen Discreet Access */
.qr-fullscreen-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.qr-fullscreen-box:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(217, 70, 239, 0.3);
}

.qr-fs-label {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#qrcode-fs {
    background: white;
    padding: 8px;
    border-radius: 12px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcode-fs img {
    width: 100% !important;
    height: 100% !important;
}

/* Código da sala exibido abaixo do QR em tela cheia */
.qr-fs-room-code {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 3px;
    color: #ffffff;
    text-align: center;
    background: rgba(217, 70, 239, 0.25);
    border: 1px solid rgba(217, 70, 239, 0.5);
    border-radius: 6px;
    padding: 3px 8px;
    text-shadow: 0 0 8px rgba(217, 70, 239, 0.8);
    white-space: nowrap;
}

/* 10. ConfiguraÃ§Ãµes & BotÃµes de Ãcone */
.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 15px;
}

.btn-icon:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: var(--neon-shadow);
    transform: rotate(45deg);
}

.settings-content {
    width: 600px !important;
    text-align: left !important;
}

.settings-body {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.setting-item input[type="text"].full-width {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    outline: none;
}

.setting-item input[type="text"].full-width:focus {
    border-color: var(--accent-primary);
}

.setting-item small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* â”€â”€â”€ Host Auth Splash â”€â”€â”€ */
#hostAuthOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #16213e 0%, #000 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    overflow-y: auto;
    /* Permite rolagem se o conteúdo for maior que a tela */
    padding: 40px 0;
}

.host-auth-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-primary);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 0 60px rgba(217, 70, 239, 0.4);
    max-width: 90%;
    margin: auto;
    /* Garante centralização quando há rolagem */
}

.host-auth-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.host-auth-container h1 {
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

.host-auth-container p {
    color: #aaa;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn-host-google {
    background: white;
    color: #111;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-host-google img {
    width: 28px;
}

.btn-host-google:hover {
    transform: scale(1.05);
}

/* â”€â”€â”€ Responsive Media Queries â”€â”€â”€ */
@media (max-width: 1200px) {
    .dashboard {
        grid-template-columns: var(--sidebar-left, 300px) 1fr var(--sidebar-right, 260px);
    }
}

/* Esconde navegação mobile por padrão (Desktop) */
.mobile-tab-nav,
.btn-minimize-player {
    display: none;
}

/* ─── Layout Mobile DJ Radical Redesign (v3.0) ─── */
@media (max-width: 980px) {
    :root {
        --sticky-header: 40px;
        /* Reduzi de 50px para 40px */
        --sticky-player: 56.25vw;
        --tab-bar-height: 60px;
    }

    body.dashboard-mode {
        height: 100vh !important;
        overflow: hidden !important;
        /* Travamos o body para que as abas que rolem individualmente */
    }

    .dashboard {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto 1fr auto !important;
        /* Mudei o último para auto para respeitar o Safe Area */
        height: 100vh !important;
        height: 100dvh !important;
        /* Unidade dinâmica para navegadores mobile modernos */
        width: 100vw !important;
        padding: 0 !important;
        gap: 0 !important;
        position: fixed;
        inset: 0;
    }

    /* Redução drástica do banner de vídeo no mobile */
    .video-overlay-banner {
        height: 50px !important;
        padding: 0 15px !important;
    }

    .video-overlay-banner .banner-left img {
        height: 35px !important;
    }

    .video-overlay-banner .banner-right span {
        font-size: 0.5rem !important;
        letter-spacing: 1px !important;
    }


    /* Esconde elementos de desktop */
    .hotkey-bar,
    .hotkey-legend {
        display: none !important;
    }

    /* Header Compacto */
    .header.panel {
        grid-row: 1;
        height: 34px !important;
        /* Mais compacto */
        border-radius: 0;
        border-bottom: 1px solid var(--glass-border);
        background: rgba(10, 10, 10, 0.95);
        padding: 0 15px;
        display: flex !important;
        flex-direction: row !important;
        z-index: 1000;
    }

    .brand-title {
        font-size: 0.9rem !important;
    }

    .main-logo {
        height: 22px !important;
    }

    /* Área do Player (Mobile Default) */
    .main-player.panel { position: relative;
        grid-row: 2;
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
        border: none !important;
        background: #000;
        z-index: 1001;
        transition: 0.3s ease-in-out;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        /* Vídeo e controles centralizados juntos */
        gap: 0 !important;
    }

    /* Player em modo Mini (Modo Tabs Ativo) */
    .main-player.panel:not(.expanded) {
        max-height: none !important;
    }

    .main-player.panel:not(.expanded) .video-container {
        width: 100vw !important;
        aspect-ratio: 16/9 !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    /* QR Code adaptado para o vídeo no mobile */
    .qr-fullscreen-box {
        display: none !important;
        /* Esconde no portrait */
    }

    /* Player em modo EXPANDIDO (Modo Show/Espelhamento) */
    .main-player.panel.expanded {
        position: fixed !important;
        inset: 0;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 5000 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Otimização de Espaço: Oculta o splash gigante no mobile portrait */
    .main-player.panel:not(.expanded) .current-info,
    .main-player.panel:not(.expanded) .placeholder-msg {
        display: none !important;
    }

    .main-player.panel:not(.expanded) .video-container {
        min-height: auto !important;
        background: #000;
    }

    .main-player.panel.expanded .current-info {
        display: none;
    }

    .main-player.panel.expanded .video-container {
        height: auto;
        aspect-ratio: 16/9;
        width: 100%;
    }

    .main-player.panel.expanded .compact-controls-wrapper {
        position: absolute;
        bottom: 20px;
        background: rgba(0, 0, 0, 0.5) !important;
        border: none !important;
    }

    /* Botão de Minimizar (Gerenciar) */
    .btn-minimize-player {
        display: none;
        /* Escondido por padrão */
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 5100;
        background: rgba(217, 70, 239, 0.85);
        /* added opacity */
        color: white;
        border: none;
        padding: 5px 12px;
        /* reduced */
        border-radius: 20px;
        font-weight: bold;
        font-size: 0.65rem;
        /* reduced */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .main-player.panel.expanded .btn-minimize-player {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Ajuste de Posição da Fila no Topo (Portrait) */
    .fs-queue-box {
        top: 0 !important;
        /* Centralizado no topo como PC */
        padding: 3px 12px !important;
        border-radius: 0 0 12px 12px !important;
        width: 90% !important;
    }

    /* Abas Mobile */
    .sidebar-search,
    .sidebar-queue {
        grid-row: 3;
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto !important;
        background: #0a0a0a !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 20px 15px 100px 15px !important;
        display: none !important;
        /* Esconde todas as abas */
    }

    /* Mostra apenas a aba ativa */
    .sidebar-search.active-tab,
    .sidebar-queue.active-tab {
        display: block !important;
    }

    /* Forçar exibição das abas e botão no mobile */
    .mobile-tab-nav {
        display: flex !important;
    }

    .btn-minimize-player {
        display: flex !important;
    }

    /* Estilo dos itens mais "Mobile-Friendly" */
    .song-item,
    .queue-item {
        padding: 15px !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .song-item strong {
        font-size: 0.9rem !important;
    }

    .song-item span {
        font-size: 0.75rem !important;
        color: #888 !important;
    }

    /* Encolher a caixa de info (Cantando Agora) no mobile */
    .floating-info-box {
        top: 10px !important;
        padding: 6px 20px !important;
        max-width: 90% !important;
    }

    .floating-info-box .info-label {
        font-size: 0.5rem !important;
        letter-spacing: 1px !important;
    }

    .floating-info-box h1 {
        font-size: 0.9rem !important;
    }

    .floating-info-box p {
        font-size: 0.65rem !important;
    }

    .vu-meter-container {
        height: 100px !important;
        right: 8px !important;
    }

    .btn-song-play,
    .btn-song-add {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
    }

    /* Barra de Navegação Inferior com Suporte a iPhone (Safe Area) */
    .mobile-tab-nav {
        grid-row: 4;
        display: flex;
        background: #050505;
        border-top: 1px solid var(--accent-primary);
        justify-content: space-around;
        align-items: center;
        z-index: 6000 !important;
        /* Garantir que fique acima de tudo */
        padding-bottom: env(safe-area-inset-bottom);
        height: auto !important;
        min-height: 60px;
    }

    .tab-btn {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 10px;
        flex: 1;
        transition: 0.3s;
    }

    .tab-btn.active {
        color: var(--accent-primary);
    }

    .tab-btn i {
        font-size: 1.2rem;
    }

    .tab-btn span {
        font-size: 0.6rem;
        text-transform: uppercase;
        font-weight: bold;
    }

    /* Controles do Player Mobile - Portrait */
    .compact-controls-wrapper {
        background: #000 !important;
        /* Fundo total preto */
        padding: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 2000;
        position: relative !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-top: -2px !important;
        /* Elimina fresta com o vídeo */
    }

    .controls.compact-panel {
        min-width: unset !important;
        width: 100% !important;
        justify-content: center !important;
        gap: 2px !important;
        height: 48px !important;
        /* Altura fixa fina */
        padding: 0 4px !important;
        border-radius: 0 !important;
        background: #000 !important;
        border: none !important;
    }

    .control-section {
        gap: 2px !important;
    }

    /* Ajuste de Escala FINAL para Controles Portrait (Super Compacto) */
    .btn-control {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem !important;
    }

    .btn-main {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }

    .btn-mini {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    .control-label {
        font-size: 0.45rem !important;
        min-width: 25px !important;
    }

    .tone-control,
    .volume-control {
        padding: 2px 6px !important;
        gap: 4px !important;
    }

    .divider {
        height: 20px !important;
        margin: 0 1px !important;
    }

    /* Ajuste para QR Code no Mobile */
    .qr-sidebar-box {
        margin-bottom: 50px;
    }
}


/* ─── Landscape Mobile ─── */
@media (max-width: 980px) and (orientation: landscape) {
    .main-player.panel { position: relative;
        height: 100vh !important;
        max-height: 100vh !important;
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        z-index: 9999 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .main-player.panel .video-container {
        width: 100vw !important;
        height: 100vh !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
    }

    /* Em landscape, a barra flutua sobre o vídeo: precisa de pointer-events na área */
    .compact-controls-wrapper {
        position: absolute !important;
        bottom: 10px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 30px !important;
        z-index: 10000 !important;
        justify-content: center !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        pointer-events: auto !important;
        /* Quando autohide, desaparece mas o video recebe o toque */
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .qr-fullscreen-box {
        display: flex !important;
        position: fixed !important;
        top: 50% !important;
        right: 12px !important;
        bottom: auto !important;
        left: auto !important;
        transform: translateY(-50%) scale(0.55) !important;
        transform-origin: right center !important;
        z-index: 5500 !important;
        pointer-events: none;
        background: rgba(0, 0, 0, 0.75) !important;
        padding: 14px !important;
        border-radius: 16px !important;
        border: 2px solid var(--accent-primary) !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .qr-fullscreen-box .qr-fs-label {
        font-size: 1.4rem !important;
    }

    .header.panel,
    .sidebar-search,
    .sidebar-queue,
    .mobile-tab-nav {
        display: none !important;
    }

    .btn-control {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.8rem !important;
    }

    .btn-main {
        width: 42px !important;
        height: 42px !important;
        font-size: 1rem !important;
    }

    .btn-mini {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .control-label {
        font-size: 0.5rem !important;
    }

    .compact-controls-wrapper {
        padding: 4px 10px !important;
    }

    .video-overlay-banner {
        height: 55px !important;
        font-size: 0.65rem !important;
    }
}

/* â”€â”€â”€ Compact Singer Form (Host) (SimplificaÃ§Ã£o Minimalista v7) â”€â”€â”€ */
.compact-singer-form {
    position: absolute;
    bottom: 80px;
    /* Acima dos controles do player */
    right: 20px;
    z-index: 4000;
    width: auto;
    min-width: 280px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(217, 70, 239, 0.5);
    border-radius: 30px;
    /* Formato de pÃ­lula */
    padding: 8px 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInRight 0.3s ease-out;
}

@keyframes fadeInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.csf-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.csf-label {
    font-size: 0.65rem;
    color: #fff;
    opacity: 0.7;
    white-space: nowrap;
    font-weight: 700;
    text-transform: uppercase;
}

.csf-input {
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 12px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.csf-input:focus {
    border-color: #d946ef;
    box-shadow: 0 0 8px rgba(217, 70, 239, 0.3);
}

.csf-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #d946ef;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(217, 70, 239, 0.4);
    transition: 0.2s;
}

.csf-btn:hover {
    background: #f0abfc;
    transform: scale(1.1);
}

.csf-close-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px;
}

.csf-close-text:hover {
    color: #ff4444;
}

/* Ajuste fino para os chips (Mini no Host) */
#compactChips {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    max-width: 150px;
    scrollbar-width: none;
}

#compactChips::-webkit-scrollbar {
    display: none;
}

#compactChips .user-chip.mini {
    padding: 2px 8px;
    font-size: 0.55rem;
    white-space: nowrap;
}

/* â”€â”€â”€ VU Meter VERTICAL (Resgate v5) â”€â”€â”€ */
.vu-meter-container {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 10px;
    height: 180px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    overflow: hidden;
    z-index: 3500;
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.vu-meter-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(0deg, #00f2ff, #7000ff, #ff0044);
    transition: height 0.05s ease-out;
}

.mic-active-badge {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.55rem;
    font-weight: 900;
    color: #00f2ff;
    text-transform: uppercase;
    text-shadow: 0 0 10px #00f2ff;
    animation: flash 0.8s infinite alternate;
    display: none;
    z-index: 3501;
}

@keyframes flash {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }
}

/* â”€â”€â”€ Screensaver Layer â”€â”€â”€ */
.screensaver-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ss-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.ss-img.active {
    opacity: 1;
}

/* â”€â”€â”€ Foto Upload UI â”€â”€â”€ */
.photo-upload-container {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.photo-input-btn {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.photo-preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* â”€â”€â”€ Fullscreen Control Button â”€â”€â”€ */
.btn-fs-toggle {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-fs-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DRIVER.JS CUSTOM THEME â€” HOST (DJ)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.driver-popover {
    background: rgba(8, 5, 18, 0.97) !important;
    border: 1px solid rgba(160, 32, 240, 0.5) !important;
    backdrop-filter: blur(25px) !important;
    box-shadow:
        0 0 35px rgba(217, 70, 239, 0.4),
        inset 0 0 20px rgba(160, 32, 240, 0.06) !important;
    border-radius: 20px !important;
    padding: 22px 24px !important;
    max-width: 340px !important;
}

.driver-popover-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    color: #d946ef !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

.driver-popover-description {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.87rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.6 !important;
}

.driver-popover-description b {
    color: #fff !important;
    font-weight: 700 !important;
}

.driver-popover-progress-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.7rem !important;
    color: rgba(160, 32, 240, 0.8) !important;
    font-weight: 600 !important;
}

.driver-popover-footer {
    margin-top: 18px !important;
    gap: 8px !important;
}

.driver-popover-footer button {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-shadow: none !important;
    letter-spacing: 0.5px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.driver-popover-footer button:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.driver-popover-footer button.driver-next-btn {
    background: linear-gradient(135deg, #d946ef, #2d43d8) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.35) !important;
}

.driver-popover-footer button.driver-next-btn:hover {
    box-shadow: 0 6px 22px rgba(217, 70, 239, 0.55) !important;
    transform: translateY(-1px) !important;
}

.driver-popover-close-btn {
    color: rgba(255, 255, 255, 0.3) !important;
    transition: color 0.2s !important;
}

.driver-popover-close-btn:hover {
    color: #fff !important;
}



/* â”€â”€â”€ Vibe da Galera (VotaÃ§Ã£o Realtime) â”€â”€â”€ */
.public-score-display {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 240px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2147483640;
    /* AltÃ­ssimo, acima de quase tudo */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vibe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vibe-label { font-size: 0.6rem; font-weight: 900; color: rgba(255, 255, 255, 0.6); letter-spacing: 2px; }
    font-size: 0.6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
}

.vibe-value { font-size: 1.2rem; font-weight: 900; color: #fff; text-shadow: 0 0 20px rgba(217, 70, 239, 0.8); }
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px rgba(217, 70, 239, 0.5);
}

.vibe-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.vibe-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-primary);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s;
}

/* â”€â”€â”€ ConfiguraÃ§Ãµes de PontuaÃ§Ã£o (Modal) â”€â”€â”€ */
.setting-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkbox-label {
    font-size: 1.1rem;
    color: #fff;
}

.score-range-hint {
    font-size: 0.7rem;
    color: var(--accent-primary);
    margin-left: auto;
    opacity: 0.7;
}

.score-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.score-mode-choice {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 15px;
    transition: 0.3s;
}

.score-mode-choice:has(input:checked) {
    border-color: var(--accent-primary);
    background: rgba(217, 70, 239, 0.05);
}

.radio-label {
    font-weight: 700;
    color: #fff;
    font-size: 0.6rem;
}

.sub-setting {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sub-setting span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sub-setting input[type="number"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px;
    border-radius: 8px;
    outline: none;
    text-align: center;
}

.difficulty-section {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 15px;
}

.difficulty-section label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.difficulty-radios {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.diff-btn {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.diff-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.diff-btn span {
    display: block;
    text-align: center;
    padding: 10px 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: 0.2s;
    white-space: nowrap;
}

.diff-btn input:checked+span {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(217, 70, 239, 0.3);
}

.calib-container {
    margin-top: 20px;
}

.calib-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

.calib-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calib-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
    transition: width 0.05s ease-out;
}

/* Sobrescrita para correï¿½ï¿½o de rolagem no modal de configuraï¿½ï¿½es */
.settings-body {
    overflow-y: auto !important;
    max-height: 65vh !important;
    padding-right: 15px !important;
}

.settings-content {
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Estilo para o Badge de Trial na tela de Login */
.trial-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 70, 239, 0.15);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0;
    animation: pulse-trial 2s infinite;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.15);
}

@keyframes pulse-trial {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        box-shadow: 0 0 25px rgba(217, 70, 239, 0.3);
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* --- Landing Page Styles --- */
#landingPage {
    background: var(--bg-main);
    color: white;
    min-height: 100vh;
    padding-bottom: 100px;
    overflow-x: hidden;
}

.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(circle at center, rgba(217, 70, 239, 0.1), transparent 70%);
}

.hero-logo {
    width: 140px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(217, 70, 239, 0.5));
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    max-width: 900px;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    text-align: center;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.4);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary.large {
    padding: 22px 45px;
    font-size: 1.2rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(217, 70, 239, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.highlight {
    background: linear-gradient(90deg, var(--accent-primary), #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-badges {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    opacity: 0.6;
    font-size: 0.6rem;
    font-weight: 600;
}

.features-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    transition: 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    opacity: 0.6;
    font-size: 0.95rem;
    line-height: 1.6;
}

.mobile-experience {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
    gap: 60px;
    flex-wrap: wrap;
}

.mobile-text {
    flex: 1;
    min-width: 300px;
}

.mobile-text h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.mobile-text p {
    opacity: 0.7;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.feature-list li i {
    color: #00f2ff;
}

.mobile-mockup {
    width: 280px;
    height: 550px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #1a1a1a;
    padding: 20px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: #060612;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mockup-line {
    width: 80%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 10px;
}

.mockup-line.shorter {
    width: 50%;
}

.mockup-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-primary);
    color: white;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 0.7rem;
    text-align: center;
}

.cta-banner {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(0deg, rgba(217, 70, 239, 0.05), transparent);
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.auth-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Warning Animations */
@keyframes pulse-warning {
    0% {
        box-shadow: 0 10px 30px rgba(255, 170, 0, 0.3);
    }

    50% {
        box-shadow: 0 10px 50px rgba(255, 170, 0, 0.6);
    }

    100% {
        box-shadow: 0 10px 30px rgba(255, 170, 0, 0.3);
    }
}

@keyframes pulse-danger {
    0% {
        transform: scale(1) translateX(-50%);
        background: rgba(255, 0, 0, 0.8);
    }

    50% {
        transform: scale(1.1) translateX(-45%);
        background: rgba(255, 68, 68, 1);
    }

    100% {
        transform: scale(1) translateX(-50%);
        background: rgba(255, 0, 0, 0.8);
    }
}


/* --- Responsive Landing Page --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .mobile-experience {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-badges {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* --- CORREï¿½ï¿½O DEFINITIVA DE SCROLL (HARMONIZAï¿½ï¿½O) --- */
/* Garante que a Landing Page tenha rolagem e o Dashboard trave apenas quando ativo */
body {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

body.dashboard-mode {
    height: 100vh;
    overflow: hidden;
    display: grid;
}

@media (max-width: 1024px) {
    body.dashboard-mode {
        height: auto;
        overflow-y: auto;
        display: block;
    }
}


/* --- HARMONIZAï¿½ï¿½O DE BOTï¿½ES HERO --- */
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns .btn-primary,
.hero-btns .btn-secondary {
    flex: 1;
    min-width: 260px;
    height: 60px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.hero-btns .btn-primary {
    background: linear-gradient(135deg, #d946ef, #a020f0) !important;
    color: white !important;
    box-shadow: 0 10px 25px rgba(217, 70, 239, 0.3) !important;
}

.hero-btns .btn-secondary {
    background: linear-gradient(135deg, #00f2ff, #2d43d8) !important;
    color: white !important;
    box-shadow: 0 10px 25px rgba(0, 242, 255, 0.3) !important;
}

.hero-btns .btn-primary:hover,
.hero-btns .btn-secondary:hover {
    transform: translateY(-5px) scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}


/* --- HARMONIZAï¿½ï¿½O FINAL DE BOTï¿½ES HERO (PESOS IGUAIS) --- */
.hero .hero-btns {
    display: flex !important;
    gap: 20px !important;
    max-width: 850px !important;
    margin: 40px auto 0 auto !important;
    width: 100% !important;
}

.hero .hero-btns .btn-primary,
.hero .hero-btns .btn-secondary {
    flex: 1 !important;
    min-width: 280px !important;
    height: 64px !important;
    border-radius: 32px !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    border: none !important;
    text-decoration: none !important;
}

.hero .hero-btns .btn-primary {
    background: linear-gradient(135deg, #d946ef, #a020f0) !important;
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.4) !important;
}

.hero .hero-btns .btn-secondary {
    background: linear-gradient(135deg, #00f2ff, #2d43d8) !important;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.4) !important;
}

.hero .hero-btns .btn-primary:hover,
.hero .hero-btns .btn-secondary:hover {
    transform: translateY(-8px) scale(1.03) !important;
    filter: brightness(1.2) !important;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 768px) {
    .hero .hero-btns {
        flex-direction: column !important;
    }

    .hero .hero-btns .btn-primary,
    .hero .hero-btns .btn-secondary {
        width: 100% !important;
        min-width: unset !important;
    }
}

/* --- AJUSTE VISUAL CTA --- */
.cta-banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 80px 24px !important;
    width: 100% !important;
}

.cta-banner .btn-primary.large {
    width: auto !important;
    min-width: 320px !important;
    margin: 30px auto !important;
    padding: 0 40px !important;
    justify-content: center !important;
}


/* --- SEï¿½ï¿½O DE PLANOS (SaaS) --- */
.pricing-section {
    padding: 100px 20px;
    background: radial-gradient(circle at top, rgba(160, 32, 240, 0.05), transparent);
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 50px auto 0;
    padding: 15px;
}

.plan-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(45, 67, 216, 0.2);
}

.plan-card.recommended {
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(160, 32, 240, 0.15);
    transform: scale(1.05);
}

.plan-card.recommended:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-primary);
    color: white;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 800;
    transform: rotate(45deg);
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(160, 32, 240, 0.5);
}

.plan-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 20px 0 5px;
    color: white;
}

.plan-card .price span {
    font-size: 1rem;
    opacity: 0.5;
    font-weight: 400;
}

.plan-card .savings {
    font-size: 0.85rem;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 30px;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 12px;
    font-size: 0.6rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: var(--blue);
    font-size: 0.8rem;
}

.btn-plan {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-card.recommended .btn-plan {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    box-shadow: 0 10px 20px rgba(160, 32, 240, 0.3);
}

.btn-plan:hover {
    background: white;
    color: black;
    transform: scale(1.02);
}

.plan-card.recommended .btn-plan:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
    color: white;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.recommended {
        transform: scale(1);
    }

    .plan-card.recommended:hover {
        transform: translateY(-10px);
    }
}

/* Novos estilos para botões com sublabels */
.hero-btns button {
    padding: 0 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    height: auto !important;
    min-height: 75px !important;
    padding: 15px 30px !important;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.btn-label {
    font-size: 1.3rem;
    font-weight: 900;
    display: block;
    line-height: 1.2;
}

.btn-sublabel {
    font-size: 0.6rem;
    opacity: 0.8;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 4px;
}

/* Responsividade Mobile para os botões */
@media (max-width: 600px) {
    .btn-label {
        font-size: 1.15rem;
    }

    .btn-sublabel {
        font-size: 0.8rem;
    }

    .hero-btns button {
        padding: 12px 25px !important;
    }
}

.hero-btns i {
    font-size: 1.2rem;
    opacity: 0.5;
    transition: transform 0.3s;
}

.hero-btns button:hover i {
    transform: translateX(5px);
    opacity: 1;
}

/* ─── CORREÇÕES GERAIS DE RESPONSIVIDADE ─── */
@media (min-width: 1025px) {
    html {
        font-size: 80%;
        zoom: 0.8;
    }

    .dashboard {
        height: 125vh;
        width: 125vw;
        border-radius: 0;
    }

    /* Apenas o dashboard trava o scroll — landing page pode rolar normalmente */
    body:not(.landing-page-root) {
        overflow: hidden;
    }

}

/* Android TV / Projetor / Displays Grandes Touch */
@media (min-width: 1200px) and (pointer: coarse),
(min-width: 1400px) and (pointer: coarse) {
    html {
        font-size: 100% !important;
        zoom: 1 !important;
    }

    .dashboard {
        zoom: 1 !important;
        height: 100vh !important;
        width: 100vw !important;
    }

    .btn-main {
        width: 85px !important;
        height: 85px !important;
        font-size: 1.6rem !important;
    }

    .btn-control {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.2rem !important;
    }

    .song-item,
    .queue-item {
        padding: 24px !important;
    }

    .song-item strong {
        font-size: 1.15rem !important;
    }

    .qr-sidebar-box .qr-container {
        width: 250px !important;
        height: 250px !important;
    }

    .hotkey-bar {
        display: none !important;
        /* Em TV touch atalhos de teclado não servem tanto */
    }
}

/* --- Novas Camadas de Playback --- */
.player-loading-overlay,
.autoplay-fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    text-align: center;
    color: #fff;
    cursor: pointer;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.autoplay-fallback i {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ocultar fila no celular retrato para nao estourar tela */
@media (max-width: 980px) and (orientation: portrait) {

    .fs-queue-box .fs-divider-v-pc,
    .fs-queue-box .fs-col-pc:not(.current) {
        display: none !important;
    }
}

/* ================================
   ?? AJUSTES GERAIS DE LEITURA
================================ */

/* Letra mais leg�vel (contraste forte) */
.karaoke-lyrics,
.lyrics-line {
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

/* ================================
   ?? FILA (FULLSCREEN)
================================ */

/* Corrige sobreposi��o lateral */
.fs-queue-box {
    left: 250px !important;
    right: 250px !important;
    transform: none !important;
    margin: 0 auto !important;
    width: auto !important;
    max-width: none !important;
}

/* Aumenta leitura geral */
.fs-name-pc {
    font-size: 1.3rem !important;
}

.fs-song-pc {
    font-size: 1rem !important;
}

/* Destaque REAL pro atual */
.fs-col-pc.current .fs-name-pc {
    font-size: 1.6rem !important;
}

/* ================================
   ? TEMPO DO V�DEO
================================ */

.progress-time-display {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* ================================
   ?? CONTROLES (VOLUME / TOM)
================================ */

.control-label {
    font-size: 0.85rem !important;
}

/* ================================
   ? BARRA DE ATALHOS (DJ)
================================ */

/* Continua discreta, mas leg�vel */
.hotkey-bar {
    font-size: 0.9rem !important;
}

/* ================================
   ?? CONTROLES FLUTUANTES
================================ */

.controls.compact-panel {
    min-width: 600px !important;
    max-width: 90% !important;
}

/* ================================
   ?? WATERMARK (MENOS INTRUSIVO)
================================ */

.dj-watermark {
    opacity: 0.25 !important;
}

/* ================================
   ?? MOBILE
================================ */

@media (max-width: 900px) {
    .fs-queue-box {
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
    }

    .fs-name-pc {
        font-size: 1rem !important;
    }

    .fs-col-pc.current .fs-name-pc {
        font-size: 1.2rem !important;
    }

    .fs-song-pc {
        font-size: 0.85rem !important;
    }

    .hotkey-bar {
        font-size: 0.75rem !important;
    }
}

/* ================================
   ?? TELAS BAIXAS (PROJETOR / TV)
================================ */

@media (max-height: 500px) {
    .fs-queue-box {
        top: 5px !important;
        padding: 5px 10px !important;
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
    }

    .fs-name-pc {
        font-size: 0.9rem !important;
    }

    .fs-song-pc {
        font-size: 0.75rem !important;
    }

    /* Aplica o AGORA vertical apenas em telas de PC/TV ou Celular deitado */
    @media (min-width: 901px),
    (orientation: landscape) {
        .fs-col-pc {
            display: flex;
            flex-direction: row !important;
            align-items: center;
            gap: 10px;
            max-width: 280px;
        }

        .fs-rank-pc {
            writing-mode: vertical-rl;
            text-orientation: upright;
            font-size: 0.7rem !important;
            line-height: 1;
            border-right: 1px solid rgba(255, 255, 255, 0.2);
            padding-right: 5px;
        }

        .fs-info-pc {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .fs-name-pc {
            font-size: 0.9rem !important;
            white-space: normal !important;
            /* Quebra linha se o nome for grande */
            word-break: break-word;
        }

        .fs-queue-box {
            max-width: 95% !important;
            /* Permite que a caixa ocupe quase toda a largura da TV */
            width: auto !important;
        }
    }
}
/* 8. Novas Funcionalidades de Engajamento (v20) */

/* Sistema de Reaes (Emojis) */
#reactionContainer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    bottom: -50px;
    font-size: 2.5rem;
    animation: emojiFloat 4s ease-in forwards;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
    opacity: 0;
}

@keyframes emojiFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-50px) translateX(var(--random-x, 0)) scale(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--random-x-end, 0)) scale(1);
        opacity: 0;
    }
}

/* Ranking Board (Hall da Fama) */
.ranking-board {
    width: 90%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-primary);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 50px rgba(217, 70, 239, 0.3);
    animation: modalPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ranking-title {
    font-family: " Montserrat\, sans-serif;
 font-weight: 900;
 font-size: 2.5rem;
 letter-spacing: 5px;
 margin-bottom: 30px;
 background: linear-gradient(90deg, var(--accent-primary), #fff, var(--accent-primary));
 -webkit-background-clip: text;
 background-clip: text;
 -webkit-text-fill-color: transparent;
 text-transform: uppercase;
}

.ranking-list {
 display: flex;
 flex-direction: column;
 gap: 15px;
}

.ranking-item {
 display: flex;
 align-items: center;
 gap: 20px;
 background: rgba(255, 255, 255, 0.05);
 padding: 15px 25px;
 border-radius: 20px;
 border: 1px solid rgba(255, 255, 255, 0.1);
 transition: 0.3s;
}

.ranking-item:hover {
 background: rgba(255, 255, 255, 0.1);
 transform: scale(1.02);
}

.rank-pos {
 font-size: 1.5rem;
 font-weight: 900;
 color: var(--accent-primary);
 min-width: 40px;
}

.rank-singer {
 flex: 1;
 text-align: left;
 font-weight: 700;
 font-size: 1.2rem;
}

.rank-score {
 font-weight: 900;
 font-size: 1.4rem;
 color: #00f2ff;
}

/* Indicador de Tempo de Fila */
.queue-wait-time {
 font-size: 0.65rem;
 color: var(--accent-primary);
 font-weight: 700;
 letter-spacing: 1px;
 background: rgba(217, 70, 239, 0.1);
 padding: 4px 10px;
 border-radius: 50px;
 margin-top: 5px;
 display: inline-block;
}

/* Aplausos Animation */
.applause-overlay {
 position: absolute;
 inset: 0;
 display: flex;
 align-items: center;
 justify-content: center;
 pointer-events: none;
 z-index: 1500;
}

.clapping-emoji {
 font-size: 5rem;
 animation: clapShake 0.5s infinite alternate;
}

@keyframes clapShake {
 from { transform: rotate(-10deg) scale(1); }
 to { transform: rotate(10deg) scale(1.2); }
}


/* FIX V22: Layout e Visibilidade */
.fs-queue-box { max-width: 65% !important; width: auto !important; margin: 0 auto !important; left: 50% !important; transform: translateX(-50%) !important; z-index: 1000 !important; }
.public-score-display { top: 35px !important; right: 35px !important; z-index: 2147483647 !important; }

/* FIX V23: Layout e Visibilidade Final */
.fs-queue-box { max-width: 60% !important; width: auto !important; margin: 0 auto !important; left: 50% !important; transform: translateX(-50%) !important; z-index: 500 !important; }
.public-score-display { top: 30px !important; right: 30px !important; z-index: 2147483647 !important; }
