/* 
===================================
REWIND - MODERN DESIGN SYSTEM
===================================
*/

:root {
    /* Colors */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --surface-glass: rgba(30, 41, 59, 0.4);
    --surface-glass-strong: rgba(15, 23, 42, 0.8);
    --surface-hover: rgba(51, 65, 85, 0.5);

    --primary-glow: #0ea5e9;
    /* Sky Blue */
    --accent-glow: #ec4899;
    /* Pink */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --gradient-brand: linear-gradient(135deg, #0ea5e9 0%, #ec4899 100%);

    /* Variables */
    --nav-width: 320px;
    --header-height: 70px;
    --radius-lg: 24px;
    --radius-md: 12px;
    --blur-strength: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    /* App style */
    height: 100dvh;
    overflow: hidden;
}

html {
    overflow-x: hidden;
}

/* === BACKGROUND EFFECTS === */
.ambient-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-darker);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: #0ea5e9;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #a855f7;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s infinite;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* === LAYOUT === */
.app-layout {
    display: grid;
    grid-template-columns: var(--nav-width) 1fr;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.2);
    /* Slight dim */
    max-width: 100vw;
    overflow: hidden;
}

/* === SPECIAL EFFECTS === */
/* CRT Effects - Disabled for better performance
.crt-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.3;
}

.scanlines {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 0, 0, 0.5) 50%);
    background-size: 100% 4px;
    z-index: 10001;
    pointer-events: none;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100vh);
    }
}
*/

/* === WELCOME SCREEN (REDESIGNED) === */
.welcome-overlay {
    position: fixed;
    inset: 0;
    background: #020617;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    transform: perspective(1000px) rotateX(60deg) translateY(-100px);
    transform-origin: top;
    animation: grid-move 20s linear infinite;
    z-index: 1;
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 1000px;
    }
}

.welcome-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 3rem;
    border-radius: 40px;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
}

.logo-container {
    position: relative;
    margin-bottom: 1rem;
}

.brand-logo {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -3px;
    color: white;
    text-shadow:
        3px 3px 0px var(--accent-glow),
        -3px -3px 0px var(--primary-glow);
    position: relative;
    margin-bottom: 0;
    animation: jitter 3s infinite;
}

@keyframes jitter {

    0%,
    100% {
        transform: translate(0);
    }

    10%,
    90% {
        transform: translate(-1px, 1px);
    }

    20%,
    80% {
        transform: translate(1px, -1px);
    }
}

.brand-logo::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: #0ea5e9;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
}

.brand-slogan {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 14px;
    text-transform: uppercase;
    margin-bottom: 4rem;
    font-weight: 500;
    opacity: 0.8;
}

.load-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-pill:hover {
    transform: scale(1.1) translateY(-5px);
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}

.stat-pill .icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TACTILE ENTER BUTTON */
.enter-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.btn-primary-glow {
    position: relative;
    padding: 1.2rem 3.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    background: #0ea5e9;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 8px 0 #0369a1,
        0 15px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.1s;
    overflow: hidden;
}

.btn-primary-glow:hover {
    transform: translateY(2px);
    box-shadow:
        0 6px 0 #0369a1,
        0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary-glow:active {
    transform: translateY(6px);
    box-shadow:
        0 2px 0 #0369a1,
        0 5px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.btn-primary-glow:hover::after {
    left: 100%;
}

.enter-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* === SIDEBAR NAVIGATION === */
.sidebar-nav {
    background: var(--surface-glass);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur-strength));
    display: flex;
    flex-direction: column;
    padding: 1rem;
    z-index: 100;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-scroll {
    flex: none;
    overflow: visible;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.channels-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* === SUPPORT BOX === */
.support-box {
    margin-bottom: 2rem;
    text-align: center;
    padding: 0 0.5rem;
}

.btn-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    padding: 0.8rem 1rem;
    border-radius: 99px;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.btn-support:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.6);
}

.support-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* === SOCIAL BOX === */
.social-box-footer {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    padding: 0.7rem 1.5rem;
    border-radius: 99px;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-instagram:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.5);
}

.btn-instagram i {
    font-size: 1.1rem;
}

/* === STATS BOX === */
.stats-box {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(20, 20, 30, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stats-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-title i {
    -webkit-text-fill-color: #a855f7;
    font-size: 0.85rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.4rem;
    margin-bottom: 0.35rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.stat-row:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stat-row:hover .stat-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.08);
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
}

/* Colores específicos por tipo de estadística */
.stat-row-videos .stat-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.stat-row-visitors .stat-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.stat-row-users .stat-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* Live counter styling */
.stat-row-live .stat-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.stat-icon-pulse {
    animation: pulse-icon 2s ease-in-out infinite;
}

.live-counter {
    color: #ef4444 !important;
    font-weight: 700;
}

@keyframes pulse-icon {

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

    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

@keyframes pulse-number {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        color: #fca5a5;
    }

    100% {
        transform: scale(1);
    }
}

.stat-status {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: #4ade80;
    /* Green */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Footer Credits */
.credits {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--primary-glow);
}

.legal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.5rem;
}

.legal-link {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-link:hover {
    color: var(--primary-glow);
    transform: translateY(-1px);
}

.legal-sep {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.1);
}


/* === BOTÓN EMBED PILL === */
.sidebar-embed-container {
    padding: 0 1rem;
    margin: 1.5rem 0;
    text-align: center;
}

.btn-embed-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    /* Purple to Indigo */
    color: #fff !important;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-embed-pill:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    color: #fff !important;
}

.embed-subtitle-sidebar {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.75rem;
    opacity: 0.7;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    transition: all 0.2s ease;
    width: 100%;
}

.channel-card:hover {
    background: var(--surface-hover);
    transform: translateX(4px);
}

.channel-card.active {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}

.card-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Imágenes de iconos personalizados */
.channel-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.channel-card.active .card-icon {
    background: var(--gradient-brand);
    color: white;
}

/* Icon Colors */
.icon-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
}

.icon-pink {
    background: linear-gradient(135deg, #f472b6, #db2777);
    color: white;
}

.icon-orange {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: white;
}

.icon-red {
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: white;
}

.icon-red-dark {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    color: white;
}

.icon-purple {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: white;
}

.icon-indigo {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: white;
}

.icon-cyan {
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    color: white;
}

.icon-yellow {
    background: linear-gradient(135deg, #facc15, #ca8a04);
    color: black;
}

.icon-rose {
    background: linear-gradient(135deg, #fb7185, #e11d48);
    color: white;
}

.icon-emerald {
    background: linear-gradient(135deg, #34d399, #059669);
    color: white;
}

.icon-blue {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: white;
}

.icon-default {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Shuffle Special Icon */
#btn-shuffle-all .card-icon {
    background: var(--gradient-brand);
    color: white;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--text-main);
}

/* === MAIN CONTENT === */
.main-content {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow-y: auto;
    /* Enable vertical scrolling only if needed, but for player view we want it fixed */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.player-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: min-content;
    /* Allow it to grow */
}

/* === TV SHELL & PLAYER === */
.tv-shell {
    width: 100%;
    min-height: 480px;
    max-height: 65vh;
    /* Restrict height so it doesn't take over the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 40px;
    box-shadow:
        inset 0 2px 5px rgba(255, 255, 255, 0.1),
        inset 0 -2px 5px rgba(0, 0, 0, 0.5),
        20px 20px 60px #020617,
        -5px -5px 20px rgba(255, 255, 255, 0.02);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 1000px;
    /* Reduced from 1200px to better fit vertical space */
    margin: 0 auto;
    box-sizing: border-box;
}

.tv-shell::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 40px;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    opacity: 0.8;
}

.player-frame {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow:
        inset 0 0 100px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.8);
    border: 4px solid #020617;
}

.player-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%);
    pointer-events: none;
    z-index: 10;
}

.video-embed {
    width: 100%;
    height: 100%;
}

/* === CTA OVERLAY === */
.cta-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 50;
    pointer-events: none;
    /* Let clicks pass through to video */
    padding-bottom: 60px;
    /* Avoid covering bottom controls */
}

.player-frame:hover .cta-overlay {
    opacity: 1;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.player-frame:hover .cta-title {
    transform: translateY(0);
}

.btn-cta-gold {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: black;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.5);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    pointer-events: auto;
    /* Enable clicking button */
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
    transform: scale(0.9);
}

.player-frame:hover .btn-cta-gold {
    transform: scale(1);
}

.btn-cta-gold:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 50px rgba(250, 204, 21, 0.8);
}

.cta-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Overlays */
.info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.info-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}


/* JS uses .hidden on #video-overlay */
#video-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

#video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}


.overlay-center {
    text-align: center;
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

#video-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#video-artist {
    font-size: 1.5rem;
    color: var(--primary-glow);
}

/* === NEW FLOATING PLAYER UI === */
.floating-player-ui {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Crucial: Let clicks pass through to YouTube player */
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    overflow: hidden;
}

/* Track Header (Fades in/out) */
.track-header-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem 2rem;
    border-left: 4px solid #facc15;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 80%;
}

.track-header-overlay.show {
    transform: translateX(0);
    opacity: 1;
}

#float-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#float-channel {
    font-size: 1rem;
    color: #facc15;
    margin: 0.5rem 0 0 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Floating Controls (Visible on Hover) */
.player-controls-floating {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.tv-shell:hover .player-controls-floating {
    opacity: 1;
    transform: translateY(0);
}

.btn-float {
    pointer-events: auto;
    /* Re-enable clicks for buttons */
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.btn-float i {
    font-size: 1rem;
}

.btn-float:hover {
    background: #facc15;
    color: #000;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: #facc15;
}

#btn-like-float:hover i {
    color: #ef4444;
}

/* Responsiveness for Floating UI */
@media (max-width: 768px) {
    .tv-shell {
        flex-direction: column;
        padding: 1rem;
        min-height: auto;
        height: auto;
        max-height: none;
        gap: 1rem;
        border-radius: 20px;
    }

    .player-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .floating-player-ui {
        position: relative;
        inset: auto;
        padding: 0;
        pointer-events: auto;
        opacity: 1;
        width: 100%;
    }

    .track-header-overlay {
        display: none;
        /* Hide header overlay on mobile as it's redundant with player title */
    }

    #float-title {
        font-size: 1.2rem;
    }

    .player-controls-floating {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        max-width: none;
        opacity: 1;
        transform: none;
        padding: 0.5rem 0;
    }

    .btn-float {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
        justify-content: center;
        border-radius: 12px;
        height: 50px;
        background: rgba(255, 255, 255, 0.05);
    }

    .btn-float i {
        font-size: 1rem;
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

.btn-like {
    gap: 0.5rem;
    width: auto;
    padding: 0 1.2rem;
}

/* === LOADING SPINNER === */
.loader-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.equalizer {
    display: flex;
    gap: 4px;
    height: 40px;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.bar {
    width: 8px;
    background: var(--primary-glow);
    animation: equalize 0.8s infinite ease-in-out;
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
    background: #a855f7;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
    background: #ec4899;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
    background: var(--primary-glow);
}

@keyframes equalize {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 40px;
    }
}

/* === HISTORY SIDEBAR (Right) === */
.sidebar-right {
    position: fixed;
    right: -350px;
    top: 0;
    bottom: 0;
    width: 350px;
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    z-index: 200;
    padding: 2rem;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Enable scrolling */
}

.sidebar-right.open {
    right: 0;
}

.history-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    text-align: left;
    color: inherit;
    transition: background 0.2s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.history-thumb {
    width: 100px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
}

.history-info {
    flex: 1;
    overflow: hidden;
}

.history-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
}

/* === MOBILE RESPONSIBLE === */
.mobile-only {
    display: none;
}

/* === ELEMENTOS MÓVILES ESPECÍFICOS (Ocultos en Desktop) === */
.mobile-controls-bar,
.mobile-video-info,
.mobile-tabs,
.mobile-content-scroller,
.mobile-bottom-nav,
.mobile-drawer-overlay,
.mobile-action-bar,
.comments-modal-overlay,
.gesture-indicator,
.swipe-hint,
.gesture-capture-layer {
    display: none;
}

/* Solo device-mobile puede mostrarlos */
.device-desktop .mobile-controls-bar,
.device-desktop .mobile-video-info,
.device-desktop .mobile-tabs,
.device-desktop .mobile-content-scroller,
.device-desktop .mobile-bottom-nav,
.device-desktop .mobile-drawer-overlay,
.device-desktop .mobile-action-bar,
.device-desktop .comments-modal-overlay,
.device-desktop .gesture-indicator,
.device-desktop .swipe-hint,
.device-desktop .gesture-capture-layer {
    display: none !important;
}

@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        position: fixed;
        left: -300px;
        top: 0;
        bottom: 0;
        transition: left 0.3s ease;
        background: rgba(15, 23, 42, 0.98);
        width: 300px;
        padding-bottom: 4rem;
        /* Extra space for mobile browser bars */
        padding-bottom: calc(4rem + env(safe-area-inset-bottom));
    }

    .sidebar-nav.open {
        left: 0;
    }

    .mobile-only {
        display: block;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .track-info-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }

    .track-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .track-text h3 {
        max-width: 100%;
    }

    .player-controls {
        justify-content: center;
    }

    .player-actions {
        display: none;
        /* Obsolete since floating controls */
    }

    /* Small logo for mobile header */
    .logo-small {
        font-weight: 900;
        letter-spacing: 2px;
        color: white;
        font-size: 1.2rem;
        text-shadow: 2px 2px 0 var(--accent-glow), -2px -2px 0 var(--primary-glow);
    }

    .backdrop-blur {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 90;
        display: none;
    }

    .backdrop-blur.active {
        display: block;
    }
}

/* Fullscreen Override */
body.fullscreen-mode {
    overflow: hidden !important;
}

body.fullscreen-mode .player-frame {
    position: fixed !important;
    inset: 0 !important;
    border-radius: 0 !important;
    z-index: 9000 !important;
    border: none !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

body.fullscreen-mode .track-info-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9001;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

body.fullscreen-mode:hover .track-info-bar,
body.fullscreen-mode .track-info-bar:active {
    transform: translateY(0);
}

body.fullscreen-mode .main-content {
    z-index: 9002;
}

/* Hide other UI in fullscreen */
body.fullscreen-mode .sidebar-nav,
body.fullscreen-mode .main-header,
body.fullscreen-mode .mobile-header,
body.fullscreen-mode .welcome-overlay {
    display: none !important;
}

/* Auto-hide controls in cinema mode */
/* Mobile adjustments for Welcome Screen & Player */
@media (max-width: 768px) {
    .brand-logo {
        font-size: 3rem;
        /* Smaller logo */
        margin-bottom: 0.25rem;
    }

    .brand-slogan {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .load-stats {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .stat-pill {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .btn-primary-glow {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Player adjustments */
    .main-content {
        padding: 1rem;
    }

    .player-container {
        gap: 1rem;
    }

    .player-frame {
        max-height: 40vh;
        /* Don't take up whole screen in portrait */
        min-height: 250px;
    }

    .track-info-bar {
        padding: 1rem 0.5rem;
        gap: 0.75rem;
        border-radius: 16px;
        width: 100%;
        margin: 0 auto;
    }

    .track-text h3 {
        font-size: 0.95rem;
        max-width: 100%;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.2;
    }

    .player-controls {
        gap: 0.75rem;
    }

    .btn-control.lg {
        width: 48px;
        height: 48px;
    }

    .btn-action {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .btn-like {
        padding: 0 0.75rem;
    }

    /* CTA Overlay scaling - Obsolete */
    .cta-overlay {
        display: none;
    }
}

/* Landscape Mode Optimization for Mobile */
@media (max-width: 932px) and (orientation: landscape) {
    .mobile-header {
        display: none !important;
    }

    .main-content {
        padding: 0 !important;
    }

    .player-container {
        padding: 0 !important;
        gap: 0 !important;
        height: 100vh;
    }

    .player-frame {
        height: 100vh !important;
        max-height: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .track-info-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        border-radius: 0;
        transform: translateY(100%);
        background: rgba(15, 23, 42, 0.9);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 1rem;
    }

    /* Show on hover or active (tap) */
    .player-container:hover .track-info-bar,
    .player-container:active .track-info-bar,
    .track-info-bar:hover,
    .track-info-bar:active {
        transform: translateY(0);
    }

    .player-actions {
        border-top: none;
        padding-top: 0;
    }
}

/* History Sidebar Footer */
.sidebar-bottom {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.btn-text-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    width: 100%;
}

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

/* About Button in Player */
.player-info-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-yellow);
    border-radius: 50%;
    color: var(--neon-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(255, 230, 0, 0.2);
    opacity: 0;
    visibility: hidden;
}

.player-container:hover .player-info-btn {
    opacity: 1;
    visibility: visible;
}

.player-info-btn:hover {
    background: var(--neon-yellow);
    color: black;
    box-shadow: 0 0 20px rgba(255, 230, 0, 0.5);
    transform: scale(1.1);
}

/* About Modal */
.about-modal-content {
    max-width: 550px;
    width: 95%;
    padding: 2.2rem;
    /* Even more compact */
    background: rgba(13, 17, 28, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 230, 0, 0.4);
    border-radius: 32px;
    text-align: center;
    position: relative;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(255, 230, 0, 0.15),
        inset 0 0 2px rgba(255, 230, 0, 0.2);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    /* Remove scroll */
}

/* Retro ambient glow behind modal */
.modal-overlay::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--neon-yellow);
    filter: blur(150px);
    opacity: 0.05;
    z-index: -1;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }

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

.about-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    /* Reduced */
    position: relative;
}

.about-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    /* Slightly smaller */
    color: #fff;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.about-logo i {
    color: var(--neon-yellow);
    font-size: 1rem;
    filter: drop-shadow(0 0 8px var(--neon-yellow));
}

.btn-close-about {
    position: absolute;
    right: -1rem;
    top: -1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.btn-close-about:hover {
    background: var(--neon-yellow);
    color: #000;
    transform: rotate(90deg);
    border-color: var(--neon-yellow);
}

.about-welcome {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    /* Smaller */
    color: var(--neon-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    /* Reduced */
    font-weight: 500;
    opacity: 0.8;
}

.about-stats-highlight {
    margin-bottom: 2rem;
    /* Reduced */
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    /* Reduced padding */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-number {
    font-size: 1.4rem;
    /* Smaller */
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.stats-sub {
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem auto;
    /* Reduced */
    display: inline-block;
    text-align: left;
}

.about-features li {
    margin-bottom: 0.8rem;
    /* Reduced */
    font-size: 1rem;
    /* Smaller */
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: transform 0.2s;
}

.about-features li:hover {
    transform: translateX(5px);
    color: white;
}

.about-features li .dot {
    width: 4px;
    height: 4px;
    background: var(--neon-yellow);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-yellow);
    flex-shrink: 0;
}

.about-tagline {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 2rem;
    /* Reduced */
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.about-divider {
    height: 1px;
    background: radial-gradient(circle, rgba(255, 230, 0, 0.5) 0%, transparent 70%);
    margin: 0 auto 2rem auto;
    width: 60%;
}

.about-sources {
    font-size: 0.9rem;
    /* Smaller */
    color: #94a3b8;
    margin-bottom: 2rem;
    /* Reduced */
}

.highlight-yellow {
    color: var(--neon-yellow);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.about-disclaimer {
    font-size: 0.7rem;
    /* Smaller */
    color: #64748b;
    text-align: justify;
    margin-bottom: 2.5rem;
    /* Reduced */
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.disclaimer-title {
    font-weight: 800;
    color: #475569;
    text-align: center;
    margin-bottom: 0.6rem;
    letter-spacing: 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.btn-enter-about {
    background: linear-gradient(135deg, #ffed00 0%, #ffc400 100%);
    color: #000 !important;
    border: none;
    padding: 1rem 3.5rem;
    /* Reduced */
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow:
        0 10px 20px -5px rgba(255, 230, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-enter-about:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 15px 30px -5px rgba(255, 230, 0, 0.6);
    filter: brightness(1.1);
}

.btn-enter-about:active {
    transform: translateY(0) scale(0.98);
}

/* --- Responsive Adjustments for About Modal --- */
@media (max-width: 768px) {
    .about-modal-content {
        padding: 1.25rem;
        border-radius: 24px;
        width: 92%;
    }

    .about-header {
        margin-bottom: 1rem;
    }

    .about-logo {
        font-size: 1.2rem;
        gap: 0.6rem;
        letter-spacing: 3px;
    }

    .btn-close-about {
        right: -0.5rem;
        top: -0.8rem;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .about-welcome {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        letter-spacing: 2px;
    }

    .about-stats-highlight {
        margin-bottom: 1.2rem;
        padding: 1rem;
    }

    .stats-number {
        font-size: 1.1rem;
    }

    .stats-sub {
        font-size: 0.75rem;
    }

    .about-features {
        margin-bottom: 1.2rem;
    }

    .about-features li {
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
        gap: 0.8rem;
    }

    .about-tagline {
        margin-bottom: 1.2rem;
        font-size: 0.75rem;
    }

    .about-divider {
        margin-bottom: 1.2rem;
    }

    .about-sources {
        margin-bottom: 1.2rem;
        font-size: 0.8rem;
    }

    .about-disclaimer {
        font-size: 0.6rem;
        margin-bottom: 1.5rem;
        padding: 0.8rem;
        line-height: 1.4;
    }

    .btn-enter-about {
        padding: 0.8rem 2.5rem;
        font-size: 0.85rem;
    }
}

/* === APP HEADER (DESKTOP) === */
/* === APP HEADER (DESKTOP) === */
.app-header-desktop {
    display: none;
    /* Hidden by default on mobile/tablet */
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.4), transparent);
    z-index: 50;
}

@media (min-width: 1024px) {
    .app-header-desktop {
        display: flex;
    }
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-breadcrumb .separator {
    font-size: 0.7rem;
    opacity: 0.3;
}

.header-breadcrumb .breadcrumb-item {
    color: var(--text-muted);
}

.header-breadcrumb .breadcrumb-item.active {
    color: white;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-action-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--surface-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-action-header:hover {
    background: var(--surface-hover);
    border-color: var(--primary-glow);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.btn-action-header i {
    color: var(--primary-glow);
    font-size: 0.9rem;
}

/* === SIDEBAR TABS PREMIUM === */
.sidebar-tabs-premium {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem;
    border-radius: 16px;
    margin: 0.5rem 0 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab-btn i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.nav-tab-btn.active {
    background: var(--surface-glass-strong);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.nav-tab-btn.active i {
    transform: scale(1.1);
    color: var(--primary-glow);
}

.nav-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

/* === COMMUNITY CARD (SIDEBAR) === */
.community-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 0.6rem;
    transition: all 0.2s;
}

.community-card:hover {
    background: var(--surface-hover);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.community-card .rank-number {
    width: 24px;
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-align: center;
}

.community-card .com-info {
    flex: 1;
    min-width: 0;
}

.community-card .com-name {
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.community-card .com-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.community-card .btn-vote {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.community-card .btn-vote:hover {
    background: #ec4899;
    color: white;
}

/* === VIEW ALL BUTTON (SIDEBAR) === */
.view-all-container {
    margin-top: 1rem;
    padding: 0 0.2rem;
}

.btn-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-view-all:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: var(--primary-glow);
    color: white;
    transform: translateY(-2px);
}