/* ═══════════════════════════════════════
   SERIES PAGE — Website B Color Theme
   Pure dark cinema — no green tints
   ═══════════════════════════════════════ */

/* ── Override Website A's green-tinted tokens with Website B's palette ── */

html {
    scrollbar-color: var(--accent) #0a0a0c;
}

.series-page {
    /* Background */
    --dark: #0a0a0c;
    --dark-2: #111114;
    --dark-3: #18181c;
    --dark-4: #222228;

    /* Accent gold — B's warmer shade */
    --accent: #cfaa6e;
    --accent-2: #e8c97a;
    --accent-dim: rgba(207, 170, 110, 0.18);
    --gradient-gold: linear-gradient(135deg, #cfaa6e 0%, #e8c97a 50%, #cfaa6e 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0c 0%, #111114 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(207, 170, 110, 0.07) 0%, transparent 70%);

    /* Text */
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-soft: rgba(245, 245, 247, 0.65);
    --white: #ffffff;
    --muted: #71717a;

    /* Glass */
    --glass: rgba(10, 10, 12, 0.85);
    --glass-card: rgba(255, 255, 255, 0.03);
    --glass-light: rgba(255, 255, 255, 0.05);

    /* Shadows — pure black, no green */
    --shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(207, 170, 110, 0.12);
    --shadow-lift: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(207, 170, 110, 0.08);

    /* Transitions */
    --trans: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --trans-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    background: #0a0a0c;
    color: #f5f5f7;
    min-height: 100vh;
    padding-top: 0;
}

/* Override the header/nav on series page to match B's pure dark */
.series-page #site-header {
    background: transparent;
}

.series-page #site-header.scrolled,
.series-page #site-header.solid {
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    box-shadow: 0 1px 0 rgba(207, 170, 110, 0.1), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.series-page #nav-drawer {
    background: #0a0a0c;
    border-left-color: rgba(207, 170, 110, 0.08);
}

.series-page .site-footer {
    background: #050506 !important;
}

.series-page .footer-col h4 {
    color: #cfaa6e;
}

.series-page .float-chat {
    background: #111114;
    border-color: rgba(207, 170, 110, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(207, 170, 110, 0.1);
}

.series-page ::-webkit-scrollbar-track {
    background: #0a0a0c;
}

.series-page ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cfaa6e, #e8c97a);
}

/* ─── Cinematic Hero ─── */
.series-hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    overflow: hidden;
}

.series-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Ensure better framing for series hero */
    transform: scale(1.04);
    transition: transform 14s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    will-change: transform, opacity;
}

.series-hero-bg.loaded {
    transform: scale(1.0);
}

.series-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.7) 35%, transparent 75%),
        linear-gradient(0deg, #0a0a0c 0%, rgba(10, 10, 12, 0.55) 40%, rgba(10, 10, 12, 0.2) 70%, rgba(10, 10, 12, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.series-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 780px;
    padding: 0 5%;
    animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 1:1 Mobile Cover Support */
@media (max-width: 480px) {
    .series-hero {
        height: 100vw !important;
        min-height: unset !important;
        max-height: 480px !important;
        padding-bottom: 3.5rem !important;
        /* Slightly more for buttons */
    }

    .series-hero-gradient {
        background:
            /* Stronger left shadow for readability */
            linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.3) 50%, transparent 100%),
            linear-gradient(0deg, #0a0a0c 0%, rgba(10, 10, 12, 0.9) 15%, rgba(10, 10, 12, 0.4) 45%, transparent 100%) !important;
    }

    .series-hero-title {
        text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.5) !important;
        margin-bottom: 0.5rem !important;
    }

    .series-hero-label {
        font-size: 0.62rem !important;
        letter-spacing: 0.15em !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 0.65rem 1.4rem !important;
        font-size: 0.75rem !important;
    }

    .series-hero-desc {
        margin-bottom: 1rem !important;
    }
}

.series-hero-info {
    transition: opacity 0.4s ease;
    will-change: opacity;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.series-hero-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
    display: block;
}

.series-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.08;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.series-hero-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
    max-width: 520px;
}

.series-hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    cursor: pointer;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(201, 168, 76, 0.4);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background 0.3s;
    cursor: pointer;
}

.hero-btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(201, 168, 76, 0.12);
}

/* ─── Netflix Rows Section ─── */
.series-rows {
    position: relative;
    z-index: 20;
    padding-bottom: 5rem;
}

.series-row {
    margin-bottom: 3.5rem;
    position: relative;
}

.series-row-header {
    display: flex;
    align-items: center;
    /* Changed from baseline */
    justify-content: space-between;
    /* Added for View More */
    gap: 1rem;
    padding: 0 5%;
    margin-bottom: 1.2rem;
}

.series-row-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.series-row-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f5f5f7;
    letter-spacing: -0.01em;
}

.series-row-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.series-row-more {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.8;
}

.series-row-more:hover {
    color: var(--accent-2);
    opacity: 1;
}

/* Horizontal Slider */
.series-slider-container {
    padding: 0 5%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.series-slider-container:active {
    cursor: grabbing;
}

.series-slider-container::-webkit-scrollbar {
    display: none;
}

/* ─── Navigation Chevrons (Premium Circle Style) ─── */
.series-chevron {
    position: absolute;
    top: 60%;
    /* Offset to center over items, accounting for header */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(30, 30, 35, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.series-chevron.visible {
    opacity: 1;
    pointer-events: auto;
}

.series-chevron:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--accent);
}

.chevron-left {
    left: 1.5rem;
    padding-bottom: 3px;
    padding-right: 2px;
}

.chevron-right {
    right: 1.5rem;
    padding-bottom: 3px;
    padding-left: 2px;
}

@media (max-width: 768px) {
    .series-chevron {
        display: none !important;
    }
}

.series-slider {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    /* room for hover effects */
}

/* ─── Netflix Card ─── */
.series-ncard {
    position: relative;
    flex: 0 0 300px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, z-index 0.01s;
    z-index: 1;
}

.series-ncard:hover {
    transform: scale(1.06) translateY(-6px);
    z-index: 10;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(201, 168, 76, 0.2),
        0 0 30px rgba(201, 168, 76, 0.05);
}

.series-ncard-thumb {
    position: relative;
    /* Changed from absolute inset 0 */
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.series-ncard-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.series-ncard:hover .series-ncard-thumb img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

/* Thumb placeholder */
.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2412 0%, #243118 100%);
}

.thumb-placeholder svg {
    opacity: 0.2;
}

/* Card gradient overlay */
.series-ncard-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 80%);
    z-index: 2;
}

/* Card badge */
.series-ncard-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 50px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

/* Card info (slides up on hover) */
.series-ncard-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 1rem 0.9rem;
    z-index: 5;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.series-ncard:hover .series-ncard-info {
    transform: translateY(0);
    opacity: 1;
}

.series-ncard-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
    line-height: 1.25;
}

.series-ncard-meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.1rem;
}

.series-ncard-meta::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 1.5px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* "Explore" pill on hover (positioned to avoid overlap) */
.series-ncard-thumb::after {
    content: 'Explore →';
    position: absolute;
    top: 0.7rem;
    /* Changed to top-right to avoid description overlap */
    right: 0.7rem;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 6;
}

.series-ncard:hover .series-ncard-thumb::after {
    opacity: 1;
    transform: translateY(0);
}

/* External title for mobile */
.series-ncard-external-title {
    display: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #fff;
    padding: 2px 0;
    margin-top: 0.4rem;
    width: 100%;
    text-align: center;
    line-height: 1.3;
}

/* ─── Empty state ─── */
.series-empty {
    padding: 5rem 5%;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ─── Responsive ─── */
@media (max-width: 1200px) {
    .series-ncard {
        flex: 0 0 260px;
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .series-hero {
        height: auto;
        min-height: 75vh;
        padding-bottom: 5rem;
    }

    .series-hero-content {
        padding: 0 1.25rem;
    }

    .series-rows {
        margin-top: -1.5rem;
        padding-bottom: 0 !important;
        /* Forced Repair */
    }

    .series-ncard {
        flex: 0 0 220px;
        min-width: 220px;
    }

    .series-slider-container {
        padding: 0 1.25rem;
    }

    .series-row-header {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .series-hero {
        min-height: 65vh;
        padding-bottom: 3.5rem;
    }

    .series-rows {
        margin-top: -1rem;
    }

    .series-hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .series-ncard {
        flex: 0 0 65vw;
        /* Slightly smaller cards */
        min-width: 65vw;
    }

    .series-ncard-thumb {
        border-radius: 8px;
    }

    /* Mobile specific title placement */
    .series-ncard .series-ncard-info {
        display: none !important;
    }

    .series-ncard-external-title {
        display: block;
    }
}