/* ==========================================
   CIPHER STREAM - OTT Platform CSS
   Dark Cinematic Theme
   ========================================== */

:root {
    --ott-bg-primary: #0a0a0f;
    --ott-bg-secondary: #111118;
    --ott-bg-card: #161622;
    --ott-accent: #e94560;
    --ott-accent-hover: #c73652;
    --ott-accent-glow: rgba(233, 69, 96, 0.3);
    --ott-gold: #f5c518;
    --ott-text: #e8e8f0;
    --ott-text-muted: #a8abc5;
    --ott-border: rgba(255,255,255,0.07);
    --ott-glass: rgba(255,255,255,0.04);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ott-body {
    background: var(--ott-bg-primary);
    color: var(--ott-text);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Improve readability on dark backgrounds across pages */
.text-muted {
    color: rgba(220, 224, 242, 0.8) !important;
}

a.text-muted:hover,
.text-muted a:hover {
    color: rgba(240, 243, 255, 0.95) !important;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ott-bg-primary); }
::-webkit-scrollbar-thumb { background: var(--ott-accent); border-radius: 3px; }

/* ---- Navbar ---- */
.ott-navbar {
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ott-border);
    padding: 14px 0;
    z-index: 1030;
}
.ott-logo {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--ott-text) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon { color: var(--ott-accent); font-size: 1.5rem; }
.ott-navbar .nav-link {
    color: rgba(226, 229, 245, 0.82) !important;
    font-weight: 500;
    transition: var(--transition);
}
.ott-navbar .nav-link:hover { color: var(--ott-text) !important; }
.ott-user-menu { color: var(--ott-text) !important; }

/* ---- Buttons ---- */
.ott-btn-primary {
    background: linear-gradient(135deg, var(--ott-accent), #c0392b);
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 28px;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--ott-accent-glow);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ott-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--ott-accent-glow);
    background: linear-gradient(135deg, #f05070, var(--ott-accent));
}
.ott-btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--ott-text) !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 28px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}
.ott-btn-outline:hover {
    border-color: var(--ott-accent);
    background: var(--ott-accent-glow);
}

/* ---- New Home Redesign ---- */
.brand-hero {
    position: relative;
    padding: 72px 0 48px;
    background:
        radial-gradient(circle at 15% 15%, rgba(233,69,96,0.18), transparent 38%),
        radial-gradient(circle at 85% 10%, rgba(245,197,24,0.12), transparent 34%),
        linear-gradient(165deg, #090910 0%, #121220 55%, #0c0c14 100%);
    border-bottom: 1px solid var(--ott-border);
}
.brand-hero-shell {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}
.brand-hero-left {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--ott-border);
    border-radius: 20px;
    padding: 30px;
}
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(233,69,96,0.45);
    background: rgba(233,69,96,0.12);
    color: #ff8fa2;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.brand-title {
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 1.1;
    margin: 0;
    font-weight: 800;
}
.brand-chip {
    display: inline-block;
    font-size: 0.72rem;
    vertical-align: middle;
    margin-left: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 11px;
    letter-spacing: 1px;
}
.brand-tagline {
    margin: 14px 0 12px;
    color: rgba(232,232,240,0.9);
    font-size: 1.08rem;
    font-weight: 500;
}
.brand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.brand-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--ott-border);
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.82rem;
    color: var(--ott-text);
}
.brand-desc {
    color: rgba(232,232,240,0.78);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 60ch;
}
.brand-hero-right {
    display: flex;
    flex-direction: column;
}
.poster-showcase {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--ott-border);
    background: #0e0e15;
    min-height: 320px;
}
.poster-showcase img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}
.poster-showcase-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}
.poster-showcase-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
}
.poster-showcase-overlay p {
    margin: 4px 0 10px;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
}
.poster-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.poster-badges span {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.73rem;
}
.platform-highlights {
    background: #0e0e15;
    border-top: 1px solid var(--ott-border);
    border-bottom: 1px solid var(--ott-border);
}
.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.platform-card {
    background: var(--ott-bg-card);
    border: 1px solid var(--ott-border);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.platform-card:hover {
    transform: translateY(-3px);
    border-color: rgba(233,69,96,0.55);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.platform-card i {
    font-size: 1.2rem;
    color: var(--ott-accent);
}
.platform-card h3 {
    margin: 10px 0 6px;
    font-size: 0.95rem;
}
.platform-card p {
    margin: 0;
    color: rgba(232,232,240,0.78);
    font-size: 0.86rem;
    line-height: 1.5;
}
.cinematic-cta-wrap {
    background: radial-gradient(circle at 50% 0%, rgba(233,69,96,0.18), transparent 45%), #0d0d14;
    border-top: 1px solid var(--ott-border);
}
.cinematic-cta {
    border: 1px solid var(--ott-border);
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
    border-radius: 18px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    align-items: center;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.cta-main-btn, .cta-secondary-btn {
    font-size: 0.94rem;
    padding: 10px 20px;
}
.hero-info-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid var(--ott-border);
    border-radius: 20px;
    padding: 26px;
}
.hero-info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
}
.hero-info-card p {
    color: rgba(232,232,240,0.78);
    line-height: 1.7;
    margin-bottom: 14px;
}
.hero-info-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.hero-info-card li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: rgba(232,232,240,0.9);
    font-size: 0.92rem;
}
.hero-info-card li i {
    color: var(--ott-accent);
    margin-top: 2px;
}
.story-section {
    background: var(--ott-bg-primary);
}
.story-intro {
    color: rgba(232,232,240,0.8);
    line-height: 1.8;
    margin-bottom: 16px;
}
.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.story-card {
    background: var(--ott-bg-card);
    border: 1px solid var(--ott-border);
    border-radius: 12px;
    padding: 16px;
}
.story-card i {
    color: var(--ott-accent);
    font-size: 1.1rem;
}
.story-card p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: rgba(232,232,240,0.84);
    line-height: 1.55;
}
.cast-showcase {
    border-top: 1px solid var(--ott-border);
}
.cast-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.cast-line-card {
    background: var(--ott-bg-card);
    border: 1px solid var(--ott-border);
    border-radius: 12px;
    padding: 14px;
    min-height: 96px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.cast-line-card:hover {
    transform: translateY(-2px);
    border-color: rgba(233,69,96,0.5);
}
.cast-line-card h3 {
    font-size: 0.92rem;
    margin: 0 0 6px;
    color: #fff;
}
.cast-line-card p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(232,232,240,0.78);
}
.crew-section {
    background: var(--ott-bg-primary);
}
.crew-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.crew-card {
    background: var(--ott-bg-card);
    border: 1px solid var(--ott-border);
    border-radius: 14px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.crew-card:hover {
    transform: translateY(-2px);
    border-color: rgba(233,69,96,0.5);
}
.crew-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1rem;
}
.crew-list {
    display: grid;
    gap: 7px;
}
.crew-list p {
    margin: 0;
    color: rgba(232,232,240,0.82);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* ---- Hero Section ---- */
.ott-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ott-bg-primary);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?w=1600&q=80') center/cover no-repeat;
    filter: brightness(0.18) saturate(0.5);
    z-index: 0;
    transform: scale(1.05);
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,10,15,0.99) 0%,
        rgba(10,10,15,0.85) 50%,
        rgba(10,10,15,0.3) 100%
    ),
    linear-gradient(to top, rgba(10,10,15,1) 0%, transparent 60%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ott-accent-glow);
    border: 1px solid var(--ott-accent);
    color: var(--ott-accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -2px;
}
.hero-title span { color: var(--ott-accent); }
.hero-tagline {
    font-size: 1.1rem;
    color: var(--ott-text-muted);
    font-style: italic;
    margin-bottom: 24px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
}
.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ott-text-muted);
}
.hero-meta-item .rating { color: var(--ott-gold); font-weight: 700; }
.hero-desc {
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(232,232,240,0.75);
    margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Movie Poster Card ---- */
.poster-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}
.poster-card:hover { transform: perspective(1000px) rotateY(0deg) scale(1.02); }
.poster-card img { width: 100%; display: block; }
.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ott-accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
}

/* ---- Watch Now Sticky Button ---- */
.sticky-watch-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--ott-accent-glow); }
    50% { box-shadow: 0 0 0 15px rgba(233,69,96,0); }
}

/* ---- Section Styles ---- */
.ott-section {
    padding: 80px 0;
}
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ott-accent);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.section-divider {
    width: 48px;
    height: 3px;
    background: var(--ott-accent);
    border-radius: 2px;
    margin-bottom: 40px;
}

/* ---- Trailer Section ---- */
.trailer-section {
    background: var(--ott-bg-secondary);
    position: relative;
    overflow: hidden;
}
.trailer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(233,69,96,0.05) 0%, transparent 70%);
}
.trailer-wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ott-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.trailer-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Cast Cards ---- */
.cast-card {
    text-align: center;
    padding: 20px;
    background: var(--ott-bg-card);
    border: 1px solid var(--ott-border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.cast-card:hover {
    transform: translateY(-4px);
    border-color: var(--ott-accent);
    box-shadow: 0 12px 30px rgba(233,69,96,0.1);
}
.cast-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ott-accent);
    margin: 0 auto 12px;
    display: block;
}
.cast-name { font-weight: 600; font-size: 0.95rem; color: var(--ott-text); margin-bottom: 4px; }
.cast-role { font-size: 0.8rem; color: var(--ott-text-muted); }

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/9;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---- Auth Pages ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: radial-gradient(ellipse at 20% 50%, rgba(233,69,96,0.08) 0%, transparent 60%),
                var(--ott-bg-primary);
}
.auth-layout {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}
.auth-brand-panel {
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
    border: 1px solid var(--ott-border);
    border-radius: 20px;
    padding: 30px;
}
.auth-brand-points {
    display: grid;
    gap: 10px;
}
.auth-brand-points p {
    margin: 0;
    color: rgba(232,232,240,0.85);
    font-size: 0.9rem;
}
.auth-brand-points i {
    color: var(--ott-accent);
    margin-right: 8px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--ott-bg-card);
    border: 1px solid var(--ott-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.auth-layout .auth-card { max-width: 100%; }
.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.auth-subtitle { color: var(--ott-text-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* ---- Form Styles ---- */
.ott-form-group { margin-bottom: 20px; }
.ott-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ott-text-muted);
    margin-bottom: 8px;
    display: block;
}
.ott-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--ott-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--ott-text);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
.ott-input:focus {
    border-color: var(--ott-accent);
    background: rgba(233,69,96,0.05);
    box-shadow: 0 0 0 3px var(--ott-accent-glow);
}
.ott-input::placeholder { color: rgba(136,136,170,0.6); }

/* ---- Payment Card ---- */
.payment-page {
    min-height: 100vh;
    padding: 48px 0;
    background: radial-gradient(ellipse at center, rgba(233,69,96,0.06) 0%, transparent 60%),
                var(--ott-bg-primary);
}
.payment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.payment-brand-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--ott-border);
    border-radius: 20px;
    padding: 28px;
}
.payment-subtext {
    color: rgba(232,232,240,0.82);
    line-height: 1.65;
}
.payment-feature-grid {
    display: grid;
    gap: 10px;
}
.payment-feature-item {
    border: 1px solid var(--ott-border);
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: rgba(232,232,240,0.92);
}
.payment-feature-item i {
    color: var(--ott-accent);
    margin-right: 6px;
}
.payment-mini-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.payment-mini-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--ott-border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.8rem;
}
.payment-card {
    width: 100%;
    background: var(--ott-bg-card);
    border: 1px solid var(--ott-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.payment-movie-box {
    margin-bottom: 20px;
    border: 1px solid var(--ott-border);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.02);
}
.payment-movie-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.price-display {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--ott-accent);
    line-height: 1;
}
.price-info { color: var(--ott-text-muted); font-size: 0.85rem; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--ott-text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--ott-border);
}
.feature-list li:last-child { border: none; }
.feature-list li i { color: var(--ott-accent); font-size: 1rem; }
.payment-main-btn { padding: 15px; font-size: 1.03rem; }

/* ---- Watch Page ---- */
.watch-screen {
    background: linear-gradient(180deg, #07070d 0%, #0d0d15 100%);
}
.watch-page {
    min-height: 100vh;
    background: #000;
    padding: 0;
}
.watch-main-wrap {
    width: min(1280px, 96%);
    margin: 0 auto 24px;
}
.player-container {
    position: relative;
    background: #000;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--ott-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 28px 50px rgba(0,0,0,0.4);
}
.player-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    user-select: none;
}
.player-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}
.player-vignette {
    position: absolute;
    inset: 0;
    z-index: 9;
    pointer-events: none;
    background:
        radial-gradient(circle at center, transparent 58%, rgba(0,0,0,0.28) 100%),
        linear-gradient(to top, rgba(0,0,0,0.35), transparent 34%),
        linear-gradient(to bottom, rgba(0,0,0,0.28), transparent 26%);
}
.yt-brand-mask {
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 46px;
    z-index: 11;
    pointer-events: none;
    background: linear-gradient(to left, rgba(0,0,0,0.95), rgba(0,0,0,0));
}
.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}
.player-loading {
    position: absolute;
    inset: 0;
    z-index: 16;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: rgba(255,255,255,0.86);
    font-size: 0.86rem;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
}
.player-loading.visible { display: flex; }
.player-loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255,255,255,0.18);
    border-top-color: var(--ott-accent);
    border-radius: 50%;
    animation: player-spin 0.9s linear infinite;
}
@keyframes player-spin { to { transform: rotate(360deg); } }
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 1;
    transition: opacity 0.3s ease;
}
.player-controls.hidden { opacity: 0; pointer-events: none; }
.control-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    padding: 6px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.ctrl-btn:hover { opacity: 1; }
.ctrl-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.92rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 5px 9px;
}
.ctrl-btn-small span {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}
.quality-pill {
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 4px 10px;
    font-size: 0.78rem;
    min-width: 50px;
    justify-content: center;
}
.player-settings-panel {
    position: absolute;
    right: 18px;
    bottom: 86px;
    width: 260px;
    max-width: calc(100% - 24px);
    z-index: 25;
    background: rgba(14,14,20,0.96);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.player-settings-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.settings-head {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.settings-section { margin-bottom: 10px; }
.settings-section:last-child { margin-bottom: 0; }
.settings-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(232,232,240,0.72);
    margin-bottom: 6px;
}
.settings-speeds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.settings-speeds button {
    border: 1px solid rgba(255,255,255,0.17);
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 8px;
    font-size: 0.74rem;
    padding: 7px 6px;
}
.settings-speeds button.active {
    border-color: rgba(233,69,96,0.8);
    background: rgba(233,69,96,0.22);
}
.settings-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(232,232,240,0.9);
    font-size: 0.83rem;
}
.settings-hints p {
    margin: 0 0 5px;
    font-size: 0.74rem;
    color: rgba(232,232,240,0.72);
}
.settings-hints p:last-child { margin-bottom: 0; }
.settings-hints kbd {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.68rem;
}

body.theater-mode .watch-main-wrap {
    width: min(1480px, 99%);
}
body.theater-mode .player-container {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}
body.theater-mode .watch-info-redesign {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}
.progress-bar-wrap {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: var(--ott-accent);
    border-radius: 4px;
    transition: width 0.1s linear;
    pointer-events: none;
}
.time-display {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
}
.volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.volume-slider {
    width: 70px;
    height: 4px;
    accent-color: var(--ott-accent);
    cursor: pointer;
}
.play-pause-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 15;
}
.play-icon-big {
    font-size: 5rem;
    color: rgba(255,255,255,0.9);
    opacity: 0;
    transition: opacity 0.2s;
    text-shadow: 0 0 40px rgba(0,0,0,0.8);
}
.play-icon-big.show { opacity: 1; animation: fadeOut 0.8s forwards; }
@keyframes fadeOut { 0% { opacity: 1; } 70% { opacity: 0.8; } 100% { opacity: 0; } }

.watch-header {
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.watch-header-redesign {
    background: rgba(8,8,12,0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ott-border);
    gap: 12px;
    flex-wrap: wrap;
}
.watch-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.watch-brand-logo { font-size: 1.05rem; }
.watch-title-wrap h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}
.watch-title-wrap p {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(232,232,240,0.65);
}
.watch-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.watch-access-pill {
    background: rgba(34,197,94,0.14);
    border: 1px solid rgba(34,197,94,0.35);
    color: #8ef3b3;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}
.watch-back-btn {
    border-color: var(--ott-border);
    color: rgba(232,232,240,0.9);
}
.watch-info-bar {
    background: #0a0a0f;
    border-top: 1px solid var(--ott-border);
    padding: 16px 24px;
}
.watch-info-redesign {
    margin-top: 16px;
    border: 1px solid var(--ott-border);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
}
.watch-info-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}
.watch-info-grid h4 {
    margin: 0 0 4px;
    font-size: 1.08rem;
}
.watch-subline {
    color: rgba(232,232,240,0.66);
    font-size: 0.84rem;
    margin-bottom: 8px;
}
.watch-description {
    margin: 0;
    color: rgba(232,232,240,0.82);
    line-height: 1.6;
    max-width: 70ch;
    font-size: 0.92rem;
}
.watch-side-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.watch-action-btn {
    font-size: 0.84rem;
    padding: 8px 16px;
}

/* ---- Admin Panel ---- */
.admin-body {
    background: #0d0d14;
    color: var(--ott-text);
    font-family: var(--font-main);
    min-height: 100vh;
}
.admin-sidebar {
    background: #111118;
    border-right: 1px solid var(--ott-border);
    min-height: 100vh;
    width: 240px;
    position: fixed;
    left: 0;
    top: 0;
    padding: 0;
    z-index: 100;
}
.admin-sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--ott-border);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ott-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-nav { padding: 16px 12px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--ott-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}
.admin-nav a:hover, .admin-nav a.active {
    background: var(--ott-accent-glow);
    color: var(--ott-accent);
}
.admin-nav a i { font-size: 1rem; }
.admin-main {
    margin-left: 240px;
    padding: 30px;
    min-height: 100vh;
}
.admin-page-title { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.admin-page-sub { color: var(--ott-text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.stat-card {
    background: var(--ott-bg-card);
    border: 1px solid var(--ott-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--ott-accent); }
.stat-value { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.8rem; color: var(--ott-text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-icon { font-size: 2rem; opacity: 0.5; }

/* ---- Tables ---- */
.ott-table {
    background: var(--ott-bg-card);
    border: 1px solid var(--ott-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.ott-table table { width: 100%; border-collapse: collapse; }
.ott-table th {
    background: rgba(255,255,255,0.03);
    padding: 14px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ott-text-muted);
    border-bottom: 1px solid var(--ott-border);
}
.ott-table td {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--ott-border);
    color: var(--ott-text);
}
.ott-table tr:last-child td { border-bottom: none; }
.ott-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- Alerts ---- */
.ott-alert {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.9rem;
    border: 1px solid;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ott-alert-error { background: rgba(233,69,96,0.1); border-color: rgba(233,69,96,0.3); color: #ff6b6b; }
.ott-alert-success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #4ade80; }

/* ---- Dropdown ---- */
.ott-dropdown {
    background: #1e1e2e;
    border: 1px solid var(--ott-border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.ott-dropdown .dropdown-item {
    color: var(--ott-text);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.ott-dropdown .dropdown-item:hover { background: var(--ott-glass); }
.ott-dropdown .dropdown-divider { border-color: var(--ott-border); }

/* ---- Footer ---- */
.ott-footer {
    background: var(--ott-bg-secondary);
    border-top: 1px solid var(--ott-border);
    padding: 48px 0 24px;
    margin-top: 80px;
}
.footer-shell {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr;
    gap: 16px;
}
.footer-links-group h6 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.footer-links-group a {
    display: block;
    color: rgba(224, 228, 246, 0.82);
    text-decoration: none;
    font-size: 0.86rem;
    margin-bottom: 7px;
}
.footer-links-group a:hover { color: var(--ott-text); }
.footer-socials {
    display: flex;
    gap: 10px;
}
.footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--ott-border);
    color: rgba(232,232,240,0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.footer-socials a:hover {
    color: #fff;
    border-color: var(--ott-accent);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---- Animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- Access Badge ---- */
.access-active {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.access-expired {
    background: rgba(233,69,96,0.1);
    border: 1px solid rgba(233,69,96,0.3);
    color: var(--ott-accent);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cinematic-cta { grid-template-columns: 1fr; padding: 18px; }
    .cta-actions { justify-content: flex-start; }
    .auth-layout { grid-template-columns: 1fr; max-width: 520px; }
    .auth-brand-panel { padding: 20px; }
    .auth-card { max-width: 100%; }
    .footer-shell { grid-template-columns: 1fr 1fr; }
    .payment-page { padding: 24px 0; }
    .payment-layout { grid-template-columns: 1fr; }
    .payment-brand-panel, .payment-card { padding: 20px; }
    .watch-header-redesign { padding: 12px 14px; }
    .watch-main-wrap { width: 100%; margin: 0; }
    .player-container { border-radius: 0; border-left: none; border-right: none; }
    .watch-info-redesign { margin: 0; border-radius: 0; border-left: none; border-right: none; }
    .watch-info-grid { grid-template-columns: 1fr; }
    .brand-hero { padding: 28px 0 24px; }
    .brand-hero-shell { grid-template-columns: 1fr; }
    .brand-hero-left, .hero-info-card { padding: 18px; border-radius: 14px; }
    .brand-meta span { font-size: 0.78rem; }
    .story-grid { grid-template-columns: 1fr; }
    .cast-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crew-grid { grid-template-columns: 1fr; }
    .hero-title { letter-spacing: -1px; }
    .poster-card { transform: none; max-width: 300px; margin: 40px auto 0; }
    .ott-section { padding: 50px 0; }
    .auth-card { padding: 28px 20px; }
    .sticky-watch-btn { bottom: 16px; right: 16px; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; padding: 20px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .platform-grid { grid-template-columns: 1fr; }
    .footer-shell { grid-template-columns: 1fr; }
    .watch-header-left { width: 100%; }
    .watch-header-right { width: 100%; margin-left: 0; justify-content: space-between; }
    .watch-side-actions { width: 100%; }
    .watch-action-btn { width: 100%; justify-content: center; }
    .brand-title { font-size: 1.8rem; }
    .brand-chip { margin-left: 0; margin-top: 8px; display: inline-block; }
    .cast-list-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .ott-btn-primary, .ott-btn-outline { width: 100%; justify-content: center; }
}
@media (max-width: 375px) {
    .ott-navbar { padding: 10px 0; }
    .ott-logo { font-size: 1.08rem; gap: 6px; }
    .logo-icon { font-size: 1.18rem; }
    .brand-hero { padding: 18px 0 16px; }
    .brand-hero-left, .hero-info-card, .auth-brand-panel, .auth-card, .payment-brand-panel, .payment-card {
        padding: 14px;
        border-radius: 12px;
    }
    .section-title { font-size: 1.45rem; }
    .section-divider { margin-bottom: 22px; }
    .brand-tagline { font-size: 0.94rem; margin-bottom: 9px; }
    .brand-meta { gap: 6px; margin-bottom: 12px; }
    .brand-meta span { padding: 6px 8px; font-size: 0.74rem; }
    .brand-desc, .story-intro, .watch-description, .payment-subtext { font-size: 0.88rem; line-height: 1.55; }
    .hero-actions { gap: 8px; }
    .ott-btn-primary, .ott-btn-outline { padding: 11px 14px; font-size: 0.9rem; min-height: 44px; }
    .poster-showcase, .poster-showcase img { min-height: 220px; }
    .poster-showcase-overlay { padding: 12px; }
    .story-card, .platform-card, .cast-line-card, .crew-card { padding: 12px; }
    .platform-card h3, .cast-line-card h3, .crew-card h3 { font-size: 0.88rem; }
    .platform-card p, .cast-line-card p, .crew-list p { font-size: 0.8rem; }
    .cinematic-cta { padding: 14px; border-radius: 12px; }
    .cta-actions { width: 100%; }
    .cta-main-btn, .cta-secondary-btn { width: 100%; justify-content: center; min-height: 44px; }
    .sticky-watch-btn { right: 10px; bottom: 10px; left: 10px; }
    .sticky-watch-btn .ott-btn-primary { width: 100%; justify-content: center; padding: 12px 14px !important; }
    .watch-header-redesign { padding: 10px; }
    .watch-title-wrap h1 { font-size: 0.94rem; }
    .watch-title-wrap p { font-size: 0.72rem; }
    .watch-access-pill { padding: 7px 10px; font-size: 0.74rem; }
    .watch-action-btn { min-height: 42px; }
    .player-controls { padding: 10px; }
    .ctrl-btn { font-size: 1.05rem; padding: 4px; }
    .ctrl-btn-small { font-size: 0.78rem; padding: 4px 7px; }
    .quality-pill { min-width: 44px; padding: 4px 8px; font-size: 0.72rem; }
    .player-settings-panel { right: 8px; left: 8px; bottom: 78px; width: auto; }
    .time-display { min-width: 74px; font-size: 0.7rem; }
    .volume-slider { width: 56px; }
    .price-display { font-size: 2.7rem; }
    .feature-list li { font-size: 0.84rem; padding: 7px 0; }
    .footer-shell { gap: 12px; }
    .footer-links-group h6 { margin-bottom: 7px; font-size: 0.9rem; }
    .footer-links-group a { font-size: 0.82rem; margin-bottom: 5px; }
    .footer-bottom { gap: 8px !important; }
}
@media (max-width: 320px) {
    .section-title { font-size: 1.3rem; }
    .brand-title { font-size: 1.55rem; }
    .brand-chip { font-size: 0.66rem; padding: 4px 8px; }
    .brand-meta span { font-size: 0.7rem; }
    .platform-card p, .story-card p, .crew-list p, .auth-subtitle { font-size: 0.78rem; }
    .ott-btn-primary, .ott-btn-outline { font-size: 0.86rem; padding: 10px 12px; }
    .watch-access-pill { width: 100%; text-align: center; justify-content: center; }
}
