/* ZipNation — professional Mini App theme */

:root {
    --bg: #0a0a0c;
    --bg-card: rgba(20, 20, 28, 0.65);
    --bg-elevated: rgba(30, 30, 42, 0.85);
    --text: #ffffff;
    --text-muted: #8b8b95;
    --primary: #e91e8c;
    --primary-2: #9c27b0;
    --gradient: linear-gradient(135deg, #e91e8c 0%, #9c27b0 100%);
    --gradient-blue: linear-gradient(135deg, #2196f3, #00bcd4);
    --gradient-orange: linear-gradient(135deg, #ff9800, #ffc107);
    --rating-gold: #ff9800;
    --border: rgba(255, 255, 255, 0.12);
    --navbar-bg: rgba(13, 13, 18, 0.72);
    --nav-height: 52px;
    --bottom-nav-h: 60px;
    --radius: 16px;
    --radius-pill: 999px;
    --glow: rgba(233, 30, 140, 0.35);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    /* Media standartlari: poster 9:16 (1080×1920), banner 16:9 (1920×1080) */
    --poster-aspect: 9 / 16;
    --banner-aspect: 16 / 9;
    --media-poster-bg: #0a0a0c;
    --media-banner-bg: #0a0a0c;

    /* Liquid Glass & Glassmorphism Tokens */
    --glass-bg: rgba(16, 16, 26, 0.72);
    --glass-bg-hover: rgba(30, 30, 46, 0.82);
    --glass-bg-active: rgba(45, 45, 68, 0.92);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-border-hover: rgba(255, 0, 122, 0.45);
    --glass-blur: blur(28px) saturate(210%);
    --glass-blur-sm: blur(16px) saturate(170%);
    --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
    --glass-shadow-hover: 0 20px 50px 0 rgba(233, 30, 140, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
    --liquid-gradient: linear-gradient(135deg, #ff007a 0%, #7928ca 50%, #00dfd8 100%);
    --liquid-glow: 0 0 32px rgba(233, 30, 140, 0.5);
}

[data-theme="light"] {
    --bg: #f0f4f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-elevated: rgba(245, 248, 255, 0.95);
    --text: #0f172a;
    --text-muted: #475569;
    --text-sub: #64748b;
    --border: rgba(15, 23, 42, 0.12);
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-bg-hover: rgba(255, 255, 255, 0.95);
    --glass-bg-panel: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.88);
    --glass-shadow: 0 12px 36px 0 rgba(31, 38, 135, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 1);
    --glass-shadow-hover: 0 16px 44px 0 rgba(233, 30, 140, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 1);
    --media-poster-bg: #e2e8f0;
    --media-banner-bg: #e2e8f0;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background: var(--bg);
    padding-top: calc(var(--nav-height) + var(--safe-top));
    -webkit-overflow-scrolling: touch;
}

.tg-webapp body { padding-top: calc(var(--nav-height) + var(--safe-top)); }

/* ===== LIQUID GLASS HEADER & NAVBAR ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding-top: var(--safe-top);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: visible;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header .container {
    overflow: visible;
}
.header-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: var(--nav-height);
    padding: 0.35rem 0;
}
.header-spacer { flex: 1; }

/* Liquid Glass Logo */
.logo-zn {
    display: flex; align-items: center; gap: 0.2rem;
    text-decoration: none; color: var(--text);
    font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em;
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo-zn:hover {
    transform: scale(1.03);
}
.logo-zn .logo-tld {
    font-size: 0.7rem; font-weight: 800;
    background: var(--liquid-gradient); color: #fff;
    padding: 0.15rem 0.45rem; border-radius: 8px;
    margin-left: 0.2rem;
    box-shadow: 0 0 16px rgba(233, 30, 140, 0.45);
    letter-spacing: 0.02em;
}
.logo-zn .logo-mid {
    font-weight: 800;
    background: linear-gradient(135deg, #e91e8c, #9c27b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1em;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Glass Action Buttons */
.header-icon-btn,
.profile-avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.header-icon-btn:hover,
.profile-avatar-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Desktop Glass Category Dropdowns */
.desktop-cat-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.2rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}
.desktop-nav-extras {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.2rem;
}
.dnav-dropdown { position: relative; flex-shrink: 0; }
.dnav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.dnav-drop-btn:hover,
.dnav-drop-btn[aria-expanded="true"] {
    color: var(--text);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Liquid Glass Dropdown Panels */
.dnav-drop-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 360px;
    max-width: 580px;
    max-height: 75vh;
    overflow-y: auto;
    background: var(--glass-bg-panel, rgba(18, 18, 28, 0.92));
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow), 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 0.85rem;
    z-index: 300;
    color: var(--text);
    animation: glassSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: 280px;
    max-width: min(90vw, 320px);
    max-height: 80vh;
    overflow-y: auto;
    background: var(--glass-bg-panel, rgba(18, 18, 28, 0.92));
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow), 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 0.85rem;
    z-index: 999;
    color: var(--text);
    animation: glassSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dnav-drop-col::-webkit-scrollbar,
.dnav-drop-panel::-webkit-scrollbar,
.profile-dropdown::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.dnav-drop-col::-webkit-scrollbar-track,
.dnav-drop-panel::-webkit-scrollbar-track,
.profile-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.dnav-drop-col::-webkit-scrollbar-thumb,
.dnav-drop-panel::-webkit-scrollbar-thumb,
.profile-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
}
[data-theme="light"] .dnav-drop-col::-webkit-scrollbar-thumb,
[data-theme="light"] .dnav-drop-panel::-webkit-scrollbar-thumb,
[data-theme="light"] .profile-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

@keyframes glassSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.dnav-drop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.dnav-drop-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.35rem;
}
.dnav-drop-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.dnav-drop-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.dnav-drop-link:hover { background: var(--glass-bg-hover); color: var(--primary); }
.dnav-drop-all {
    display: block;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.dnav-extra {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
}
.dnav-extra:hover { color: var(--primary); }

/* Mobil drawer accordion */
.drawer-acc-list { display: flex; flex-direction: column; gap: 0.25rem; }
.drawer-acc {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    overflow: hidden;
}
.drawer-acc-summary {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.drawer-acc-summary::-webkit-details-marker { display: none; }
.drawer-acc[open] .drawer-acc-summary { color: var(--primary); }
.drawer-acc-body {
    padding: 0 0.85rem 0.75rem;
    border-top: 1px solid var(--border);
}
.drawer-sub-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0.5rem 0 0.35rem;
}
.drawer-sub-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.drawer-sub-link {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.78rem;
}
.drawer-sub-link:hover { border-color: var(--primary); color: var(--primary); }
.drawer-sub-all {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    border: none;
    background: none;
    padding: 0;
}
.drawer-extras-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}
.drawer-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 1rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
}
.drawer-footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
}
.drawer-footer-legal a:hover { color: var(--primary); }
.mobile-drawer-panel {
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow-y: auto;
}
.header-icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
}
.header-icon-btn svg { width: 18px; height: 18px; }

/* Profile avatar + dropdown */
.header-profile { position: relative; flex-shrink: 0; }
.profile-avatar-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-weight: 800; font-size: 0.85rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: inherit;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
    padding: 0;
}
.profile-avatar-btn .header-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-avatar-btn.has-photo {
    border-color: var(--primary);
}
.profile-avatar-btn.logged-in {
    border-color: var(--primary);
    background: var(--gradient);
    color: #fff;
}
.profile-avatar-btn.logged-in.has-photo {
    background: transparent;
}
.profile-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(340px, calc(100vw - 2rem));
    background: var(--glass-bg-panel, rgba(18, 18, 28, 0.95));
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 10050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text);
}
.profile-dropdown:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.profile-dropdown-head {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}
.profile-dropdown-name { display: block; font-weight: 700; font-size: 1rem; }
.profile-dropdown-sub { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.profile-dropdown-nav { padding: 0.35rem 0; }
.profile-dd-item {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.profile-dd-item:hover { background: rgba(255,255,255,0.05); }
.profile-dd-admin { color: var(--primary) !important; }
.profile-dropdown-foot {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
}
.btn-block { width: 100%; }

/* ===== HERO (HOME) ===== */
.home-main { padding-bottom: 1rem; }
.hero-section {
    position: relative;
    z-index: 0;
    margin: 0;
    padding: 0.85rem 0 0;
    min-height: clamp(260px, 38vh, 420px);
    max-height: none;
    overflow: hidden;
}
.hero-wrap {
    position: relative;
    min-height: clamp(260px, 38vh, 420px);
}
.hero-carousel { position: relative; height: 100%; min-height: inherit; }
.hero-slide {
    position: relative;
    height: 100%;
    min-height: inherit;
    padding-top: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--media-banner-bg);
    background-size: cover;
    background-position: center center;
    transform: none;
    filter: none;
}
/* Karusel ustida blur/gradient yo'q — faqat toza rasm yoki treyler */
.hero-overlay {
    display: none !important;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    filter: none;
}
.hero-slide--trailer .hero-poster-wrap { display: none !important; }
.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    min-height: 240px;
    padding-bottom: 1.75rem;
    padding-top: 0.75rem;
}
.hero-title,
.hero-desc,
.hero-slide .hero-title,
.hero-slide .hero-desc,
[data-theme="light"] .hero-slide .hero-title,
[data-theme="light"] .hero-slide .hero-desc {
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}
.hero-poster-wrap,
a.hero-poster-wrap {
    flex: 0 0 auto;
    display: none;
    position: relative;
    z-index: 8;
    width: clamp(88px, 11vw, 112px);
    max-height: min(168px, 38vh);
    aspect-ratio: var(--poster-aspect);
    border-radius: 12px;
    overflow: hidden;
    background: var(--media-poster-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.hero-poster-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}
.hero-poster-img {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: var(--media-poster-bg);
}
@media (min-width: 768px) {
    .hero-poster-wrap:not(.hidden) { display: block; }
    .hero-section { min-height: 360px; }
    .hero-wrap { min-height: 360px; }
    .hero-inner {
        min-height: 0;
        height: auto;
        align-items: flex-end;
    }
}
/* Sarlavhalar/qatorlar hero ustida turadi (desktopda ustma-ust tushmaydi) */
.home-sections {
    position: relative;
    z-index: 1;
    background: var(--bg);
}
.hero-poster-wrap:not(.hidden) {
    align-self: flex-end;
    margin-bottom: 0.15rem;
}
.hero-content {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    flex: 1;
    min-width: 0;
}
.hero-badge {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.65rem;
    width: fit-content;
}
.hero-title {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    max-width: 520px;
}
.hero-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 480px;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-meta {
    display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center;
    margin-bottom: 1rem;
}
.hero-meta-item,
.rating-pill {
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.rating-pill small { font-weight: 500; opacity: 0.85; }
.rating-pill-imdb { border: 1px solid rgba(245, 197, 24, 0.35); }
.rating-pill-kp { border: 1px solid rgba(255, 102, 0, 0.35); }
.rating-pill-zn { border: 1px solid rgba(233, 30, 140, 0.4); }
.detail-rating-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.85rem;
}
.detail-engage-stats,
.detail-engage-stats.engage-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.engage-stat-ico {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.engage-stat-ico .zn-ico {
    flex-shrink: 0;
    opacity: 0.85;
}
.zn-toast {
    position: fixed;
    top: calc(var(--nav-height, 56px) + var(--safe-top, 0px) + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10060;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-width: min(92vw, 420px);
    text-align: center;
    animation: zn-toast-in 0.25s ease;
}
.zn-toast.hidden { display: none; }
.zn-toast--ok { background: #2e7d32; color: #fff; }
.zn-toast--err { background: #c62828; color: #fff; }
@keyframes zn-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero-section.hero-dragging { user-select: none; }
.hero-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.btn-hero-play {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    color: #fff; font-weight: 700; font-size: 0.95rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-hero-secondary {
    display: inline-flex; align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.12);
    color: #fff; font-weight: 600; font-size: 0.9rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    border: 1px solid var(--border);
}
.hero-dots {
    position: absolute; bottom: 1rem; right: 1.25rem;
    display: flex; gap: 0.4rem; z-index: 3;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.35);
    cursor: pointer; padding: 0;
}
.hero-dot.active { background: var(--primary); width: 20px; border-radius: 4px; }

/* Home sections */
.home-sections { padding: 1rem 0 2rem; }
.home-cats {
    display: flex; gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem 0 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.home-cats::-webkit-scrollbar { display: none; }
.home-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.content-row { margin-bottom: 1.75rem; }
.content-row.hidden { display: none; }
.row-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem;
}
.row-head h2 { font-size: 1.05rem; font-weight: 700; }
.row-link { color: var(--primary); text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.row-scroll {
    display: flex; gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll .jcard-compact {
    flex: 0 0 120px;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .row-scroll .jcard-compact { flex: 0 0 140px; }
}

/* ===== DESKTOP CAROUSEL NAV (poster qatorlari — sichqoncha bilan surish + tugmalar) ===== */
.zn-carousel-wrap { position: relative; }
.zn-carousel-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 6;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(10,10,12,0.78);
    color: #fff;
    display: none;
    align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0,0,0,0.45);
    transition: background .18s, opacity .18s, transform .1s;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.zn-carousel-btn:hover { background: var(--primary); border-color: transparent; }
.zn-carousel-btn:active { transform: translateY(-50%) scale(0.9); }
.zn-carousel-prev { left: -8px; }
.zn-carousel-next { right: -8px; }
.zn-carousel-btn--hidden { opacity: 0; pointer-events: none; }
.similar-carousel.zn-carousel-dragging,
.row-scroll.zn-carousel-dragging,
.continue-carousel.zn-carousel-dragging { cursor: grabbing !important; scroll-behavior: auto; scroll-snap-type: none; }
.zn-carousel-dragging a { pointer-events: none; }
@media (min-width: 768px) {
    .zn-carousel-btn { display: flex; }
    .similar-carousel, .continue-carousel { cursor: grab; }
    .row-scroll:not(.home-grid) { cursor: grab; }
}
@media (max-width: 767px) {
    .zn-carousel-btn { display: none !important; }
}

/* ===== HERO desktop navigatsiya tugmalari (mouse) ===== */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(10,10,12,0.72);
    color: #fff;
    display: none;
    align-items: center; justify-content: center;
    cursor: pointer;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background .18s, transform .1s;
}
.hero-nav-btn:hover { background: var(--primary); }
.hero-nav-btn:active { transform: translateY(-50%) scale(0.9); }
.hero-nav-prev { left: 0.75rem; }
.hero-nav-next { right: 0.75rem; }
@media (min-width: 1024px) {
    .hero-wrap:hover .hero-nav-btn { display: flex; }
}

/* ===== CATALOG PAGE ===== */
.catalog-main { padding-top: 1rem; }
.catalog-head { margin-bottom: 1rem; }
.catalog-head h1 { font-size: 1.5rem; font-weight: 800; }
.catalog-tabs {
    display: flex; gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.catalog-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.cat-tab.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}
.catalog-grid-pro {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem 0.75rem;
}
@media (min-width: 768px) {
    .catalog-grid-pro { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}

/* ===== DRAWER ===== */
.drawer-cat-list { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.5rem; }
.drawer-cat-link {
    display: block;
    padding: 0.45rem 0.6rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: background 0.15s;
}
.drawer-cat-link:hover { background: rgba(255,255,255,0.06); }
.drawer-social {
    display: flex; gap: 0.65rem;
    padding: 1rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border);
}
.drawer-admin-link { color: var(--primary) !important; font-weight: 600; }
.profile-dd-item,
.drawer-link-ico,
.drawer-tool-btn,
.us2__menus-link,
.settings-link-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.drawer-tool-btn .drawer-tool-ico { display: flex; }
.bottom-nav-item > [data-icon] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
}
.btn:has([data-icon]),
.auth-bot-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.home-cat-chip--top {
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ===== DETAIL PAGE ===== */
.detail-root { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom)); }
.detail-hero {
    position: relative;
    min-height: clamp(380px, 48vh, 520px);
    margin-top: calc(-1 * (var(--nav-height) + var(--safe-top)));
    padding-top: calc(var(--nav-height) + var(--safe-top));
    overflow: hidden;
}
.detail-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.detail-hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.detail-hero-banner-img.hidden { display: none; }
.detail-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 25%;
    filter: none;
    transform: scale(1.02);
    transition: transform 0.4s ease;
}
.detail-hero-bg.has-image {
    filter: brightness(0.9) saturate(1.05);
}
.detail-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        0deg,
        var(--bg) 0%,
        rgba(10, 10, 12, 0.75) 35%,
        rgba(10, 10, 12, 0.3) 70%,
        rgba(10, 10, 12, 0.08) 100%
    );
}
[data-theme="light"] .detail-hero-overlay {
    background: linear-gradient(
        0deg,
        var(--bg) 0%,
        rgba(240, 244, 249, 0.85) 35%,
        rgba(240, 244, 249, 0.4) 70%,
        rgba(240, 244, 249, 0.1) 100%
    );
}
.detail-hero-inner {
    position: relative; z-index: 2;
    display: flex; gap: 1.5rem;
    align-items: flex-end;
    padding: 2rem 0 2.5rem;
    min-height: clamp(300px, 40vh, 460px);
    flex-wrap: wrap;
}
.detail-hero-poster {
    width: clamp(120px, 14vw, 168px);
    flex-shrink: 0;
    aspect-ratio: var(--poster-aspect);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    background: var(--media-poster-bg);
}
.detail-hero-poster .detail-poster-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    display: block;
    border-radius: 0;
    background: var(--media-poster-bg);
}
.detail-hero-info { flex: 1; min-width: 200px; }
.detail-badges { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.detail-badge {
    background: rgba(255,255,255,0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
}
.detail-badge.badge-top { background: var(--gradient); color: #fff; }
.detail-rating-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0; }
.detail-rating-badge {
    background: var(--rating-gold);
    color: #111;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    font-size: 1rem;
}
.detail-rating-label { color: var(--text-muted); font-size: 0.85rem; }
.detail-actions-row { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.detail-trailer-section {
    padding: 1.25rem 0 0.5rem;
    background: linear-gradient(180deg, rgba(233, 30, 140, 0.06) 0%, transparent 100%);
}
.detail-trailer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.detail-trailer-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.detail-trailer-player-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    aspect-ratio: 16 / 9;
}
.detail-trailer-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}
.detail-trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.detail-trailer-modal.hidden { display: none; }
.detail-trailer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}
.detail-trailer-modal-inner {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.detail-trailer-modal-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}
.detail-trailer-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
body.trailer-modal-open { overflow: hidden; }

.detail-body { padding-bottom: 2rem; }
.detail-section { margin-bottom: 2rem; }
.detail-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.detail-desc-text { color: var(--text-muted); line-height: 1.75; font-size: 0.95rem; }
.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem;
}
.meta-cell {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
}
.meta-cell dt { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.meta-cell dd { font-size: 0.88rem; font-weight: 600; margin: 0; }
.detail-hero-bg.hidden { display: none; }
.detail-hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.detail-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1.03);
}
.detail-hero-slide.active {
    opacity: 1;
    z-index: 1;
}
.detail-hero-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 0.45rem;
}
.detail-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.detail-hero-dot.active {
    background: var(--primary, #e91e8c);
    transform: scale(1.15);
}
.detail-hero-slide-label {
    position: absolute;
    top: calc(var(--nav-height) + var(--safe-top) + 0.75rem);
    right: 1rem;
    z-index: 3;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}
.detail-breadcrumb {
    padding: 0.85rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.detail-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.detail-breadcrumb a:hover { text-decoration: underline; }
.detail-breadcrumb-sep { margin: 0 0.4rem; opacity: 0.5; }
.detail-section-hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: -0.35rem 0 1rem;
}
.detail-body--top { padding-bottom: 0; }
.detail-season-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
}
.detail-season-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.detail-season-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.detail-season-card--soon { opacity: 0.72; }
.detail-season-card-poster {
    aspect-ratio: var(--poster-aspect);
    background: var(--media-poster-bg);
    overflow: hidden;
}
.detail-season-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.detail-season-card-body {
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.detail-season-card-body strong { font-size: 0.92rem; }
.detail-season-card-body span {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.detail-badge.badge-season {
    background: rgba(233, 30, 140, 0.2);
    border: 1px solid rgba(233, 30, 140, 0.45);
}
a.detail-season-tab {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.detail-season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.detail-season-tab {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}
.detail-season-tab.active,
.detail-season-tab:hover {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(233, 30, 140, 0.12);
}
.detail-empty-eps {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.detail-episodes-grid {
    display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.ep-chip {
    min-width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.15s;
}
.ep-chip:hover { border-color: var(--primary); background: rgba(233,30,140,0.15); }

/* ===== CARDS (poster 9:16 — to'liq ko'rinish, kesilmasin) ===== */
.jcard-poster {
    position: relative;
    aspect-ratio: var(--poster-aspect);
    border-radius: 12px;
    overflow: hidden;
    /* Rasm yuklanmasdan oldin SVG placeholder ko'rinadi */
    background-color: var(--media-poster-bg);
    background-image: url('/static/img/poster-placeholder.svg');
    background-size: 46% auto;
    background-position: center;
    background-repeat: no-repeat;
}
.jcard-poster-img,
.jcard-poster-inner {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: var(--media-poster-bg);
}
.jcard-placeholder { opacity: 0.85; }
.jcard-rating {
    position: absolute; top: 8px; right: 8px;
    background: var(--rating-gold); color: #111;
    font-weight: 800; font-size: 0.72rem;
    padding: 0.22rem 0.48rem; border-radius: 8px;
    min-width: 32px; text-align: center;
}
.jcard-compact .jcard-title { font-size: 0.82rem; }
.jcard-compact .jcard-poster { margin-bottom: 0.4rem; }

/* Bottom nav safe area */
.bottom-nav {
    padding-bottom: var(--safe-bottom);
    height: calc(var(--bottom-nav-h) + var(--safe-bottom));
}
.search-overlay-panel {
    padding-top: calc(0.75rem + var(--safe-top));
}
.mobile-drawer-panel {
    padding-top: calc(0.75rem + var(--safe-top));
    padding-bottom: calc(1rem + var(--safe-bottom));
}

@media (max-width: 767px) {
    #header-search-btn { display: none !important; }
}

.logo-zn {
    display: flex; align-items: baseline; gap: 0.15rem;
    text-decoration: none; color: var(--text);
    font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em;
    flex-shrink: 0;
}
.logo-zn .logo-tld {
    font-size: 0.75rem; font-weight: 700;
    background: var(--gradient); color: #fff;
    padding: 0.15rem 0.45rem; border-radius: 6px;
    margin-left: 0.15rem;
}
.header-search {
    flex: 1; max-width: 560px; min-width: 0;
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    padding: 0.55rem 1rem;
    border: 1px solid var(--border);
}
.header-search:focus-within { border-color: rgba(233,30,140,0.4); }
.header-search svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.header-search input {
    flex: 1; border: none; background: transparent; color: var(--text);
    font-size: 0.95rem; outline: none; font-family: inherit;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-tools {
    display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
}
.lang-pill {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); border-radius: var(--radius-pill);
    padding: 0.4rem 0.65rem; font-size: 0.8rem; cursor: pointer;
}
.theme-pill {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.user-pill {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: 0.25rem 0.65rem 0.25rem 0.25rem;
    text-decoration: none; color: var(--text); font-size: 0.85rem;
}
.user-pill-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gradient); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem;
}

.nav-toggle {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); width: 42px; height: 42px; border-radius: 12px;
    font-size: 1.25rem; cursor: pointer; flex-shrink: 0;
}

/* Drawer kategoriyalar */
.drawer-categories { margin: 1rem 0; }
.drawer-cat-grid {
    display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.5rem;
}
.drawer-cat-grid .cat-pill {
    flex-shrink: 0; border: none; cursor: pointer;
    padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
    background: var(--bg-elevated); color: var(--text-muted);
    font-size: 0.82rem; font-weight: 600; font-family: inherit;
}
.drawer-cat-grid .cat-pill.active {
    background: var(--gradient); color: #fff;
}

/* ===== MAIN ===== */
.page-main {
    position: relative; z-index: 1;
    padding: 1rem 0 4rem;
    min-height: 60vh;
}
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem;
}
.section-head h2 {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.15rem; font-weight: 700;
}
.section-head h2 .sec-icon {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gradient); display: inline-flex;
    align-items: center; justify-content: center; font-size: 0.85rem;
}
.section-sub { color: var(--text-muted); font-size: 0.85rem; }

/* ===== CARDS GRID ===== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.85rem 0.65rem;
}
@media (min-width: 768px) {
    .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 1.1rem 0.85rem; }
}
.jcard {
    text-decoration: none; color: inherit;
    opacity: 0; animation: cardIn 0.45s ease forwards;
    display: flex; flex-direction: column;
    position: relative;
    contain: layout style;
    will-change: transform;
}
.jcard-poster {
    position: relative;
    aspect-ratio: var(--poster-aspect);
    border-radius: 16px;
    overflow: hidden;
    background: var(--media-poster-bg);
    margin-bottom: 0.6rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.jcard-poster::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.02) 60%, rgba(233, 30, 140, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.jcard-poster::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 200%; height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg) translateY(-100%);
    transition: transform 0.75s ease;
    z-index: 4;
    pointer-events: none;
}
.jcard:hover .jcard-poster {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(233, 30, 140, 0.45);
    box-shadow: var(--glass-shadow-hover);
}
.jcard:hover .jcard-poster::after {
    transform: rotate(25deg) translateY(100%);
}
.jcard-poster-inner,
.jcard-poster-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: var(--media-poster-bg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
}
.jcard-poster-img { display: block; }
.jcard:hover .jcard-poster-inner,
.jcard:hover .jcard-poster-img { transform: scale(1.05); }
.jcard-rating {
    position: absolute; top: 8px; right: 8px; z-index: 5;
    background: rgba(255, 152, 0, 0.88); color: #0a0a0c;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-weight: 800; font-size: 0.72rem;
    padding: 0.22rem 0.5rem; border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.jcard-ep {
    position: absolute; bottom: 8px; left: 8px; z-index: 5;
    background: var(--liquid-gradient); color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 0.68rem; font-weight: 700;
    padding: 0.25rem 0.55rem; border-radius: 999px;
    box-shadow: var(--liquid-glow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.jcard-type {
    position: absolute; bottom: 8px; top: auto; left: 8px; z-index: 5;
    background: rgba(15, 15, 22, 0.68); color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 0.62rem; font-weight: 700;
    padding: 0.2rem 0.45rem; border-radius: 6px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.04em;
}
.jcard-title {
    font-size: 0.88rem; font-weight: 700; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 0.2rem;
    transition: color 0.2s ease;
}
.jcard:hover .jcard-title { color: var(--primary); }
.jcard-year { font-size: 0.78rem; color: var(--text-muted); }

/* ===== LOAD MORE + PAGINATION ===== */
.catalog-footer { margin-top: 2rem; text-align: center; }
.btn-load-more {
    display: inline-block; min-width: 280px;
    padding: 0.85rem 2rem; border-radius: var(--radius-pill);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted); font-weight: 600; cursor: pointer;
    font-family: inherit; font-size: 0.95rem;
    transition: all 0.2s;
}
.btn-load-more:hover { color: var(--text); border-color: rgba(233,30,140,0.4); }
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 0.45rem; margin-top: 1.25rem; flex-wrap: wrap;
}
.page-btn {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border); background: transparent;
    color: var(--text); cursor: pointer; font-size: 0.85rem;
    font-family: inherit; display: flex; align-items: center; justify-content: center;
}
.page-btn.active { background: var(--gradient); border-color: transparent; font-weight: 700; }
.page-btn:disabled { opacity: 0.35; cursor: default; }

/* ===== ZN FOOTER ===== */
.zn-footer {
    background: var(--navbar-bg); border-top: 1px solid var(--border);
    padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
    position: relative; z-index: 1;
}
.zn-footer .footer-social {
    display: flex; flex-wrap: wrap; gap: 0.65rem;
    justify-content: center; margin-bottom: 1.25rem;
}
.zn-footer .social-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.2s;
}
.zn-footer .social-btn:hover {
    color: var(--primary); border-color: var(--primary);
    transform: translateY(-2px);
}
.zn-footer .social-btn svg { width: 20px; height: 20px; }
.zn-footer-inner {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 1rem;
}
.zn-footer-copy { color: var(--text-muted); font-size: 0.8rem; }
.footer-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-btn {
    display: inline-block; padding: 0.45rem 1rem;
    border-radius: var(--radius-pill); text-decoration: none;
    background: var(--gradient); color: #fff;
    font-size: 0.78rem; font-weight: 600;
    white-space: nowrap;
}
.pill-btn:hover { opacity: 0.9; }
.back-top {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text); cursor: pointer; font-size: 1.1rem;
}

/* ===== DETAIL PAGE ===== */
.detail-page { padding-top: calc(var(--nav-height) + 1rem); }
.detail-grid {
    display: grid; grid-template-columns: 280px 1fr; gap: 2rem;
}
@media (max-width: 767px) {
    .detail-grid { grid-template-columns: 1fr; }
}
.detail-poster {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: var(--poster-aspect);
    background: var(--media-poster-bg);
}
.detail-poster-inner { width: 100%; height: 100%; background: var(--media-poster-bg); }
.detail-poster-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: var(--media-poster-bg);
}
.detail-actions { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1rem; }
.btn-gradient {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 1rem; border-radius: var(--radius-pill);
    border: none; color: #fff; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn-gradient.pink { background: var(--gradient); }
.btn-gradient.blue { background: var(--gradient-blue); }
.btn-gradient.orange { background: var(--gradient-orange); }
.detail-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; margin-bottom: 0.25rem; }
.detail-subtitle { color: var(--text-muted); margin-bottom: 1rem; }
.detail-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem; margin-bottom: 1.5rem;
}
.stat-box {
    background: var(--bg-card); border-radius: 12px;
    padding: 0.75rem; border: 1px solid var(--border);
}
.stat-box label { display: block; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.stat-box span { font-weight: 600; font-size: 0.85rem; }
.detail-meta { display: grid; gap: 0.5rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; font-size: 0.88rem; }
.meta-row dt { color: var(--text-muted); min-width: 100px; }
.meta-row dd { color: var(--text); margin: 0; }
.meta-row dd.tag { color: var(--primary); }

/* ===== WATCH PAGE ZN ===== */
.page-watch .watch-page {
    padding: calc(var(--nav-height) + 1rem) 0 4rem;
    min-height: 100vh;
}
.page-watch .watch-layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem;
}
@media (max-width: 900px) {
    .page-watch .watch-layout { grid-template-columns: 1fr; }
}
.watch-sidebar .sidebar-block {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--border);
}
.sidebar-watch-tab .full-width { width: 100%; text-align: center; }

/* ===== PLAYER TOOLBAR & DROPDOWNS ===== */
.player-toolbar {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.player-dd { position: relative; flex: 1; min-width: 120px; }
.player-dd-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 0.5rem; padding: 0.65rem 1rem;
    background: var(--v2-glass-bg, rgba(255, 255, 255, 0.05));
    backdrop-filter: var(--v2-glass-blur, blur(12px));
    -webkit-backdrop-filter: var(--v2-glass-blur, blur(12px));
    border: 1px solid var(--v2-glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px; color: var(--text, #fff);
    font-weight: 700; font-size: 0.88rem; cursor: pointer; font-family: inherit;
}
.player-dd-btn svg { flex-shrink: 0; opacity: 0.9; }
.player-dd-menu {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
    background: var(--v2-glass-bg, rgba(255, 255, 255, 0.05)); 
    backdrop-filter: var(--v2-glass-blur, blur(12px));
    -webkit-backdrop-filter: var(--v2-glass-blur, blur(12px));
    border: 1px solid var(--v2-glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px; max-height: 220px; overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.player-dd-item {
    display: block; width: 100%; text-align: left;
    padding: 0.65rem 1rem; border: none; background: transparent;
    color: var(--text); font-size: 0.85rem; cursor: pointer; font-family: inherit;
}
.player-dd-item:hover:not([disabled]) { background: var(--v2-primary-muted, rgba(255, 149, 0, 0.15)); }
.player-dd-item.active { color: var(--v2-primary, #FF9500); font-weight: 600; }
.player-dd-item[disabled] { opacity: 0.4; cursor: not-allowed; }
.player-dd-hint { padding: 0.75rem 1rem; font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Skip intro / credits */
.player-skip-btn {
    position: absolute; bottom: 4.5rem; right: 1rem; z-index: 8;
    background: rgba(30,30,35,0.92); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; padding: 0.55rem 1rem; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: opacity 0.2s;
}
.player-skip-btn:hover { background: rgba(50,50,58,0.95); }

/* Extra controls bar */
.player-extra-controls {
    display: flex; align-items: center; gap: 0.35rem;
    background: #0d0d10; border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.45rem 0.65rem; margin-top: -1px;
}
.player-extra-spacer { flex: 1; }
.player-nav-btn {
    width: 36px; height: 36px; border-radius: 8px;
    border: none; background: transparent; color: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.player-nav-btn:hover:not(:disabled) { background: rgba(41,182,246,0.25); }
.player-nav-btn:disabled { opacity: 0.3; cursor: default; }
.player-settings-toggle.active,
.player-nav-btn.player-settings-toggle:hover { background: #29b6f6; }

/* Settings panel */
.player-settings-panel {
    background: #1e1e24; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.75rem 1rem; margin-top: 0.5rem;
}
.settings-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.55rem 0; border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.settings-row:last-of-type { border-bottom: none; }
.settings-row select {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); padding: 0.35rem 0.65rem; border-radius: 8px;
    font-family: inherit; font-size: 0.85rem;
}
.btn-report {
    width: 100%; margin-top: 0.75rem; padding: 0.75rem;
    background: linear-gradient(135deg, #29b6f6, #0288d1);
    border: none; border-radius: 10px; color: #fff;
    font-weight: 700; cursor: pointer; font-family: inherit; font-size: 0.88rem;
}
.btn-report:hover { opacity: 0.92; }

/* Desktop navigatsiya */
.desktop-nav {
    display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
}
.desktop-nav a {
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
    font-weight: 600; padding: 0.45rem 0.75rem; border-radius: var(--radius-pill);
    transition: all 0.2s;
}
.desktop-nav a:hover { color: var(--text); background: var(--bg-card); }
.nav-admin-link { color: var(--primary) !important; }

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    body:not(.page-watch) { padding-bottom: 0; }
}
@media (max-width: 767px) {
    .desktop-nav { display: none !important; }
}

/* Player ichidagi boshqaruv */
.player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(56.25vw, 70vh);
    background: #0a0a0a url('/static/img/playerbanner.jpg') center / cover no-repeat;
    border-radius: var(--radius);
    overflow: hidden;
}
.player-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: url('/static/img/playerbanner.jpg') center / cover no-repeat;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.player-poster.hidden {
    opacity: 0;
}
.player-wrap .plyr,
.player-wrap .plyr__video-wrapper,
.player-wrap video {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}
.player-loading {
    z-index: 5;
}
.player-wrap .plyr video {
    object-fit: contain;
    width: 100%;
    height: 100%;
    background: transparent;
}
.player-wrap .plyr--fullscreen-active video {
    object-fit: contain;
}
.player-in.player-toolbar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 7;
    margin: 0; padding: 0.5rem; background: linear-gradient(180deg, rgba(0,0,0,0.75), transparent);
    border: none;
}
.player-dd-sm { padding: 0.4rem 0.65rem !important; font-size: 0.75rem !important; min-width: 0; }
.player-overlay-bar {
    position: absolute; bottom: 3.5rem; right: 0.75rem; z-index: 7;
    display: flex; gap: 0.35rem;
}
.player-in.player-settings-panel {
    position: absolute; bottom: 3.5rem; left: 0.75rem; right: 4.5rem; z-index: 8;
    max-width: 280px;
}
.watch-layout-single { grid-template-columns: 1fr !important; max-width: 960px; margin: 0 auto; }
.page-watch .plyr { border-radius: 0; }

/* Hide old hero on home */
.home-page .hero { display: none; }
.home-page .filter-bar { display: none; }

/* Auth chip override */
.user-chip { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.35rem 0.75rem; }
.btn-primary { background: var(--gradient) !important; border: none !important; }

/* ===== WATCH PAGE PLAYER v5 ===== */
.page-watch { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem); }
.player-toolbar-row {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.player-controls-bar {
    display: none;
}
.player-extra-controls {
    display: none;
}
.plyr-extra-controls {
    display: flex !important;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    margin-right: 0.25rem;
}
.page-watch .plyr__controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    scrollbar-width: none;
}
.page-watch .plyr__controls::-webkit-scrollbar { display: none; }
.plyr--hide-controls .plyr__controls {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.plyr--hide-controls .plyr-extra-controls {
    opacity: 0;
    pointer-events: none;
}
.plyr-extra-controls .pctrl-seek {
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    min-width: 36px !important;
    width: auto !important;
    padding: 0 0.35rem !important;
}
.plyr-extra-controls .pctrl-settings {
    font-size: 1rem !important;
}
@media (max-width: 767px) {
    .plyr-extra-controls .pctrl-ep,
    .plyr-extra-controls .pctrl-tg {
        display: none !important;
    }
    .page-watch .plyr__controls [data-plyr="fullscreen"] {
        display: none !important;
    }
    .plyr-extra-controls .pctrl-fs {
        display: flex !important;
    }
}
@media (pointer: coarse) {
    .plyr-extra-controls .pctrl-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px;
    }
    .plyr-extra-controls .pctrl-seek {
        width: auto !important;
        min-width: 40px !important;
        padding: 0 0.4rem !important;
    }
}
.plyr-extra-controls .pctrl-btn {
    flex: 0 0 auto;
    min-width: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.15s, background 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.plyr-extra-controls .pctrl-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}
.plyr-extra-controls .pctrl-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.plyr-extra-controls .pctrl-btn.pctrl-tg {
    width: auto;
    padding: 0 0.45rem;
    font-size: 0.95rem;
}
@media (pointer: coarse) {
    .plyr-extra-controls .pctrl-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        font-size: 1rem;
    }
}
.page-watch .plyr__control {
    flex-shrink: 0;
}
.pctrl-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.pctrl-btn:disabled { opacity: 0.35; cursor: default; }
.pctrl-btn.pctrl-tg {
    background: linear-gradient(135deg, #29b6f6, #0288d1);
    border-color: transparent;
    color: #fff;
    flex: 1 1 100%;
}
.player-load-hint {
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    margin-top: 0.35rem;
    text-align: center;
    padding: 0 1rem;
    max-width: 280px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.player-load-pct {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.player-loading:not(.indeterminate) .loader-progress-fill {
    transition: width 0.2s linear;
}
.watch-meta-tags {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-top: 0.5rem;
}
.watch-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.watch-block {
    margin-bottom: 1.75rem;
}
.watch-block h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.watch-desc {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}
.episode-list-grid {
    display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.episode-list-grid .ep-btn {
    min-width: 44px; min-height: 44px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
    padding: 0.25rem 0.35rem;
}
.episode-list-grid .ep-btn-meta {
    font-size: 0.58rem;
    font-weight: 500;
    line-height: 1.1;
    opacity: 0.85;
    white-space: nowrap;
}
.episode-list-grid .ep-btn.active .ep-btn-meta { opacity: 0.95; }
.episode-list-grid .ep-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}
.episode-list-grid .ep-btn.locked { opacity: 0.35; cursor: not-allowed; }

/* Settings bottom sheet */
.player-sheet {
    position: fixed; inset: 0; z-index: 10100;
    display: flex; align-items: flex-end; justify-content: center;
    touch-action: none;
}
.player-sheet.hidden { display: none; }
.player-sheet-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    touch-action: none;
}
.player-sheet-panel {
    position: relative; z-index: 1;
    width: 100%; max-width: 480px;
    background: var(--bg-elevated);
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(1rem + var(--safe-bottom));
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    pointer-events: auto;
    animation: sheetUp 0.25s ease;
}
@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.player-sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.player-sheet-head h3 { font-size: 1rem; font-weight: 700; }
.player-sheet-close {
    background: none; border: none;
    color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.player-sheet-body { padding: 1rem 1.25rem; }
.sheet-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.sheet-row select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    font-family: inherit;
}
.btn-report-sheet {
    width: 100%; margin-top: 1rem;
    padding: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
body.sheet-open { overflow: hidden; }

/* Sheet mobile-only rows */
@media (min-width: 768px) {
    .sheet-row-mobile { display: none !important; }
}
.sheet-row.hidden { display: none !important; }
.sheet-row .btn { white-space: nowrap; }

/* Plyr: native settings yashirish */
.plyr__menu,
.plyr__controls [data-plyr="settings"] { display: none !important; }

.page-watch .player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a url('/static/img/playerbanner.jpg') center / cover no-repeat;
    border-radius: var(--radius);
    overflow: hidden;
}
.page-watch .player-wrap .plyr,
.page-watch .player-wrap video {
    width: 100%; height: 100%;
}
.page-watch .player-wrap .plyr video {
    object-fit: contain;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg: #f4f6fa;
    --bg-card: #ffffff;
    --bg-elevated: #eef1f6;
    --text: #111827;
    --text-muted: #6b7280;
    --border: rgba(17, 24, 39, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.96);
    --glow: rgba(233, 30, 140, 0.15);
}
[data-theme="light"] body,
body.theme-light {
    background: var(--bg);
    color: var(--text);
}
[data-theme="light"] .site-header,
[data-theme="light"] .mobile-drawer-panel,
[data-theme="light"] .search-overlay-panel,
[data-theme="light"] .profile-dropdown,
[data-theme="light"] .bottom-nav {
    background: var(--navbar-bg);
    color: var(--text);
}
/* ===== PWA animatsiyali splash (o'rnatilgan ilova ochilganda) ===== */
.zn-pwa-splash {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 38%, #17131f 0%, #0a0a0c 72%);
}
.zn-pwa-splash.hidden { display: none; }
.zn-pwa-splash-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}
.zn-pwa-splash-logo {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(229, 9, 20, 0.4);
    position: relative;
    z-index: 2;
    will-change: transform, opacity;
}
.zn-pwa-splash-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -74%);
    background: radial-gradient(circle, rgba(229, 9, 20, 0.5), transparent 65%);
    filter: blur(34px);
    z-index: 1;
}
.zn-pwa-splash-name {
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    color: #fff;
    z-index: 2;
}
.zn-pwa-splash-name span { color: var(--primary); }
.zn-pwa-splash--in .zn-pwa-splash-logo { animation: znSplashPop 0.9s cubic-bezier(.2,.9,.25,1.45) both; }
.zn-pwa-splash--in .zn-pwa-splash-glow { animation: znSplashGlow 1.7s ease-in-out infinite; }
.zn-pwa-splash--in .zn-pwa-splash-name { animation: znSplashName 0.7s ease 0.3s both; }
.zn-pwa-splash--out { animation: znSplashOut 0.55s ease forwards; }
@keyframes znSplashPop {
    0% { opacity: 0; transform: scale(0.4) rotate(-12deg); }
    60% { opacity: 1; transform: scale(1.08) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes znSplashGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -74%) scale(0.9); }
    50% { opacity: 1; transform: translate(-50%, -74%) scale(1.15); }
}
@keyframes znSplashName {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes znSplashOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* Light theme: ortiqcha blur kamaytirildi (shikoyat: juda ko'p blur) */
[data-theme="light"] .site-header,
[data-theme="light"] .navbar,
[data-theme="light"] .bottom-nav,
[data-theme="light"] .mobile-drawer-panel,
[data-theme="light"] .search-overlay-panel,
[data-theme="light"] .profile-dropdown {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
[data-theme="light"] .bg-glow {
    filter: blur(24px);
    opacity: 0.12;
}
[data-theme="light"] .bg-glow-1 { background: rgba(229, 9, 20, 0.04); }
[data-theme="light"] .bg-glow-2 { background: rgba(245, 197, 24, 0.03); }

/* Tepaga qaytish tugmasi — pastga scroll qilinganda chiqadi */
.zn-scroll-top {
    position: fixed;
    right: 1rem;
    bottom: calc(var(--bottom-nav-h, 0px) + var(--safe-bottom, 0px) + 5.5rem);
    z-index: 1200;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.zn-scroll-top--show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.zn-scroll-top:hover {
    border-color: var(--primary, #e91e8c);
    color: var(--primary, #e91e8c);
}
@media (min-width: 768px) {
    .zn-scroll-top {
        right: 1.5rem;
        bottom: 6rem;
    }
}

/* Light theme: dekorativ blur'lar butunlay olib tashlandi
   (foydalanuvchi shikoyati: yorug' rejimda hali ham juda ko'p blur) */
[data-theme="light"] .zn-carousel-btn,
[data-theme="light"] .hero-nav-btn,
[data-theme="light"] .card-badge,
[data-theme="light"] .jcard-type,
[data-theme="light"] .jcard-ep,
[data-theme="light"] .modal-backdrop,
[data-theme="light"] .detail-trailer-modal-backdrop,
[data-theme="light"] .detail-hero-slide-label,
[data-theme="light"] .zipx-panel,
[data-theme="light"] .player-settings-sheet {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

[data-theme="light"] .hero-overlay,
[data-theme="light"] .hero-slide--trailer .hero-overlay {
    display: none !important;
    background: none !important;
}
[data-theme="light"] .hero-title {
    text-shadow: none;
    color: #111827;
}
[data-theme="light"] .hero-slide--trailer .hero-overlay {
    display: none !important;
}
[data-theme="light"] .hero-meta-item,
[data-theme="light"] .hero-slide .rating-pill {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    border: 1px solid var(--border);
}
[data-theme="light"] .hero-section .btn-hero-secondary {
    background: rgba(17, 24, 39, 0.07);
    color: var(--text);
    border-color: var(--border);
}
[data-theme="light"] .hero-section .btn-hero-secondary:hover {
    background: rgba(229, 9, 20, 0.08);
    border-color: rgba(229, 9, 20, 0.25);
}
[data-theme="light"] .detail-hero-overlay {
    background: linear-gradient(0deg, var(--bg) 0%, transparent 28%);
}
[data-theme="light"] .header-icon-btn,
[data-theme="light"] .profile-avatar-btn,
[data-theme="light"] .home-cat-chip,
[data-theme="light"] .cat-tab,
[data-theme="light"] .meta-cell,
[data-theme="light"] .stat-box {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}
[data-theme="light"] .jcard-type {
    background: rgba(0,0,0,0.55);
    color: #fff;
}
[data-theme="light"] .modal-card {
    background: var(--bg-card);
    color: var(--text);
}

/* ===== COUNTDOWN ===== */
.jcard-countdown {
    position: absolute;
    bottom: 8px; left: 8px; right: 8px;
    background: rgba(233, 30, 140, 0.92);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.3rem 0.45rem;
    border-radius: 8px;
    text-align: center;
    line-height: 1.25;
}
.detail-countdown-wrap {
    margin: 0.75rem 0;
    padding: 0.65rem 0.85rem;
    background: rgba(233, 30, 140, 0.15);
    border: 1px solid rgba(233, 30, 140, 0.35);
    border-radius: 12px;
}
.detail-countdown-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
.detail-countdown {
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
}
.content-cd { display: block; color: var(--primary); margin-top: 0.25rem; }

/* ===== MOBILE HEADER FIX ===== */
@media (max-width: 767px) {
    .header-row {
        justify-content: space-between !important;
        gap: 0.35rem;
    }
    .header-spacer { display: none; }
    .logo-zn {
        font-size: 1.32rem;
        max-width: calc(100vw - 52px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .logo-zn .logo-tld {
        font-size: 0.62rem;
        padding: 0.14rem 0.42rem;
    }
    .logo-zn .logo-mid { font-size: 1em; }
}

/* ===== WATCH PAGE PRO ===== */
.watch-layout-pro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
.watch-top-row {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .watch-top-row {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
        gap: 1.5rem;
    }
    .page-watch .player-wrap {
        max-height: min(52vw, 78vh);
        aspect-ratio: 16 / 9;
    }
}
.watch-meta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.watch-ratings-side h3 {
    font-size: 0.95rem;
    margin: 0 0 0.65rem;
}
.ratings-grid-compact {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
.ratings-grid-compact .rating-card {
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}
.ratings-grid-compact .rating-val {
    font-size: 1.1rem;
}
.watch-body-row {
    min-width: 0;
}
.similar-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
@media (min-width: 1024px) {
    .similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.comment-form textarea {
    width: 100%;
    min-height: 88px;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
}
.player-has-error .plyr,
.player-has-error .zn-player-controls,
.player-has-error #player-toolbar { display: none !important; }
.player-has-error video { visibility: hidden; }
.watch-title-block { margin: 1rem 0; }
.watch-title-block h1 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.watch-subtitle { color: var(--text-muted); font-size: 0.9rem; }
.ratings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.rating-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
    text-align: center;
}
.rating-label { display: block; font-size: 0.75rem; color: var(--text-muted); }
.rating-val { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.rating-votes { display: block; font-size: 0.72rem; color: var(--text-muted); }
.star-rating { display: flex; gap: 0.15rem; flex-wrap: wrap; margin-top: 0.5rem; }
.star-btn {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.2rem; cursor: pointer; padding: 0;
}
.star-btn.active { color: #ffc107; }
.comments-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.comment-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 0.85rem;
}
.comment-form textarea {
    width: 100%; margin-bottom: 0; padding: 0.65rem;
    border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg-elevated); color: var(--text); font-family: inherit;
}
.continue-pct {
    position: absolute; bottom: 6px; left: 6px; right: 6px;
    background: rgba(233,30,140,0.9); color: #fff;
    font-size: 0.65rem; font-weight: 700; text-align: center;
    padding: 0.2rem; border-radius: 6px;
}
.continue-card .jcard-poster { position: relative; }
.continue-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.continue-card {
    display: flex; gap: 0.75rem; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 12px; padding: 0.65rem;
    text-decoration: none; color: inherit;
}
.continue-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 0.35rem; }
.continue-bar div { height: 100%; background: var(--primary); border-radius: 2px; }
.history-row {
    display: flex; justify-content: space-between; padding: 0.75rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; text-decoration: none; color: inherit; margin-bottom: 0.5rem;
}
.page-section { padding: calc(var(--nav-height) + 1.5rem) 0 calc(var(--bottom-nav-h) + var(--safe-bottom) + 2rem); }
.page-section h1 { font-size: 1.75rem; margin-bottom: 0.35rem; }
.page-lead { color: var(--text-muted); margin-bottom: 1.5rem; }

@media (orientation: landscape) and (max-height: 500px) {
    .page-watch .player-wrap {
        max-height: 100vh;
        aspect-ratio: unset;
        height: calc(100vh - var(--nav-height) - 1rem);
        border-radius: 0;
    }
    .page-watch .watch-side-col,
    .page-watch .watch-title-block,
    .page-watch .watch-block { display: none; }
    .page-watch .watch-main-col .watch-block { display: none; }
    .page-watch .player-section { display: block; }
}

.admin-layout { display: flex; flex-direction: column; min-height: 100dvh; }
@media (min-width: 1024px) {
    .admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 100dvh; }
}
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 1.25rem 0.75rem;
    height: 100dvh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-sidebar-brand { font-weight: 800; margin-bottom: 1.25rem; font-size: 1rem; padding: 0 0.5rem; }
.admin-sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-nav-item {
    padding: 0.6rem 0.75rem;
    border: none; border-radius: 10px; background: transparent;
    color: var(--text-muted); cursor: pointer; font-family: inherit; font-size: 0.85rem;
    display: flex; align-items: center; gap: 0.5rem;
    transition: background 0.15s, color 0.15s;
}
.admin-nav-item:hover {
    background: var(--bg-elevated); color: var(--text);
}
.admin-nav-item.active {
    background: rgba(233, 30, 140, 0.1); color: var(--primary, #e91e8c); font-weight: 600;
}
.admin-main {
    min-width: 0; padding: 1.5rem 2rem; overflow-y: auto; max-height: 100dvh;
}
@media (min-width: 1280px) {
    .admin-main { padding: 2rem 3rem; max-width: 1200px; }
}
@media (max-width: 1023px) {
    .admin-main { padding: 1rem 0.75rem; max-height: none; }
}
/* Admin header — compact mobilda */
.admin-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem; padding: 0;
    position: sticky; top: 0; z-index: 50;
    background: var(--bg); padding: 0.5rem 0;
}
.admin-header .admin-brand { font-size: 1.1rem; font-weight: 700; }
@media (max-width: 1023px) {
    .admin-header .admin-brand { font-size: 0.95rem; }
}
/* Admin tabs — mobilda scroll */
.admin-tabs {
    display: flex; gap: 0.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem; margin-bottom: 1rem;
    scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
    padding: 0.45rem 0.85rem; border: none; border-radius: 8px;
    background: var(--bg-elevated); color: var(--text-muted);
    font-size: 0.8rem; font-family: inherit; cursor: pointer;
    white-space: nowrap; transition: all 0.15s;
}
.admin-tab.active { background: var(--primary); color: #fff; font-weight: 600; }
.admin-tab:hover:not(.active) { color: var(--text); }
/* Badge */
.badge { background: var(--primary); padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; color: #fff; }
/* Admin page — no padding top (navbar hidden) */
.page-admin.bare-layout .page-main,
.page-admin.bare-layout main.container { padding-top: 0 !important; margin-top: 0 !important; }

body.in-telegram #auth-modal,
html.tg-webapp-boot #auth-modal,
html[data-tg-webapp="1"] #auth-modal {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.in-telegram .browser-login-ui,
html.tg-webapp-boot .browser-login-ui,
html[data-tg-webapp="1"] .browser-login-ui {
    display: none !important;
}

body.in-telegram #profile-dd-login {
    display: none !important;
}

/* ===== MOBILE / TG FULLSCREEN PLAYER (CSS only — web native FS yo'q) ===== */
body.player-mobile-fs {
    overflow: hidden !important;
}
body.player-mobile-fs .site-header,
body.player-mobile-fs .bottom-nav,
body.player-mobile-fs .zn-footer,
body.player-mobile-fs .mobile-drawer,
body.player-mobile-fs .search-overlay {
    display: none !important;
}
body.player-mobile-fs .watch-page,
body.player-mobile-fs .watch-layout,
body.player-mobile-fs .watch-main-col,
body.player-mobile-fs .player-section {
    margin: 0 !important;
    padding: 0 !important;
}
body.player-mobile-fs #player-toolbar,
body.player-mobile-fs .watch-title-block,
body.player-mobile-fs .watch-block,
body.player-mobile-fs .watch-side-col,
body.player-mobile-fs .watch-panel,
body.player-mobile-fs .watch-stack > section:not(.watch-player-block) {
    display: none !important;
}
body.player-mobile-fs #player-shell {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    z-index: 10000 !important;
    background: #000 !important;
    touch-action: manipulation;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
    transform: none !important;
    overflow: hidden !important;
}
/* Portrait: video to'liq ekran, rotate YO'Q — object-fit boshqaradi */
body.player-mobile-fs-portrait .zn-player-stage {
    position: absolute !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
}
body.player-mobile-fs-portrait #player-shell video {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}
body.player-mobile-fs-landscape .zn-player-stage {
    position: absolute !important;
    inset: 0 !important;
    transform: none !important;
}
body.player-mobile-fs-landscape #player-shell video {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}
body.player-mobile-fs #player-shell .plyr__video-wrapper,
body.player-mobile-fs #player-shell video {
    width: 100% !important;
    height: 100% !important;
}
body.player-mobile-fs #player-shell .plyr video {
    object-fit: contain !important;
}
body.player-mobile-fs .plyr__controls {
    display: none !important;
}
/* Control panel — viewportga qotirilgan, aylanmaydi */
body.player-mobile-fs .zn-player-controls {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10010 !important;
    transform: none !important;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
}
body.player-mobile-fs .zn-player-title {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10009 !important;
    transform: none !important;
    padding-top: max(0.5rem, env(safe-area-inset-top)) !important;
}
body.player-mobile-fs .zn-player-controls.zn-controls-hidden,
body.player-mobile-fs .zn-player-title.zn-controls-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}
html.tg-player-fs .site-header,
html.tg-player-fs .bottom-nav {
    display: none !important;
}
html.tg-player-fs {
    --tg-viewport-stable-height: 100vh;
}
body.player-mobile-fs .zn-player-stage {
    z-index: 1;
}
body.player-mobile-fs .zn-play-large {
    z-index: 10008 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
body.player-mobile-fs .player-poster {
    object-fit: cover;
}
body.player-mobile-fs .player-loading {
    z-index: 10001;
}
body.player-mobile-fs .player-skip-btn {
    z-index: 10003;
}

/* Desktop keyboard focus — player sahifasi */
.page-watch .player-wrap:focus-within {
    outline: none;
}

/* ===== UX FIX: SIMILAR GRID ===== */
.similar-grid,
.similar-grid-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.65rem;
}
@media (min-width: 768px) {
    .similar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
    .similar-grid-page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .similar-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .similar-grid-page { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
    .similar-grid-page { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.jcard-compact .jcard-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    max-height: 2.5em;
}
.jcard-compact .jcard-year { display: none; }
.jcard-compact .jcard-poster { aspect-ratio: var(--poster-aspect); margin-bottom: 0.35rem; }

/* ===== WATCH DESKTOP LAYOUT ===== */
@media (min-width: 1024px) {
    .page-watch .watch-page {
        max-width: var(--container-wide, 1400px);
        margin: 0 auto;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .page-watch .player-wrap {
        border-radius: var(--radius);
    }
}
.watch-block { margin-bottom: 1.5rem; }
.watch-block h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }

/* ===== COMMENTS UX ===== */
.comment-guest {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.comment-guest.hidden { display: none; }
.comment-hint { color: var(--text-muted); margin: 0; font-size: 0.9rem; }
.comment-empty { color: var(--text-muted); font-size: 0.88rem; }

/* ===== PROFILE QUICK NAV ===== */
.profile-quick-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1.25rem;
    width: 100%;
    max-width: 420px;
}
.profile-quick-link {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.15s;
}
.profile-quick-link:hover { border-color: var(--primary); color: var(--primary); }

/* ===== SETTINGS PAGE ===== */
.settings-body { max-width: 520px; }
.settings-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}
.settings-block h2 { font-size: 1rem; margin: 0 0 0.75rem; }
.settings-row-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}
.settings-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
.settings-lang-btn {
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}
.settings-lang-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(233, 30, 140, 0.08);
}
.settings-link-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.settings-link-row:last-child { border-bottom: none; }
.btn-block { width: 100%; margin-top: 0.5rem; }

/* Bottom nav active state */
.bottom-nav-item.active { color: var(--primary); }
.profile-dd-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

/* ===== DISCOVERY — jadval, to'plamlar, Shon-sharaf Zali ===== */
.discovery-page .discovery-head {
    margin-bottom: 1.75rem;
}
.discovery-page .discovery-head h1 {
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.discovery-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.15s;
}
.discovery-back:hover { color: var(--primary); }

/* To'plamlar */
.collections-grid,
.disc-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
}
@media (min-width: 768px) {
    .disc-collections-grid { gap: 1.25rem; }
}
.disc-col-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.disc-col-card:hover {
    transform: translateY(-3px);
    border-color: rgba(233, 30, 140, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.disc-col-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-elevated);
}
.disc-col-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.disc-col-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.disc-col-cover-fallback span {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}
.disc-col-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
    pointer-events: none;
}
.disc-col-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.disc-col-body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}
.disc-col-body p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.disc-col-count {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(233, 30, 140, 0.12);
    color: var(--primary);
}

/* Premyera jadvali */
.schedule-events,
.disc-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.disc-schedule-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.15s, background 0.15s;
}
.disc-schedule-card:hover {
    border-color: rgba(233, 30, 140, 0.25);
    background: var(--bg-elevated);
}
@media (max-width: 560px) {
    .disc-schedule-card {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
    }
    .disc-schedule-remind {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
}
.disc-schedule-poster {
    display: block;
    width: 72px;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: var(--poster-aspect);
    flex-shrink: 0;
    text-decoration: none;
}
.disc-schedule-poster-img,
.disc-schedule-poster .jcard-poster-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}
.disc-schedule-body { min-width: 0; }
.disc-schedule-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.35rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--gradient);
    color: #fff;
}
.disc-schedule-title {
    display: block;
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.15s;
}
.disc-schedule-title:hover { color: var(--primary); }
.disc-schedule-meta {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.disc-schedule-timer {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.25);
}
.disc-schedule-timer--live {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.35);
}
.disc-schedule-timer-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.disc-schedule-countdown {
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--rating-gold);
    letter-spacing: 0.02em;
}
.disc-schedule-remind {
    white-space: nowrap;
    flex-shrink: 0;
}
.discovery-page .detail-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

/* Shon-sharaf Zali */
.disc-hof-tabs,
.hof-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}
.disc-hof-type-tabs,
.hof-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.hof-tab,
.hof-type-tab {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hof-tab:hover,
.hof-type-tab:hover {
    color: var(--text);
    border-color: rgba(233, 30, 140, 0.3);
}
.hof-tab.active,
.hof-type-tab.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}
.disc-hof-list,
.hof-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.disc-hof-item {
    display: grid;
    grid-template-columns: 2.75rem 52px 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.15s, border-color 0.15s;
}
.disc-hof-item:hover {
    border-color: rgba(233, 30, 140, 0.28);
    transform: translateX(2px);
}
.disc-hof-item--top {
    padding: 0.9rem 1.1rem;
    border-width: 1px;
}
.disc-hof-item--r1 {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, var(--bg-card) 55%);
    border-color: rgba(255, 193, 7, 0.35);
}
.disc-hof-item--r2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, var(--bg-card) 55%);
    border-color: rgba(192, 192, 192, 0.28);
}
.disc-hof-item--r3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, var(--bg-card) 55%);
    border-color: rgba(205, 127, 50, 0.28);
}
@media (max-width: 480px) {
    .disc-hof-item {
        grid-template-columns: 2.25rem 44px 1fr auto;
        gap: 0.65rem;
        padding: 0.65rem 0.75rem;
    }
}
.disc-hof-rank {
    display: flex;
    align-items: center;
    justify-content: center;
}
.disc-hof-medal { font-size: 1.35rem; line-height: 1; }
.disc-hof-rank-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.disc-hof-poster {
    display: block;
    width: 52px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: var(--poster-aspect);
    text-decoration: none;
    flex-shrink: 0;
}
.disc-hof-poster-img,
.disc-hof-poster .jcard-poster-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.disc-hof-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.disc-hof-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}
.disc-hof-title:hover { color: var(--primary); }
.disc-hof-type {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}
.disc-hof-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    min-width: 2.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid rgba(233, 30, 140, 0.2);
}
.disc-hof-item--r1 .disc-hof-score {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
}
.disc-hof-score-val {
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    line-height: 1;
}
.disc-hof-score-ico {
    font-size: 0.65rem;
    opacity: 0.85;
    line-height: 1;
}


/* ===== POSTER BADGES (sifat, til, toifa) LIQUID GLASS ===== */
.jcard-qual-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 4;
}

.jcard-qual-badge {
    background: rgba(14, 14, 22, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: #ffc107;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.jcard-lang-badges {
    position: absolute;
    bottom: 34px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 4;
}

.jcard-lang-badge {
    background: rgba(14, 14, 22, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    line-height: 1;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

.jcard-type {
    position: absolute;
    top: auto !important;
    bottom: 8px !important;
    left: 8px !important;
    height: auto !important;
    width: fit-content !important;
    max-height: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--liquid-gradient);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    line-height: 1;
    z-index: 5;
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.45);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.jcard-qual-badges + .jcard-type {
    top: auto !important;
    bottom: 8px !important;
    left: 8px !important;
}

[data-theme="light"] .jcard-qual-badge {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(217, 119, 6, 0.5);
    color: #b45309;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .jcard-lang-badge {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.2);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ===== MOBILE HERO & ACTIONS RESPONSIVE FIX ===== */
@media (max-width: 767px) {
    .hero-section, .hero-wrap {
        min-height: auto;
        padding-top: 0.5rem;
    }
    .hero-inner, .detail-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-bottom: 1.25rem;
        min-height: auto;
    }
    .hero-poster-wrap, a.hero-poster-wrap, .detail-hero-poster {
        display: block !important;
        width: 88px !important;
        height: 128px !important;
        max-height: 128px !important;
        flex-shrink: 0;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        margin-bottom: 0.25rem;
    }
    .hero-content, .detail-hero-info {
        width: 100%;
        min-width: 0;
    }
    .hero-title, .detail-title {
        font-size: clamp(1.25rem, 5.5vw, 1.65rem);
        line-height: 1.2;
        margin-bottom: 0.35rem;
    }
    .hero-desc {
        font-size: 0.82rem;
        line-height: 1.35;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-meta, .detail-rating-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 0.75rem;
    }
    .hero-actions, .detail-actions, .btn-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    /* Primary Action Button (full width on top) */
    .hero-actions > .btn-hero-play,
    .hero-actions > .btn-primary,
    .hero-actions > [data-action="play"],
    .hero-actions > .btn-play-main,
    .detail-actions > .btn-primary,
    .detail-actions > .btn-hero-play {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        border-radius: 14px;
    }
    /* Secondary Action Buttons (2x2 grid below) */
    .hero-actions > .btn-hero-secondary,
    .hero-actions > .btn-glass,
    .hero-actions > .btn-outline,
    .hero-actions > a:not(.btn-hero-play):not(.btn-primary),
    .hero-actions > button:not(.btn-hero-play):not(.btn-primary),
    .detail-actions > .btn-glass,
    .detail-actions > .btn-outline,
    .detail-actions > a:not(.btn-primary),
    .detail-actions > button:not(.btn-primary) {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.5rem;
        font-size: 0.78rem;
        font-weight: 600;
        border-radius: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: var(--glass-blur-sm);
        -webkit-backdrop-filter: var(--glass-blur-sm);
    }

    /* Hero Slide Mobile Compaction (Single neat row) */
    .hero-slide .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.45rem !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
    }
    .hero-slide .hero-actions > .btn-hero-play {
        grid-column: auto !important;
        flex: 1 1 auto !important;
        padding: 0.55rem 0.85rem !important;
        font-size: 0.84rem !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
    }
    .hero-slide .hero-actions > .btn-hero-secondary,
    .hero-slide .hero-actions > a:not(.btn-hero-play),
    .hero-slide .hero-actions > button:not(.btn-hero-play) {
        flex: 0 0 auto !important;
        padding: 0.55rem 0.75rem !important;
        font-size: 0.78rem !important;
        border-radius: 999px !important;
        background: rgba(16, 16, 26, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        color: #fff !important;
    }
}

/* Subpages Liquid Glass Redesign */
.disc-hof-item,
.schedule-day-card,
.schedule-ep-card,
.collection-card,
.top-rating-card,
.random-result-card {
    background: var(--glass-bg, rgba(20, 20, 28, 0.68));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border-radius: 18px;
    box-shadow: var(--glass-shadow);
    color: var(--text);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.disc-hof-item:hover,
.schedule-ep-card:hover,
.collection-card:hover,
.top-rating-card:hover {
    transform: translateY(-3px);
    border-color: var(--glass-border-hover, rgba(255, 0, 122, 0.45));
    box-shadow: var(--glass-shadow-hover);
}

[data-theme="light"] .disc-hof-item,
[data-theme="light"] .schedule-day-card,
[data-theme="light"] .schedule-ep-card,
[data-theme="light"] .collection-card,
[data-theme="light"] .top-rating-card,
[data-theme="light"] .random-result-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    color: var(--text);
}

/* Light Theme Mobile Drawer & Floating Bottom Nav Glass Contrast */
[data-theme="light"] .mobile-drawer-panel,
[data-theme="light"] .search-overlay-panel {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(32px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: -16px 0 50px rgba(31, 38, 135, 0.15), inset 1px 0 0 rgba(255, 255, 255, 1) !important;
    color: #0f172a !important;
}

[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(32px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
    box-shadow: 0 16px 40px rgba(31, 38, 135, 0.14), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

[data-theme="light"] .bottom-nav-item {
    color: #475569 !important;
}
[data-theme="light"] .bottom-nav-item:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .drawer-cat-link,
[data-theme="light"] .drawer-tool-btn,
[data-theme="light"] .drawer-close-btn {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}

/* Random Page Liquid Glass Redesign */
.random-hero {
    max-width: 680px;
    margin: 2.5rem auto;
    padding: 3rem 2rem;
    background: var(--glass-bg, rgba(20, 20, 28, 0.72));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 28px;
    box-shadow: var(--glass-shadow), 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: var(--text);
}

.random-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.75rem 0 2rem;
}

.random-filter {
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.random-filter.active,
.random-filter:hover {
    background: var(--liquid-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: var(--liquid-glow);
}

.random-spin-btn {
    padding: 0.95rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--liquid-gradient);
    border: none;
    color: #fff;
    cursor: pointer;
    box-shadow: var(--liquid-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.random-spin-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 36px rgba(233, 30, 140, 0.6);
}

[data-theme="light"] .random-hero {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 48px rgba(31, 38, 135, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
    color: var(--text);
}

/* Global Search Overlay Liquid Glass Redesign */
.search-overlay-panel {
    background: rgba(14, 14, 22, 0.88) !important;
    backdrop-filter: blur(36px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(36px) saturate(200%) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65) !important;
}

.search-bar-row {
    background: var(--glass-bg, rgba(20, 20, 28, 0.65));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-bar-row input[type="search"] {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 1.05rem;
    width: 100%;
}

/* Collections Liquid Glass Redesign */
.collections-grid,
.disc-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.collection-card {
    background: var(--glass-bg, rgba(20, 20, 28, 0.7));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.collection-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover, rgba(255, 0, 122, 0.5));
    box-shadow: var(--glass-shadow-hover);
}

.collection-card .count-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--liquid-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.4);
}

[data-theme="light"] .collection-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    color: var(--text);
}

/* Schedule Page Liquid Glass Redesign */
.schedule-days-card {
    background: var(--glass-bg, rgba(20, 20, 28, 0.7));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
    overflow-x: auto;
}

.schedule-days-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

.schedule-days-nav::-webkit-scrollbar { display: none; }

.sched-day-tab {
    flex-shrink: 0;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sched-day-tab.active,
.sched-day-tab:hover {
    color: #fff;
    background: var(--liquid-gradient);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.4);
}

[data-theme="light"] .schedule-days-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .sched-day-tab {
    color: #475569;
}

/* Hall of Fame Page Liquid Glass Redesign */
.hof-toolbar-card {
    background: var(--glass-bg, rgba(20, 20, 28, 0.72));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border-radius: 24px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hof-tabs,
.hof-type-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    align-items: center;
}

.hof-tabs::-webkit-scrollbar,
.hof-type-tabs::-webkit-scrollbar { display: none; }

.hof-tab,
.hof-type-tab {
    flex-shrink: 0;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hof-tab.active,
.hof-tab:hover,
.hof-type-tab.active,
.hof-type-tab:hover {
    color: #fff;
    background: var(--liquid-gradient);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.4);
}

.hof-divider {
    height: 1px;
    background: var(--glass-border);
    width: 100%;
}

[data-theme="light"] .hof-toolbar-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Catalog Page Liquid Glass Redesign */
.catalog-filter-card {
    background: var(--glass-bg, rgba(20, 20, 28, 0.72));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border-radius: 24px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 2.25rem;
    box-shadow: var(--glass-shadow);
}

.catalog-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    align-items: center;
}

.catalog-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-tab.active,
.cat-tab:hover {
    color: #fff;
    background: var(--liquid-gradient);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.4);
}

[data-theme="light"] .catalog-filter-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Releases & Schedule Liquid Glass Cards */
.release-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.release-glass-card {
    display: flex;
    gap: 1rem;
    background: var(--glass-bg, rgba(20, 20, 28, 0.72));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border-radius: 20px;
    padding: 0.85rem;
    box-shadow: var(--glass-shadow);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    align-items: center;
}

.release-glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover, rgba(255, 0, 122, 0.45));
    box-shadow: var(--glass-shadow-hover);
}

.release-poster-wrap {
    position: relative;
    width: 80px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
}

.release-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.release-badge-quality {
    position: absolute;
    bottom: 4px; left: 4px; right: 4px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #ffc107;
    font-size: 0.62rem;
    font-weight: 800;
    text-align: center;
    padding: 0.15rem 0.3rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.release-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.release-badge-row {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.release-badge-dub {
    background: var(--liquid-gradient);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(233, 30, 140, 0.3);
}

.release-badge-day {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
}

.release-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.2rem;
}

.release-ep-tag {
    color: var(--primary);
    font-weight: 800;
}

.releases-date-pill {
    display: inline-block;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    background: var(--glass-bg, rgba(20, 20, 28, 0.72));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    color: var(--text);
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    box-shadow: var(--glass-shadow);
}

[data-theme="light"] .release-glass-card,
[data-theme="light"] .releases-date-pill {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 32px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    color: var(--text);
}

/* Release Row List (Clean Liquid Glass Layout) */
.release-row-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.release-row-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg, rgba(20, 20, 28, 0.72));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.release-row-item:hover {
    transform: translateX(4px);
    border-color: var(--glass-border-hover, rgba(255, 0, 122, 0.45));
    box-shadow: var(--glass-shadow-hover);
    background: var(--glass-bg-hover, rgba(30, 30, 42, 0.85));
}

.release-thumb-wrap {
    position: relative;
    width: 48px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.release-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.release-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--liquid-gradient);
}

.release-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.release-row-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-row-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.76rem;
}

.release-ep-badge {
    color: var(--primary);
    font-weight: 800;
}

.release-dub-badge {
    background: var(--liquid-gradient);
    color: #fff;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
}

.release-qual-badge {
    background: rgba(14, 14, 22, 0.75);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
}

.release-time-pill {
    color: var(--text-muted);
    font-weight: 600;
}

.release-row-action {
    flex-shrink: 0;
}

.release-play-btn {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
}

[data-theme="light"] .release-row-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 6px 24px rgba(31, 38, 135, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ===== ALL LIGHT MODE DROPDOWNS & SELECT OPTIONS ===== */
[data-theme="light"] select,
[data-theme="light"] option,
[data-theme="light"] .custom-select,
[data-theme="light"] .select-dropdown,
[data-theme="light"] .dnav-drop-panel,
[data-theme="light"] .profile-dropdown,
[data-theme="light"] .player-settings-sheet,
[data-theme="light"] .quality-dropdown,
[data-theme="light"] .audio-dropdown {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

[data-theme="light"] select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

[data-theme="light"] select option:hover,
[data-theme="light"] select option:focus,
[data-theme="light"] select option:checked {
    background-color: rgba(233, 30, 140, 0.15) !important;
    color: #e91e8c !important;
}

/* ===== ADMIN PANEL PERMANENT HIGH-CONTRAST DARK MODE ===== */
body.page-admin,
.admin-cms-app,
[data-theme="light"] body.page-admin,
[data-theme="light"] .admin-cms-app {
    color-scheme: dark !important;
    background: #09090e !important;
    color: #f8fafc !important;
}

body.page-admin h1, body.page-admin h2, body.page-admin h3, body.page-admin h4,
body.page-admin label, body.page-admin th, body.page-admin td,
body.page-admin span, body.page-admin p, body.page-admin div,
body.page-admin a, body.page-admin button,
.admin-cms-app h1, .admin-cms-app h2, .admin-cms-app h3, .admin-cms-app h4,
.admin-cms-app label, .admin-cms-app th, .admin-cms-app td,
.admin-cms-app span, .admin-cms-app p, .admin-cms-app div,
[data-theme="light"] body.page-admin label,
[data-theme="light"] body.page-admin th,
[data-theme="light"] body.page-admin td,
[data-theme="light"] body.page-admin input,
[data-theme="light"] body.page-admin select,
[data-theme="light"] body.page-admin textarea {
    color: #f8fafc !important;
}

body.page-admin .text-muted,
.admin-cms-app .text-muted,
[data-theme="light"] body.page-admin .text-muted,
[data-theme="light"] .admin-cms-app .text-muted {
    color: #94a3b8 !important;
}

body.page-admin input,
body.page-admin select,
body.page-admin textarea,
.admin-cms-app input,
.admin-cms-app select,
.admin-cms-app textarea,
[data-theme="light"] body.page-admin input,
[data-theme="light"] body.page-admin select,
[data-theme="light"] body.page-admin textarea {
    background: rgba(20, 20, 32, 0.95) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.page-admin select option,
.admin-cms-app select option,
[data-theme="light"] body.page-admin select option {
    background-color: #12121e !important;
    color: #f8fafc !important;
}

body.page-admin .admin-card,
body.page-admin .admin-stat-card,
body.page-admin .admin-table-wrap,
.admin-cms-app .admin-card,
.admin-cms-app .admin-stat-card,
.admin-cms-app .admin-table-wrap,
[data-theme="light"] .admin-card,
[data-theme="light"] .admin-stat-card,
[data-theme="light"] .admin-table-wrap {
    background: rgba(18, 18, 28, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4) !important;
}

body.page-admin .admin-sidebar,
.admin-cms-app .admin-sidebar,
[data-theme="light"] .admin-sidebar {
    background: rgba(14, 14, 22, 0.95) !important;
    border-right-color: rgba(255, 255, 255, 0.12) !important;
}

/* ===== FRANCHISE TIMELINE LIQUID GLASS ===== */
.franchise-hero-card {
    background: var(--glass-bg, rgba(20, 20, 28, 0.75));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.franchise-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.franchise-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.franchise-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.franchise-timeline::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 19px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(233, 30, 140, 0.2) 100%);
    border-radius: 3px;
}

.timeline-node {
    position: relative;
    display: flex;
    align-items: center;
}

.timeline-badge {
    position: absolute;
    left: -2rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--liquid-gradient);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(233, 30, 140, 0.5);
    z-index: 2;
    border: 2px solid var(--bg);
}

.timeline-content-card {
    margin-left: 1.25rem;
    flex: 1;
    display: flex;
    gap: 1.25rem;
    background: var(--glass-bg, rgba(20, 20, 28, 0.72));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-content-card:hover {
    transform: translateY(-3px);
    border-color: var(--glass-border-hover, rgba(255, 0, 122, 0.45));
    box-shadow: var(--glass-shadow-hover);
}

.timeline-poster-link {
    width: 72px;
    height: 104px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.timeline-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.timeline-tag-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.timeline-part-tag {
    background: var(--liquid-gradient);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.timeline-type-pill,
.timeline-year-pill {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
}

.timeline-item-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.timeline-item-title a {
    color: var(--text);
    text-decoration: none;
}

.timeline-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.2rem;
}

.timeline-rating {
    color: #ffc107;
    font-weight: 800;
    font-size: 0.85rem;
}

[data-theme="light"] .franchise-hero-card,
[data-theme="light"] .timeline-content-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 32px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .franchise-title {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== SITE FOOTER LIQUID GLASS ===== */
.zn-footer {
    margin-top: 4rem;
    padding-bottom: 2.5rem;
}

.site-footer-card {
    background: var(--glass-bg, rgba(20, 20, 28, 0.78));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 28px;
    padding: 2.5rem 2.5rem 1.5rem;
    box-shadow: var(--glass-shadow);
}

.footer-top-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-brand-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 320px;
}

.footer-social-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-social-btn:hover {
    transform: translateY(-3px);
    background: var(--liquid-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.4);
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
    color: var(--text);
    letter-spacing: 0.02em;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-nav-col a {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-col a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-app-btn {
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-weight: 700;
    width: fit-content;
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    width: fit-content;
    margin-top: 0.5rem;
}

.footer-bottom-bar {
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zn-footer-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .footer-top-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-top-row {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .site-footer-card {
        padding: 1.75rem 1.25rem 1.25rem;
    }
}

[data-theme="light"] .site-footer-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 36px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .footer-social-btn {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

/* ===== LEGAL & APP PAGES LIQUID GLASS ===== */
.legal-glass-card {
    background: var(--glass-bg, rgba(20, 20, 28, 0.78));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    margin-bottom: 3rem;
}

.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legal-nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.legal-nav-pill {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.legal-nav-pill.active,
.legal-nav-pill:hover {
    background: var(--liquid-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.3);
}

.legal-body-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-body-content h1,
.legal-body-content h2,
.legal-body-content h3 {
    color: var(--text);
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Pricing Grid */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.75rem 0;
}

.pricing-glass-card {
    position: relative;
    background: var(--glass-bg, rgba(20, 20, 28, 0.7));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--glass-shadow);
}

.pricing-glass-featured {
    border-color: rgba(233, 30, 140, 0.5);
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.12) 0%, rgba(20, 20, 28, 0.75) 100%);
}

.pricing-badge {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    font-size: 0.7rem; font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.pricing-badge-royal {
    background: var(--liquid-gradient);
    color: #ffffff;
}

.pricing-features {
    list-style: none;
    padding: 0; margin: 1.25rem 0 0;
    display: flex; flex-direction: column; gap: 0.6rem;
    font-size: 0.88rem;
}

.pricing-features li {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-muted);
}

.pricing-features li span {
    color: #10b981;
}

/* App Page Glass */
.app-page-container {
    max-width: 640px;
    margin: 0 auto;
}

.app-glass-card {
    text-align: center;
    background: var(--glass-bg, rgba(20, 20, 28, 0.78));
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 28px;
    padding: 3rem 2rem;
    box-shadow: var(--glass-shadow);
}

.app-icon-glass {
    width: 96px; height: 96px;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(233, 30, 140, 0.35);
    margin-bottom: 1.25rem;
}

.app-title {
    font-size: 1.75rem; font-weight: 800;
    margin-bottom: 0.35rem;
}

.app-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 2rem;
}

.app-action-wrap {
    margin-bottom: 2rem;
}

.app-install-btn {
    border-radius: 999px;
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    font-weight: 800;
}

.app-steps-glass {
    text-align: left;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.app-steps-glass h3 {
    font-size: 0.95rem; font-weight: 800;
    margin-bottom: 0.6rem;
}

.app-steps-glass ol {
    margin: 0; padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.app-share-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    display: flex; align-items: center; gap: 0.75rem;
}

.app-share-link input {
    flex: 1; background: transparent; border: none;
    color: var(--text); font-size: 0.85rem; outline: none;
}

[data-theme="light"] .legal-glass-card,
[data-theme="light"] .pricing-glass-card,
[data-theme="light"] .app-glass-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 36px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ===== FOOTER BRAND SOCIAL PILLS ===== */
.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.footer-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-pill:hover {
    transform: translateY(-2px);
    border-color: transparent;
    color: #ffffff;
}

.footer-social-tg:hover,
.footer-social-channel:hover {
    background: linear-gradient(135deg, #0088cc 0%, #00a8ff 100%);
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
}

.footer-social-insta:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 16px rgba(220, 39, 67, 0.4);
}

.footer-social-yt:hover {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4);
}

/* ===== LIGHT MODE SELECT DROPDOWN OS HIGHLIGHT FIX ===== */
[data-theme="light"] select,
[data-theme="light"] option {
    color-scheme: light !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] select option:hover,
[data-theme="light"] select option:focus,
[data-theme="light"] select option:checked {
    background-color: rgba(233, 30, 140, 0.15) !important;
    color: #e91e8c !important;
}

/* ===== LIGHT MODE POSTER BADGES NO-BLUR OVERHAUL ===== */
[data-theme="light"] .jcard-type,
[data-theme="light"] .jcard-ep,
[data-theme="light"] .jcard-rating,
[data-theme="light"] .jcard-qual-badge,
[data-theme="light"] .jcard-lang-badge,
[data-theme="light"] .jcard-countdown {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    font-weight: 800 !important;
}

[data-theme="light"] .jcard-qual-badge {
    background: #0f172a !important;
    color: #ffc107 !important;
    border-color: rgba(255, 193, 7, 0.5) !important;
}

[data-theme="light"] .jcard-lang-badge {
    background: #e91e8c !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

[data-theme="light"] .footer-social-pill {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.drawer-section-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 1.5rem 0 0.6rem;
}

.drawer-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.drawer-social-grid .footer-social-pill {
    justify-content: center;
    width: 100%;
}

/* ===== LIQUID GLASS PWA & UI MICRO-ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(233, 30, 140, 0.2);
    }
    50% {
        box-shadow: 0 0 28px rgba(147, 51, 234, 0.45);
    }
}

.movie-card, .timeline-node, .hero-card, .footer-social-pill, .btn {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.25s ease,
                border-color 0.25s ease !important;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

main, .page-container, .catalog-grid {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) ease-out;
}

@media (max-width: 768px) {
    .btn:active, .movie-card:active, .footer-social-pill:active, .mobile-drawer-btn:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
}

/* ===== PROFILE DROPDOWN LIQUID GLASS MODAL ===== */
.header-profile {
    position: relative !important;
    display: inline-flex;
    align-items: center;
}

.profile-avatar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.8), rgba(147, 51, 234, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 16px rgba(233, 30, 140, 0.5);
}

.header-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dropdown {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    left: auto !important;
    width: 270px !important;
    background: rgba(14, 14, 22, 0.94) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 1.25rem !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(233, 30, 140, 0.15) !important;
    z-index: 999999 !important;
    animation: fadeInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.profile-dropdown.hidden {
    display: none !important;
}

[data-theme="light"] .profile-dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18) !important;
}

.profile-dropdown-head {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .profile-dropdown-head {
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

.profile-dropdown-name {
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
}

[data-theme="light"] .profile-dropdown-name {
    color: #0f172a !important;
}

.profile-dropdown-sub {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
}

.profile-dropdown-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.profile-dd-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.15s ease;
}

[data-theme="light"] .profile-dd-item {
    color: #1e293b !important;
}

.profile-dd-item:hover {
    background: rgba(233, 30, 140, 0.15);
    color: #ff2d9a !important;
    transform: translateX(4px);
}

.profile-dropdown-foot {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== APP UPDATE FLOATING BANNER ===== */
.app-update-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999999;
    background: rgba(14, 14, 24, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(233, 30, 140, 0.4);
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(233, 30, 140, 0.25);
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-update-banner.hidden {
    display: none !important;
}

.update-banner-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
}

.update-action-btn {
    border-radius: 30px !important;
    padding: 0.4rem 1rem !important;
    font-size: 0.82rem !important;
}

.update-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
}

.update-close-btn:hover {
    color: #ffffff;
}

/* ===== LIQUID GLASS TOAST SYSTEM ===== */
.toast-container {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999999 !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;
    background: rgba(14, 14, 24, 0.92) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(233, 30, 140, 0.2) !important;
    border-radius: 16px !important;
    padding: 0.85rem 1.25rem !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ===== AUTH MODALS LIQUID GLASS REDESIGN ===== */
.auth-modal-card {
    background: rgba(14, 14, 24, 0.92) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 28px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(233, 30, 140, 0.15) !important;
    padding: 2.25rem !important;
    max-width: 440px !important;
}

.auth-header-logo {
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 12px rgba(233, 30, 140, 0.4));
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, #e91e8c, #9333ea);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(233, 30, 140, 0.4);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem !important;
    background: rgba(20, 20, 32, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    color: #f8fafc !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.auth-input:focus {
    border-color: #e91e8c !important;
    box-shadow: 0 0 16px rgba(233, 30, 140, 0.35) !important;
    outline: none !important;
}

/* ===== UPDATE PROGRESS OVERLAY ===== */
.update-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    background: rgba(9, 9, 14, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.update-progress-overlay.hidden {
    display: none !important;
}

.update-progress-card {
    background: rgba(18, 18, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    width: min(380px, 90vw);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(233, 30, 140, 0.3);
}

.update-progress-spinner {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulseGlow 1.5s infinite ease-in-out;
}

.update-progress-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.35rem;
}

.update-progress-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.update-progress-bar-wrap {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.update-progress-fill {
    width: 0%;
    height: 100%;
    font-size: 0.82rem !important;
}

.update-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
}

.update-close-btn:hover {
    color: #ffffff;
}

/* ===== LIQUID GLASS TOAST SYSTEM ===== */
.toast-container {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999999 !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;
    background: rgba(14, 14, 24, 0.92) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(233, 30, 140, 0.2) !important;
    border-radius: 16px !important;
    padding: 0.85rem 1.25rem !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ===== AUTH MODALS LIQUID GLASS REDESIGN ===== */
.auth-modal-card {
    background: rgba(14, 14, 24, 0.92) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 28px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(233, 30, 140, 0.15) !important;
    padding: 2.25rem !important;
    max-width: 440px !important;
}

.auth-header-logo {
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 12px rgba(233, 30, 140, 0.4));
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, #e91e8c, #9333ea);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(233, 30, 140, 0.4);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem !important;
    background: rgba(20, 20, 32, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    color: #f8fafc !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.auth-input:focus {
    border-color: #e91e8c !important;
    box-shadow: 0 0 16px rgba(233, 30, 140, 0.35) !important;
    outline: none !important;
}

/* ===== UPDATE PROGRESS OVERLAY ===== */
.update-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    background: rgba(9, 9, 14, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.update-progress-overlay.hidden {
    display: none !important;
}

.update-progress-card {
    background: rgba(18, 18, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    width: min(380px, 90vw);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(233, 30, 140, 0.3);
}

.update-progress-spinner {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulseGlow 1.5s infinite ease-in-out;
}

.update-progress-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.35rem;
}

.update-progress-sub {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.update-progress-bar-wrap {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.update-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff2d9a, #9333ea);
    border-radius: 10px;
    transition: width 0.12s linear;
}

.update-progress-percent {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ff2d9a;
}

/* --- Phase 8: Motion & Micro-Interactions --- */
@media (prefers-reduced-motion: no-preference) {
    .btn, .jcard {
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    }
    .btn:active {
        transform: scale(0.95);
    }
    .jcard:hover {
        transform: scale(1.03) translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }
    [data-icon] {
        transition: transform 0.2s ease;
    }
    button:hover > [data-icon] {
        transform: scale(1.15);
    }
}

/* --- Phase 9: Skeleton Loaders --- */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton-box {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, rgba(255,255,255,0.05) 4%, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.05) 36%);
    background-size: 1000px 100%;
    border-radius: 8px;
}
.light .skeleton-box {
    background: linear-gradient(to right, #eff1f3 4%, #e2e2e2 25%, #eff1f3 36%);
    background-size: 1000px 100%;
}

/* ============================================================
   RESPONSIVE AUDIT & SAFE AREA FIXES (iOS, TMA, Android, Desktop)
   ============================================================ */
html {
    overflow-x: hidden !important;
    width: 100%;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

img, video, iframe {
    max-width: 100%;
}

/* Modal screen height & safe area support */
.modal, .login-modal, .auth-modal, .wp-modal {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.modal-content, .login-modal-content, .auth-modal-content, .wp-modal {
    max-height: calc(100vh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Universal table responsiveness */
table, .admin-table, .data-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}

/* Home page poster card aspect ratio */
.media-card-poster, .poster-wrap img, .jcard img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

/* Mobile & TMA tweaks */
@media (max-width: 768px) {
    .stats-grid, .admin-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .pricing {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .pricing-item {
        max-width: 100%;
    }
}