/*
Theme Name: CVI Street Theme (Branch 1 - Visual Nav) ⚡
Theme URI: http://testsys.co
Description: High-density, neon street-racing styled mobile-first movie streaming theme for Thai working class & Dek Van.
Version: 1.0.0
Author: Antigravity
Text Domain: cvi-street-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Prompt:wght@300;400;500;600;700&display=swap');

/* --- Design Variables --- */
:root {
    --bg-dark: #07080a;
    --bg-card: #12131a;
    --bg-card-hover: #1b1d28;
    --primary: #39ff14;         /* เขียวสะท้อนแสง (Neon Green) */
    --primary-glow: rgba(57, 255, 20, 0.35);
    --secondary: #ffea00;       /* เหลืองทองซิ่ง (Neon Yellow) */
    --accent: #ff0055;          /* แดงซิ่งพากย์ไทย (Neon Red) */
    --text-main: #ffffff;
    --text-muted: #8e95a5;
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-border-hover: rgba(57, 255, 20, 0.4);
    --font-th: 'Prompt', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

/* Carbon Fiber micro-pattern background */
body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 0),
                      radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 0);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    color: var(--text-main);
    font-family: var(--font-th);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.synopsis-txt strong,
.synopsis-txt b {
    font-weight: 700 !important;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* --- Header --- */
.site-header {
    background: rgba(7, 8, 10, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    font-style: italic;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.site-brand span {
    color: #fff;
}

/* --- SEO Header Text --- */
.cvi-seo-header-wrap {
    flex: 1;
    min-width: 0;
    margin: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cvi-seo-header-text {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    max-height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-align: center;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.cvi-seo-header-text:hover {
    opacity: 1;
}

.cvi-seo-header-text strong,
.cvi-seo-header-text b {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .cvi-seo-header-wrap {
        display: none;
    }
}

/* --- SEO Home Card (Middle) --- */
.cvi-seo-home-card {
    margin: 12px 0 18px 0;
    background: rgba(18, 19, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cvi-seo-home-inner {
    max-height: 80px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.cvi-seo-home-inner p {
    margin: 0 0 6px 0;
}

.cvi-seo-home-inner p:last-child {
    margin-bottom: 0;
}

.cvi-seo-home-inner strong,
.cvi-seo-home-inner b {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Custom Scrollbar for CVI SEO Inner Box */
.cvi-seo-home-inner::-webkit-scrollbar {
    width: 4px;
}

.cvi-seo-home-inner::-webkit-scrollbar-track {
    background: transparent;
}

.cvi-seo-home-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.cvi-seo-home-inner::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Navigation tabs (mainly for mobile header) */
.header-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.nav-btn.active, .nav-btn:hover {
    color: var(--primary);
    background: rgba(57, 255, 20, 0.08);
}

/* --- Hero Banner --- */
.hero-banner {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    border-radius: 12px;
    overflow: hidden;
    margin: 12px 0;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    cursor: pointer;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(7,8,10,0.98) 15%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 1;
}

.hero-details {
    position: relative;
    z-index: 2;
    padding: 12px;
    width: 100%;
}

.hero-tag {
    background: var(--primary);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
    font-style: italic;
}

.hero-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px #000;
}

/* --- Movie Grid (Strict 3-Columns on Mobile, Responsive Desktop) --- */
.grid-title-row {
    padding: 12px 4px 8px 4px;
    border-left: 3px solid var(--primary);
    margin: 10px 0;
}

.grid-title {
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    color: #fff;
}

.grid-title span {
    color: var(--primary);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
    width: 100% !important;
}

/* Movie Card layout */
.movie-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.poster-wrap {
    position: relative;
    width: 100%;
    padding-top: 135%; /* Portrait ratio */
    background: #1a1c24;
}

.poster-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges / Stickers Overlay */
.stickers-container {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.sticker {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    font-style: italic;
    text-transform: uppercase;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    border: none;
}

.sticker-dub {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 5px var(--accent);
}

.sticker-hd {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 5px var(--primary);
}

.sticker-zoom {
    background-color: var(--secondary);
    color: #000;
    box-shadow: 0 0 5px var(--secondary);
}

/* Rating Badge (Top-left Corner) */
.rating-badge-top-left {
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    border: 1px solid var(--primary);
    border-top: none;
    border-left: none;
    color: var(--primary);
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px 4px 6px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 5;
    box-shadow: 2px 2px 10px rgba(57, 255, 20, 0.2);
}

.rating-badge-top-left .star-icon {
    color: var(--primary);
    font-size: 11px;
}

/* Resolution Ribbon (Top-right Corner) */
.ribbon-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.ribbon-text {
    position: absolute;
    top: 7px;
    right: -13px;
    width: 60px;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
    padding: 2px 0;
    box-shadow: 0 0 10px var(--accent);
    letter-spacing: 1px;
}

/* Metadata Strip (เสียงไทย Year) */
.meta-strip {
    background: linear-gradient(90deg, #111 0%, #222 50%, #111 100%);
    color: #a0a5b1; /* Dimmer text so it doesn't compete with the title */
    font-size: 10px; /* Reduced to lower hierarchy */
    font-weight: 500;
    text-align: center;
    padding: 4px 2px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 2px solid var(--primary);
    border-top: 1px solid #333;
    letter-spacing: 0.5px;
}

/* Movie Info area */
.movie-info {
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    background: #181920;
}

.movie-title {
    font-size: 14px; /* Increased to emphasize the title */
    font-weight: 700; /* Bolder */
    color: #ffffff;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    height: 2.8em; /* Exactly 2 lines */
    margin: 0;
}

/* --- AJAX Load More Button --- */
.load-more-wrap {
    padding: 16px 0 40px;
    text-align: center;
}

.load-more-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #000;
    border: none;
    padding: 14px;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: box-shadow 0.2s, transform 0.1s;
    letter-spacing: 1px;
}

.load-more-btn:active {
    transform: scale(0.99);
}

.load-more-btn:hover {
    box-shadow: 0 0 25px var(--primary);
}

/* --- Video Player Screen (Zero Friction) --- */
.player-container {
    background: #000;
    border-bottom: 2px solid var(--primary);
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
    margin-bottom: 16px;
}

body.cinema-mode-active .player-container {
    border-bottom: none;
    box-shadow: none;
}

.player-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.player-loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #07080a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(57,255,20,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.detail-body {
    padding: 12px 4px;
}

.detail-title-row {
    margin-bottom: 12px;
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.detail-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.detail-synopsis-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #dfdfdf;
    font-weight: 300;
    margin-bottom: 20px;
}

.synopsis-hdr {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-selector-box {
    margin: 15px 0;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.server-btn {
    background: linear-gradient(180deg, #1c1c1c 0%, #111 100%);
    border: 1px solid #2a2a2a;
    border-bottom: 2px solid #000;
    color: #888;
    padding: 10px 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 6px rgba(0,0,0,0.6);
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-btn:hover {
    color: #ccc;
    background: linear-gradient(180deg, #222 0%, #151515 100%);
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 3px rgba(0,0,0,0.8);
}

.server-btn.active {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid var(--primary);
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid #000;
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
    box-shadow: inset 0 2px 10px rgba(0,255,255,0.1), 0 0 15px rgba(0,255,255,0.2);
    transform: translateY(2px);
}

/* --- DYNAMIC UI TABS & TV REMOTE --- */
.remote-action-btn {
    background: linear-gradient(180deg, #252525 0%, #111 100%);
    border: 1px solid #333;
    border-bottom: 3px solid #050505;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 4px 6px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.remote-action-btn:hover {
    background: linear-gradient(180deg, #2a2a2a 0%, #151515 100%);
    color: #fff;
}

.remote-action-btn:active {
    transform: translateY(2px);
    border-bottom-width: 1px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.4);
}

.remote-action-btn .icon {
    font-size: 16px;
}

.lang-tab-btn {
    display: none; /* Hide old tabs */
    flex-shrink: 0;
    background: linear-gradient(180deg, #252525 0%, #151515 100%);
    border: 1px solid #333;
    border-bottom: 2px solid #000;
    color: #999;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 3px 5px rgba(0,0,0,0.5);
}

.lang-tab-btn:hover {
    color: #ccc;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
}

.lang-tab-btn.active {
    background: linear-gradient(180deg, #1f1f1f 0%, #0a0a0a 100%);
    border-color: #f39c12;
    border-top: 2px solid #f39c12;
    border-bottom: 1px solid #000;
    color: #f39c12;
    text-shadow: 0 0 6px rgba(243, 156, 18, 0.8);
    box-shadow: inset 0 2px 10px rgba(243, 156, 18, 0.1), 0 0 10px rgba(243, 156, 18, 0.2);
    transform: translateY(2px);
}

/* Range Pagination Tabs */
.range-tab-btn {
    background: #111;
    border: 1px solid #222;
    color: #666;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.range-tab-btn.active {
    background: #1a1a1a;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 5px rgba(0,255,255,0.2);
}

/* Scrollbar for lang tabs */
.lang-tabs-container::-webkit-scrollbar {
    height: 4px;
}
.lang-tabs-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* --- TV OSD Overlay --- */
.tv-osd {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #00e676;
    font-size: 20px; /* Reduced from 36px */
    font-weight: 800;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 10px #00e676;
    opacity: 0;
    transition: opacity 1s ease-out;
    pointer-events: none;
    z-index: 100;
}
.tv-osd.active {
    opacity: 1;
    transition: opacity 0.1s ease-in;
}

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.trending-section {
    margin: 12px 0 20px 0;
    width: 100%;
    box-sizing: border-box;
}


.trending-header {
    background: linear-gradient(90deg, #d31027 0%, #ea384d 100%);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 
        0 5px 15px rgba(234, 56, 77, 0.4),
        inset 0 2px 2px rgba(255,255,255,0.3),
        inset 0 -3px 5px rgba(0,0,0,0.4);
    border: 2px solid #222;
    margin: 10px 30px 20px 30px; /* Space for exhaust flames and a small buffer to prevent scrolling */
    z-index: 5;
}

/* Flame Bursts */
.flame-burst {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    z-index: -1;
}

.flame-blue {
    right: 100%;
    background: linear-gradient(-90deg, #fff 0%, #00f0ff 40%, transparent 100%);
    clip-path: polygon(100% 30%, 0 40%, 0 60%, 100% 70%);
    animation: blast-left 0.1s infinite alternate;
}

.flame-orange {
    left: 100%;
    background: linear-gradient(90deg, #fff 0%, #ffce00 30%, #ff5e00 70%, transparent 100%);
    clip-path: polygon(0 30%, 100% 40%, 100% 60%, 0 70%);
    animation: blast-right 0.1s infinite alternate;
}

@keyframes blast-left {
    0% { width: 15px; filter: drop-shadow(-2px 0 3px #00f0ff); }
    100% { width: 25px; filter: drop-shadow(-8px 0 8px #00f0ff) hue-rotate(-10deg); }
}

@keyframes blast-right {
    0% { width: 15px; filter: drop-shadow(2px 0 3px #ff5e00); }
    100% { width: 25px; filter: drop-shadow(8px 0 8px #ff0000) hue-rotate(10deg); }
}

.trending-title {
    font-family: var(--font-th);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.trending-tabs {
    display: flex;
    gap: 6px;
}

.trending-tab {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-th);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.trending-tab.active {
    background: #ffffff;
    color: #ff0055;
    border-color: #ffffff;
}

.trending-grid-wrap {
    display: none;
    background: rgba(18, 19, 26, 0.6);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 12px 8px;
    box-sizing: border-box;
}

.trending-grid-wrap.active {
    display: block;
}

.trending-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden; /* Hide vertical scrollbar */
    gap: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-top: 8px; /* Room for hover scale */
    padding-bottom: 16px; /* Room for hover scale and scrollbar */
    min-height: 350px; /* Prevent CLS while loading */
}

/* Scrollbar styling */
.trending-carousel::-webkit-scrollbar {
    height: 4px;
}
.trending-carousel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
}
.trending-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* --- Row 1: Featured Carousel (Large for Hierarchy Contrast) --- */
.featured-carousel.trending-carousel {
    min-height: 400px;
}
.featured-carousel.trending-carousel .movie-card {
    width: 220px;
    flex-shrink: 0;
    margin: 0;
}

/* --- Row 2: Trending Carousel (Match Grid Size) --- */
.trending-grids-container .trending-carousel .movie-card {
    width: 184px; /* Closely matches the 6-column minmax(180px, 1fr) grid on desktop */
    flex-shrink: 0;
    margin: 0;
}

/* --- MEDIA QUERY FOR MOBILE COLUMNS --- */
@media (max-width: 600px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important;
        gap: 6px !important;
        padding: 0 4px !important;
    }
    
    .movie-card {
        border-radius: 6px !important;
    }
    
    .movie-info {
        padding: 5px 3px !important;
    }
    
    .movie-title {
        font-size: 11px !important; /* Slightly larger on mobile */
        font-weight: 700 !important;
        line-height: 1.3 !important;
        height: 2.6em !important; /* Exactly 2 lines */
    }
    
    .featured-section {
        margin-bottom: 8px !important;
    }

    .featured-carousel.trending-carousel {
        min-height: 250px !important;
        padding-bottom: 8px !important;
    }

    .featured-carousel.trending-carousel .movie-card {
        width: 126px !important; /* 2.4 Cards visible on mobile for natural swipe peek */
    }

    .trending-section {
        margin: 6px 0 14px 0 !important;
    }

    .trending-grids-container .trending-carousel .movie-card {
        width: 105px !important; /* Matches mobile grid items */
    }
    
    .rating-badge-top-left {
        font-size: 8px !important;
        padding: 2px 5px !important;
        border-bottom-right-radius: 3px !important;
    }
    
    .rating-badge-top-left .star-icon {
        font-size: 9px !important;
    }
    
    .ribbon-wrap {
        width: 35px !important;
        height: 35px !important;
    }
    
    .ribbon-text {
        top: 5px !important;
        right: -11px !important;
        width: 48px !important;
        font-size: 7px !important;
        line-height: 11px !important;
    }
    
    .meta-strip {
        font-size: 9px !important;
        padding: 3px 1px !important;
    }
    
    .sticker {
        font-size: 7px !important;
        padding: 1px 3px !important;
    }
    
    .hero-banner {
        height: 150px !important;
        border-radius: 8px !important;
    }
    
    .hero-title {
        font-size: 16px !important;
    }

    /* Trending mobile overrides - Compact & Sleek */
    .trending-header {
        padding: 8px 12px !important;
        flex-direction: column;
        gap: 6px !important;
        justify-content: center;
        margin: 4px 15px 8px 15px !important;
    }
    
    .trending-title {
        font-size: 13px !important;
        margin: 0;
        text-align: center;
    }
    
    .trending-tabs {
        gap: 5px !important;
    }
    
    .trending-tab {
        font-size: 11.5px !important;
        font-weight: 600;
        padding: 5px 12px !important;
        min-height: 32px !important;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .trending-grid-wrap {
        padding: 4px 2px !important;
    }
    
    .trending-carousel {
        gap: 8px;
        min-height: 215px; /* Mobile CLS prevention */
        padding-top: 4px !important;
        padding-bottom: 8px !important;
    }
}

/* --- HYBRID LAYOUT COMPONENTS --- */
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--primary);
}

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Slide-out Navigation Drawer (Cyber/Street Theme)
   ========================================================================== */
.nav-drawer {
    position: fixed;
    top: 0; 
    right: -320px; 
    width: 300px; 
    height: 100%;
    background: linear-gradient(180deg, #10121a 0%, #08090d 100%);
    border-left: 1px solid rgba(57, 255, 20, 0.25);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.85);
    z-index: 1000;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.nav-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #13151f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.drawer-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close:hover {
    background: #ff0055;
    border-color: #ff0055;
    color: #ffffff;
}

.drawer-content {
    padding: 18px 16px 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Search Button */
.drawer-search-wrap {
    margin-bottom: 20px;
}

.drawer-search-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.15) 0%, rgba(20, 22, 30, 0.9) 100%);
    border: 1px solid rgba(57, 255, 20, 0.4);
    color: #ffffff !important;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.drawer-search-link:hover,
.drawer-search-link:active {
    background: var(--primary);
    color: #000000 !important;
}

/* Drawer Sections */
.drawer-section {
    margin-bottom: 22px;
}

.drawer-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.drawer-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.5px;
    margin: 0;
}

.genre-nav-arrows {
    display: flex;
    gap: 4px;
}

.genre-slider-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.genre-slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* 2-Column Categories Slider */
.genre-slider-wrapper {
    position: relative;
}

.genre-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.genre-slider-track::-webkit-scrollbar {
    display: none;
}

.genre-slider-page {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
}

.drawer-grid-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 8px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.drawer-grid-item:hover,
.drawer-grid-item:active {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--primary);
    color: #ffffff;
}

/* Years 3-Column Grid */
.drawer-years-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.drawer-year-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 6px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.drawer-year-item:hover,
.drawer-year-item:active {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--primary);
    color: #ffffff;
}

.drawer-year-item.is-current {
    border-color: rgba(57, 255, 20, 0.4);
    color: var(--primary);
}

/* Eras List Cards */
.drawer-eras-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-era-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.drawer-era-card:hover,
.drawer-era-card:active {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--primary);
    color: #ffffff;
}

/* Top IMDb Button */
.drawer-imdb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.15) 0%, rgba(20, 22, 30, 0.9) 100%);
    border: 1px solid rgba(245, 197, 24, 0.4);
    color: #f5c518 !important;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.drawer-imdb-btn:hover,
.drawer-imdb-btn:active {
    background: #f5c518;
    color: #000000 !important;
}

/* Visual Categories Swipe Strip */
.visual-categories-wrapper {
    margin: 10px 0 15px 0;
    position: relative;
    padding: 0 25px; /* Space for buttons */
}

.visual-categories-bar {
    position: relative;
    overflow: hidden;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100%;
    background: rgba(0,0,0,0.8);
    border: none;
    color: var(--primary);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
    transition: 0.2s;
}

.scroll-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.scroll-left {
    left: -5px;
    border-radius: 4px 0 0 4px;
}

.scroll-right {
    right: -5px;
    border-radius: 0 4px 4px 0;
}

.visual-categories-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden; /* Hide vertical scrollbar */
    padding-bottom: 8px;
    padding-top: 4px;
    -webkit-overflow-scrolling: touch;
}

.visual-categories-track::-webkit-scrollbar {
    height: 0px;
    display: none;
}

.visual-category-card {
    position: relative;
    padding: 8px 20px;
    height: auto;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.visual-category-card.active, .visual-category-card:hover {
    border-color: var(--primary);
    background-color: rgba(0, 255, 0, 0.08); /* Assuming primary is green, soften it */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.visual-category-card .cat-name {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.visual-category-card.active .cat-name, .visual-category-card:hover .cat-name {
    color: var(--primary);
    font-weight: 600;
}

/* Featured Section */
.featured-section {
    margin-bottom: 15px;
}

/* NOS Backfire Flame Animation */
.nos-flame {
    display: inline-block;
    width: 35px;
    height: 16px;
    margin-left: 8px;
    background: linear-gradient(90deg, #fff 0%, #00f0ff 20%, #ff5e00 70%, #ff0000 100%);
    clip-path: polygon(0 30%, 70% 0, 100% 50%, 70% 100%, 0 70%);
    animation: backfire 0.08s infinite alternate;
    vertical-align: middle;
    /* Box shadow doesn't work well with clip-path, using drop-shadow on a wrapper isn't possible here without HTML change, but we'll use filter */
    filter: drop-shadow(2px 0 4px rgba(255, 94, 0, 0.8));
}

@keyframes backfire {
    0% {
        width: 25px;
        opacity: 0.9;
        transform: scaleY(0.8) translateX(-2px);
    }
    100% {
        width: 45px;
        opacity: 1;
        transform: scaleY(1.1) translateX(2px);
        filter: drop-shadow(4px 0 8px rgba(255, 0, 0, 1)) hue-rotate(-10deg);
    }
}

/* CSS Search Icon */
.css-search-icon {
    position: relative;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
}
.css-search-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 6px;
    background: #fff;
    bottom: -4px;
    right: -2px;
    transform: rotate(-45deg);
    border-radius: 2px;
}

/* ==========================================================================
   Cinema Mode Overlay & Single Movie Styles
   ========================================================================== */
body.cinema-mode-active {
    overflow: hidden !important;
}
body.cinema-mode-active::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
}
body.cinema-mode-active .player-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10000 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
}
.cinema-close-btn {
    display: none;
}
body.cinema-mode-active .cinema-close-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 10001;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.5s ease, padding 0.5s ease, background 0.2s ease;
}
.cinema-close-btn .close-text {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.5s ease, opacity 0.3s ease;
}
.cinema-close-btn.shrunk {
    padding: 8px 12px;
}
.cinema-close-btn.shrunk .close-text {
    max-width: 0;
    opacity: 0;
}
.cinema-close-btn.faded {
    opacity: 0.3;
}
.cinema-close-btn.hidden-completely {
    opacity: 0;
    pointer-events: none;
}
body.cinema-mode-active .cinema-close-btn:hover {
    background: rgba(255,0,0,0.8);
    opacity: 1;
}
.cinema-close-btn:hover .close-text {
    max-width: 150px;
    opacity: 1;
}

/* Hero Genres & Touch-friendly Badges */
.cvi-genre-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.cvi-genre-pill:hover,
.cvi-genre-pill:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.cvi-genre-pill.pill-movie {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    font-weight: 700;
}

.cvi-genre-pill.pill-series {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.4);
    color: #fb7185;
    font-weight: 700;
}

/* Hero CTA Action Buttons */
.cvi-hero-cta {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.cvi-hero-btn {
    flex: 1;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.cvi-btn-play {
    background: #00e676;
    color: #000000;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.cvi-btn-play:hover,
.cvi-btn-play:active {
    background: #00ff84;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
}

.cvi-btn-trailer {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.55) 0%, rgba(175, 10, 20, 0.40) 100%);
    border: 1px solid rgba(255, 75, 85, 0.75);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cvi-btn-trailer:hover,
.cvi-btn-trailer:active {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.75) 0%, rgba(195, 12, 25, 0.60) 100%);
    border-color: rgba(255, 100, 110, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.45);
}

.cvi-btn-trailer.disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
    box-shadow: none;
}

.cvi-toggle-story-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cvi-toggle-story-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 768px) {
    .cvi-hero-poster { flex: 0 0 100% !important; max-width: 250px; margin: 0 auto; }
    .cvi-hero-info { text-align: center; }
    .cvi-hero-info h1 { font-size: 24px !important; }
    .cvi-hero-info .detail-synopsis-box { text-align: left; }
    .cvi-hero-genres { justify-content: center; }
    .cvi-toggle-story-btn { margin: 0 auto; display: inline-flex; }
    .scroll-btn { display: none !important; }
    .visual-categories-wrapper { padding: 0 10px !important; }
}

@media (max-width: 380px) {
    .cvi-hero-cta { gap: 8px; }
    .cvi-hero-btn {
        font-size: 13.5px;
        padding: 10px 6px;
        gap: 4px;
        min-height: 44px;
    }
    .cvi-hero-btn .btn-icon {
        font-size: 15px;
    }
}

/* ==========================================================================
   Trailer Modal Popup UI
   ========================================================================== */
.cvi-trailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: cviTrailerFadeIn 0.2s ease-out forwards;
}

@keyframes cviTrailerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cvi-trailer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
    cursor: pointer;
}

.cvi-trailer-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    background: #14151b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95), 0 0 25px rgba(229, 9, 20, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cviTrailerZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cviTrailerZoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cvi-trailer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(180deg, #1f2028 0%, #16171e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
}

.cvi-trailer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.cvi-trailer-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.cvi-trailer-heading {
    color: #ff3b3b;
    font-weight: 700;
    flex-shrink: 0;
}

.cvi-trailer-movie-name {
    color: #d1d5db;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
}

.cvi-trailer-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #e50914;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 18px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.45);
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
}

.cvi-trailer-close-btn:hover,
.cvi-trailer-close-btn:focus {
    background: #ff1e27;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.7);
    border-color: #ffffff;
}

.cvi-trailer-close-btn:active {
    transform: scale(0.97);
}

.cvi-trailer-close-btn .close-icon {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.cvi-trailer-close-btn .close-label {
    font-size: 13px;
    letter-spacing: 0.5px;
}

.cvi-trailer-close-btn .close-kbd {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.9);
}

.cvi-trailer-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.cvi-trailer-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cvi-trailer-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #0d0e12;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: #888;
}

.cvi-trailer-hint strong {
    color: #ff4b4b;
}

.cvi-hint-mobile {
    display: none;
}

.cvi-hint-desktop {
    display: inline-block;
}

@media (max-width: 640px) {
    .cvi-trailer-modal {
        padding: 8px;
    }
    .cvi-trailer-close-btn .close-kbd {
        display: none;
    }
    .cvi-trailer-movie-name {
        display: none;
    }
    .cvi-trailer-header {
        padding: 8px 12px;
    }
    .cvi-trailer-close-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    .cvi-trailer-footer {
        padding: 6px 12px;
        justify-content: center;
    }
    .cvi-trailer-hint {
        font-size: 11px;
    }
    .cvi-hint-desktop {
        display: none;
    }
    .cvi-hint-mobile {
        display: inline-block;
    }
}

/* ==========================================================================
   Street Theme Modern Footer UI (Youth & Mobile First)
   ========================================================================== */
.cvi-street-footer {
    position: relative;
    background: linear-gradient(180deg, #0e0f14 0%, #07080a 100%);
    color: #9ca3af;
    padding: 45px 0 25px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
    overflow: hidden;
}

.cvi-footer-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.7;
}

.cvi-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 36px;
    margin-bottom: 35px;
}

/* Brand Column */
.cvi-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cvi-footer-brand-link {
    display: inline-block;
}

.cvi-footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.cvi-logo-box .custom-logo {
    height: 44px;
    width: auto;
    display: block;
}

.cvi-badge-neon {
    display: inline-flex;
    align-items: center;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.cvi-brand-desc p {
    color: #8b949e;
    line-height: 1.7;
    margin: 0 0 16px 0;
    font-size: 13.5px;
}

.cvi-brand-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cvi-feat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #c9d1d9;
    font-weight: 500;
}

.cvi-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
}

/* Headings */
.cvi-footer-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.cvi-heading-icon {
    font-size: 16px;
}

/* Quick Links 2-Column Grid */
.cvi-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cvi-quick-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #a0aec0;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cvi-quick-link .link-bullet {
    font-size: 12px;
    opacity: 0.8;
}

.cvi-quick-link:hover {
    background: rgba(57, 255, 20, 0.08);
    border-color: rgba(57, 255, 20, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Social Badges / Cards */
.cvi-social-intro {
    color: #8b949e;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.cvi-social-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cvi-social-card {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.cvi-social-card .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvi-social-card:hover {
    transform: translateY(-2px) scale(1.03);
    color: #ffffff;
}

/* Brand specific hover colors & glows */
.cvi-social-fb:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.45);
}

.cvi-social-tw:hover {
    background: #000000;
    border-color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.cvi-social-tt:hover {
    background: #000000;
    border-color: #fe2c55;
    box-shadow: -2px -2px 10px rgba(37, 244, 238, 0.5), 2px 2px 10px rgba(254, 44, 85, 0.5);
    color: #ffffff;
}

.cvi-social-yt:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.5);
}

.cvi-social-tg:hover {
    background: #24a1de;
    border-color: #24a1de;
    box-shadow: 0 4px 14px rgba(36, 161, 222, 0.45);
}

/* Bottom Bar */
.cvi-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: #6b7280;
    gap: 15px;
    flex-wrap: wrap;
}

.cvi-bottom-left strong {
    color: #ffffff;
}

.cvi-btn-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cvi-btn-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000000;
    box-shadow: 0 0 12px var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .cvi-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cvi-street-footer {
        padding: 30px 0 20px;
        margin-top: 30px;
    }
    .cvi-brand-header {
        justify-content: flex-start;
    }
    .cvi-social-badges {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .cvi-social-card {
        justify-content: center;
        padding: 10px 12px;
    }
    .cvi-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding-top: 18px;
    }
}


