.hidden {
    display: none !important;
}

body {
    background-color: #08080a;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-font-smoothing: antialiased;
}

body.zion-boot-lock {
    overflow: hidden;
}

#zion-app-shell {
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

#zion-app-shell.zion-app-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.zion-details-open {
    overflow: hidden;
}

/* ANTI-PREGUIÇA: Ocultar barras de rolagem nativas -> Custom Scrollbars Desktop */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(163, 230, 53, 0.25);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(163, 230, 53, 0.5);
}

/* Sidebar Refatorada */
.sidebar-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #a0a0a0;
}

.sidebar-btn.active {
    background-color: rgba(163, 230, 53, 0.1);
    color: #a3e635;
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.1);
    transform: scale(1.1);
}

.sidebar-tooltip {
    position: absolute;
    left: 70px;
    background-color: #a3e635;
    color: #000000;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 60;
}

.sidebar-btn:hover .sidebar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Carrosséis */
.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.carousel-container > * {
    scroll-snap-align: start;
}

/* Efeito Fade nas Bordas */
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 20;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: -20px;
    background: linear-gradient(to right, #000, transparent);
}

.carousel-wrapper::after {
    right: -20px;
    background: linear-gradient(to left, #000, transparent);
}

/* Setas Visuais */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(163, 230, 53, 0.9);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.4);
}

.carousel-wrapper:hover .carousel-arrow {
    opacity: 1;
}

.arrow-left {
    left: 10px;
}
.arrow-right {
    right: 10px;
}

/* --- CARDS & PROPORÇÕES RÍGIDAS --- */

/* ========================================
   PADRONIZAÇÃO UNIVERSAL DE CARDS - FASE 2
   ======================================== */

/* Card Vertical (Filmes, Séries, Animes) - Proporção 2:3 */
.card-catalogo {
    aspect-ratio: 2 / 3;
    width: 220px;
    min-width: 180px;
    max-width: 280px;
    flex-shrink: 0;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #0a0a0a;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    /* Placeholder for aspect ratio 2:3 */
    aspect-ratio: 2 / 3; /* No-op placeholder */
}

/* Horizontal card (16:9) standardization */
.card-horizontal {
    aspect-ratio: 16 / 9;
    width: 320px;
    min-width: 280px;
    max-width: 400px;
    flex-shrink: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}

/* Carousel lateral com scroll suave e efeito degradê nas bordas */
.carousel-wrapper {
    position: relative;
}
.carousel-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 1rem;
}
.carousel-container::-webkit-scrollbar { height: 8px; }
.carousel-container::-webkit-scrollbar-thumb { background: rgba(163,230,53,0.12); border-radius: 999px; }

.carousel-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    pointer-events: none;
}
.carousel-fade.left { left: 0; background: linear-gradient(90deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 100%); }
.carousel-fade.right { right: 0; background: linear-gradient(270deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 100%); }

.btn-see-all-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 10px;
    background: rgba(163,230,53,0.08);
    color: #a3e635;
    border: 1px solid rgba(163,230,53,0.12);
    border-radius: 9999px;
    font-weight: 800;
}

/* Login overlay (glassmorphism) */
.zion-login-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.75));
    z-index: 9999;
}
.zion-login-card {
    width: 420px;
    max-width: calc(100% - 40px);
    padding: 28px;
    border-radius: 16px;
    background: rgba(10,10,10,0.5);
    backdrop-filter: blur(14px) saturate(1.1);
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    color: #fff;
}
.zion-login-card input[type="text"], .zion-login-card input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-top: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    color: #fff;
}
.zion-login-actions { display:flex; gap:8px; margin-top:16px; }
.zion-btn { padding:10px 14px; border-radius:8px; cursor:pointer; }
.zion-btn.primary { background: #a3e635; color: #000; font-weight:800; }
.zion-btn.ghost { background: transparent; color:#fff; border:1px solid rgba(255,255,255,0.06); }

.card-catalogo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Card Vertical com Hover */
.card-catalogo:hover img {
    transform: scale(1.1);
}

/* Card Horizontal (TV, Episódios) - Proporção 16:9 */
.card-horizontal {
    aspect-ratio: 16 / 9;
    width: 280px;
    min-width: 240px;
    max-width: 320px;
    flex-shrink: 0;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #0a0a0a;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Card Horizontal com Hover */
.card-horizontal:hover img {
    transform: scale(1.05);
}

/* Card Temporada (2:3) - Padronizado */
.season-card {
    aspect-ratio: 2 / 3;
    min-width: 140px;
    max-width: 180px;
    width: 160px;
    flex-shrink: 0;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #0a0a0a;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-catalogo:hover,
.card-horizontal:hover,
.season-card:hover {
    z-index: 50;
    border-color: rgba(163, 230, 53, 0.5);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(163, 230, 53, 0.1);
    transform: translateY(-4px);
}

/* ========================================
   CARROSSEL MELHORADO - FASE 2
   ======================================== */

.carousel-container {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.carousel-container > * {
    scroll-snap-align: start;
}

/* Botão Ver Mais para Categorias */
.btn-see-all-category {
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 280px;
    width: 280px;
    min-height: 158px;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(163, 230, 53, 0.05), rgba(163, 230, 53, 0.02));
    border: 2px solid rgba(163, 230, 53, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.btn-see-all-category:hover {
    border-color: rgba(163, 230, 53, 0.8);
    background: linear-gradient(135deg, rgba(163, 230, 53, 0.15), rgba(163, 230, 53, 0.08));
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(163, 230, 53, 0.2);
    transform: translateY(-4px);
}

.btn-see-all-category span {
    font-size: 2rem;
}

.btn-see-all-category p {
    font-size: 14px;
    font-weight: 900;
    color: #a3e635;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- MODAIS DE DETALHES (TELA UNIVERSAL) --- */

#details-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: #000;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

#details-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#details-overlay.hidden {
    display: none !important;
}

#modal-container {
    background: #000;
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

/* Estrutura Base para Filmes e Séries */
.modal-detalhes-container {
    position: relative;
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* Ensure trailer/secondary button never collapses */
#btn-details-trailer {
    min-width: 120px !important;
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    box-sizing: border-box !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
    backdrop-filter: blur(16px) !important;
    width: fit-content !important;
    white-space: nowrap !important;
}

/* Contêiner de ações - não fazer stretch dos botões */
.flex.items-center.gap-6 {
    flex-wrap: wrap;
}

.flex.items-center.gap-6 > button {
    flex-shrink: 0;
    width: fit-content;
}

#btn-details-trailer svg { width: 18px; height: 18px; }
#btn-details-trailer span {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* Poster badge for Basic / Elite access tiers */
.poster-tag {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 30;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.08);
}

.poster-tag-basic {
    background: rgba(24, 58, 10, 0.7);
    color: #a3e635;
}

.poster-tag-elite {
    background: rgba(255, 223, 0, 0.95);
    color: #08120a;
}

/* Episode Tag badges */
.ep-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 30;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ep-tag-free { background: rgba(255,255,255,0.06); color: #ffffff; border: 1px solid rgba(255,255,255,0.06); }
.ep-tag-basic { background: rgba(163,230,53,0.12); color: #a3e635; border: 1px solid rgba(163,230,53,0.26); }
.ep-tag-elite { background: rgba(163,230,53,0.18); color: #000; border: 1px solid rgba(163,230,53,0.36); }

button[data-episode-tag="basic"], button[data-episode-tag="elite"] {
    position: relative;
}

button[data-episode-tag="basic"]::after,
button[data-episode-tag="elite"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
    transition: background 0.3s ease;
}

button[data-episode-tag="elite"]::after {
    background: rgba(0, 0, 0, 0.35);
}

button[data-episode-tag="basic"] .ep-tag,
button[data-episode-tag="elite"] .ep-tag {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 12px 24px rgba(0,0,0,0.4);
}

button[data-episode-tag="basic"] {
    border-color: rgba(163,230,53,0.14);
}

button[data-episode-tag="elite"] {
    border-color: rgba(255,215,0,0.24);
}

button[data-episode-tag="basic"]::after,
button[data-episode-tag="elite"]::after {
    background: rgba(0, 0, 0, 0.22);
}

button[data-episode-tag="elite"]::after {
    background: rgba(0, 0, 0, 0.44);
}

button[data-episode-tag="elite"] .ep-tag {
    color: #000;
}

/* Make sure "Ver Mais" cards match exact card dimensions (defensive) */
.btn-see-all-category {
    box-sizing: border-box;
    min-width: 160px;
    max-width: 220px;
    width: fit-content;
    height: auto;
    flex-shrink: 0;
}


.modal-backdrop-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    background-size: cover;
    background-position: top center;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    z-index: 0;
}

.modal-content-overlay {
    position: relative;
    z-index: 10;
    padding: 20vh 5% 0 5%;
    background: linear-gradient(to right, black 30%, transparent 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* .modal-filme e .modal-serie compartilham esta base */
.modal-header-info {
    max-width: 800px;
}

.modal-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.modal-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #a3e635;
}

.modal-overview {
    font-size: 1.25rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Container de Episódios para Séries */
.modal-serie-episodes-container {
    margin-top: 4rem;
    width: 100%;
}

.episodios-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scrollbar-width: thin;
}

.episodios-container::-webkit-scrollbar {
    height: 6px;
}

.episodios-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* Substituição de classes legadas no style.css para manter compatibilidade com o que já existe se necessário, ou limpar se for o caso */
.carousel-container .group\/card {
    width: auto;
}

/* Garantir que o grid respeite os novos tamanhos */
/* Grids Responsivas - FASE 2 */
#movies-grid,
#series-grid,
#anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

@media (max-width: 1920px) {
    #movies-grid,
    #series-grid,
    #anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 1400px) {
    #movies-grid,
    #series-grid,
    #anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

#iptv-main-container .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

/* 1. MOLDURA UNIVERSAL IPTV E EPISÓDIOS (16:9) */
.iptv-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}

.iptv-row::-webkit-scrollbar {
    display: none;
}

.card-horizontal,
.live-card {
    flex: 0 0 auto;
    width: 320px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: rgba(255,255,255,0.02);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-horizontal:hover,
.live-card:hover {
    transform: scale(1.05);
}
.card-horizontal img,
.live-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
}

/* 2. MOLDURA UNIVERSAL FILMES/SÉRIES/ANIMES (2:3) */
.card,
.media-card {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.card:hover,
.media-card:hover {
    transform: scale(1.05);
}
.card img,
.media-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
}

/* ENGESSAMENTO DA VITRINE / CARROSSEL INICIAL */
.vitrine-row,
.carousel-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.vitrine-card,
.trending-item,
.inicio-card {
    flex: 0 0 auto !important;
    width: 200px !important;
    min-width: 200px !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: rgba(255,255,255,0.02);
    backdrop-filter: blur(5px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vitrine-card img,
.trending-item img,
.inicio-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none;
}

.poster-card,
.inicio-card,
.vitrine-card,
.media-card,
.card-catalogo {
    cursor: pointer;
}

/* PLAYER ZION UNIFICADO */
#zion-player-container {
    font-family: Inter, "Space Grotesk", "Sora", "Segoe UI", Arial, sans-serif;
}

#zion-player-title {
    text-shadow: 0 6px 34px rgba(0, 0, 0, 0.95);
}

#zion-player-subtitle {
    backdrop-filter: blur(12px);
}

/* Oculta renderização nativa de legendas no browser para priorizar o overlay cinematográfico Zion */
video::cue {
    visibility: hidden !important;
    opacity: 0 !important;
    background: transparent !important;
    color: transparent !important;
}

/* ========================================
   GLASSMORPHISM PLAYER CONTROLS - FASE 3
   Cinematographic Design with Smooth Animations
   ======================================== */

#zion-player-header,
#zion-player-controls {
    transition:
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

#zion-player-container:not(.player-ui-visible) #zion-player-header,
#zion-player-container:not(.player-ui-visible) #zion-player-controls {
    opacity: 0;
}

/* Central Play/Pause Button - Glassmorphism */
#zion-center-toggle {
    border-radius: 9999px !important;
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(163, 230, 53, 0.15) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    width: 88px !important;
    height: 88px !important;
    transition:
        all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#zion-center-toggle:hover {
    border-color: rgba(163, 230, 53, 0.6) !important;
    background: rgba(0, 0, 0, 0.35) !important;
    box-shadow:
        0 12px 48px rgba(163, 230, 53, 0.2),
        0 0 32px rgba(163, 230, 53, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) scale(1.08) !important;
}

#zion-center-toggle:active {
    transform: translate(-50%, -50%) scale(0.95) !important;
}

#zion-center-toggle svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#zion-player-container:not(.player-ui-visible) #zion-center-toggle,
#zion-player-container:not(.player-ui-visible) #zion-side-rewind,
#zion-player-container:not(.player-ui-visible) #zion-side-forward {
    opacity: 0;
    pointer-events: none;
}

#zion-player-container.player-ui-visible #zion-center-toggle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Side Navigation Buttons - Glassmorphism */
#zion-side-rewind,
#zion-side-forward {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#zion-side-rewind span,
#zion-side-forward span {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(163, 230, 53, 0.2) !important;
    transition:
        all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

#zion-side-rewind:hover span,
#zion-side-forward:hover span {
    transform: scale(1.1);
    border-color: rgba(163, 230, 53, 0.7) !important;
    color: #a3e635;
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow:
        0 8px 32px rgba(163, 230, 53, 0.25),
        0 0 24px rgba(163, 230, 53, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

#zion-progress-bar {
    position: relative;
    background: linear-gradient(
        90deg,
        #65a30d 0%,
        #84cc16 40%,
        #a3e635 75%,
        #d9f99d 100%
    );
    box-shadow:
        0 0 18px rgba(163, 230, 53, 0.85),
        0 0 32px rgba(163, 230, 53, 0.42);
}

#zion-progress-bar::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(217, 249, 157, 0.92) 22%,
        rgba(163, 230, 53, 0.58) 50%,
        rgba(163, 230, 53, 0) 74%
    );
    transform: translateY(-50%);
    animation: zionProgressGlow 1.3s ease-in-out infinite;
    pointer-events: none;
}

#zion-live-badge {
    box-shadow: 0 0 30px rgba(163, 230, 53, 0.12);
    border: 1px solid rgba(163, 230, 53, 0.12);
    color: #a3e635;
}

/* Play → Pause morph / crossfade animation */
#zion-center-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

#zion-center-toggle svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
    color: #dbeeba;
}

#zion-center-toggle svg.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86) rotate(-6deg);
}

#zion-center-toggle.playing #zion-icon-play {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86) rotate(-6deg);
}

#zion-center-toggle.playing #zion-icon-pause {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

#zion-center-toggle:not(.playing) #zion-icon-pause {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86) rotate(6deg);
}

#zion-center-toggle:not(.playing) #zion-icon-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Slight green focus/glow for controls */
#zion-player-controls button,
#zion-player-controls .zion-btn,
#zion-player-header .zion-btn {
    transition: box-shadow 260ms ease, transform 260ms ease, border-color 260ms ease;
}

#zion-player-controls button:focus,
#zion-player-controls button:hover,
#zion-player-header .zion-btn:focus,
#zion-player-header .zion-btn:hover {
    box-shadow: 0 10px 40px rgba(163, 230, 53, 0.12), 0 0 26px rgba(163, 230, 53, 0.08);
    border-color: rgba(163, 230, 53, 0.45) !important;
}

#zion-player-container[data-player-mode="live"] #btn-skip-intro,
#zion-player-container[data-player-mode="live"] #zion-btn-rewind,
#zion-player-container[data-player-mode="live"] #zion-btn-forward,
#zion-player-container[data-player-mode="live"] #zion-center-toggle,
#zion-player-container[data-player-mode="live"] #zion-side-rewind,
#zion-player-container[data-player-mode="live"] #zion-side-forward,
#zion-player-container[data-player-mode="live"] #zion-btn-prev-episode,
#zion-player-container[data-player-mode="live"] #zion-btn-next-episode {
    display: none !important;
}

#zion-player-container[data-player-mode="movie"] #zion-btn-prev-episode,
#zion-player-container[data-player-mode="movie"] #zion-btn-next-episode {
    display: none !important;
}

#zion-player-container[data-player-mode="series"] #zion-btn-prev-episode,
#zion-player-container[data-player-mode="series"] #zion-btn-next-episode {
    display: inline-flex;
}

#zion-player-container[data-player-mode="live"] #zion-total-duration,
#zion-player-container[data-player-mode="live"] #zion-time-separator {
    display: none !important;
}

#zion-player-container[data-player-mode="live"] #zion-current-time {
    color: #f87171;
}

/* Bottom Controls Bar - Glassmorphism */
#zion-player-controls {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.25) 20%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.85) 100%
    ) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* Top Header - Glassmorphism */
#zion-player-header {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.05) 100%
    ) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* Close Button - Cinematographic Design */
#zion-player-header button[onclick="closeZionPlayer()"] {
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition:
        all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

#zion-player-header button[onclick="closeZionPlayer()"]:hover {
    background: rgba(220, 38, 38, 0.4) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow:
        0 8px 32px rgba(220, 38, 38, 0.25),
        0 0 24px rgba(220, 38, 38, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: #fca5a5 !important;
}

/* Play/Pause Button in Controls - Static Glassmorphism */
#zion-btn-play {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0;
    padding: 0;
    background: rgba(163, 230, 53, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(163, 230, 53, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    cursor: pointer;
    outline: none;
    /* Transições isoladas apenas para cores e sombras, bloqueando deslocamentos espaciais */
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

#zion-btn-play:hover {
    background: rgba(163, 230, 53, 0.15);
    border-color: rgba(163, 230, 53, 0.5);
    color: #a3e635; /* Zion Primary */
    box-shadow: 0 0 16px rgba(163, 230, 53, 0.2);
}

/* Efeito visual sutil: Piscar verde indicador de ação */
@keyframes zionActionFlash {
    0% {
        background: rgba(163, 230, 53, 0.6);
        box-shadow: 0 0 24px rgba(163, 230, 53, 0.8);
    }
    100% {
        background: rgba(163, 230, 53, 0.15);
        box-shadow: 0 0 16px rgba(163, 230, 53, 0.2);
    }
}

#zion-btn-play:focus,
#zion-btn-play:active {
    animation: zionActionFlash 0.3s ease-out;
}

/* Posicionamento absoluto dos ícones para bloquear reflow durante a troca de estado */
#zion-btn-play svg {
    display: block !important;
    position: absolute;
    width: 32px;
    height: 32px;
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}

/* Lógica de Transição de Estado que reaproveita a classe .hidden nativa do seu JS atual */
#zion-btn-play svg.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Forward/Rewind Buttons */
#zion-btn-rewind,
#zion-btn-forward {
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#zion-btn-rewind:hover,
#zion-btn-forward:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(163, 230, 53, 0.4);
    color: #a3e635;
    box-shadow:
        0 6px 20px rgba(163, 230, 53, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

/* Episode Navigation Buttons */
#zion-btn-prev-episode,
#zion-btn-next-episode {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border: 1px solid rgba(163, 230, 53, 0.2);
    transition:
        all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#zion-btn-prev-episode:hover,
#zion-btn-next-episode:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(163, 230, 53, 0.6);
    box-shadow:
        0 6px 20px rgba(163, 230, 53, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

#zion-btn-prev-episode:disabled,
#zion-btn-next-episode:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(0, 0, 0, 0.15) !important;
}

/* Volume Slider - Glassmorphism */
#zion-volume {
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        rgba(163, 230, 53, 0.1) 0%,
        rgba(163, 230, 53, 0.05) 100%
    ) !important;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Progress Bar - Enhanced Glow */
#zion-progress-wrapper {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

#zion-progress-wrapper:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 16px rgba(163, 230, 53, 0.2);
}

#zion-progress-bar {
    background: linear-gradient(
        90deg,
        #65a30d 0%,
        #84cc16 40%,
        #a3e635 75%,
        #d9f99d 100%
    );
    box-shadow:
        0 0 20px rgba(163, 230, 53, 1),
        0 0 40px rgba(163, 230, 53, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes zionProgressGlow {
    0%,
    100% {
        opacity: 0.7;
        transform: translateY(-50%) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.18);
    }
}

#btn-details-play.zion-btn-loading {
    opacity: 0.92;
    cursor: wait;
    pointer-events: none;
    transform: none !important;
}

.zion-play-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: #000;
    border-radius: 50%;
    animation: zionPlaySpin 0.65s linear infinite;
    flex-shrink: 0;
}

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

#details-playback-error:not(.hidden) {
    animation: zionErrorFadeIn 0.25s ease-out;
}

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

/* SUPABASE NOTIFICATION TOAST STYLES */
.zion-notification {
    animation: slideIn 0.3s ease-out forwards;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%) translateY(-20px);
    }
}

/* --- ZION IPTV CHANNEL CARDS --- */
.no-scrollbar,
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

.live-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    z-index: 5;
}

.live-card-name {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    letter-spacing: 0.02em;
}

/* --- ZION PLAYER LOADING STATE --- */
.zion-btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.zion-play-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: zion-spin 0.6s linear infinite;
}

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

/* --- EPISODE SCROLL ROW --- */
.episodes-scroll-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}
.episodes-scroll-row::-webkit-scrollbar {
    height: 4px;
}
.episodes-scroll-row::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}
.episodes-scroll-row::-webkit-scrollbar-thumb {
    background: rgba(163,230,53,0.3);
    border-radius: 2px;
}

/* --- DROPDOWN MENU --- */
#profile-dropdown {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

#profile-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.08);
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: rgba(239,68,68,0.1);
}

/* --- SIDEBAR --- */
.sidebar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
    cursor: pointer;
    padding: 8px 0;
    background: none;
    border: none;
    position: relative;
}

.sidebar-btn:hover {
    color: rgba(255,255,255,0.8);
}

.sidebar-btn.active {
    color: #a3e635;
}

.sidebar-btn.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 32px;
    background: #a3e635;
    border-radius: 0 2px 2px 0;
}

.sidebar-tooltip {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.sidebar-btn.active .sidebar-tooltip {
    opacity: 1;
}

/* --- POSTER CARD --- */
.poster-card {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.poster-card:hover {
    transform: scale(1.05);
    border-color: rgba(163,230,53,0.5);
}

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


/* --- ZION DUB/LEG SELECTOR (GLASSMORPHISM) --- */
.zion-dubleg-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    min-width: 220px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(163, 230, 53, 0.15);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(163, 230, 53, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.zion-dubleg-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zion-dubleg-menu.hidden {
    display: none;
}

.zion-dubleg-header {
    padding: 8px 12px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.zion-dubleg-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zion-dubleg-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

.zion-dubleg-option:hover {
    background: rgba(163, 230, 53, 0.1);
    color: #ffffff;
}

.zion-dubleg-option.active {
    background: rgba(163, 230, 53, 0.15);
    color: #a3e635;
    border: 1px solid rgba(163, 230, 53, 0.25);
}

.zion-dubleg-option .dubleg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dubleg-badge.dub {
    background: rgba(163, 230, 53, 0.2);
    color: #a3e635;
    border: 1px solid rgba(163, 230, 53, 0.3);
}

.dubleg-badge.leg {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.dubleg-badge.orig {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.zion-dubleg-option .dubleg-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zion-dubleg-option .dubleg-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.zion-dubleg-option.active .dubleg-check {
    border-color: #a3e635;
    background: #a3e635;
}

.zion-dubleg-option.active .dubleg-check::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #000;
}

/* --- EPISODE PLACEHOLDER (DARK MODE) --- */
.episode-placeholder-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.episode-placeholder-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(163, 230, 53, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.episode-placeholder-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(163, 230, 53, 0.12);
    border: 1px solid rgba(163, 230, 53, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.episode-placeholder-icon svg {
    width: 16px;
    height: 16px;
    fill: rgba(163, 230, 53, 0.5);
}


/* --- ZION UX: SKELETON & FADE-IN --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-card {
  background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 10px;
  aspect-ratio: 2/3;
  width: 100%;
  border: 1px solid rgba(163, 230, 53, 0.05);
}
.skeleton-card-horizontal {
  background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 10px;
  width: 250px;
  height: 140px;
  border: 1px solid rgba(163, 230, 53, 0.05);
}
.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.live-fallback-logo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #111, #222); font-weight: 900; color: #a3e635; text-transform: uppercase; text-align: center; font-size: 1.2rem; line-height: 1.2; padding: 10px; }
.live-card-badge { background: #a3e635; color: #000; font-size: 0.7rem; font-weight: 900; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; margin-left: 8px; }

/* ==========================================================================
   ACCESSIBILITY (a11y) & KEYBOARD FOCUS NAVIGATION SYSTEM - PHASE 1
   ========================================================================== */

/* Universal Focus Ring using Zion Green and Offset */
*:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px #000000, 0 0 0 4px #55c500 !important;
    transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Specific Focus rings for cards with scale effects to prevent clipping */
.media-card:focus-visible,
.card-catalogo:focus-visible,
.card-horizontal:focus-visible,
.iptv-card:focus-visible,
.season-card:focus-visible,
.sidebar-btn:focus-visible {
    transform: scale(1.05) !important;
    z-index: 50 !important;
}

/* Custom Checkbox focus indicators in Settings */
input[type="checkbox"]:focus-visible + div,
input[type="checkbox"]:focus + div {
    box-shadow: 0 0 0 2px #000000, 0 0 0 4px #55c500 !important;
}

/* ==========================================================================
   ZION MODERN STREAMING CATALOG DESIGN SYSTEM & GLASSMORPHISM TOKENS
   ========================================================================== */

:root {
  --zion-bg-deep: #07070a;
  --zion-bg-surface: #0e0e14;
  --zion-bg-card: #14141c;
  --zion-border-glass: rgba(255, 255, 255, 0.08);
  --zion-border-glass-hover: rgba(255, 255, 255, 0.2);
  --zion-accent-cyan: #00e5ff;
  --zion-accent-gold: #f59e0b;
  --zion-accent-emerald: #10b981;
  --zion-accent-rose: #f43f5e;
}

.zion-no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.zion-no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

@keyframes zion-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.zion-skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: zion-shimmer 1.8s infinite ease-in-out;
}

.zion-glass-card {
  background-color: rgba(20, 20, 28, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.zion-glass-card:hover {
  background-color: rgba(26, 26, 38, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 24px 0 rgba(0, 229, 255, 0.12) !important;
}

.zion-glass-panel {
  background: rgba(14, 14, 20, 0.75) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@keyframes zion-live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.zion-live-dot {
  animation: zion-live-pulse 1.5s infinite ease-in-out;
}

/* ========================================================================= */
/* INTERAÇÕES LÚDICAS E MICRO-ANIMAÇÕES CARTUNESCAS (PERFIL KIDS)           */
/* ========================================================================= */
@keyframes kidsElasticBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-8px) scale(1.06) rotate(-1.5deg);
  }
  60% {
    transform: translateY(-2px) scale(1.03) rotate(1deg);
  }
  80% {
    transform: translateY(-5px) scale(1.05) rotate(-0.5deg);
  }
  100% {
    transform: translateY(-4px) scale(1.05) rotate(0deg);
  }
}

@keyframes kidsFestivePop {
  0% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.18) rotate(3deg);
    filter: brightness(1.3) drop-shadow(0 0 25px rgba(244, 114, 182, 0.6));
  }
  70% {
    transform: scale(1.12) rotate(-2deg);
    filter: brightness(1.25) drop-shadow(0 0 20px rgba(56, 189, 248, 0.6));
  }
  100% {
    transform: scale(1.15) rotate(0deg);
    filter: brightness(1.2);
  }
}

.kids-card-hover:hover {
  animation: kidsElasticBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.kids-festive-active {
  animation: kidsFestivePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

