/* ==========================================================================
   LAMPA CINEMA — WEB PORTAL STYLES (DESKTOP & RESPONSIVE BROWSER)
   Distinct from Telegram Mini App: Fullscreen Cinematic Experience
   ========================================================================== */

@font-face {
    font-family: 'Dune Rise';
    src: url('/static/Dune_Rise.woff2') format('woff2'),
         url('/static/Dune_Rise.otf') format('opentype'),
         url('Dune_Rise.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-base: #07090e;
    --bg-deep: #0a0d14;
    --bg-surface: #111622;
    --bg-surface-elevated: #182030;
    --bg-card: rgba(20, 26, 38, 0.7);
    --bg-glass: rgba(13, 17, 24, 0.75);

    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.35);
    
    --accent-gold: #f5c518;
    --accent-gold-glow: rgba(245, 197, 24, 0.3);
    
    --accent-crimson: #e50914;
    --accent-crimson-glow: rgba(229, 9, 20, 0.4);

    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(59, 130, 246, 0.4);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hard: 0 12px 35px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px var(--accent-glow);

    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

    --font-heading: 'Dune Rise', 'Montserrat', -apple-system, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   RESET & GLOBAL BASICS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #12192a 0%, var(--bg-base) 60%),
                radial-gradient(circle at 100% 40%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 0% 70%, rgba(229, 9, 20, 0.04) 0%, transparent 40%),
                var(--bg-base);
    background-attachment: fixed;
    overflow-x: hidden;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Custom Cinema Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

input, select {
    font-family: inherit;
    outline: none;
}

/* --------------------------------------------------------------------------
   LAYOUT CONTAINER
   -------------------------------------------------------------------------- */
.cinema-container {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 768px) {
    .cinema-container {
        padding: 0 16px;
    }
}

/* --------------------------------------------------------------------------
   HEADER & CINEMA NAVBAR
   -------------------------------------------------------------------------- */
.cinema-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-base), border-color var(--transition-base);
}

.cinema-header.scrolled {
    background: rgba(7, 9, 14, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 20px;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', var(--font-heading);
    font-size: 21px;
    letter-spacing: 2px;
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.03);
}

.brand-logo-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(245, 197, 24, 0.45));
    flex-shrink: 0;
    display: block;
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
    filter: drop-shadow(0 0 20px rgba(245, 197, 24, 0.8));
    transform: scale(1.08) rotate(3deg);
}

.brand-text {
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #fff2b2 45%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 14px var(--accent-gold-glow);
    white-space: nowrap;
}

.brand-text span {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-item button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-item button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-item.active button {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--border-accent);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.nav-badge {
    background: var(--accent-crimson);
    color: #ffffff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

/* Right Nav Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* Online Counter Badge */
.online-counter-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-emerald);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--accent-emerald); }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* Search Input with Hotkey */
.search-wrapper {
    position: relative;
    width: 280px;
    transition: width var(--transition-base);
}

.search-wrapper:focus-within {
    width: 360px;
}

.search-input-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    gap: 10px;
    transition: all var(--transition-fast);
}

.search-wrapper:focus-within .search-input-box {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.search-input-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
}

.search-input-box input::placeholder {
    color: var(--text-muted);
}

.search-shortcut-hint {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    white-space: nowrap;
}

/* Live Search Dropdown Popup */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hard);
    max-height: 480px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
    flex-direction: column;
}

.search-dropdown.active {
    display: flex;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.search-result-item:hover, .search-result-item.highlighted {
    background: rgba(59, 130, 246, 0.12);
}

.search-result-poster {
    width: 44px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
}

.search-result-info {
    flex-grow: 1;
    overflow: hidden;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    margin-top: 4px;
    align-items: center;
}

.search-result-rating {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Telegram Connect Button */
.btn-tg-connect {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.35);
}

.btn-tg-connect:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(34, 158, 217, 0.5);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-full);
    font-size: 13px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-profile-badge:hover {
    background: rgba(255, 255, 255, 0.14);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   HERO SPOTLIGHT BILLBOARD
   -------------------------------------------------------------------------- */
.hero-billboard {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 520px;
    max-height: 800px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 30px;
    overflow: hidden;
}

.hero-backdrop-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: opacity 0.8s ease-in-out, transform 8s ease-out;
}

.hero-backdrop-img.zoom-anim {
    transform: scale(1.05);
}

/* Vignette Gradients */
.hero-gradient-left {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-base) 0%, rgba(7, 9, 14, 0.85) 35%, rgba(7, 9, 14, 0.3) 65%, transparent 100%);
    z-index: 2;
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 14, 0.6) 40%, var(--bg-base) 100%);
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    padding-bottom: 60px;
    max-width: 780px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid var(--accent-crimson);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: 1px;
    margin-bottom: 14px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-gold);
    color: #000000;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
}

.badge-quality {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.hero-synopsis {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    transition: all var(--transition-fast);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

.btn-primary-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.7);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border-bright);
    transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* Hero Carousel Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-dot.active {
    width: 48px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   NETFLIX-STYLE HORIZONTAL CAROUSELS
   -------------------------------------------------------------------------- */
.cinema-row {
    position: relative;
    margin-bottom: 44px;
}

.cinema-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.row-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.row-icon {
    font-size: 20px;
}

.cinema-row-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.cinema-row-view-all {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition-fast);
}

.cinema-row-view-all:hover {
    gap: 8px;
    color: #60a5fa;
}

/* Track & Scrolling */
.carousel-track-wrapper {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 4px 20px 4px;
    scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Scroll Chevrons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 80px;
    background: rgba(7, 9, 14, 0.85);
    border: 1px solid var(--border-bright);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
    opacity: 0;
}

.carousel-track-wrapper:hover .carousel-nav-btn {
    opacity: 1;
}

.carousel-nav-btn:hover {
    background: var(--accent-primary);
    box-shadow: 0 0 16px var(--accent-glow);
}

.carousel-nav-btn.prev {
    left: -16px;
}

.carousel-nav-btn.next {
    right: -16px;
}

/* --------------------------------------------------------------------------
   MOVIE CARDS & HOVER EFFECTS
   -------------------------------------------------------------------------- */
.movie-card {
    flex: 0 0 200px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

@media (min-width: 1440px) {
    .movie-card {
        flex: 0 0 220px;
    }
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow);
    z-index: 10;
}

.card-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bg-surface);
}

.card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .card-poster {
    transform: scale(1.06);
}

/* Card Badges */
.card-rating-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-gold);
    border: 1px solid rgba(245, 197, 24, 0.3);
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.card-fav-btn:hover {
    background: rgba(229, 9, 20, 0.8);
    transform: scale(1.15);
}

.card-fav-btn.active {
    color: var(--accent-crimson);
}

.card-quality-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffffff;
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.card-sub {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

/* TOP-10 STYLED RANKING ROW */
.top10-card {
    flex: 0 0 260px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.top10-rank-number {
    font-family: var(--font-heading);
    font-size: 140px;
    line-height: 0.85;
    font-weight: 900;
    color: #151a24;
    -webkit-text-stroke: 3px #475569;
    position: absolute;
    bottom: -10px;
    left: -15px;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    transition: -webkit-text-stroke var(--transition-fast), color var(--transition-fast);
}

.top10-card:hover .top10-rank-number {
    -webkit-text-stroke: 3px var(--accent-primary);
    color: rgba(59, 130, 246, 0.15);
}

.top10-inner-card {
    position: relative;
    z-index: 2;
    margin-left: 70px;
    width: 100%;
}

/* --------------------------------------------------------------------------
   CONTINUE WATCHING ROW (WITH PROGRESS BAR)
   -------------------------------------------------------------------------- */
.cw-card {
    flex: 0 0 280px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.cw-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
}

.cw-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-surface);
}

.cw-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cw-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.cw-card:hover .cw-play-overlay {
    opacity: 1;
}

.cw-play-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px var(--accent-glow);
}

.cw-progress-bar-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.cw-progress-bar-fill {
    height: 100%;
    background: var(--accent-crimson);
    box-shadow: 0 0 8px var(--accent-crimson-glow);
}

.cw-info {
    padding: 12px;
}

.cw-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-time-left {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   CATALOG EXPLORER & ADVANCED FILTERS
   -------------------------------------------------------------------------- */
.catalog-section {
    padding: 20px 0 60px 0;
}

.genre-chips-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 24px;
    scrollbar-width: none;
}

.genre-chips-scroll::-webkit-scrollbar {
    display: none;
}

.genre-chip {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.genre-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.genre-chip.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* Filter Controls Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 30px;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-select {
    background: var(--bg-deep);
    border: 1px solid var(--border-bright);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.filter-select:hover, .filter-select:focus {
    border-color: var(--accent-primary);
}

.view-mode-toggle {
    display: flex;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.view-btn {
    padding: 6px 10px;
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
}

/* Grid Layout */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

@media (min-width: 1440px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 24px;
    }
}

.catalog-grid.mode-wide {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.catalog-grid.mode-wide .movie-card {
    flex: initial;
    display: flex;
}

.catalog-grid.mode-wide .card-poster-wrap {
    width: 130px;
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
}

.catalog-grid.mode-wide .card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Load More Button */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-load-more {
    padding: 12px 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-bright);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-load-more:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   CINEMATIC PLAYER HALL & AMBILIGHT (THEATER MODE)
   -------------------------------------------------------------------------- */
.player-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 6, 10, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: none;
    overflow-y: auto;
    padding: 30px 20px;
    justify-content: center;
    align-items: flex-start;
}

.player-modal.active {
    display: flex;
    animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.player-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 1060px;
    margin: auto;
    z-index: 10;
}

/* AMBILIGHT DYNAMIC BACKLIGHT */
.ambilight-halo {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    height: 600px;
    background-size: cover;
    background-position: center;
    filter: blur(90px) brightness(0.7);
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
    transition: background-image 0.8s ease-in-out;
}

.player-close-btn {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--border-bright);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.player-close-btn:hover {
    background: var(--accent-crimson);
    transform: rotate(90deg);
}

/* Video Stage */
.video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-stage iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Balancer Source Switcher */
.balancer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin: 18px 0;
    gap: 12px;
    flex-wrap: wrap;
}

.balancer-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.balancer-tab {
    padding: 6px 14px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.balancer-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.balancer-tab.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.player-quick-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-icon-btn {
    padding: 6px 10px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tool-icon-btn:hover {
    color: #ffffff;
    border-color: var(--border-bright);
}

/* Series Seasons & Episodes Picker */
.series-picker-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.season-tabs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.season-tab-btn {
    padding: 6px 14px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.season-tab-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
    color: #ffffff;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.episode-btn {
    padding: 10px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.episode-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.episode-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Movie Details inside Player Hall */
.player-details-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.player-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 14px;
}

.player-movie-title {
    font-family: var(--font-heading);
    font-size: 26px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.player-movie-original {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.player-movie-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.actors-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.actor-chip {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Desktop Hotkeys Cheatsheet */
.hotkeys-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.hotkey-item kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 11px;
    margin-right: 4px;
}

/* --------------------------------------------------------------------------
   TELEGRAM CONNECT & GATEKEEPER ACCESS MODAL
   -------------------------------------------------------------------------- */
.tg-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tg-modal.active {
    display: flex;
    animation: fadeInModal 0.2s ease-out;
}

.tg-modal-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-hard);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.tg-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 14px auto;
    box-shadow: 0 8px 25px rgba(34, 158, 217, 0.4);
}

.tg-modal-title {
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.tg-modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.tg-qr-wrapper {
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

.tg-qr-img {
    width: 160px;
    height: 160px;
    display: block;
}

.tg-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-tg-primary {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: var(--radius-full);
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(34, 158, 217, 0.4);
    transition: transform var(--transition-fast);
}

.btn-tg-primary:hover {
    transform: translateY(-1px);
}

.btn-tg-check {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-bright);
    color: #ffffff;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-tg-check:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.cinema-footer {
    border-top: 1px solid var(--border);
    background: rgba(5, 7, 11, 0.95);
    padding: 50px 0 30px 0;
    margin-top: 60px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-col {
    max-width: 320px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: rgba(17, 22, 34, 0.95);
    border: 1px solid var(--border-accent);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-hard);
    backdrop-filter: blur(12px);
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .nav-links {
        display: none; /* Burger menu or bottom bar for tablets */
    }
    .hero-billboard {
        height: 60vh;
    }
    .hero-title {
        font-size: 36px;
    }
    .search-wrapper {
        width: 220px;
    }
    .search-wrapper:focus-within {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .hero-billboard {
        height: 52vh;
        min-height: 420px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-synopsis {
        -webkit-line-clamp: 2;
    }
    .btn-primary-play {
        padding: 10px 22px;
        font-size: 14px;
    }
    .btn-secondary-action {
        padding: 10px 18px;
        font-size: 13px;
    }
    .online-counter-badge {
        display: none;
    }
    .top10-rank-number {
        font-size: 100px;
    }
    .top10-inner-card {
        margin-left: 50px;
    }
}

/* --------------------------------------------------------------------------
   CINEMA CLUB COMMENTS & REVIEWS COMPONENT
   -------------------------------------------------------------------------- */
.player-comments-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 20px;
}

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

.comments-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-icon {
    font-size: 20px;
}

.comments-main-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.comments-badge {
    background: rgba(245, 197, 24, 0.15);
    border: 1px solid rgba(245, 197, 24, 0.3);
    color: var(--accent-gold);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.comments-sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-sort-select {
    background: var(--bg-deep);
    border: 1px solid var(--border-bright);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.comments-sort-select:hover, .comments-sort-select:focus {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

/* Composer Form */
.comment-composer-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 24px;
    transition: border-color var(--transition-fast);
}

.comment-composer-box:focus-within {
    border-color: rgba(245, 197, 24, 0.4);
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.1);
}

.composer-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.composer-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.composer-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-crimson) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
    flex-shrink: 0;
}

.composer-author-input {
    background: var(--bg-deep);
    border: 1px solid var(--border-bright);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    width: 170px;
    transition: all var(--transition-fast);
}

.composer-author-input:focus {
    border-color: var(--accent-gold);
    width: 210px;
}

.composer-star-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.star-rating-buttons {
    display: flex;
    gap: 4px;
}

.star-pick-btn {
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
}

.star-pick-btn:hover {
    transform: scale(1.25);
}

.star-pick-btn.active {
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-gold-glow);
}

.composer-textarea {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    transition: border-color var(--transition-fast);
}

.composer-textarea:focus {
    border-color: var(--accent-gold);
}

.composer-textarea::placeholder {
    color: var(--text-muted);
}

.composer-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.spoiler-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.spoiler-toggle-label input {
    accent-color: var(--accent-crimson);
}

.btn-submit-comment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f5c518 0%, #d4af37 100%);
    color: #07090e;
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.35);
}

.btn-submit-comment:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.55);
}

/* Comments Feed */
.comments-feed-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.comment-card:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.12);
}

.comment-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-user-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-bright);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.comment-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 6px;
}

.comment-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(245, 197, 24, 0.12);
    color: var(--accent-gold);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
}

.comment-body {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 12px;
    transition: filter 0.3s ease;
}

.spoiler-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #fbbf24;
    cursor: pointer;
    margin-bottom: 8px;
    user-select: none;
}

.spoiler-alert-banner:hover {
    background: rgba(245, 158, 11, 0.18);
}

.comment-body.is-spoiler-hidden {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.comment-actions-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.comment-vote-btn:hover {
    color: #ffffff;
    border-color: var(--border-bright);
}

.comment-vote-btn.active {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(245, 197, 24, 0.1);
}

/* --------------------------------------------------------------------------
   YOUTUBE TRAILER ACTION BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn-trailer-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.btn-trailer-action svg {
    color: #ef4444;
    transition: transform var(--transition-fast);
}

.btn-trailer-action:hover {
    background: rgba(220, 38, 38, 0.3);
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.btn-trailer-action:hover svg {
    transform: scale(1.15);
}

.trailer-pill {
    display: inline-block;
    padding: 2px 6px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.btn-trailer-tool {
    background: rgba(220, 38, 38, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fff !important;
}

.btn-trailer-tool:hover {
    background: rgba(220, 38, 38, 0.3) !important;
    border-color: #ef4444 !important;
}

.btn-back-movie-tool {
    background: rgba(245, 197, 24, 0.15) !important;
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   MOBILE BOTTOM NAVIGATION BAR & COMPACT HEADER
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(10, 11, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 900;
    justify-content: space-around;
    align-items: center;
    padding: 4px 6px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.mobile-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex: 1;
    max-width: 75px;
}

.mobile-bar-btn .bar-icon {
    font-size: 20px;
    transition: transform var(--transition-fast);
}

.mobile-bar-btn.active {
    color: var(--accent-gold);
}

.mobile-bar-btn.active .bar-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.5));
}

.mobile-search-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-search-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (TABLETS & SMARTPHONES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .cinema-container {
        padding: 0 20px;
    }

    .cinema-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 16px;
    }

    .hero-title {
        font-size: clamp(28px, 5vw, 48px);
    }
}

@media (max-width: 820px) {
    body {
        padding-bottom: 72px; /* space for mobile bottom bar */
    }

    .mobile-bottom-bar {
        display: flex;
    }

    .nav-links {
        display: none !important;
    }

    .search-wrapper {
        display: none;
    }

    .search-wrapper.mobile-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 11, 15, 0.98);
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.8);
    }

    .search-wrapper.mobile-open .search-input-box {
        width: 100%;
    }

    .mobile-search-toggle {
        display: flex;
    }

    .header-actions-right {
        gap: 8px;
    }

    .live-counter-pill {
        padding: 4px 10px;
        font-size: 11px;
    }

    .btn-tg-connect span {
        display: none;
    }

    .btn-tg-connect {
        padding: 8px;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        justify-content: center;
    }

    /* Billboard on tablets/phones */
    .hero-billboard {
        min-height: 480px;
        padding-top: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 10px;
    }

    .hero-synopsis {
        font-size: 13px;
        -webkit-line-clamp: 2;
        margin-bottom: 16px;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .hero-actions button {
        flex: 1 1 calc(50% - 6px);
        padding: 12px 14px;
        font-size: 14px;
        justify-content: center;
    }

    .btn-primary-play {
        flex: 1 1 100% !important;
    }

    /* Carousels & Grid on tablets */
    .cinema-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .carousel-card {
        min-width: 150px;
    }

    /* Player modal on mobile */
    .player-modal {
        padding: 0;
    }

    .player-modal-dialog {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .player-close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.8);
    }

    .balancer-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .balancer-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .player-quick-tools {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
    }

    .hotkeys-bar {
        display: none;
    }
}

@media (max-width: 480px) {
    .cinema-container {
        padding: 0 12px;
    }

    .brand-logo-img {
        width: 40px;
        height: 40px;
    }

    .brand-text {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .cinema-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .carousel-card {
        min-width: 135px;
    }

    .card-title {
        font-size: 12px;
    }

    .card-meta {
        font-size: 11px;
    }

    .composer-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .composer-star-picker {
        justify-content: space-between;
    }

    .star-pick-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .composer-footer-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-submit-comment {
        width: 100%;
        justify-content: center;
    }
}
