/* ==========================================================================
   CineAI: Netflix & Apple TV+ Grade Cinematic Streaming Platform Styles
   ========================================================================== */

/* 1. Design System Tokens & Color Palette */
:root {
    --cine-bg: #07070a;
    --cine-surface: #0e0f16;
    --cine-surface-card: #13141f;
    --cine-surface-hover: #1b1c2b;
    --cine-surface-glass: rgba(14, 15, 22, 0.75);
    --cine-surface-elevated: #181926;

    --cine-red: #e50914;
    --cine-red-hover: #ff1e27;
    --cine-red-glow: rgba(229, 9, 20, 0.45);
    --cine-red-gradient: linear-gradient(135deg, #ff2d55 0%, #e50914 100%);

    --cine-purple: #8b5cf6;
    --cine-purple-glow: rgba(139, 92, 246, 0.35);
    --cine-cyan: #06b6d4;
    --cine-green-match: #10b981;
    --cine-amber: #f59e0b;

    --cine-text: #ffffff;
    --cine-text-secondary: #cbd5e1;
    --cine-text-muted: #94a3b8;
    --cine-text-dim: #64748b;

    --cine-border: rgba(255, 255, 255, 0.08);
    --cine-border-hover: rgba(255, 255, 255, 0.2);
    --cine-border-glow: rgba(229, 9, 20, 0.35);

    --cine-radius-sm: 6px;
    --cine-radius-md: 10px;
    --cine-radius-lg: 14px;
    --cine-radius-pill: 50rem;

    --cine-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Global Reset & Overflow Hardening */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: clip;
    background-color: var(--cine-bg);
    color: var(--cine-text);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: #ffffff;
    word-break: break-word;
    overflow-wrap: break-word;
}

p, span, a, div {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #07070a;
}
::-webkit-scrollbar-thumb {
    background: #232433;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cine-red);
}

/* ==========================================================================
   3. Glassmorphic Navigation Bar (Fixed-Top)
   ========================================================================== */
.cine-navbar {
    background: rgba(7, 7, 10, 0.82) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--cine-border);
    transition: all 0.3s var(--cine-ease);
    padding: 0.85rem 0;
    z-index: 1040;
}

@media (max-width: 768px) {
    .cine-navbar {
        padding: 0.55rem 0 !important;
    }
}

.cine-navbar.scrolled {
    background: rgba(5, 5, 8, 0.96) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.65rem 0;
}

/* Brand Logo */
.cine-brand {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    user-select: none;
    transition: transform 0.2s var(--cine-ease);
}

.cine-brand:hover {
    color: #ffffff;
    transform: scale(1.02);
}

.cine-brand .brand-red {
    background: var(--cine-red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(229, 9, 20, 0.6);
}

.cine-brand .brand-badge {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.38);
    font-size: 0.62rem;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-left: 0.4rem;
    text-transform: uppercase;
    color: #ff6b6b;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.25);
}

@media (max-width: 576px) {
    .cine-brand {
        font-size: 1.35rem;
    }
    .cine-brand .brand-badge {
        font-size: 0.52rem;
        padding: 0.1rem 0.35rem;
        letter-spacing: 1px;
    }
}

/* Mobile Top Right Action Buttons (Search & Toggler) */
.cine-mobile-icon-btn,
.cine-mobile-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    transition: all 0.2s var(--cine-ease);
    text-decoration: none;
    box-shadow: none !important;
    outline: none !important;
}

.cine-mobile-icon-btn:hover,
.cine-mobile-icon-btn:active,
.cine-mobile-toggle:hover,
.cine-mobile-toggle:active {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Nav Links */
.cine-nav-link {
    color: var(--cine-text-muted) !important;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.2s var(--cine-ease);
    padding: 0.38rem 0.65rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .cine-nav-link {
        font-size: 0.9rem;
        padding: 0.45rem 0.85rem;
    }
}

.cine-nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
}

.cine-nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Nav Search Input */
.cine-nav-search {
    position: relative;
    width: 160px;
    transition: width 0.25s var(--cine-ease);
}

.cine-nav-search:focus-within {
    width: 220px;
}

@media (min-width: 1200px) {
    .cine-nav-search {
        width: 200px;
    }
    .cine-nav-search:focus-within {
        width: 260px;
    }
}

@media (min-width: 1400px) {
    .cine-nav-search {
        width: 240px;
    }
    .cine-nav-search:focus-within {
        width: 300px;
    }
}

.cine-nav-search input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--cine-radius-pill);
    color: #ffffff;
    padding: 0.45rem 1rem 0.45rem 2.25rem;
    font-size: 0.84rem;
    width: 100%;
    transition: all 0.25s var(--cine-ease);
}

.cine-nav-search input::placeholder {
    color: var(--cine-text-dim);
}

.cine-nav-search input:focus {
    background: rgba(12, 13, 20, 0.98);
    border-color: var(--cine-red);
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.4);
    outline: none;
    color: #ffffff;
}

.cine-nav-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cine-text-dim);
    pointer-events: none;
    font-size: 0.85rem;
}

/* Mobile Navbar Collapse Drawer (< 992px) */
@media (max-width: 991.98px) {
    .cine-navbar .navbar-collapse {
        background: rgba(11, 12, 18, 0.98);
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 18px;
        padding: 1.25rem;
        margin-top: 0.75rem;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
        max-height: 82vh;
        overflow-y: auto;
    }

    .cine-navbar .navbar-nav {
        gap: 0.35rem !important;
    }

    .cine-navbar .cine-nav-link {
        font-size: 0.98rem;
        padding: 0.7rem 1rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .cine-navbar .cine-nav-link:hover,
    .cine-navbar .cine-nav-link.active {
        background: rgba(255, 255, 255, 0.08);
    }

    .cine-nav-search {
        width: 100% !important;
    }

    .cine-mobile-user-card {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 1rem;
    }
}

/* User Menu Pill & Dropdown */
#userMenu {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: all 0.2s var(--cine-ease);
}

#userMenu:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.dropdown-menu-dark {
    background: rgba(14, 15, 22, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--cine-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.dropdown-item {
    font-size: 0.86rem;
    color: var(--cine-text-secondary);
    transition: all 0.15s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ==========================================================================
   4. Hero Billboard Banner
   ========================================================================== */
.cine-hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: center;
    margin-top: -85px;
    padding-top: 175px;
    padding-bottom: 95px;
    overflow: hidden;
    background-color: #07070a;
}

@media (max-width: 768px) {
    .cine-hero {
        margin-top: -60px;
        padding-top: 155px;
        padding-bottom: 50px;
        min-height: auto;
    }
}

.cine-hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    transform: scale(1.02);
    filter: brightness(0.92);
}

/* Kayan banner: her yapımın görseli üst üste durur, aktif olan görünür */
img.cine-hero-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    opacity: 0;
    transition: opacity 0.9s ease;
    z-index: 0;
}

img.cine-hero-backdrop.is-active {
    opacity: 1;
}

.cine-hero-slides {
    display: grid;
    position: relative;
    z-index: 5;
}

/* Tüm slaytlar aynı hücrede: banner yüksekliği en uzun slayta göre sabit kalır, geçişte zıplama olmaz */
.cine-hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.5s var(--cine-ease), visibility 0s linear 0.5s;
}

.cine-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.6s ease 0.15s, transform 0.7s var(--cine-ease) 0.15s, visibility 0s;
}

.cine-hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2.25rem;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cine-hero-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Nokta = süre çubuğu: aktif olan dolarken sonraki yapıma kalan süreyi gösterir */
.cine-hero-dot {
    position: relative;
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: width 0.3s var(--cine-ease);
}

.cine-hero-dot::before,
.cine-hero-dot-fill {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
}

.cine-hero-dot::before {
    right: 0;
    background: rgba(255, 255, 255, 0.3);
}

.cine-hero-dot-fill {
    width: 0;
    background: #ffffff;
}

.cine-hero-dot.is-active {
    width: 56px;
}

.cine-hero-dot.is-active .cine-hero-dot-fill {
    animation: cine-hero-progress 7s linear forwards;
}

@keyframes cine-hero-progress {
    from { width: 0; }
    to { width: 100%; }
}

/* Duraklat: buton, metnin/kontrollerin üzerine gelince veya klavyeyle gezinirken */
.cine-hero.is-paused .cine-hero-dot-fill,
.cine-hero:has(:focus-visible) .cine-hero-dot-fill {
    animation-play-state: paused;
}

@media (hover: hover) {
    .cine-hero:has(.cine-hero-slide.is-active:hover, .cine-hero-controls:hover) .cine-hero-dot-fill {
        animation-play-state: paused;
    }
}

.cine-hero-dot:focus-visible,
.cine-hero-nav-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.cine-hero-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(7, 7, 10, 0.5);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cine-hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .cine-hero.has-controls {
        padding-bottom: 76px;
    }
    .cine-hero-controls {
        bottom: 1.1rem;
    }
    /* Mobilde parmakla kaydırılıyor; oklara gerek yok */
    .cine-hero-prev,
    .cine-hero-next {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cine-hero-slide,
    .cine-hero-slide.is-active,
    img.cine-hero-backdrop {
        transition: none;
        transform: none;
    }
    /* Hareket azaltma açıksa otomatik geçiş yok; kullanıcı kendisi geçer */
    .cine-hero-dot.is-active .cine-hero-dot-fill {
        animation: none;
        width: 100%;
    }
    .cine-hero-pause {
        display: none;
    }
}

.cine-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: 
        radial-gradient(circle at 75% 30%, rgba(229, 9, 20, 0.14) 0%, transparent 60%),
        linear-gradient(to top, var(--cine-bg) 0%, rgba(7, 7, 10, 0.9) 25%, transparent 65%),
        linear-gradient(to right, rgba(7, 7, 10, 0.98) 0%, rgba(7, 7, 10, 0.85) 45%, transparent 85%),
        linear-gradient(to bottom, rgba(7, 7, 10, 0.75) 0%, transparent 22%);
    pointer-events: none;
}

.cine-hero-content {
    position: relative;
    z-index: 5;
    max-width: 680px;
}

.cine-top10-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(229, 9, 20, 0.16);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff6b6b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0.3rem 0.9rem;
    border-radius: var(--cine-radius-pill);
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.2);
    max-width: 100%;
    white-space: nowrap;
    line-height: 1;
}

.cine-top10-ribbon i {
    color: var(--cine-red);
}

@media (max-width: 576px) {
    .cine-top10-ribbon {
        font-size: 0.68rem;
        letter-spacing: 0.8px;
        padding: 0.28rem 0.75rem;
        margin-bottom: 0.65rem;
    }
}

.cine-hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 0.85rem;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95);
}

@media (max-width: 576px) {
    .cine-hero-title {
        font-size: clamp(1.65rem, 5.5vw, 2.2rem);
        line-height: 1.12;
        margin-bottom: 0.65rem;
    }
}

.cine-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.cine-match-badge {
    color: var(--cine-green-match);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
}

.cine-badge-age {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f1f5f9;
    padding: 0.12rem 0.5rem;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.5);
}

.cine-badge-quality {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    background: rgba(0, 0, 0, 0.5);
}

.cine-ai-tools-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f3f4f6;
    padding: 0.2rem 0.65rem;
    border-radius: var(--cine-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.cine-hero-synopsis {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.55;
    color: var(--cine-text-secondary);
    margin-bottom: 1.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

@media (max-width: 576px) {
    .cine-hero-synopsis {
        -webkit-line-clamp: 2;
        margin-bottom: 1.15rem;
    }
}

/* Hero Action Buttons */
.cine-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.btn-cine-play {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: var(--cine-radius-pill);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.7rem 2.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s var(--cine-ease);
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
}

.btn-cine-play:hover {
    background: var(--cine-red);
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.55);
}

.btn-cine-play i {
    color: var(--cine-red);
    transition: color 0.25s ease;
}

.btn-cine-play:hover i {
    color: #ffffff;
}

.btn-cine-info {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--cine-radius-pill);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem 1.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.25s var(--cine-ease);
    text-decoration: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btn-cine-info:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
}

@media (max-width: 576px) {
    .cine-hero-actions {
        width: 100%;
        gap: 0.5rem;
    }
    .cine-hero-actions .btn-cine-play,
    .cine-hero-actions .btn-cine-info {
        flex: 1 1 0;
        justify-content: center;
        text-align: center;
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .cine-hero-actions .btn-cine-play i,
    .cine-hero-actions .btn-cine-info i {
        font-size: 1.15rem !important;
    }
}

.btn-cine-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.25s var(--cine-ease);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.btn-cine-circle:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.cine-hero-right-strip {
    position: absolute;
    bottom: 95px;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    background: rgba(14, 15, 22, 0.8);
    border-left: 3px solid #94a3b8;
    padding: 0.4rem 1.25rem 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    backdrop-filter: blur(8px);
}

/* Detail Page Hero Banner */
.cine-detail-hero {
    position: relative;
    min-height: 55vh;
    background-size: cover;
    background-position: center 25%;
    margin-top: -85px;
    padding-top: 160px;
    padding-bottom: 60px;
    display: flex;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .cine-detail-hero {
        margin-top: -70px;
        padding-top: clamp(130px, 18vw, 155px);
        padding-bottom: 35px;
        min-height: auto;
    }
    .cine-detail-title {
        font-size: clamp(1.8rem, 6vw, 3rem) !important;
    }
    .cine-detail-actions {
        width: 100%;
        gap: 0.5rem;
    }
    .cine-detail-actions .btn-cine-play {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }
    .cine-detail-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
        padding: 0.55rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Universal Page Header Offset */
.cine-page-header-offset {
    padding-top: clamp(80px, 12vw, 115px) !important;
}

/* ==========================================================================
   5. Content Wrapper & Slider Sections
   ========================================================================== */
.cine-content-wrapper {
    margin-top: -35px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .cine-content-wrapper {
        margin-top: 0;
    }
}

.cine-section-row {
    margin-bottom: 2.85rem;
    position: relative;
}

.cine-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding: 0 0.25rem;
}

.cine-row-title {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cine-row-see-all {
    color: var(--cine-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cine-row-see-all:hover {
    color: var(--cine-red);
    transform: translateX(3px);
}

/* Slider Track & Wrapper */
.cine-slider-wrapper {
    position: relative;
    padding: 0;
}

.cine-slider-track {
    display: flex;
    gap: 1.15rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 0.75rem 0.25rem 1.75rem 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cine-slider-track::-webkit-scrollbar {
    display: none;
}

/* Slider Navigation Floating Arrows */
.cine-slider-arrow {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 15, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    opacity: 0;
    transition: all 0.25s var(--cine-ease);
    z-index: 40;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
}

.cine-slider-wrapper:hover .cine-slider-arrow {
    opacity: 1;
}

.cine-slider-arrow:hover {
    background: var(--cine-red);
    border-color: var(--cine-red);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.cine-slider-arrow.left {
    left: -12px;
}

.cine-slider-arrow.right {
    right: -12px;
}

@media (max-width: 768px) {
    .cine-slider-arrow {
        display: none !important;
    }
}

/* ==========================================================================
   6. Iconic Netflix Top 10 Numbered Cards (Zero Overflow Guarantee)
   ========================================================================== */
.cine-top10-card-item {
    display: flex;
    align-items: flex-end;
    flex: 0 0 260px;
    width: 260px;
    height: 330px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s var(--cine-ease);
}

.cine-top10-card-item:hover {
    transform: translateY(-4px);
}

.cine-top10-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 8rem;
    line-height: 0.75;
    font-weight: 900;
    color: #07070a;
    -webkit-text-stroke: 3.5px #4b5563;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -4px;
    transition: all 0.3s var(--cine-ease);
}

.cine-top10-card-item:hover .cine-top10-number {
    -webkit-text-stroke: 3.5px var(--cine-red);
    filter: drop-shadow(0 0 18px rgba(229, 9, 20, 0.65));
}

.cine-top10-card-item .cine-card {
    position: relative;
    z-index: 2;
    margin-left: 65px;
    flex: 0 0 195px;
    width: 195px;
    height: 295px;
}

@media (max-width: 768px) {
    .cine-top10-card-item {
        flex: 0 0 185px;
        width: 185px;
        height: 235px;
    }
    .cine-top10-number {
        font-size: 5.6rem;
        -webkit-text-stroke: 2.5px #4b5563;
        left: -3px;
    }
    .cine-top10-card-item .cine-card {
        margin-left: 40px;
        flex: 0 0 142px;
        width: 142px;
        height: 215px;
    }
}

@media (max-width: 420px) {
    .cine-top10-card-item {
        flex: 0 0 165px;
        width: 165px;
        height: 215px;
    }
    .cine-top10-number {
        font-size: 4.8rem;
        -webkit-text-stroke: 2px #4b5563;
        left: -2px;
    }
    .cine-top10-card-item .cine-card {
        margin-left: 35px;
        flex: 0 0 128px;
        width: 128px;
        height: 195px;
    }
}

/* ==========================================================================
   7. Universal Media Cards (Slider & Grid Compatible)
   ========================================================================== */
.cine-card {
    position: relative;
    border-radius: var(--cine-radius-md);
    overflow: hidden;
    background: var(--cine-surface-card);
    cursor: pointer;
    transition: transform 0.35s var(--cine-ease), box-shadow 0.35s ease, border-color 0.35s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--cine-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
}

/* 7a. Slider Context: Fixed Basis */
.cine-slider-track .cine-card {
    flex: 0 0 215px;
    width: 215px;
    height: 320px;
}

@media (min-width: 1400px) {
    .cine-slider-track .cine-card {
        flex: 0 0 230px;
        width: 230px;
        height: 345px;
    }
}

@media (max-width: 768px) {
    .cine-slider-track .cine-card {
        flex: 0 0 142px;
        width: 142px;
        height: 215px;
    }
}

@media (max-width: 420px) {
    .cine-slider-track .cine-card {
        flex: 0 0 128px;
        width: 128px;
        height: 195px;
    }
}

/* 7b. Grid Context: Fluid 100% Column Fit (Prevents Grid Overflow) */
.row .col .cine-card,
.row [class*="col-"] .cine-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
}

.cine-card:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 25;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 20px rgba(229, 9, 20, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
}

.cine-card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s var(--cine-ease);
    background: #141520;
}

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

.cine-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(7, 7, 10, 0.95) 85%, #07070a 100%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cine-card:hover .cine-card-overlay {
    opacity: 0.98;
}

/* Top Badges inside Card */
.cine-card-top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    pointer-events: none;
    gap: 4px;
}

/* Dar kartlarda rozetler harf harf alt alta kırılmasın */
.cine-card-top-badges > * {
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}

.cine-card-top-badges > .cine-badge-rating-pill {
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .cine-card-top-badges {
        top: 6px;
        left: 6px;
        right: 6px;
    }
    .cine-card-content {
        padding: 0.6rem 0.55rem;
    }
    .cine-card-title {
        font-size: 0.82rem;
    }
    .cine-card-meta {
        gap: 0.25rem;
        font-size: 0.68rem;
    }
    /* Mobilde tek araç etiketi yeter, kart nefes alsın (etiketteki d-inline-flex'i ezmek için !important) */
    .cine-card-tool-tag:nth-child(n+2) {
        display: none !important;
    }
    .cine-card-award-text,
    .cine-card-year {
        display: none;
    }
}

.cine-badge-orig-mini {
    background: var(--cine-red);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.6);
}

.cine-badge-rating-pill {
    background: rgba(7, 7, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    backdrop-filter: blur(6px);
}

/* Floating Hover Play Trigger */
.cine-card-play-hover {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cine-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    opacity: 0;
    transition: all 0.25s var(--cine-ease);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.7);
    z-index: 4;
}

.cine-card:hover .cine-card-play-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Card Content Details */
.cine-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.95rem 0.85rem;
    z-index: 3;
    pointer-events: none;
}

.cine-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.25;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.cine-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    color: var(--cine-text-muted);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cine-card-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.cine-card-tool-tag {
    font-size: 0.65rem;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

/* ==========================================================================
   8. Creator Billboard Showcase
   ========================================================================== */
.creator-billboard {
    background: radial-gradient(circle at 10% 20%, rgba(229, 9, 20, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
                #0f1018;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--cine-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.creator-glass-card {
    background: rgba(18, 19, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--cine-radius-md);
    padding: 1.35rem;
    backdrop-filter: blur(12px);
    transition: all 0.25s var(--cine-ease);
}

.creator-glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   9. World-Class Cinematic Footer (Netflix & Apple TV+ Standard)
   ========================================================================== */
.cine-footer {
    background: linear-gradient(180deg, #0b0c12 0%, #050508 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    position: relative;
    color: var(--cine-text-secondary);
    margin-top: 5rem;
    padding-top: 1rem;
}

.cine-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(229, 9, 20, 0.8) 35%, rgba(139, 92, 246, 0.8) 65%, transparent 100%);
}

.cine-footer-top {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cine-footer-body {
    padding: 3.5rem 0 2rem;
}

.cine-footer-title {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cine-footer-link {
    color: var(--cine-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s var(--cine-ease);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0;
}

.cine-footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.cine-footer-link:hover i {
    color: var(--cine-red);
}

.cine-footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cine-text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s var(--cine-ease);
}

.cine-footer-social-btn:hover {
    background: var(--cine-red);
    border-color: var(--cine-red);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(229, 9, 20, 0.5);
}

/* Newsletter Box */
.cine-newsletter-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--cine-radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(12px);
}

.cine-newsletter-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.cine-newsletter-input-group input {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: var(--cine-radius-pill);
    padding: 0.8rem 1.25rem 0.8rem 2.8rem;
    font-size: 0.88rem;
    width: 100%;
    transition: all 0.2s ease;
}

.cine-newsletter-input-group input:focus {
    border-color: var(--cine-red);
    outline: none;
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.4);
}

.cine-newsletter-input-group i {
    position: absolute;
    left: 1.1rem;
    color: var(--cine-text-dim);
    font-size: 1rem;
}

.cine-newsletter-btn {
    position: absolute;
    right: 5px;
    background: var(--cine-red-gradient);
    border: none;
    color: #ffffff;
    border-radius: var(--cine-radius-pill);
    padding: 0.55rem 1.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s var(--cine-ease);
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.cine-newsletter-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

@media (max-width: 480px) {
    .cine-newsletter-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    .cine-newsletter-input-group input {
        padding-right: 1.25rem;
    }
    .cine-newsletter-btn {
        position: static;
        width: 100%;
        padding: 0.7rem;
    }
}

.cine-footer-bottom {
    padding: 1.85rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--cine-text-muted);
    font-size: 0.84rem;
}

.cine-badge-tech {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--cine-text-secondary);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 9px;
    border-radius: 5px;
    text-transform: uppercase;
}

/* ==========================================================================
   10. Quick-Info Modal (Netflix Style)
   ========================================================================== */
.modal-content.cine-modal-content {
    background: #0e0f17;
    color: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.98);
}

.cine-modal-hero {
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center 25%;
}

.cine-modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 15, 23, 0.1) 0%, rgba(14, 15, 23, 0.65) 55%, #0e0f17 100%);
}

.cine-modal-hero-content {
    position: absolute;
    bottom: 24px;
    left: 28px;
    right: 28px;
    z-index: 2;
}

.cine-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(14, 15, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s var(--cine-ease);
}

.cine-modal-close-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.1);
}

/* ==========================================================================
   11. Episodes List Styling (Detail & Watch Views)
   ========================================================================== */
.cine-episode-item {
    background: #10111a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.cine-episode-item:hover {
    background: #141624;
    border-color: rgba(255, 255, 255, 0.16);
}

.cine-episode-thumb-wrap {
    width: 140px;
    max-width: 140px;
    height: 80px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #07070a;
}

.cine-episode-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 8px;
}

.cine-episode-thumb-wrap .episode-play-overlay {
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    opacity: 0.85;
}

.cine-episode-item:hover .episode-play-overlay {
    background: rgba(229, 9, 20, 0.4);
    opacity: 1;
}

/* ==========================================================================
   12. Utilities & Helper Classes
   ========================================================================== */
.hover-white:hover {
    color: #ffffff !important;
}

.cine-badge-rating {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    padding: 0.15rem 0.6rem;
    border-radius: var(--cine-radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
}

.cine-original-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff6b6b;
    padding: 0.25rem 0.85rem;
    border-radius: var(--cine-radius-pill);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 0.85rem;
}

.cine-original-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cine-red);
    box-shadow: 0 0 8px var(--cine-red);
}

/* ==========================================================================
   13. Mobile-First Responsiveness, Filter Chips & Mobile Bottom Navigation
   ========================================================================== */

/* Quick-Info Modal Mobile Enhancements */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    .cine-modal-hero {
        height: 220px;
    }
    .cine-modal-hero-content {
        bottom: 14px;
        left: 16px;
        right: 16px;
    }
    .cine-modal-hero-content h2 {
        font-size: 1.35rem !important;
        margin-bottom: 0.5rem !important;
    }
    .modal-body {
        padding: 1.2rem !important;
    }
}

/* Horizontal Filter Chips (Browse & Search) */
.cine-filter-chips-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    max-width: 100%;
}

.cine-filter-chips-wrap::-webkit-scrollbar {
    display: none;
}

.cine-filter-chip {
    white-space: nowrap;
    padding: 0.4rem 0.95rem;
    border-radius: var(--cine-radius-pill);
    background: #111219;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--cine-text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.cine-filter-chip:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.cine-filter-chip.active {
    background: var(--cine-red-gradient);
    color: #ffffff;
    border-color: var(--cine-red);
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

/* Mobile Bottom Navigation Bar (Streaming App Experience) */
.cine-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(8, 9, 13, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cine-text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 3px;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 8px;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: #ffffff;
}

.bottom-nav-item.active i {
    color: var(--cine-red);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 65px;
    }
}

/* ==========================================================================
   Mega Menu System (Desktop Hover & Glassmorphism)
   ========================================================================== */
.cine-navbar .nav-item.has-mega-menu {
    position: static !important;
}

.cine-navbar .container-fluid {
    position: relative;
}

.mega-nav-chevron {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    vertical-align: middle;
}

.cine-navbar .nav-item.has-mega-menu:hover .mega-nav-chevron,
.cine-navbar .nav-item.has-mega-menu.is-open .mega-nav-chevron {
    transform: rotate(180deg);
    color: var(--cine-red);
}

.cine-mega-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(1100px, 94vw);
    overflow: hidden;
    background: rgba(10, 11, 17, 0.96);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

/* Hover bridge: keeps menu open while mouse travels across gap */
.cine-mega-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

@media (min-width: 992px) {
    .cine-navbar .nav-item.has-mega-menu:hover .cine-mega-menu,
    .cine-navbar .nav-item.has-mega-menu:focus-within .cine-mega-menu,
    .cine-mega-menu.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 991.98px) {
    .cine-mega-menu {
        display: none !important;
    }
}

/* Açılır menü içeriği: solda kategoriler, sağda afiş sırası, altta araç şeridi.
   Arka plandaki bulanık görsel, üzerine gelinen afişin rengini menüye taşır. */
.mega-ambient {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    object-fit: cover;
    filter: blur(48px) saturate(160%);
    opacity: 0.28;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mega-ambient.is-swapping {
    opacity: 0;
}

.mega-body {
    position: relative;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 2rem;
    padding: 1.6rem 1.75rem 1.4rem;
}

.mega-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.6rem;
}

.mega-categories {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 1.25rem;
}

.mega-category-link {
    display: block;
    padding: 0.32rem 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.mega-category-link:hover,
.mega-category-link:focus-visible {
    color: #fff;
    transform: translateX(4px);
}

.mega-category-link.is-all {
    margin-top: auto;
    padding-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--cine-red);
}

.mega-see-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.mega-see-all:hover {
    color: #fff;
}

.mega-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.mega-poster {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    text-decoration: none;
    color: #fff;
}

.mega-poster-frame {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.mega-poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-poster:hover .mega-poster-frame,
.mega-poster:focus-visible .mega-poster-frame {
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px #fff, 0 14px 30px rgba(0, 0, 0, 0.6);
}

.mega-poster:focus-visible {
    outline: none;
}

.mega-poster-title {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-poster-meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.mega-studios {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.mega-studios-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.35rem;
}

.mega-studio {
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: color-mix(in srgb, var(--tool-color) 16%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tool-color) 45%, transparent);
    transition: background 0.15s ease;
}

.mega-studio:hover,
.mega-studio:focus-visible {
    color: #fff;
    background: color-mix(in srgb, var(--tool-color) 32%, transparent);
}

@media (max-width: 1199.98px) {
    .mega-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mega-rail .mega-poster:nth-child(5) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-ambient,
    .mega-category-link,
    .mega-poster-frame {
        transition: none;
    }
}


/* Bootstrap yalnızca 10/25/50/75 opaklık sınıflarını tanımlar; görünümlerde kullanılan
   diğer değerler tanımsız kalınca rozetler düz renk oluyor ve yazı kayboluyordu. */
.bg-opacity-15 { --bs-bg-opacity: 0.15; }
.bg-opacity-20 { --bs-bg-opacity: 0.2; }
.bg-opacity-30 { --bs-bg-opacity: 0.3; }
.bg-opacity-40 { --bs-bg-opacity: 0.4; }
.border-opacity-20 { --bs-border-opacity: 0.2; }
.border-opacity-30 { --bs-border-opacity: 0.3; }
