/* ================================================================
   ISLAMICSERIES — Ultra Premium V3
   No custom cursor. Ambient glows, marquee, progress bar, 
   numbered features, refined everything.
   ================================================================ */

:root {
    --bg-primary: #040407;
    --bg-secondary: #0d0d0f;
    --bg-card: #121214;
    --bg-card-gradient: radial-gradient(circle at 50% 0%, rgba(228,201,106,0.07), transparent 48%), linear-gradient(145deg, #17171b 0%, #09090c 100%);
    --surface-ink: #08080b;
    --surface-elevated: #121214;
    --surface-yellow: #e4c96a;
    --surface-yellow-light: #f2dc86;
    --surface-yellow-border: rgba(228,201,106,0.3);
    --surface-yellow-gradient: linear-gradient(135deg, #c9a84c, #e4c96a);
    --accent: #c9a84c;
    --accent-light: #e4c96a;
    --accent-dark: #9e8339;
    --accent-glow: rgba(201,168,76,0.3);
    --accent-subtle: rgba(201,168,76,0.06);
    --text-primary: #ece8e1;
    /* Warm streaming-style off-white for secondary copy across public pages. */
    --text-secondary: #dedcd7;
    --text-muted: #33334a;
    --glass-bg: rgba(255,255,255,0.02);
    --glass-border: rgba(255,255,255,0.055);
    --glass-hover: rgba(255,255,255,0.045);
    --font-display: 'Outfit','Inter',-apple-system,sans-serif;
    --font-body: 'Outfit','Inter',-apple-system,sans-serif;
    --ease-out: cubic-bezier(0.16,1,0.3,1);
    --ease-smooth: cubic-bezier(0.4,0,0.2,1);
    --fast: 0.2s var(--ease-smooth);
    --smooth: 0.5s var(--ease-out);
    --slow: 0.8s var(--ease-out);
    --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 9999px;
}

/* ================================================================
   VERSE JOURNEY — FULL-WIDTH, AUTOMATIC QUR'AN SHOWCASE
   ================================================================ */
.verse-journey {
    --verse-gold: #e3bd4c;
    --verse-ivory: #f2eee4;
    position: relative;
    z-index: 3;
    height: clamp(450px, 52svh, 500px);
    min-height: 0;
    background: #050608;
    isolation: isolate;
    scroll-margin-top: 5rem;
}

.verse-journey__sticky {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 42%, rgba(166, 116, 36, 0.13), transparent 32%),
        radial-gradient(circle at 82% 55%, rgba(38, 69, 91, 0.16), transparent 38%),
        linear-gradient(135deg, #080806 0%, #050608 48%, #070a0e 100%);
}

.container.verse-journey__layout {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(2.25rem, 3.5vw, 3rem);
    align-items: stretch;
    gap: clamp(0.75rem, 2vw, 2rem);
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: clamp(2.25rem, 4.5vh, 4rem) clamp(1.25rem, 4vw, 5rem);
}

.verse-journey__stage {
    position: relative;
    align-self: stretch;
    min-width: 0;
}

.verse-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem clamp(2.5rem, 8vw, 9rem);
    opacity: 0;
    visibility: hidden;
    transform: translateY(2rem) scale(0.985);
    filter: blur(7px);
    transition:
        opacity 0.7s cubic-bezier(.2,.75,.25,1),
        transform 0.8s cubic-bezier(.2,.75,.25,1),
        filter 0.65s ease,
        visibility 0s linear 0.8s;
}

.verse-panel.is-before { transform: translateY(-2rem) scale(0.985); }
.verse-panel.is-after { transform: translateY(2rem) scale(0.985); }

.verse-panel.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: 0.08s, 0.08s, 0.08s, 0s;
}

.verse-panel__watermark {
    position: absolute;
    right: clamp(0rem, 4vw, 4rem);
    top: 50%;
    z-index: -1;
    color: rgba(255, 255, 255, 0.025);
    font-family: var(--font-display);
    font-size: clamp(7rem, 11vw, 12.5rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    white-space: nowrap;
    transform: translateY(-54%);
}

.verse-panel__arabic {
    max-width: 70rem;
    margin: 0 auto;
    color: #f4f0e7;
    font-family: 'Amiri Quran', 'Traditional Arabic', 'Noto Naskh Arabic', serif;
    font-size: clamp(2.1rem, 3vw, 3.45rem);
    font-weight: 400;
    line-height: 1.75;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 3px 26px rgba(0, 0, 0, 0.55), 0 0 30px rgba(227, 189, 76, 0.06);
}

.verse-panel__arabic--long {
    font-size: clamp(1.65rem, 2.15vw, 2.45rem);
    line-height: 1.72;
}

.verse-panel blockquote {
    position: relative;
    max-width: 48rem;
    margin: clamp(0.8rem, 1.6vh, 1.15rem) auto 0;
    padding-top: 0;
    color: rgba(241, 237, 228, 0.72);
    font-size: clamp(0.82rem, 0.88vw, 0.94rem);
    font-weight: 400;
    line-height: 1.62;
    text-align: center;
    text-wrap: balance;
}

.verse-panel footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.8rem;
    margin-top: clamp(0.9rem, 1.8vh, 1.25rem);
    color: var(--verse-gold);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.verse-panel footer strong { font-weight: 700; }
.verse-panel footer > span { color: rgba(255, 255, 255, 0.62); }

.verse-panel footer small {
    flex-basis: 100%;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-align: center;
}

.verse-journey__steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.verse-journey__steps button {
    position: relative;
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.verse-journey__steps button::before {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    transform: translate(-50%, -50%);
    transition: all 0.35s ease;
}

.verse-journey__steps button span {
    position: absolute;
    inset: 3px;
    border: 1px solid transparent;
    border-radius: 50%;
    transform: scale(0.55);
    transition: all 0.35s ease;
}

.verse-journey__steps button:is(:hover, :focus-visible)::before,
.verse-journey__steps button.is-active::before {
    background: var(--verse-gold);
    box-shadow: 0 0 12px rgba(227, 189, 76, 0.75);
}

.verse-journey__steps button.is-active span {
    border-color: rgba(227, 189, 76, 0.6);
    transform: scale(1);
}

@media (max-width: 900px) {
    .verse-journey {
        height: clamp(520px, 68svh, 580px);
        min-height: 0;
    }

    .container.verse-journey__layout {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 0.35rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: clamp(1.35rem, 3svh, 2rem) 0.75rem clamp(1rem, 2.5svh, 1.5rem);
        overflow: hidden;
    }

    .verse-journey__stage {
        align-self: stretch;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        touch-action: pan-y;
    }

    .verse-panel {
        min-width: 0;
        padding: clamp(0.4rem, 1svh, 0.7rem) 0.25rem;
        overflow: hidden;
    }

    .verse-panel__watermark { display: none; }

    .verse-panel__arabic {
        width: 100%;
        max-width: 100%;
        padding-inline: 0.45rem;
        font-size: clamp(1.55rem, 6.6vw, 2.15rem);
        line-height: 1.78;
        overflow-wrap: anywhere;
    }

    .verse-panel__arabic--long {
        width: calc(100% - 0.5rem);
        max-width: 32rem;
        font-size: clamp(1.05rem, 4.6vw, 1.5rem);
        line-height: 1.7;
        white-space: normal;
        text-wrap: wrap;
    }

    .verse-panel blockquote {
        width: calc(100% - 1rem);
        max-width: 30rem;
        margin-top: clamp(0.65rem, 1.5svh, 1rem);
        padding-top: 0;
        font-size: clamp(0.7rem, 2.75vw, 0.82rem);
        line-height: 1.52;
        text-wrap: pretty;
        overflow-wrap: anywhere;
    }

    .verse-panel footer {
        margin-top: clamp(0.55rem, 1.2svh, 0.8rem);
        font-size: 0.61rem;
    }

    .verse-panel footer small { font-size: 0.52rem; }

    .verse-journey__steps {
        flex-direction: row;
        gap: 0.15rem;
        justify-self: center;
        padding-top: 0.2rem;
    }

    .verse-journey__steps button {
        width: 1.25rem;
        height: 1rem;
    }

    .verse-journey__steps button span { display: none; }

    .verse-journey__steps button.is-active::before {
        width: 0.9rem;
        height: 3px;
        border-radius: 999px;
    }

}

@media (max-height: 760px) and (min-width: 901px) {
    .verse-journey {
        height: clamp(430px, 58svh, 480px);
        min-height: 430px;
    }

    .container.verse-journey__layout {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .verse-panel blockquote { margin-top: 0.8rem; padding-top: 0; }
    .verse-panel footer { margin-top: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .verse-panel { transition-duration: 0.01ms; }
}

/* === RESET === */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{font-size:16px;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;overflow-x:hidden;scrollbar-gutter:stable}
body{font-family:var(--font-body);background:var(--bg-primary);color:var(--text-primary);line-height:1.6;overflow-x:hidden}
/* Keep muted copy readable across the dark product UI. Islamia Kids owns a
   separate palette and intentionally keeps the root muted color. */
body:not(.kids-explorer-page){--text-muted:#e8e6e1}
/* Sayfa kilidi. html'de overflow-x:hidden olduğu için overflow-y otomatik
   "auto" hesaplanıyor ve CSS kuralı gereği body'nin overflow değeri artık
   sayfaya aktarılmıyor — yani tek başına body.no-scroll kilitlemiyordu,
   overlay açıkken arka plan kayabiliyordu. Kilidi html'e de uyguluyoruz.
   overscroll-behavior, mobilde kaydırmanın alttaki sayfaya zincirlenmesini
   engeller. */
body.no-scroll{overflow:hidden;overscroll-behavior:none}
html:has(> body.no-scroll){overflow:hidden;overscroll-behavior:none}
a{text-decoration:none;color:inherit;transition:color var(--fast)}
button{cursor:pointer;border:none;background:none;font-family:inherit;color:inherit;outline:none}
img{display:block;max-width:100%;height:auto}
ul{list-style:none}
.container{max-width:1340px;margin:0 auto;padding:0 clamp(1.5rem,4vw,4rem)}
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:var(--bg-primary)}
::-webkit-scrollbar-thumb{background:var(--accent-dark);border-radius:10px}
::selection{background:var(--accent);color:var(--bg-primary)}
.text-accent{background:linear-gradient(135deg,var(--accent),var(--accent-light));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.glass-card{background:var(--glass-bg);border:1px solid var(--glass-border);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}

/* === AMBIENT GLOWS === */
.ambient-glow{position:fixed;border-radius:50%;filter:blur(120px);pointer-events:none;z-index:0;opacity:0.4}
.ambient-1{width:600px;height:600px;background:radial-gradient(circle,rgba(201,168,76,0.08),transparent 70%);top:-10%;right:-10%;animation:ambientFloat1 20s ease-in-out infinite}
.ambient-2{width:500px;height:500px;background:radial-gradient(circle,rgba(228,201,106,0.065),transparent 70%);bottom:10%;left:-8%;animation:ambientFloat2 25s ease-in-out infinite}
@keyframes ambientFloat1{0%,100%{transform:translate(0,0)}50%{transform:translate(-60px,40px)}}
@keyframes ambientFloat2{0%,100%{transform:translate(0,0)}50%{transform:translate(40px,-50px)}}

/* === FILM GRAIN === */
.film-grain{position:fixed;inset:0;z-index:9998;pointer-events:none;opacity:0.025;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");animation:grainShift 0.4s steps(5) infinite}
@keyframes grainShift{0%{transform:translate(0)}20%{transform:translate(-1px,1px)}40%{transform:translate(1px,-1px)}60%{transform:translate(-1px,-1px)}80%{transform:translate(1px,1px)}100%{transform:translate(0)}}

#particlesCanvas{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:0.35}

/* === PRELOADER === */
#preloader{position:fixed;inset:0;z-index:10000;background:var(--bg-primary);display:flex;align-items:center;justify-content:center;transition:opacity 0.7s var(--ease-out),visibility 0.7s}
#preloader.loaded{opacity:0;visibility:hidden;pointer-events:none}
.preloader-content{text-align:center}
.preloader-logo-wrap{position:relative;width:clamp(190px,34vw,240px);height:clamp(48px,8.5vw,60px);display:block;margin:0 auto 2.5rem;overflow:hidden;opacity:0;transform:translateY(20px);animation:plFade 0.8s var(--ease-out) 0.2s forwards}
.preloader-logo-img{position:absolute;top:-20%;left:-37.5%;width:160%;height:160%;max-width:none;filter:drop-shadow(0 4px 20px var(--accent-glow))}
.preloader-bar{width:180px;height:2px;background:rgba(255,255,255,0.06);border-radius:2px;margin:0 auto 1.5rem;overflow:hidden;opacity:0;animation:plFade 0.5s var(--ease-out) 0.5s forwards}
.preloader-progress{height:100%;width:0%;background:linear-gradient(90deg,var(--accent),var(--accent-light));border-radius:2px;animation:plBar 2s var(--ease-out) 0.7s forwards}
.preloader-text{font-size:0.75rem;color:var(--text-muted);letter-spacing:3px;text-transform:uppercase;opacity:0;animation:plFade 0.5s var(--ease-out) 0.7s forwards}
@keyframes plFade{to{opacity:1;transform:translateY(0)}}
@keyframes plBar{to{width:100%}}

/* === NAVBAR === */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1.2fr auto 1.2fr;
    align-items: center;
    padding: 1.2rem clamp(2rem, 5vw, 5rem);
    border-bottom: 1px solid transparent;
    transition: all var(--smooth);
}
#navbar.scrolled{padding:0.7rem clamp(2rem,5vw,5rem);background:rgba(4,4,7,0.88);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border-bottom:1px solid var(--glass-border)}
.nav-logo{position:relative;width:112px;height:34px;display:block;overflow:hidden;z-index:10;transition:all var(--fast);justify-self:start}
.nav-logo-img{position:absolute;top:-5px;left:-41px;width:176px;height:44px;max-width:none;transition:all var(--fast)}
.nav-logo:hover .nav-logo-img{transform:scale(1.04);filter:drop-shadow(0 2px 10px var(--accent-glow))}
.nav-links{display:flex;align-items:center;gap:0.3rem;justify-self:center;margin-left:-45px}
.nav-link{position:relative;padding:0.5rem 1.2rem;font-family:'Outfit',sans-serif;font-size:.78rem;line-height:1;font-weight:600;color:rgba(236, 232, 225, 0.65);letter-spacing:0.4px;transition:color var(--fast)}
.nav-link::after{content:'';position:absolute;bottom:4px;left:50%;transform:translateX(-50%) scaleX(0);width:24px;height:2px;background:var(--accent);border-radius:2px;transition:transform var(--smooth)}
.nav-link:hover,.nav-link.active{color:var(--text-primary)}
.nav-link.active::after,.nav-link:hover::after{transform:translateX(-50%) scaleX(1)}
.nav-right{display:flex;align-items:center;gap:0.6rem;justify-self:end}
.nav-icon-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:var(--text-muted);border:1px solid transparent;transition:all var(--fast)}
.nav-icon-btn:hover{color:var(--accent);background:rgba(201,168,76,0.06)}
.nav-cta{display:flex;align-items:center;gap:0.5rem;padding:0.55rem 1.4rem;border:0;font-family:var(--font-body);font-size:0.82rem;font-weight:600;letter-spacing:0.5px;color:var(--bg-primary);background:linear-gradient(135deg,var(--accent),var(--accent-light));border-radius:var(--r-full);transition:all var(--fast);position:relative;overflow:hidden;cursor:pointer}
.nav-cta[hidden]{display:none}
.nav-cta::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,var(--accent-light),var(--accent));opacity:0;transition:opacity var(--fast)}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 6px 22px var(--accent-glow)}
.nav-cta:hover::before{opacity:1}
.nav-cta span,.nav-cta svg{position:relative;z-index:1}
.nav-hamburger{display:none;flex-direction:column;gap:5px;padding:4px;z-index:10}
.nav-hamburger span{width:20px;height:1.5px;background:var(--text-primary);border-radius:2px;transition:all var(--fast)}

/* === LANGUAGE SWITCHER === */
.lang-switcher{position:relative;z-index:100}
.lang-toggle{display:flex;align-items:center;gap:6px;height:36px;padding:0 0.8rem;border-radius:var(--r-full);color:var(--text-secondary);font-size:0.82rem;font-weight:600;font-family:var(--font-body);transition:all var(--fast)}
.lang-toggle:hover{color:var(--text-primary);background:rgba(255,255,255,0.04)}
.lang-toggle svg{flex-shrink:0}
.lang-globe-icon{color:var(--text-secondary);transition:color var(--fast)}
.lang-chevron-icon{color:var(--text-secondary);transition:transform var(--fast), color var(--fast)}
.lang-toggle:hover .lang-globe-icon,
.lang-toggle:hover .lang-chevron-icon{color:var(--text-primary)}
/* Show dropdown on hover of lang-switcher container */
.lang-switcher:hover .lang-dropdown{opacity:1;visibility:visible;transform:translateY(0) scale(1);pointer-events:all}
.lang-switcher:hover .lang-chevron-icon{transform:rotate(180deg);color:var(--text-primary)}
.lang-dropdown{position:absolute;top:100%;right:0;min-width:140px;background:radial-gradient(circle at 35% 0%,rgba(228,201,106,0.16),transparent 56%),linear-gradient(145deg,rgba(15,15,18,0.98),rgba(6,6,8,0.99));border:1px solid var(--surface-yellow-border);border-radius:var(--r-md);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);padding:0.4rem;opacity:0;visibility:hidden;transform:translateY(-8px) scale(0.95);transition:all 0.25s var(--ease-out);pointer-events:none;box-shadow:0 18px 52px rgba(0,0,0,0.62),0 0 30px rgba(228,201,106,0.14),inset 0 1px 0 rgba(255,245,204,0.08);margin-top:6px}
.lang-dropdown::before{content:'';position:absolute;top:-10px;left:0;right:0;height:10px;background:transparent}
.lang-dropdown.active{opacity:1;visibility:visible;transform:translateY(0) scale(1);pointer-events:all}
.lang-option{display:flex;align-items:center;gap:0.6rem;width:100%;padding:0.55rem 0.8rem;font-size:0.82rem;font-weight:500;color:var(--text-secondary);border-radius:var(--r-sm);transition:all var(--fast);background:none;border:none;cursor:pointer;font-family:var(--font-body)}
.lang-option:hover{background:rgba(228,201,106,0.14);color:var(--text-primary)}
.lang-option.active{color:var(--bg-primary);background:var(--surface-yellow-gradient);box-shadow:0 5px 16px rgba(228,201,106,0.2),inset 0 1px 0 rgba(255,255,255,0.28)}
.lang-flag{font-size:1.1rem;line-height:1}

/* === SEARCH === */
.search-overlay{position:fixed;inset:0;z-index:9999;background:rgba(4,4,7,0.95);backdrop-filter:blur(50px);display:flex;align-items:flex-start;justify-content:center;padding-top:18vh;opacity:0;visibility:hidden;pointer-events:none;transition:all 0.35s var(--ease-out)}
.search-overlay.active{opacity:1;visibility:visible;pointer-events:all}
.search-close{position:absolute;top:2rem;right:2rem;color:var(--text-muted);padding:0.5rem;transition:all var(--fast)}
.search-close:hover{color:var(--accent);transform:rotate(90deg)}
.search-container{width:90%;max-width:580px;transform:translateY(16px);transition:transform 0.4s var(--ease-out)}
.search-overlay.active .search-container{transform:translateY(0)}
.search-box{display:flex;align-items:center;gap:1rem;padding:1rem 1.4rem;background:rgba(255,255,255,0.03);border:1px solid var(--glass-border);border-radius:var(--r-lg);margin-bottom:1.2rem}
.search-box svg{color:var(--text-muted);flex-shrink:0}
.search-input{flex:1;background:none;border:none;outline:none;color:var(--text-primary);font-family:var(--font-body);font-size:1.05rem;font-weight:400}
.search-input::placeholder{color:var(--text-muted)}
.search-kbd{font-size:0.6rem;font-weight:600;color:var(--text-muted);background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);padding:0.15rem 0.5rem;border-radius:4px;letter-spacing:1px;flex-shrink:0}
.search-results{display:flex;flex-direction:column;gap:0.4rem}
.search-result-item{display:flex;align-items:center;gap:1rem;padding:0.9rem 1.2rem;background:rgba(255,255,255,0.02);border:1px solid transparent;border-radius:var(--r-md);cursor:pointer;transition:all var(--fast)}
.search-result-item:hover{background:var(--accent-subtle);border-color:rgba(201,168,76,0.15)}
.search-result-poster{width:38px;height:56px;border-radius:6px;overflow:hidden;background:var(--bg-card);flex-shrink:0}
.search-result-poster img{width:100%;height:100%;object-fit:cover}
.search-result-info h4{font-size:0.95rem;font-weight:600;margin-bottom:0.1rem}
.search-result-info span{font-size:0.75rem;color:var(--text-muted)}
.search-no-results{text-align:center;padding:2rem;color:var(--text-muted);font-size:0.85rem}

/* === MOBILE MENU === */
.mobile-menu{position:fixed;inset:0;z-index:9999;background:rgba(4,4,7,0.97);backdrop-filter:blur(30px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.2rem;opacity:0;visibility:hidden;pointer-events:none;transition:all var(--smooth)}
.mobile-menu.active{opacity:1;visibility:visible;pointer-events:all}
.mobile-close{position:absolute;top:1.5rem;right:1.5rem;color:var(--text-secondary);padding:0.5rem;transition:all var(--fast)}
.mobile-close:hover{color:var(--accent);transform:rotate(90deg)}
.mobile-link{font-family:var(--font-display);font-size:clamp(1.6rem,4.5vw,2.4rem);font-weight:600;color:var(--text-muted);transition:all var(--fast);transform:translateY(16px);opacity:0}
.mobile-menu.active .mobile-link{transform:translateY(0);opacity:1}
.mobile-menu.active .mobile-link:nth-child(2){transition-delay:.06s}
.mobile-menu.active .mobile-link:nth-child(3){transition-delay:.1s}
.mobile-menu.active .mobile-link:nth-child(4){transition-delay:.14s}
.mobile-menu.active .mobile-link:nth-child(5){transition-delay:.18s}
.mobile-menu.active .mobile-link:nth-child(6){transition-delay:.22s}
.mobile-menu.active .mobile-link:nth-child(7){transition-delay:.26s}
.mobile-menu.active .mobile-link:nth-child(8){transition-delay:.30s}
.mobile-link:hover{color:var(--accent);transform:translateX(8px) !important}
.mobile-admin{font-family:var(--font-body);font-size:1rem;font-weight:600;color:var(--accent) !important}
.mobile-social{display:flex;align-items:center;gap:0.6rem;font-family:var(--font-body);font-size:1rem !important;color:var(--text-secondary) !important}
.mobile-social svg{flex-shrink:0}
.mobile-social:hover{color:var(--accent) !important}
/* Mobile Language Switch */
.mobile-lang-switch{display:flex;gap:0.6rem;margin:0.5rem 0;opacity:0;transform:translateY(16px);transition:all var(--fast)}
.mobile-menu.active .mobile-lang-switch{opacity:1;transform:translateY(0);transition-delay:.16s}
.mobile-lang-btn{padding:0.5rem 1.2rem;font-size:0.9rem;font-weight:600;font-family:var(--font-body);border-radius:var(--r-full);border:1px solid var(--glass-border);background:rgba(255,255,255,0.02);color:var(--text-secondary);transition:all var(--fast);cursor:pointer}
.mobile-lang-btn:hover{border-color:rgba(201,168,76,0.3);color:var(--text-primary)}
.mobile-lang-btn.active{background:var(--surface-yellow-gradient);border-color:rgba(228,201,106,0.58);color:var(--bg-primary);box-shadow:0 5px 16px rgba(228,201,106,0.18)}

/* === MOBILE BOTTOM NAVIGATION === */
.mobile-bottom-nav{display:none}

@media(max-width:760px){
    :root{--mobile-bottom-nav-height:74px}
    .mobile-bottom-nav{
        position:fixed;
        right:0;
        bottom:0;
        left:0;
        z-index:9900;
        display:block;
        height:calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom,0px));
        padding-bottom:env(safe-area-inset-bottom,0px);
        border-top:1px solid rgba(255,255,255,.075);
        background:var(--bg-primary);
        box-shadow:0 -18px 45px rgba(0,0,0,.48),0 -1px 0 rgba(228,201,106,.12);
        isolation:isolate;
        transition:opacity .3s ease,visibility .3s ease,transform .3s ease;
    }
    .mobile-menu.active + .mobile-bottom-nav{
        /* The fixed menu covers the bar. Keep its paint and geometry intact
           so closing the menu reveals complete navigation on the first frame. */
        pointer-events:none;
    }
    .mobile-bottom-nav::before{
        content:'';
        position:absolute;
        inset:0;
        width:min(100%,520px);
        margin-inline:auto;
        z-index:3;
        background:linear-gradient(90deg,rgba(0,0,0,.6),transparent 24px,transparent calc(100% - 24px),rgba(0,0,0,.6));
        pointer-events:none;
    }
    .mobile-bottom-nav__inner{
        position:relative;
        width:min(100%,520px);
        height:var(--mobile-bottom-nav-height);
        margin:0 auto;
        display:flex;
        align-items:stretch;
        padding:6px 5px 5px;
        overflow-x:auto;
        overflow-y:hidden;
        scrollbar-width:none;
        -ms-overflow-style:none;
        overscroll-behavior-x:contain;
        scroll-behavior:smooth;
        -webkit-overflow-scrolling:touch;
    }
    .mobile-bottom-nav__inner::-webkit-scrollbar{display:none}
    .mobile-bottom-nav__indicator{
        position:absolute;
        top:0;
        left:0;
        width:64px;
        height:var(--mobile-bottom-nav-height);
        z-index:0;
        pointer-events:none;
        will-change:transform;
    }
    .mobile-bottom-nav__indicator[hidden]{display:none}
    .mobile-bottom-nav__beam{
        position:absolute;
        top:0;
        left:50%;
        width:28px;
        height:3px;
        border-radius:0 0 6px 6px;
        background:linear-gradient(90deg,var(--accent-dark),var(--accent-light));
        box-shadow:0 3px 14px rgba(228,201,106,.58);
        transform:translateX(-50%);
    }
    .mobile-bottom-nav__glow{
        position:absolute;
        inset:7px 0 13px;
        border-radius:50%;
        background:radial-gradient(ellipse at 50% 24%,rgba(228,201,106,.2),rgba(228,201,106,.05) 45%,transparent 72%);
    }
    .mobile-bottom-nav__indicator.is-kids .mobile-bottom-nav__beam{
        background:linear-gradient(90deg,#ff5e5e,#ffae00,#2d9cdb,#27ae60);
        box-shadow:0 3px 14px rgba(45,156,219,.42);
    }
    .mobile-bottom-nav__indicator.is-kids .mobile-bottom-nav__glow{
        background:radial-gradient(ellipse at 50% 24%,rgba(45,156,219,.17),rgba(45,156,219,.04) 45%,transparent 72%);
    }
    .mobile-bottom-nav.has-motion-indicator .mobile-bottom-nav__link::before,
    .mobile-bottom-nav.has-motion-indicator .mobile-bottom-nav__link::after{
        opacity:0;
        transition:none;
    }
    /* first-launch "scrollable" hint: gold chevron + fade on the hidden side;
       removed (and remembered) after the user's very first swipe */
    .mobile-bottom-nav.nav-hint::after{
        content:'';
        position:absolute;
        top:0; right:0; bottom:0;
        width:64px;
        z-index:2;
        pointer-events:none;
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4c96a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 6-6 6 6 6'/%3E%3C/svg%3E") no-repeat right 13px center / 17px 17px,
            linear-gradient(90deg,transparent,var(--bg-primary) 78%);
        /* Pulse briefly, then keep a static cue until the first swipe.
           Opacity avoids repainting this fixed bar on every display frame. */
        animation:mbnChevPulse 1.5s ease-in-out 2;
    }
    .mobile-bottom-nav.nav-hint .mobile-bottom-nav__inner{animation:mbnNudge 1.15s cubic-bezier(.4,0,.2,1) 2 .7s}
    @keyframes mbnNudge{0%,100%{transform:translateX(0)}55%{transform:translateX(-11px)}}
    @keyframes mbnChevPulse{0%,100%{opacity:1}50%{opacity:.45}}
    @media(prefers-reduced-motion:reduce){
        .mobile-bottom-nav.nav-hint::after,
        .mobile-bottom-nav.nav-hint .mobile-bottom-nav__inner{animation:none}
    }
    .mobile-bottom-nav__link{
        position:relative;
        z-index:1;
        flex:0 0 24%;
        min-width:0;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:4px;
        border-radius:15px;
        color:rgba(236,232,225,.46);
        -webkit-tap-highlight-color:transparent;
        transition:color .18s ease-out,background .18s ease-out;
    }
    .mobile-bottom-nav__link::before{
        content:'';
        position:absolute;
        top:-6px;
        left:50%;
        width:28px;
        height:3px;
        border-radius:0 0 6px 6px;
        background:linear-gradient(90deg,var(--accent-dark),var(--accent-light));
        box-shadow:0 3px 14px rgba(228,201,106,.58);
        opacity:0;
        transform:translateX(-50%) scaleX(.45);
        transition:opacity .18s ease-out,transform .18s cubic-bezier(.33,.67,.67,1);
    }
    .mobile-bottom-nav__link::after{
        content:'';
        position:absolute;
        inset:5px 7px;
        z-index:-1;
        border-radius:14px;
        background:radial-gradient(circle at 50% 20%,rgba(228,201,106,.18),transparent 70%);
        opacity:0;
        transition:opacity .18s ease-out;
    }
    .mobile-bottom-nav__link:active{background:rgba(228,201,106,.06)}
    .mobile-bottom-nav__link.is-active{color:var(--surface-yellow)}
    .mobile-bottom-nav__link.is-active::before,
    .mobile-bottom-nav__link.is-active::after{opacity:1}
    .mobile-bottom-nav__link.is-active::before{transform:translateX(-50%) scaleX(1)}
    .mobile-bottom-nav__icon{
        width:23px;
        height:23px;
        flex:0 0 auto;
        background:currentColor;
        -webkit-mask-position:center;
        -webkit-mask-repeat:no-repeat;
        -webkit-mask-size:contain;
        mask-position:center;
        mask-repeat:no-repeat;
        mask-size:contain;
        transition:filter .18s ease-out;
    }
    .mobile-bottom-nav__link.is-active .mobile-bottom-nav__icon{
        filter:drop-shadow(0 3px 7px rgba(228,201,106,.38));
    }
    .mobile-bottom-nav__icon--home{
        -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10.8 9-7.3 9 7.3'/%3E%3Cpath d='M5.3 9.7V21h13.4V9.7M9.4 21v-6.7h5.2V21'/%3E%3C/svg%3E");
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10.8 9-7.3 9 7.3'/%3E%3Cpath d='M5.3 9.7V21h13.4V9.7M9.4 21v-6.7h5.2V21'/%3E%3C/svg%3E");
    }
    .mobile-bottom-nav__icon--characters{
        -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12M7 4v3.2a5 5 0 0 0 10 0V4'/%3E%3Ccircle cx='12' cy='9' r='3.2'/%3E%3Cpath d='M4.5 21c.6-4.4 3.1-6.6 7.5-6.6s6.9 2.2 7.5 6.6M8.5 15.2 12 18l3.5-2.8'/%3E%3C/svg%3E");
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12M7 4v3.2a5 5 0 0 0 10 0V4'/%3E%3Ccircle cx='12' cy='9' r='3.2'/%3E%3Cpath d='M4.5 21c.6-4.4 3.1-6.6 7.5-6.6s6.9 2.2 7.5 6.6M8.5 15.2 12 18l3.5-2.8'/%3E%3C/svg%3E");
    }
    .mobile-bottom-nav__icon--lab{
        -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='1.6' fill='black' stroke='none'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4.2'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4.2' transform='rotate(60 12 12)'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4.2' transform='rotate(120 12 12)'/%3E%3C/svg%3E");
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='1.6' fill='black' stroke='none'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4.2'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4.2' transform='rotate(60 12 12)'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4.2' transform='rotate(120 12 12)'/%3E%3C/svg%3E");
    }
    .mobile-bottom-nav__icon--kids{
        width:25px;
        height:25px;
        background:linear-gradient(135deg,#ff5e5e 5%,#ffae00 36%,#2d9cdb 66%,#27ae60 95%);
        -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.2 2.2 5.1 5.6.5-4.2 3.7 1.3 5.5-4.9-2.9L7.1 17l1.3-5.5-4.2-3.7 5.6-.5L12 2.2Zm0 4.3-.9 2.2-2.4.2 1.8 1.6-.6 2.4 2.1-1.3 2.1 1.3-.6-2.4 1.8-1.6-2.4-.2L12 6.5ZM5.2 17.1l2.2 1.1 2.1-1.3-.4 2.5 1.8 1.7-2.5.3-1.1 2.2-1.1-2.2-2.5-.3 1.8-1.7-.3-2.3Zm13.6 0-.4 2.3 1.8 1.7-2.5.3-1.1 2.2-1.1-2.2-2.5-.3 1.8-1.7-.4-2.5 2.1 1.3 2.3-1.1Z'/%3E%3C/svg%3E");
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.2 2.2 5.1 5.6.5-4.2 3.7 1.3 5.5-4.9-2.9L7.1 17l1.3-5.5-4.2-3.7 5.6-.5L12 2.2Zm0 4.3-.9 2.2-2.4.2 1.8 1.6-.6 2.4 2.1-1.3 2.1 1.3-.6-2.4 1.8-1.6-2.4-.2L12 6.5ZM5.2 17.1l2.2 1.1 2.1-1.3-.4 2.5 1.8 1.7-2.5.3-1.1 2.2-1.1-2.2-2.5-.3 1.8-1.7-.3-2.3Zm13.6 0-.4 2.3 1.8 1.7-2.5.3-1.1 2.2-1.1-2.2-2.5-.3 1.8-1.7-.4-2.5 2.1 1.3 2.3-1.1Z'/%3E%3C/svg%3E");
        filter:drop-shadow(0 2px 7px rgba(45,156,219,.2));
    }
    .mobile-bottom-nav__icon--series{
        -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.2' width='18' height='13.6' rx='2.4'/%3E%3Cpath d='M3 9.7h18'/%3E%3Cpath d='m10.3 12.1 4.2 2.4-4.2 2.4v-4.8Z' fill='black' stroke='none'/%3E%3C/svg%3E");
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.2' width='18' height='13.6' rx='2.4'/%3E%3Cpath d='M3 9.7h18'/%3E%3Cpath d='m10.3 12.1 4.2 2.4-4.2 2.4v-4.8Z' fill='black' stroke='none'/%3E%3C/svg%3E");
    }
    .mobile-bottom-nav__icon--about{
        -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M12 11.1v4.7'/%3E%3Ccircle cx='12' cy='7.9' r='.5' fill='black' stroke='none'/%3E%3C/svg%3E");
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M12 11.1v4.7'/%3E%3Ccircle cx='12' cy='7.9' r='.5' fill='black' stroke='none'/%3E%3C/svg%3E");
    }
    .mobile-bottom-nav__label{
        max-width:100%;
        min-height:20px;
        display:flex;
        align-items:center;
        justify-content:center;
        text-align:center;
        font-family:var(--font-body);
        font-size:.61rem;
        line-height:1.05;
        font-weight:650;
        letter-spacing:-.01em;
        text-wrap:balance;
    }
    .mobile-bottom-nav__link--kids .mobile-bottom-nav__label{
        color:rgba(245,243,238,.72);
        font-size:.58rem;
        font-weight:650;
        white-space:nowrap;
    }
    .mobile-bottom-nav__link--kids .kids-logo{
        margin-left:2px;
        font-size:.69rem;
        line-height:1;
        letter-spacing:-.02em;
    }
    .mobile-bottom-nav__link--kids.is-active::before{
        background:linear-gradient(90deg,#ff5e5e,#ffae00,#2d9cdb,#27ae60);
        box-shadow:0 3px 14px rgba(45,156,219,.42);
    }
    .mobile-bottom-nav__link--kids.is-active::after{
        background:radial-gradient(circle at 50% 22%,rgba(45,156,219,.13),transparent 70%);
    }
    .mobile-bottom-nav__link--kids.is-active .mobile-bottom-nav__icon--kids{
        filter:drop-shadow(0 3px 8px rgba(45,156,219,.34));
    }
    .back-to-top{bottom:calc(var(--mobile-bottom-nav-height) + 1rem + env(safe-area-inset-bottom,0px))}
}

/* === HERO === */
/* Slaytlar çapraz geçerken ikisi de yarı saydam olur. #hero'ya sabit bir afiş
   koymak o afişin her geçişte arkadan sızmasına yol açıyordu; ilk boyama için
   gereken görsel .hero-initial-backdrop ile yalnızca ilk slaytta duruyor. */
#hero{position:relative;width:100%;height:100vh;min-height:700px;overflow:hidden;z-index:2;background:var(--bg-primary)}
.hero-bootstrap-pending .hero-initial-slide .slide-content{visibility:hidden;animation:heroBootstrapFallback 0s linear .35s forwards}
@keyframes heroBootstrapFallback{to{visibility:visible}}
.hero-slider{position:relative;width:100%;height:100%}
.hero-slide{position:absolute;inset:0;z-index:0;opacity:0;visibility:hidden;transition:opacity 1.2s var(--ease-out),visibility 0s linear 1.2s}
.hero-slide.active{z-index:2;opacity:1;visibility:visible;transition:opacity 1.2s var(--ease-out),visibility 0s linear 0s}
.hero-slide.is-leaving{z-index:1;opacity:0;visibility:visible}
.slide-bg{position:absolute;inset:0;background-size:cover;background-position:center;transform:scale(1.06);transition:transform 10s linear}
.hero-slide.active .slide-bg{transform:scale(1)}
.hero-initial-backdrop{background-image:url('../hzmusab-poster.webp')}
.slide-bg-video{position:absolute;inset:0;overflow:hidden;transform:none;transition:none;background-color:var(--bg-primary);background-size:cover;background-position:center}
.slide-bg-video video{opacity:0;transition:opacity .18s ease-out}
.slide-bg-video.is-video-ready video{opacity:1}
.slide-bg-video iframe{position:absolute;top:50%;left:50%;width:120%;height:120%;transform:translate(-50%,-50%);border:none;pointer-events:none}
.slide-bg-overlay{position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 50%,var(--bg-primary) 100%),linear-gradient(100deg,var(--bg-primary) 0%,rgba(4,4,7,0.88) 30%,rgba(4,4,7,0.35) 60%,rgba(4,4,7,0.55) 100%),linear-gradient(to top,var(--bg-primary) 0%,transparent 40%),linear-gradient(to bottom,rgba(4,4,7,0.5) 0%,transparent 18%);z-index:1}
.slide-content{position:relative;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(3rem,7vw,8rem);gap:4rem;z-index:4}
.slide-text{flex:1;max-width:600px;padding-top:2rem}
.slide-category{display:inline-flex;align-items:center;gap:0.5rem;font-size:0.7rem;font-weight:700;letter-spacing:3px;color:var(--accent);margin-bottom:1.4rem;padding:0.35rem 1rem;border:1px solid rgba(201,168,76,0.2);border-radius:var(--r-full);opacity:0;transform:translateY(18px);transition:all 0.5s var(--ease-out) 0.3s}
.hero-slide.active .slide-category{opacity:1;transform:translateY(0)}
.slide-title{font-family:var(--font-display);font-size:clamp(2.6rem,5.5vw,4.8rem);font-weight:800;line-height:1.06;letter-spacing:-1px;margin-bottom:1rem;opacity:0;transform:translateY(30px);transition:all 0.7s var(--ease-out) 0.4s}
.hero-slide.active .slide-title{opacity:1;transform:translateY(0)}
.slide-meta{display:flex;align-items:center;gap:0.7rem;margin-bottom:1.5rem;opacity:0;transform:translateY(16px);transition:all 0.5s var(--ease-out) 0.5s}
.hero-slide.active .slide-meta{opacity:1;transform:translateY(0)}
.meta-item{display:flex;align-items:center;gap:0.3rem;font-size:0.85rem;font-weight:500;color:var(--text-secondary)}
.meta-item svg{width:15px;height:15px}
.meta-star{color:var(--accent);fill:var(--accent)}
.meta-divider{color:var(--text-muted);font-size:0.65rem}
.slide-description{font-size:0.95rem;line-height:1.8;color:var(--text-primary);margin-bottom:2rem;max-width:500px;opacity:0;transform:translateY(16px);transition:all 0.5s var(--ease-out) 0.6s}
.hero-slide.active .slide-description{opacity:1;transform:translateY(0)}
.slide-buttons{display:flex;align-items:center;gap:0.8rem;opacity:0;transform:translateY(16px);transition:all 0.5s var(--ease-out) 0.7s}
.hero-slide.active .slide-buttons{opacity:1;transform:translateY(0)}
.btn-watch{display:inline-flex;align-items:center;gap:0.6rem;padding:0.85rem 2rem;font-size:0.9rem;font-weight:700;color:var(--bg-primary);background:linear-gradient(135deg,var(--accent),var(--accent-light));border-radius:var(--r-md);transition:all var(--fast);position:relative;overflow:hidden}
.btn-watch::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,var(--accent-light),var(--accent));opacity:0;transition:opacity var(--fast)}
.btn-watch:hover{transform:translateY(-2px);box-shadow:0 10px 35px var(--accent-glow)}
.btn-watch:hover::after{opacity:1}
.btn-watch svg,.btn-watch span{position:relative;z-index:1}
.btn-watch svg{width:16px;height:16px;fill:var(--bg-primary)}
.btn-detail{display:inline-flex;align-items:center;gap:0.5rem;padding:0.85rem 1.6rem;font-size:0.88rem;font-weight:600;color:var(--text-primary);background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:var(--r-md);backdrop-filter:blur(10px);transition:all var(--fast)}
.btn-detail:hover{background:rgba(255,255,255,0.07);border-color:rgba(255,255,255,0.15);transform:translateY(-2px)}
.btn-detail svg{width:16px;height:16px}

/* --- Poster --- */
.slide-poster{position:relative;flex-shrink:0;width:clamp(250px,22vw,370px);opacity:0;transform:translateX(40px) scale(0.96);transition:all 0.9s var(--ease-out) 0.45s}
.hero-slide.active .slide-poster{opacity:1;transform:translateX(0) scale(1)}
@media(prefers-reduced-motion:reduce){
    .hero-slide,.slide-category,.slide-title,.slide-meta,.slide-description,.slide-buttons,.slide-poster{transition-duration:.01ms;transition-delay:0s}
}
.poster-glow{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(1.04);width:130%;height:130%;border-radius:50%;filter:blur(70px);opacity:0.55;animation:none;z-index:0;pointer-events:none}
.poster-frame{position:relative;z-index:1;border-radius:var(--r-lg);overflow:hidden;aspect-ratio:2/3;box-shadow:0 30px 80px rgba(0,0,0,0.7),0 0 0 1px rgba(255,255,255,0.05);transform:perspective(900px) rotateY(-3deg);transition:all var(--smooth);pointer-events:auto;cursor:pointer}
.slide-poster:hover .poster-frame{transform:perspective(900px) rotateY(0deg) translateY(-8px);box-shadow:0 40px 100px rgba(0,0,0,0.85),0 0 0 1px rgba(255,255,255,0.08),0 0 50px var(--accent-glow)}
.poster-frame img{width:100%;height:100%;object-fit:cover}
.poster-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;font-family:var(--font-display);font-size:1.3rem;font-weight:700;color:rgba(255,255,255,0.3);text-align:center;padding:2rem}
.poster-placeholder svg{width:44px;height:44px;opacity:0.25}

/* --- Hero Controls --- */
.hero-controls{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);display:flex;justify-content:space-between;padding:0 1.5rem;z-index:10;pointer-events:none}
.hero-arrow{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06);backdrop-filter:blur(10px);color:var(--text-primary);pointer-events:all;opacity:0;transition:all var(--fast)}
#hero:hover .hero-arrow{opacity:0.7}
.hero-arrow:hover{opacity:1 !important;background:rgba(255,255,255,0.08);border-color:rgba(201,168,76,0.3);color:var(--accent);transform:scale(1.06)}

/* Hero Progress */
.hero-progress{position:absolute;bottom:9.5rem;left:50%;transform:translateX(-50%);width:200px;height:2px;background:rgba(255,255,255,0.08);border-radius:2px;z-index:10;overflow:hidden}
.hero-progress-bar{height:100%;width:100%;background:var(--accent);border-radius:2px;transform:scaleX(0);transform-origin:left}
.hero-progress-bar.animating{animation:heroProgressAnim var(--slide-duration, 8000ms) linear forwards}
.hero-progress-bar.paused{animation-play-state:paused !important}
@keyframes heroProgressAnim{from{transform:scaleX(0)}to{transform:scaleX(1)}}

.hero-dots{position:absolute;bottom:8rem;left:50%;transform:translateX(-50%);display:flex;gap:0.5rem;z-index:10}
.hero-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,0.15);border:none;cursor:pointer;transition:all var(--smooth);padding:0}
.hero-dot.active{width:28px;border-radius:3px;background:var(--accent);box-shadow:0 0 12px var(--accent-glow)}

/* Hero Scroll */
.hero-scroll{position:absolute;bottom:2.2rem;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:0.4rem;z-index:10;opacity:0.4;animation:scrollFloat 2.5s ease-in-out infinite}
.hero-scroll-mouse{width:20px;height:32px;border:1.5px solid var(--text-muted);border-radius:10px;display:flex;justify-content:center;padding-top:6px}
.hero-scroll-wheel{width:2px;height:6px;background:var(--accent);border-radius:2px;animation:scrollWheel 1.5s ease-in-out infinite}
.hero-scroll span{font-size:0.58rem;letter-spacing:2px;text-transform:uppercase;color:var(--text-muted)}
@keyframes scrollFloat{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(5px)}}
@keyframes scrollWheel{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(8px)}}
.hero-vignette{position:absolute;inset:0;background:none;pointer-events:none;z-index:3}

/* === COLLECTION === */
#collection{position:relative;z-index:2;padding:8rem 0 5rem;background:var(--bg-primary)}
.collection-header{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;margin-bottom:3.5rem}
.collection-header-left{flex-shrink:0}
.section-tag{display:inline-block;font-size:0.68rem;font-weight:700;letter-spacing:4px;color:var(--accent);margin-bottom:0.8rem;padding:0.3rem 1.1rem;border:1px solid rgba(201,168,76,0.18);border-radius:var(--r-full)}
.section-title{font-family:var(--font-display);font-size:clamp(1.8rem,3.8vw,3rem);font-weight:700;line-height:1.15}
.collection-header-desc{font-size:0.92rem;color:var(--text-secondary);max-width:380px;line-height:1.7;text-align:right}
.films-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}

/* === CHARACTERS SECTION === */
#characters{position:relative;z-index:2;padding:5rem 0 6rem;background:var(--bg-secondary)}
.characters-header{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;margin-bottom:3.5rem}
.characters-header-left{flex-shrink:0}
.characters-header-desc{font-size:0.92rem;color:var(--text-secondary);max-width:420px;line-height:1.7;text-align:right}
.characters-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));gap:1.5rem}

/* Character Card */
.char-card{position:relative;border-radius:var(--r-lg);overflow:hidden;background:var(--bg-card-gradient);border:1px solid var(--glass-border);transition:all 0.5s var(--ease-out);cursor:default;opacity:0;transform:translateY(40px)}
.char-card.revealed{opacity:1;transform:translateY(0);transition-delay:var(--char-delay, 0s)}
.char-card:hover{border-color:rgba(201,168,76,0.15);box-shadow:0 20px 60px rgba(0,0,0,0.4),0 0 40px rgba(201,168,76,0.06);transform:translateY(-6px)}
.char-card-bg{position:absolute;inset:0;opacity:0.5;transition:opacity 0.5s}
.char-card:hover .char-card-bg{opacity:0.7}
.char-card-glow{position:absolute;inset:0;opacity:0;transition:opacity 0.5s}
.char-card:hover .char-card-glow{opacity:0.3}
.char-card-content{position:relative;z-index:1;padding:2rem 1.5rem 1.8rem;display:flex;flex-direction:column;align-items:center;text-align:center}
.char-card-avatar{width:64px;height:64px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(135deg,rgba(201,168,76,0.12),rgba(201,168,76,0.04));border:1.5px solid rgba(201,168,76,0.25);margin-bottom:1.2rem;transition:all 0.5s var(--ease-out)}
.char-card:hover .char-card-avatar{transform:scale(1.1);border-color:rgba(201,168,76,0.5);box-shadow:0 0 30px rgba(201,168,76,0.15)}
.char-card-avatar svg{width:28px;height:28px;color:var(--accent)}
.char-card-period{font-size:0.65rem;font-weight:600;letter-spacing:2px;color:var(--text-muted);margin-bottom:0.5rem}
.char-card-name{font-family:var(--font-display);font-size:1.15rem;font-weight:700;color:var(--text-primary);margin-bottom:0.3rem;line-height:1.3}
.char-card-title{font-size:0.78rem;font-weight:600;color:var(--accent);letter-spacing:0.5px;margin-bottom:0.9rem}
.char-card-desc{font-size:0.82rem;color:var(--text-secondary);line-height:1.7;margin-bottom:1.2rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.char-read-btn{display:inline-flex;align-items:center;gap:0.4rem;padding:0.55rem 1.2rem;font-size:0.78rem;font-weight:600;font-family:var(--font-body);color:var(--accent);background:rgba(201,168,76,0.06);border:1px solid rgba(201,168,76,0.18);border-radius:var(--r-full);cursor:pointer;transition:all var(--fast)}
.char-read-btn:hover{background:rgba(201,168,76,0.12);border-color:rgba(201,168,76,0.35);transform:translateY(-2px);box-shadow:0 4px 16px rgba(201,168,76,0.15)}
.char-detail-icon{width:80px;height:80px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(201,168,76,0.1);border:2px solid rgba(201,168,76,0.25)}
.char-detail-icon svg{width:36px;height:36px;color:var(--accent)}

/* === FILM CARD === */
.film-card{position:relative;border-radius:var(--r-lg);background:var(--bg-card-gradient);border:1px solid var(--glass-border);overflow:hidden;transition:all var(--smooth);cursor:pointer;--mx:50%;--my:50%;transform-style:preserve-3d;will-change:transform}
.film-card::before{content:'';position:absolute;inset:0;background:radial-gradient(450px circle at var(--mx) var(--my),rgba(201,168,76,0.06),transparent 50%);border-radius:inherit;opacity:0;transition:opacity 0.4s;z-index:1;pointer-events:none}
.film-card:hover::before{opacity:1}
.film-card:hover{border-color:rgba(201,168,76,0.22);box-shadow:0 25px 60px rgba(0,0,0,0.45),0 0 35px rgba(201,168,76,0.05)}
.card-poster{position:relative;width:100%;aspect-ratio:2/3;overflow:hidden}
.card-poster img{width:100%;height:100%;object-fit:cover;transition:transform 0.8s var(--ease-out)}
.film-card:hover .card-poster img{transform:scale(1.06)}
.card-poster-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.7rem;color:rgba(255,255,255,0.2);font-family:var(--font-display);font-size:1.1rem;font-weight:600;text-align:center;padding:1.5rem}
.card-overlay{position:absolute;inset:0;background:linear-gradient(to top,var(--bg-card) 0%,transparent 55%);z-index:1}
.card-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0.85);width:56px;height:56px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(201,168,76,0.85);color:var(--bg-primary);opacity:0;z-index:2;transition:all var(--smooth);box-shadow:0 6px 25px var(--accent-glow)}
.card-play svg{margin-left:2px}
.film-card:hover .card-play{opacity:1;transform:translate(-50%,-50%) scale(1)}
.card-badge{position:absolute;top:0.8rem;left:0.8rem;z-index:3;font-size:0.6rem;font-weight:700;letter-spacing:1.5px;padding:0.25rem 0.65rem;border-radius:var(--r-full);background:linear-gradient(135deg,var(--accent),var(--accent-light));color:var(--bg-primary)}
.card-info{position:relative;padding:1.3rem 1.4rem 1.6rem;z-index:2}
.card-category{font-size:0.65rem;font-weight:600;letter-spacing:2px;color:var(--accent);margin-bottom:0.5rem}
.card-title{font-family:var(--font-display);font-size:1.25rem;font-weight:700;margin-bottom:0.35rem;line-height:1.2}
.card-meta{display:flex;align-items:center;gap:0.5rem;font-size:0.75rem;color:var(--text-secondary);margin-bottom:0.6rem}
.card-meta-dot{width:3px;height:3px;border-radius:50%;background:var(--text-muted)}
.card-desc{font-size:0.82rem;color:var(--text-secondary);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-actions{display:flex;gap:0.5rem;margin-top:1rem}
.card-watch-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:0.4rem;padding:0.7rem;font-size:0.8rem;font-weight:600;letter-spacing:0.3px;color:var(--bg-primary);background:linear-gradient(135deg,var(--accent),var(--accent-light));border-radius:var(--r-sm);opacity:0;transform:translateY(8px);transition:all var(--smooth)}
.card-info-btn{width:38px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.03);border:1px solid var(--glass-border);border-radius:var(--r-sm);opacity:0;transform:translateY(8px);transition:all var(--smooth) 0.04s}
.card-info-btn:hover{border-color:var(--accent);color:var(--accent)}
.film-card:hover .card-watch-btn,.film-card:hover .card-info-btn{opacity:1;transform:translateY(0)}
.card-watch-btn:hover{box-shadow:0 6px 20px var(--accent-glow)}

/* === MANIFESTO / QUOTE === */
#manifesto{position:relative;z-index:2;padding:5rem 0;background:var(--bg-secondary)}
.manifesto-wrapper{display:flex;flex-direction:column;align-items:center;text-align:center;gap:1.5rem}
.manifesto-line{width:40px;height:1px;background:linear-gradient(90deg,transparent,var(--accent-dark),transparent)}
.manifesto-quote{font-family:var(--font-display);font-size:clamp(1.2rem,2.8vw,1.9rem);font-weight:500;line-height:1.7;color:var(--text-secondary);max-width:700px;position:relative}
.manifesto-quote em{color:var(--text-primary);font-style:italic}
.manifesto-mark{font-family:var(--font-display);font-size:4rem;line-height:0;vertical-align:middle;background:linear-gradient(135deg,var(--accent),var(--accent-light));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-right:0.2rem;position:relative;top:0.15em}
.manifesto-author{font-size:0.78rem;font-weight:600;letter-spacing:2px;color:var(--text-muted);text-transform:uppercase}

/* === FEATURES / BENTO === */
#features{position:relative;z-index:2;padding:5rem 0 6rem;background:var(--bg-primary)}
.bento-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:1.2rem}
.bento-card{position:relative;padding:2.5rem 2.2rem;background:var(--bg-card-gradient);border:1px solid var(--glass-border);border-radius:var(--r-lg);transition:all var(--smooth);overflow:hidden}
.bento-card::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(201,168,76,0.15),transparent);opacity:0;transition:opacity 0.5s}
.bento-card:hover::before{opacity:1}
.bento-card:hover{border-color:rgba(255,255,255,0.08);transform:translateY(-4px);box-shadow:0 20px 50px rgba(0,0,0,0.25)}
.bento-main{grid-row:span 2}
.bento-wide{grid-column:span 2}
.bento-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:var(--r-md);background:var(--accent-subtle);border:1px solid rgba(201,168,76,0.1);color:var(--accent);margin-bottom:1.5rem;transition:all var(--smooth)}
.bento-icon svg{width:22px;height:22px}
.bento-card:hover .bento-icon{background:rgba(201,168,76,0.12);border-color:rgba(201,168,76,0.2);transform:scale(1.05)}
.bento-card h3{font-family:var(--font-display);font-size:1.2rem;font-weight:700;margin-bottom:0.7rem}
.bento-card p{font-size:0.85rem;color:var(--text-secondary);line-height:1.75}
.bento-main h3{font-size:1.4rem}
.bento-main p{font-size:0.9rem}
.bento-main .bento-icon{width:52px;height:52px}
.bento-main .bento-icon svg{width:26px;height:26px}

/* === ABOUT === */
#about{position:relative;z-index:2;padding:6rem 0 7rem;background:var(--bg-secondary)}
.about-layout{display:flex;flex-direction:column;gap:4rem}
.about-text-side{max-width:680px}
.about-desc{font-size:1rem;line-height:1.85;color:var(--text-secondary);margin-top:1.3rem}
.about-desc.secondary{font-size:0.88rem;margin-top:0.8rem;color:var(--text-muted)}
.about-visual{width:100%}
.about-stat-row{display:flex;align-items:center;justify-content:center;gap:0;padding:2.5rem 0;border-top:1px solid var(--glass-border);border-bottom:1px solid var(--glass-border)}
.about-stat{display:flex;align-items:center;gap:1.2rem;flex:1;justify-content:center;padding:0.5rem 0}
.about-stat-num{font-family:var(--font-display);font-size:clamp(2rem,4vw,3rem);font-weight:800;background:linear-gradient(135deg,var(--accent),var(--accent-light));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1}
.about-stat-label{font-size:0.82rem;color:var(--text-secondary);font-weight:500;line-height:1.4}
.about-stat-divider{width:1px;height:50px;background:var(--glass-border);flex-shrink:0}

/* === PLAYER MODAL === */
.player-modal{--player-black:#020304;--player-black-raised:#050608;--player-card-black:#000;--player-card-hover:#030405;--player-line:rgba(255,255,255,0.075);position:fixed;inset:0;z-index:10001;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;pointer-events:none;transition:all var(--smooth)}
.player-modal.active{opacity:1;visibility:visible;pointer-events:all}
.player-modal {
    --player-safe-top: var(--app-safe-top, env(safe-area-inset-top, 0px));
    --player-safe-right: var(--app-safe-right, env(safe-area-inset-right, 0px));
    --player-safe-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom, 0px));
    --player-safe-left: var(--app-safe-left, env(safe-area-inset-left, 0px));
    --player-topbar-height: calc(70px + var(--player-safe-top));
}
.player-topbar { display: contents; }
.player-topbar-brand { display: none; }
.modal-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.96);backdrop-filter:blur(25px)}
.modal-content{position:relative;width:90%;max-width:1100px;z-index:1;transform:scale(0.94) translateY(16px);transition:transform var(--smooth);background:linear-gradient(180deg,var(--player-black-raised) 0%,var(--player-black) 100%);border:1px solid var(--player-line);border-radius:var(--r-lg);padding:1.5rem;box-shadow:0 30px 90px rgba(0,0,0,0.92);max-height:92vh;overflow-y:auto;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.player-modal.active .modal-content{transform:scale(1) translateY(0)}
.modal-close{position:fixed;top:20px;right:20px;z-index:3;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(16,16,18,0.88);border:1px solid rgba(255,255,255,0.14);color:var(--text-primary);box-shadow:0 8px 28px rgba(0,0,0,0.45);transition:all var(--fast)}
.modal-close:hover{background:rgba(255,255,255,0.12);color:var(--accent);transform:rotate(90deg)}
.video-wrapper{position:relative;width:100%;padding-top:56.25%;border-radius:var(--r-lg);overflow:hidden;background:#000;box-shadow:0 30px 90px rgba(0,0,0,0.5)}
.video-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:none}
.player-cover { position: absolute; inset: 0; display: grid; place-items: center; background: #0d0c09; }
.player-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.16),rgba(0,0,0,.3) 50%,rgba(0,0,0,.66)); pointer-events: none; }
.player-cover-start { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 22px; border: 0; border-radius: 18px; background: transparent; color: #e8e6e1; font: inherit; font-size: clamp(.95rem,2vw,1.1rem); font-weight: 700; text-shadow: 0 2px 12px #000; cursor: pointer; }
.player-cover-play { display: grid; place-items: center; width: clamp(64px,8vw,88px); height: clamp(64px,8vw,88px); border-radius: 50%; background: linear-gradient(135deg,var(--accent-light),var(--accent)); color: #171409; box-shadow: 0 8px 32px rgba(0,0,0,.35); transition: transform 180ms ease, box-shadow 180ms ease; }
.player-cover-play svg { width: 36%; height: 36%; }
.player-cover-start:focus-visible { outline: 2px solid #e8e6e1; outline-offset: 5px; }
@media (hover: hover) {
    .player-cover-start:hover .player-cover-play { transform: scale(1.06); box-shadow: 0 8px 36px rgba(201,168,76,.25); }
}
@media (prefers-reduced-motion: reduce) {
    .player-cover-play { transition: none; }
}
.video-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;color:var(--text-muted);font-size:0.88rem}
.video-placeholder svg{opacity:0.2}
.video-info{padding:1.5rem 0.5rem 0}
.video-info-title{font-family:var(--font-display);font-size:1.5rem;font-weight:700;margin-bottom:0.4rem}
.video-info-meta{display:flex;align-items:center;gap:0.7rem;font-size:0.82rem;color:var(--text-secondary);margin-bottom:0.6rem}
.video-info-desc{font-size:0.88rem;color:var(--text-secondary);line-height:1.7}

/* Premium streaming copy: warm off-white keeps long-form text readable
   without the harsh glare of pure white against the near-black player. */
.player-modal .video-info-meta,
.player-modal .video-info-desc {
    color: #e8e6e1;
}

/* === DETAIL DRAWER === */
.detail-drawer{position:fixed;inset:0;z-index:10002;display:flex;justify-content:flex-end;opacity:0;visibility:hidden;pointer-events:none;transition:all 0.4s var(--ease-out)}
.detail-drawer.active{opacity:1;visibility:visible;pointer-events:all}
.drawer-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.6);backdrop-filter:blur(6px)}
.drawer-content{position:relative;width:440px;max-width:90%;height:100%;background:var(--bg-secondary);border-left:1px solid var(--glass-border);overflow-y:auto;z-index:1;transform:translateX(100%);transition:transform 0.5s var(--ease-out)}
.detail-drawer.active .drawer-content{transform:translateX(0)}
.drawer-close{position:fixed;top:1.2rem;right:1.2rem;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(0,0,0,0.4);backdrop-filter:blur(10px);color:var(--text-secondary);transition:all var(--fast);z-index:2}
.drawer-close:hover{color:var(--accent)}
.drawer-poster{width:100%;aspect-ratio:16/9;overflow:hidden;position:relative}
.drawer-poster img{width:100%;height:100%;object-fit:cover}
.drawer-poster-grad{position:absolute;bottom:0;left:0;right:0;height:60%;background:linear-gradient(to top,var(--bg-secondary),transparent)}
.drawer-info{padding:0 2rem 2rem}
.drawer-category{font-size:0.68rem;font-weight:700;letter-spacing:2px;color:var(--accent);margin-bottom:0.4rem}
.drawer-title{font-family:var(--font-display);font-size:1.7rem;font-weight:800;margin-bottom:0.3rem}
.drawer-subtitle{font-size:0.88rem;color:var(--text-muted);font-style:italic;margin-bottom:1rem}
.drawer-meta{display:flex;align-items:center;gap:0.7rem;font-size:0.82rem;color:var(--text-secondary);margin-bottom:1.3rem;flex-wrap:wrap}
.drawer-desc{font-size:0.9rem;color:var(--text-secondary);line-height:1.85;margin-bottom:2rem}
.drawer-watch{width:100%;display:flex;align-items:center;justify-content:center;gap:0.6rem;padding:0.95rem;font-size:0.95rem;font-weight:700;color:var(--bg-primary);background:linear-gradient(135deg,var(--accent),var(--accent-light));border-radius:var(--r-md);transition:all var(--fast)}
.drawer-watch:hover{box-shadow:0 8px 30px var(--accent-glow);transform:translateY(-2px)}
.drawer-watch svg{width:18px;height:18px;fill:var(--bg-primary)}

/* --- Drawer Premium UI --- */
.drawer-header-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:0.3rem}
.drawer-rating-badge{display:inline-flex;align-items:center;gap:0.3rem;padding:0.3rem 0.7rem;font-size:0.82rem;font-weight:700;color:var(--accent);background:rgba(201,168,76,0.08);border:1px solid rgba(201,168,76,0.18);border-radius:var(--r-full)}
.drawer-rating-badge svg{color:var(--accent)}
.drawer-meta-row{display:flex;gap:0.4rem;margin-bottom:1.2rem;flex-wrap:wrap}
.drawer-meta-chip{display:inline-flex;align-items:center;gap:0.35rem;padding:0.35rem 0.7rem;font-size:0.75rem;font-weight:600;color:var(--text-secondary);background:rgba(255,255,255,0.025);border:1px solid var(--glass-border);border-radius:var(--r-full);letter-spacing:0.2px}
.drawer-meta-chip svg{color:var(--text-muted);flex-shrink:0}
.drawer-divider{height:1px;background:linear-gradient(90deg,transparent,var(--glass-border),rgba(201,168,76,0.1),var(--glass-border),transparent);margin:0.3rem 0 1.3rem}
.drawer-section{margin-bottom:1.6rem}
.drawer-section-title{display:flex;align-items:center;gap:0.5rem;font-family:var(--font-display);font-size:0.9rem;font-weight:700;color:var(--text-primary);margin-bottom:0.9rem;letter-spacing:0.3px}
.drawer-section-title svg{color:var(--accent);flex-shrink:0}
.drawer-synopsis{margin-bottom:0.5rem}
.drawer-synopsis-p{font-size:0.88rem;color:var(--text-secondary);line-height:1.85;margin-bottom:1rem}
.drawer-synopsis-p:last-child{margin-bottom:0}
/* Characters */
.drawer-chars-list{display:flex;flex-direction:column;gap:0.5rem}
.drawer-char-item{display:flex;align-items:center;gap:0.75rem;padding:0.7rem 0.9rem;background:rgba(255,255,255,0.02);border:1px solid var(--glass-border);border-radius:var(--r-md);transition:all var(--fast)}
.drawer-char-item:hover{background:var(--accent-subtle);border-color:rgba(201,168,76,0.18);transform:translateX(3px)}
.drawer-char-avatar{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(135deg,rgba(201,168,76,0.1),rgba(201,168,76,0.04));border:1px solid rgba(201,168,76,0.18);flex-shrink:0}
.drawer-char-avatar svg{width:18px;height:18px;color:var(--accent)}
.drawer-char-info{display:flex;flex-direction:column;gap:0.1rem;min-width:0}
.drawer-char-name{font-size:0.84rem;font-weight:600;color:var(--text-primary);line-height:1.3}
.drawer-char-role{font-size:0.7rem;font-weight:500;color:var(--accent-dark);line-height:1.3;letter-spacing:0.2px}
/* Historical Context */
.drawer-history{position:relative;padding:1.1rem 1.3rem;background:rgba(201,168,76,0.03);border:1px solid rgba(201,168,76,0.1);border-radius:var(--r-md);overflow:hidden}
.drawer-history-accent{position:absolute;top:0;left:0;bottom:0;width:3px;background:linear-gradient(to bottom,var(--accent),var(--accent-dark))}
.drawer-history p{font-size:0.85rem;color:var(--text-secondary);line-height:1.85;font-style:italic}

/* === BACK TO TOP === */
.back-to-top{position:fixed;bottom:2rem;right:2rem;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,0.04);border:1px solid var(--glass-border);backdrop-filter:blur(10px);color:var(--text-muted);z-index:100;opacity:0;visibility:hidden;transform:translateY(8px);transition:all var(--smooth)}
.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover{color:var(--accent);border-color:rgba(201,168,76,0.3);box-shadow:0 4px 18px var(--accent-glow);transform:translateY(-2px)}

/* === FOOTER === */
#footer{position:relative;z-index:2;padding:clamp(3.25rem,6vw,5rem) 0 2rem;background:radial-gradient(circle at 18% 0%,rgba(201,168,76,.045),transparent 34%),var(--bg-primary);overflow:hidden}
#footer>.container{position:relative;max-width:1280px}
.footer-glow{position:absolute;top:-2px;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent 5%,var(--accent-dark) 30%,var(--accent) 50%,var(--accent-dark) 70%,transparent 95%)}
.footer-main{display:grid;grid-template-columns:minmax(250px,1fr) minmax(400px,.9fr);align-items:start;gap:clamp(3.5rem,8vw,7.5rem);margin-bottom:clamp(2.5rem,4vw,3.5rem)}
.footer-brand{display:flex;flex-direction:column;align-items:flex-start;gap:1.2rem;max-width:390px}
/* Crop the source logo's transparent padding so its visible edge aligns with the copy. */
.footer-logo{position:relative;width:180px;aspect-ratio:1062/195;display:block;overflow:hidden;flex:none}
.footer-logo-img{position:absolute;top:-81.026%;left:-52.166%;width:188.324%;height:auto;max-width:none;opacity:1}
.footer-play{width:26px;height:26px;font-size:0.65rem}
.footer-tagline{max-width:38ch;font-size:.88rem;color:#e8e6e1;line-height:1.8;margin:0;text-wrap:pretty}
.footer-social{display:flex;align-items:center;gap:.65rem;margin-top:.15rem}
.footer-social-link{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,0.03);border:1px solid var(--glass-border);color:var(--text-muted);transition:all 0.35s var(--ease-out)}
.footer-social .footer-social-link:is(:active,:focus-visible){color:var(--accent);background:rgba(201,168,76,.08);border-color:rgba(201,168,76,.4);box-shadow:none;transform:translateY(-2px)}
.footer-social-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.footer-social-link svg{display:block;flex:none}
/* Touch browsers retain :hover after opening external apps. Only real hover
   pointers get this persistent feedback; touch uses :active above. */
@media (hover:hover) and (pointer:fine){
.footer-social .footer-social-link:hover{color:var(--accent);background:rgba(201,168,76,.08);border-color:rgba(201,168,76,.4);box-shadow:none;transform:translateY(-2px)}
/* YouTube — kırmızı parlama */
.social-youtube:hover{color:#FF0000;border-color:rgba(255,0,0,0.4);background:rgba(255,0,0,0.08);box-shadow:0 4px 20px rgba(255,0,0,0.25),0 0 40px rgba(255,0,0,0.1)}
/* Instagram — gradient parlama (pembe/mor/turuncu) */
.social-instagram:hover{color:#E1306C;border-color:rgba(225,48,108,0.4);background:linear-gradient(135deg,rgba(252,175,69,0.1),rgba(225,48,108,0.12),rgba(131,58,180,0.1));box-shadow:0 4px 20px rgba(225,48,108,0.25),0 0 40px rgba(131,58,180,0.1)}
/* E-posta — mavi parlama */
.social-email:hover{color:#4A90D9;border-color:rgba(74,144,217,0.4);background:rgba(74,144,217,0.08);box-shadow:0 4px 20px rgba(74,144,217,0.25),0 0 40px rgba(74,144,217,0.08)}
}
.footer-nav{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:clamp(2.5rem,5vw,5rem);width:min(100%,500px);justify-self:end}
.footer-links-group{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:.58rem}
.footer-links-group h4{position:relative;width:100%;padding-bottom:.75rem;font-size:.7rem;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--text-primary);margin-bottom:.15rem}
.footer-links-group h4::after{content:'';position:absolute;bottom:0;left:0;width:2rem;height:1px;background:linear-gradient(90deg,var(--accent),transparent)}
.footer-links-group a{font-size:.85rem;color:var(--text-secondary);line-height:1.55;transition:color var(--fast),transform var(--fast);display:inline-block}
.footer-links-group a:is(:hover,:focus-visible){color:var(--accent);transform:translateX(3px)}
.footer-divider{height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.09) 12%,rgba(255,255,255,.09) 88%,transparent);margin-bottom:1.5rem}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:2rem;font-size:.72rem;color:var(--text-muted)}
.footer-bottom p{margin:0}

/* === SCROLL REVEAL === */
[data-reveal]{opacity:0;transform:translateY(35px);transition:opacity 0.8s var(--ease-out),transform 0.8s var(--ease-out)}
[data-reveal].revealed{opacity:1;transform:translateY(0)}
.film-card{opacity:0;transform:translateY(40px);transition:all 0.7s var(--ease-out)}
.film-card.revealed{opacity:1;transform:translateY(0)}
.film-card:nth-child(1){transition-delay:.08s}
.film-card:nth-child(2){transition-delay:.2s}
.film-card:nth-child(3){transition-delay:.32s}

/* === RESPONSIVE === */
@media(max-width:1100px){
    .slide-content{padding:0 clamp(2rem,5vw,5rem);gap:2.5rem}
    .slide-poster{width:clamp(200px,25vw,290px)}
    .films-grid{gap:1.5rem}
    .bento-grid{grid-template-columns:1fr 1fr}
    .bento-main{grid-row:span 1}
    .bento-wide{grid-column:span 2}
    .footer-main{grid-template-columns:minmax(220px,.8fr) minmax(380px,1fr);gap:3.5rem}
    .footer-nav{gap:3rem}
}
@media(max-width:1150px){
    #navbar { display: flex; justify-content: space-between; }
    .nav-links,.nav-cta{display:none}
    .nav-icon-btn{display:none}
    .nav-hamburger{display:flex}
    .lang-switcher{display:none}
}
@media(max-width:900px){
    .slide-content{flex-direction:column;justify-content:center;text-align:center;padding:5.5rem 2rem 2rem}
    .slide-text{max-width:480px;order:2;padding-top:0}
    .slide-meta{justify-content:center}
    .slide-description{margin:0 auto 2rem}
    .slide-buttons{justify-content:center}
    .slide-poster{order:1;width:clamp(150px,33vw,210px)}
    .poster-frame{transform:perspective(900px) rotateY(0deg)}
    .collection-header{flex-direction:column;align-items:flex-start;gap:0.8rem}
    .collection-header-desc{text-align:left;max-width:none}
    .characters-header{flex-direction:column;align-items:flex-start;gap:0.8rem}
    .characters-header-desc{text-align:left;max-width:none}
    .characters-grid{grid-template-columns:1fr 1fr}
    .films-grid{grid-template-columns:1fr;max-width:380px;margin:0 auto}
    .bento-grid{grid-template-columns:1fr}
    .bento-main{grid-row:span 1}
    .bento-wide{grid-column:span 1}
    .about-stat-row{flex-direction:column;gap:1.5rem;padding:2rem 0}
    .about-stat{flex-direction:column;text-align:center;gap:0.3rem}
    .about-stat-divider{width:40px;height:1px}
    .hero-controls{display:none}
    .hero-scroll{display:none}
    .footer-main{grid-template-columns:1fr;gap:2.35rem}
    .footer-nav{width:100%;max-width:none;justify-self:stretch;gap:clamp(2rem,8vw,5rem);padding-top:2rem;border-top:1px solid rgba(255,255,255,.065)}
    .footer-brand{max-width:none}
    .footer-bottom{flex-direction:column;gap:0.4rem;text-align:center}
    .drawer-content{width:100%;max-width:100%;-webkit-overflow-scrolling:touch}
    .drawer-poster{aspect-ratio:16/10}
    .drawer-info{padding:0 1.5rem 2rem}
    .drawer-close{top:0.8rem;right:0.8rem}
    .drawer-title{font-size:1.4rem}
    .drawer-section-title{font-size:0.82rem}
    .drawer-synopsis-p{font-size:0.84rem}
    .drawer-char-item{padding:0.6rem 0.7rem}
    .drawer-char-avatar{width:32px;height:32px}
    .drawer-char-name{font-size:0.8rem}
    .drawer-char-role{font-size:0.66rem}
    .drawer-history{padding:0.9rem 1rem}
    .drawer-history p{font-size:0.82rem}
    .manifesto-quote{font-size:clamp(1rem,2.5vw,1.4rem)}
}
@media(max-width:480px){
    .slide-title{font-size:clamp(1.8rem,7vw,2.5rem)}
    .slide-poster{width:clamp(130px,38vw,170px)}
    .slide-description{font-size:0.88rem}
    .btn-watch{padding:0.75rem 1.6rem;font-size:0.85rem}
    .btn-detail{padding:0.75rem 1.2rem;font-size:0.82rem}
    .section-title{font-size:clamp(1.5rem,5.5vw,2rem)}
    .characters-grid{grid-template-columns:1fr}
    .char-card-content{padding:1.5rem 1.2rem 1.5rem}
    .char-card-name{font-size:1.05rem}
    .char-card-desc{font-size:0.78rem;-webkit-line-clamp:2}
    .modal-content{width:95%}
    .modal-close{top:12px;right:12px;width:36px;height:36px}
    .drawer-info{padding:0 1rem 1.5rem}
    .drawer-poster{aspect-ratio:16/11}
    .drawer-title{font-size:1.2rem}
    .drawer-meta-row{gap:0.3rem}
    .drawer-meta-chip{padding:0.3rem 0.55rem;font-size:0.7rem}
    .drawer-section{margin-bottom:1.2rem}
    .drawer-section-title{font-size:0.78rem;margin-bottom:0.6rem}
    .drawer-synopsis-p{font-size:0.82rem;line-height:1.75;margin-bottom:0.8rem}
    .drawer-char-item{padding:0.5rem 0.6rem;gap:0.6rem}
    .drawer-char-avatar{width:28px;height:28px}
    .drawer-char-avatar svg{width:14px;height:14px}
    .drawer-char-name{font-size:0.76rem}
    .drawer-char-role{font-size:0.62rem}
    .drawer-history{padding:0.8rem 0.9rem}
    .drawer-history p{font-size:0.78rem;line-height:1.7}
    .drawer-watch{padding:0.8rem;font-size:0.88rem}
    .drawer-rating-badge{padding:0.25rem 0.55rem;font-size:0.75rem}
    #footer>.container{padding-inline:1.25rem}
    .footer-main{gap:1.75rem;margin-bottom:2rem}
    .footer-brand{display:flex;flex-direction:column;align-items:center;text-align:center}
    .footer-logo{margin-inline:auto}
    .footer-tagline{max-width:35ch;margin:0}
    .footer-social{justify-content:center}
    .footer-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 1rem;padding:1.35rem;border:1px solid rgba(255,255,255,.065);border-radius:var(--r-lg);background:rgba(255,255,255,.018)}
    .footer-links-group{gap:.62rem}
    .footer-links-group h4{font-size:.66rem;letter-spacing:2px}
    .footer-links-group a{font-size:.79rem;overflow-wrap:anywhere}
    .footer-bottom{gap:.55rem;font-size:.68rem;line-height:1.55}
}
@media(max-width:760px){
    #footer{padding-bottom:calc(2rem + var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom,0px))}
}
/* --- Slide Poster Clickable --- */
.slide-poster {
    pointer-events: none;
}

/* ===== MOBILE HERO — MINIMAL CINEMATIC EDITION =====
   The backdrop remains the dominant artwork while the original portrait is
   centered above the left-aligned copy as a floating collectible cover. The copy stays compact and
   a dedicated rail keeps progress controls clear of the bottom navigation. */
@media (max-width: 760px) {
    #hero {
        --hero-safe-top: var(--app-safe-top, env(safe-area-inset-top, 0px));
        --hero-safe-right: var(--app-safe-right, env(safe-area-inset-right, 0px));
        --hero-safe-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom, 0px));
        --hero-safe-left: var(--app-safe-left, env(safe-area-inset-left, 0px));
        --hero-side-space: clamp(1.25rem, 6.7vw, 2rem);
        --hero-poster-width: clamp(130px, 38vw, 170px);
        --hero-bottom-nav-space: calc(var(--mobile-bottom-nav-height, 74px) + var(--hero-safe-bottom));
        width: 100%;
        height: 100vh;
        height: 100svh;
        min-height: 0;
        background: #040407;
    }

    #hero .hero-slider {
        isolation: isolate;
    }

    #hero .slide-bg {
        transform: scale(1.018);
    }

    #hero .hero-slide.active .slide-bg {
        transform: scale(1);
    }

    #hero .slide-bg-video video {
        width: 100% !important;
        height: 100% !important;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        filter: saturate(.78) contrast(1.07) brightness(.82);
    }

    #hero .slide-bg-overlay {
        background:
            radial-gradient(circle at 18% 70%, rgba(181, 133, 36, .1), transparent 31%),
            linear-gradient(180deg, rgba(3, 4, 6, .44) 0%, rgba(3, 4, 6, .08) 25%, rgba(3, 4, 6, .2) 43%, rgba(4, 4, 7, .86) 69%, #040407 91%, #040407 100%),
            linear-gradient(90deg, rgba(3, 4, 6, .38), transparent 78%);
    }

    #hero .slide-content {
        height: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        align-content: end;
        align-items: center;
        justify-content: stretch;
        column-gap: 0;
        row-gap: 0;
        padding:
            calc(var(--hero-safe-top) + 5rem)
            max(var(--hero-side-space), var(--hero-safe-right))
            calc(var(--hero-bottom-nav-space) + 6rem)
            max(var(--hero-side-space), var(--hero-safe-left));
        text-align: left;
    }

    #hero .slide-text {
        display: contents;
    }

    #hero .slide-poster {
        position: absolute;
        top: calc(var(--hero-safe-top) + 5.5rem + clamp(0px, calc(40svh - 280px), 5rem));
        right: 0;
        left: 0;
        z-index: 5;
        display: block;
        width: var(--hero-poster-width);
        margin-inline: auto;
        order: initial;
    }

    #hero .poster-glow {
        width: 145%;
        height: 145%;
        filter: blur(32px);
        opacity: .3;
    }

    #hero .poster-frame {
        aspect-ratio: 2 / 3;
        overflow: hidden;
        border: 0;
        border-radius: 15px;
        background: #090a0c;
        box-shadow: 0 20px 52px rgba(0, 0, 0, .58), 0 0 0 1px rgba(235, 205, 111, .3) inset;
        transform: none;
    }

    #hero .poster-frame::after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(145deg, rgba(255, 244, 201, .1), transparent 31%, transparent 72%, rgba(0, 0, 0, .2));
    }

    #hero .poster-frame:is(:hover, :focus-visible) {
        border-color: rgba(239, 213, 116, .62);
        box-shadow: 0 22px 58px rgba(0, 0, 0, .64), 0 0 24px rgba(218, 177, 65, .11);
        transform: translateY(-2px);
    }

    #hero .poster-frame:focus-visible {
        outline: 2px solid #efd574;
        outline-offset: 3px;
    }

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

    #hero .slide-category {
        display: none;
    }

    #hero .slide-title {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        max-width: 100%;
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: #f4f1e9;
        font-size: clamp(2.35rem, 10.8vw, 3.15rem);
        font-weight: 760;
        line-height: .97;
        letter-spacing: -.045em;
        text-wrap: balance;
        text-shadow: 0 4px 28px rgba(0, 0, 0, .62);
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    #hero .slide-meta {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        min-height: 1rem;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: .28rem .48rem;
        margin: .82rem 0 0;
    }

    #hero .meta-item {
        gap: .25rem;
        color: rgba(239, 235, 225, .7);
        font-size: .71rem;
        font-weight: 560;
        letter-spacing: .01em;
    }

    #hero .meta-item:first-child {
        color: #ead071;
    }

    #hero .meta-star {
        width: 12px;
        height: 12px;
    }

    #hero .meta-divider {
        color: rgba(239, 235, 225, .25);
        font-size: .48rem;
    }

    #hero .slide-description {
        grid-column: 1 / -1;
        grid-row: 3;
        width: min(100%, 29rem);
        max-width: 29rem;
        display: -webkit-box;
        margin: .88rem 0 1.1rem;
        overflow: hidden;
        color: rgba(232, 230, 225, .72);
        font-size: .81rem;
        line-height: 1.52;
        text-align: left;
        text-wrap: pretty;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    #hero .slide-buttons {
        grid-column: 1 / -1;
        grid-row: 4;
        width: min(100%, 27rem);
        display: grid;
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
        align-items: stretch;
        justify-content: stretch;
        gap: .65rem;
    }

    #hero .btn-watch,
    #hero .btn-detail {
        min-width: 0;
        min-height: 46px;
        justify-content: center;
        gap: .48rem;
        padding: .72rem .82rem;
        border-radius: 999px;
        font-size: .76rem;
        line-height: 1;
        letter-spacing: .005em;
        white-space: nowrap;
    }

    #hero .btn-watch {
        color: #100d05;
        background: linear-gradient(135deg, #d3aa38, #efd574);
        box-shadow: 0 10px 28px rgba(184, 139, 35, .2), inset 0 1px rgba(255, 255, 255, .32);
    }

    #hero .btn-detail {
        color: rgba(244, 241, 233, .88);
        border-color: rgba(255, 255, 255, .14);
        background: rgba(7, 8, 10, .42);
        box-shadow: inset 0 1px rgba(255, 255, 255, .045);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    #hero .btn-watch svg,
    #hero .btn-detail svg {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }

    #hero :is(.btn-watch, .btn-detail):focus-visible {
        outline: 2px solid #efd574;
        outline-offset: 3px;
    }

    #hero .hero-progress {
        right: max(var(--hero-side-space), var(--hero-safe-right));
        bottom: calc(var(--hero-bottom-nav-space) + 3.65rem);
        left: max(var(--hero-side-space), var(--hero-safe-left));
        width: auto;
        height: 1px;
        transform: none;
        background: rgba(255, 255, 255, .11);
    }

    #hero .hero-progress-bar {
        background: linear-gradient(90deg, #c79d32, #efd574);
        box-shadow: 0 0 10px rgba(226, 188, 79, .32);
    }

    #hero .hero-dots {
        bottom: calc(var(--hero-bottom-nav-space) + .75rem);
        left: 50%;
        gap: 0;
        transform: translateX(-50%);
    }

    #hero .hero-dot,
    #hero .hero-dot.active {
        position: relative;
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
    }

    #hero .hero-dot::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 4px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .28);
        transform: translate(-50%, -50%);
        transition: width .35s var(--ease-out), background .35s ease, box-shadow .35s ease;
    }

    #hero .hero-dot.active {
        width: 43px;
        flex-basis: 43px;
    }

    #hero .hero-dot.active::before {
        width: 25px;
        height: 2px;
        background: #e2bd50;
        box-shadow: 0 0 9px rgba(226, 189, 80, .45);
    }

    #hero .hero-dot:focus-visible {
        outline: 1px solid rgba(239, 213, 116, .9);
        outline-offset: -3px;
    }
}

@media (max-width: 760px) and (max-height: 700px) {
    /* Keep the larger cover clear of the title on short portrait screens. */
    #hero {
        --hero-poster-width: clamp(6rem, 26vw, 7rem);
    }

    #hero .slide-content {
        padding-bottom: calc(var(--hero-bottom-nav-space) + 5.25rem);
    }

    #hero .slide-title {
        font-size: clamp(2rem, 10vw, 2.55rem);
    }

    #hero .slide-meta {
        margin-top: .62rem;
    }

    #hero .slide-description {
        margin: .65rem 0 .82rem;
        font-size: .75rem;
        line-height: 1.45;
    }

    #hero .btn-watch,
    #hero .btn-detail {
        min-height: 44px;
        padding-block: .65rem;
        font-size: .71rem;
    }

    #hero .hero-progress {
        bottom: calc(var(--hero-bottom-nav-space) + 3.4rem);
    }
}

/* Short portrait screens still need room between the cover and two-line titles. */
@media (max-width: 760px) and (max-height: 600px) {
    #hero {
        --hero-poster-width: 3.75rem;
    }

    #hero .slide-poster {
        top: calc(var(--hero-safe-top) + 5rem);
    }

    #hero .slide-content {
        padding-bottom: calc(var(--hero-bottom-nav-space) + 4.5rem);
    }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
    #hero {
        --hero-safe-top: var(--app-safe-top, env(safe-area-inset-top, 0px));
        --hero-safe-right: var(--app-safe-right, env(safe-area-inset-right, 0px));
        --hero-safe-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom, 0px));
        --hero-safe-left: var(--app-safe-left, env(safe-area-inset-left, 0px));
        height: 100vh;
        height: 100svh;
        min-height: 0;
    }

    #hero .slide-bg-video video {
        width: 100% !important;
        height: 100% !important;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        filter: saturate(.78) contrast(1.07) brightness(.78);
    }

    #hero .slide-bg-overlay {
        background:
            linear-gradient(90deg, rgba(4, 4, 7, .94) 0%, rgba(4, 4, 7, .72) 48%, rgba(4, 4, 7, .12) 100%),
            linear-gradient(180deg, rgba(4, 4, 7, .5), transparent 32%, rgba(4, 4, 7, .68) 100%);
    }

    #hero .slide-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        padding: calc(var(--hero-safe-top) + 4.35rem) max(2.25rem, var(--hero-safe-right)) calc(var(--hero-safe-bottom) + 3.15rem) max(2.25rem, var(--hero-safe-left));
        text-align: left;
    }

    #hero .slide-text {
        display: block;
        order: initial;
        flex: none;
        width: min(58vw, 31rem);
        max-width: 31rem;
        padding: 0;
    }

    #hero .slide-poster {
        display: none;
    }

    #hero .slide-category {
        display: none;
    }

    #hero .slide-title {
        margin-bottom: 0;
        font-size: clamp(1.85rem, 5vw, 2.55rem);
        line-height: .98;
    }

    #hero .slide-meta {
        justify-content: flex-start;
        margin: .55rem 0 0;
    }

    #hero .slide-description {
        display: -webkit-box;
        margin: .58rem 0 .72rem;
        overflow: hidden;
        font-size: .72rem;
        line-height: 1.42;
        text-align: left;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    #hero .slide-buttons {
        width: min(22rem, 100%);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: .55rem;
    }

    #hero .btn-watch,
    #hero .btn-detail {
        min-height: 40px;
        justify-content: center;
        padding: .55rem .8rem;
        border-radius: 999px;
        font-size: .69rem;
        white-space: nowrap;
    }

    #hero .hero-progress {
        right: max(2.25rem, var(--hero-safe-right));
        bottom: calc(var(--hero-safe-bottom) + 1.6rem);
        left: max(2.25rem, var(--hero-safe-left));
        width: auto;
        height: 1px;
        transform: none;
    }

    #hero .hero-dots {
        bottom: calc(var(--hero-safe-bottom) + .12rem);
    }
}

/* === CINEMATIC MODAL === */
.cinematic-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.cinematic-modal.active {
    opacity: 1;
    visibility: visible;
}
#cinematicModal {
    --cinematic-black: #020304;
    --cinematic-black-raised: #050608;
    --cinematic-card-black: #000;
    --cinematic-card-hover: #030405;
    --cinematic-line: rgba(255,255,255,0.075);
    --cinematic-safe-top: var(--app-safe-top, env(safe-area-inset-top, 0px));
    --cinematic-safe-right: var(--app-safe-right, env(safe-area-inset-right, 0px));
    --cinematic-safe-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom, 0px));
    --cinematic-safe-left: var(--app-safe-left, env(safe-area-inset-left, 0px));
}
.cinematic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 7, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1;
}
.cinematic-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    max-height: 750px;
    /* Eski değer rgba(11,11,22) idi: mavisi kırmızı/yeşilin iki katı olduğu için
       panel soğuk lacivert görünüyordu. Sitenin yüzey dili sıcak koyu gri +
       üstten altın parıltı (--bg-card-gradient ile aynı aile). */
    background:
        radial-gradient(ellipse 120% 75% at 50% 0%, rgba(228,201,106,0.10), transparent 62%),
        linear-gradient(155deg, rgba(23,23,27,0.90) 0%, rgba(9,9,12,0.95) 100%);
    border: 1px solid rgba(228,201,106,0.16);
    border-radius: var(--r-xl);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(228,201,106,0.05), inset 0 1px 0 rgba(255,245,204,0.06);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.6s var(--ease-out);
}
.cinematic-modal.active .cinematic-container {
    transform: scale(1) translateY(0);
}
#cinematicModal .cinematic-container {
    background: linear-gradient(180deg, var(--cinematic-black-raised) 0%, var(--cinematic-black) 100%);
    border-color: rgba(228,201,106,0.16);
    box-shadow: 0 30px 80px rgba(0,0,0,0.92), 0 0 45px rgba(228,201,106,0.035), inset 0 1px 0 rgba(255,255,255,0.025);
}
.cinematic-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--fast);
    z-index: 10;
}
.cinematic-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}
.cinematic-home-masthead {
    display: none;
}
/* Character drawers share the film detail masthead, including live insets. */
#charDetail.character-masthead-detail {
    --cinematic-safe-top: var(--char-detail-safe-top);
    --cinematic-safe-right: var(--char-detail-safe-right);
    --cinematic-safe-left: var(--char-detail-safe-left);
}
#charDetail.character-masthead-detail .cinematic-close:focus-visible { outline: 2px solid #e4c76d; outline-offset: 3px; }
.cinematic-content {
    display: flex;
    height: 100%;
    width: 100%;
}
.cinematic-poster-col {
    flex: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    background: linear-gradient(to right, rgba(0,0,0,0.2), transparent);
    overflow: hidden;
}
.cinematic-poster-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 2/3;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: scale(0.9) rotateY(-4deg);
    opacity: 0;
    transition: transform 0.8s var(--ease-out) 0.1s, opacity 0.8s var(--ease-out) 0.1s;
}
.cinematic-modal.active .cinematic-poster-wrapper {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
}
.cinematic-poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cinematic-poster-glow {
    position: absolute;
    inset: -20px;
    filter: blur(40px);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
}

/* --- Film afişi sol sütunu tamamen doldurur ---
   Afiş 320px'e sabitlenip 3rem dolgu içinde ortalandığı için ~500x750'lik
   sütunun ortasında küçük kalıyordu. Karakter modalindeki tam kaplama düzeni
   burada da uygulanır; :not(.char-cinematic-modal) ile karakter, masal, tezhip
   ve ahlak modalleri kendi düzenlerinde kalır. */
.cinematic-modal:not(.char-cinematic-modal) .cinematic-poster-col {
    padding: 0;
    background: var(--surface-ink);
}
.cinematic-modal:not(.char-cinematic-modal) .cinematic-poster-wrapper {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    /* Afiş artık sütunu tam kapladığı için kendi scale(0.9)->scale(1) girişi
       büyürken arkasındaki siyah sütunu açığa çıkarıyordu. Karakter
       portrelerinde olduğu gibi afiş ilk kareden itibaren son ölçüsündedir;
       giriş animasyonunu panelin tamamı (.cinematic-container) zaten yapıyor. */
    transform: none;
    opacity: 1;
    transition: none;
}
.cinematic-modal:not(.char-cinematic-modal) .cinematic-poster-wrapper img {
    object-position: center;
}
/* Sert dikey kesim yerine sağ kenar panele doğru eriyerek bağlanır. */
.cinematic-modal:not(.char-cinematic-modal) .cinematic-poster-col::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(to right, transparent 68%, rgba(6,6,9,0.72) 100%),
        linear-gradient(to bottom, rgba(6,6,9,0.35) 0%, transparent 16%, transparent 84%, rgba(6,6,9,0.5) 100%);
}
.cinematic-info-col {
    flex: 1.3;
    padding: 3.5rem 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(228,201,106,0.14);
    background: linear-gradient(180deg, rgba(20,20,24,0.68) 0%, rgba(6,6,9,0.86) 100%);
    opacity: 0;
    transform: translateX(30px);
    transition: transform 0.8s var(--ease-out) 0.2s, opacity 0.8s var(--ease-out) 0.2s;
}
#cinematicModal .cinematic-info-col {
    background: linear-gradient(180deg, var(--cinematic-black-raised) 0%, var(--cinematic-black) 100%);
    border-left-color: rgba(228,201,106,0.14);
}
.cinematic-info-col::-webkit-scrollbar {
    width: 4px;
}
.cinematic-info-col::-webkit-scrollbar-track {
    background: transparent;
}
.cinematic-info-col::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 10px;
}
.cinematic-modal.active .cinematic-info-col {
    opacity: 1;
    transform: translateX(0);
}
/* Returning from the player resumes an existing reading surface in one paint.
   Only the detail entrance layers are affected; their controls keep feedback. */
:is(#cinematicModal, #filmDetail).is-player-resumed,
#cinematicModal.is-player-resumed :is(.cinematic-container, .cinematic-info-col, .cinematic-poster-wrapper),
#filmDetail.is-player-resumed .drawer-content {
    transition: none;
}
:is(#cinematicModal, #playerModal) :is(.btn-cinematic-close, .cinematic-close, #modalClose) {
    -webkit-tap-highlight-color: transparent;
}
.cinematic-cat-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    column-gap: 0.9rem;
    row-gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.cinematic-category {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}
.cinematic-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.6rem;
    border-radius: var(--r-sm);
    background: var(--accent-subtle);
    border: 1px solid rgba(201, 168, 76, 0.2);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-light);
}
.cinematic-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}
.cinematic-subtitle {
    font-size: 1rem;
    color: #f1efea;
    margin-bottom: 0.8rem;
    font-weight: 500;
}
.cinematic-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #dedcd7;
    margin-bottom: 1.5rem;
}
.cinematic-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 1.5rem;
}
.cinematic-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #e8e6e1;
    margin-bottom: 2rem;
}
.cinematic-desc p {
    margin-bottom: 0.8rem;
}
.cinematic-section {
    margin-bottom: 2rem;
}
.cinematic-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.cinematic-chars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.cinematic-char-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0.8rem;
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
}
.cinematic-char-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}
.cinematic-char-info {
    display: flex;
    flex-direction: column;
}
.cinematic-char-name {
    font-size: 0.8rem;
    font-weight: 600;
}
.cinematic-char-role {
    font-size: 0.68rem;
    color: var(--text-secondary);
}
.cinematic-history {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #e8e6e1;
    border-left: 2px solid var(--accent);
    padding-left: 0.8rem;
    margin-top: 0.5rem;
}
.cinematic-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
}
.btn-cinematic-watch {
    flex: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bg-primary);
    background: linear-gradient(135deg,var(--accent),var(--accent-light));
    border-radius: var(--r-md);
    transition: all var(--fast);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.15);
}
.btn-cinematic-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}
.btn-cinematic-watch svg {
    width: 14px;
    height: 14px;
    fill: var(--bg-primary);
}
.btn-cinematic-close {
    flex: 1;
    padding: 0.8rem 1.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-md);
    transition: all var(--fast);
}
.btn-cinematic-close:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

#cinematicModal.cinematic-modal--home .cinematic-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    margin: 0 0 2rem;
    padding: 0;
}
#cinematicModal.cinematic-modal--home .cinematic-actions > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 50px;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 900px) {
    #cinematicModal {
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
    }
    #cinematicModal .cinematic-container {
        width: 100vw;
        max-width: none;
        height: calc(100vh - var(--mobile-bottom-nav-height, 0px) - var(--cinematic-safe-bottom));
        height: calc(100dvh - var(--mobile-bottom-nav-height, 0px) - var(--cinematic-safe-bottom));
        max-height: none;
        border-width: 0;
        border-radius: 0;
        box-shadow: none;
    }
    :is(#cinematicModal.cinematic-modal--home, #charDetail.character-masthead-detail) .cinematic-home-masthead {
        position: relative;
        z-index: 5;
        flex: 0 0 auto;
        min-height: calc(var(--cinematic-safe-top) + 4rem);
        display: flex;
        align-items: center;
        overflow: hidden;
        padding:
            calc(var(--cinematic-safe-top) + 0.18rem)
            max(4.25rem, calc(var(--cinematic-safe-right) + 3.85rem))
            0.18rem
            max(0.35rem, var(--cinematic-safe-left));
        background: linear-gradient(180deg, #0d0c0a 0%, #070707 100%);
        box-shadow: 0 11px 28px rgba(0, 0, 0, 0.38);
    }
    :is(#cinematicModal.cinematic-modal--home, #charDetail.character-masthead-detail) .cinematic-home-masthead::before {
        content: '';
        position: absolute;
        inset: auto 0 0;
        height: 1px;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(235, 201, 102, 0.72) 0%, rgba(235, 201, 102, 0.15) 34%, transparent 72%);
    }
    :is(#cinematicModal.cinematic-modal--home, #charDetail.character-masthead-detail) .cinematic-home-masthead__logo {
        width: clamp(7.3rem, 30vw, 8.2rem);
        height: auto;
        display: block;
        margin-left: -1rem;
        transform: translateY(-0.12rem);
        filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.36));
    }
    :is(#cinematicModal, #charDetail.character-masthead-detail) .cinematic-close {
        top: calc(var(--cinematic-safe-top) + 0.75rem);
        right: max(0.9rem, calc(var(--cinematic-safe-right) + 0.65rem));
    }
    :is(#cinematicModal.cinematic-modal--home, #charDetail.character-masthead-detail) .cinematic-close {
        position: absolute;
        padding: 0;
        top: calc(var(--cinematic-safe-top) + 0.5rem);
        width: 44px;
        height: 44px;
        border-color: rgba(232, 199, 101, 0.22);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.045);
        box-shadow: inset 0 1px rgba(255, 255, 255, 0.045), 0 9px 24px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    :is(#cinematicModal.cinematic-modal--home, #charDetail.character-masthead-detail) .cinematic-close:hover {
        transform: none;
    }
    .cinematic-content {
        flex-direction: column;
    }
    #cinematicModal.cinematic-modal--home .cinematic-content {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
    }
    .cinematic-poster-col {
        flex: none;
        height: 200px;
        padding: 1.5rem;
    }
    .cinematic-poster-wrapper {
        max-width: 120px;
        aspect-ratio: 2/3;
        transform: scale(0.9);
    }
    /* Dar ekranda afişi yatay şeride kırpmak başlık bloğunu kesiyor; onun
       yerine afişin tamamı sütun yüksekliğince büyütülür. */
    .cinematic-modal:not(.char-cinematic-modal) .cinematic-poster-col {
        height: calc(clamp(15rem, 34dvh, 20rem) + var(--cinematic-safe-top, 0px));
        padding: calc(var(--cinematic-safe-top, 0px) + 0.75rem) 0 0.75rem;
        isolation: isolate;
        background: #080806;
    }
    #cinematicModal.cinematic-modal--home .cinematic-poster-col {
        height: clamp(14rem, 31dvh, 18rem);
        padding: 0.72rem 0;
    }
    #cinematicModal .cinematic-poster-col::before {
        content: '';
        position: absolute;
        inset: -12%;
        z-index: 0;
        pointer-events: none;
        background-image: var(--cinematic-poster-image, none);
        background-repeat: no-repeat;
        background-position: center 38%;
        background-size: cover;
        filter: blur(24px) saturate(.9) brightness(.45);
        opacity: .82;
        transform: scale(1.14);
    }
    .cinematic-modal:not(.char-cinematic-modal) .cinematic-poster-wrapper {
        z-index: 1;
        width: auto;
        height: 100%;
        max-width: none;
        aspect-ratio: 2/3;
        border-radius: var(--r-md);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    }
    .cinematic-modal:not(.char-cinematic-modal) .cinematic-poster-col::after {
        background: linear-gradient(to bottom, transparent 72%, rgba(6,6,9,0.7) 100%);
    }
    .cinematic-info-col {
        flex: 1;
        padding: 2rem 1.5rem;
        border-left: none;
        border-top: 1px solid var(--glass-border);
        transform: translateY(20px);
    }
    #charDetail .cinematic-info-col {
        padding-top: clamp(0.78rem, 2.8vw, 1rem);
    }
    .cinematic-modal.active .cinematic-info-col {
        transform: translateY(0);
    }
    .cinematic-title {
        font-size: 1.6rem;
    }
    #cinematicModal .cinematic-cat-row {
        column-gap: 0.9rem;
        row-gap: 0.5rem;
    }
    .cinematic-actions {
        padding-top: 1rem;
    }
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.01ms !important;transition-duration:0.01ms !important}}

/* ===== ISLAMIA KIDS BUTTON STYLING ===== */
.kids-logo {
    display: inline-flex;
    font-weight: 800;
    margin-left: 3px;
    letter-spacing: 0.5px;
}
.kids-logo span {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, text-shadow 0.3s ease;
}
.kids-k { color: #FF5E5E; }
.kids-i { color: #FFAE00; }
.kids-d { color: #2D9CDB; }
.kids-s { color: #27AE60; }

.nav-link.nav-kids:hover .kids-k { transform: translateY(-4px) rotate(-6deg); color: #FF3B3B; text-shadow: 0 0 8px rgba(255, 94, 94, 0.6); }
.nav-link.nav-kids:hover .kids-i { transform: translateY(-4px) rotate(4deg); color: #FFC000; text-shadow: 0 0 8px rgba(255, 174, 0, 0.6); }
.nav-link.nav-kids:hover .kids-d { transform: translateY(-4px) rotate(-4deg); color: #2F80ED; text-shadow: 0 0 8px rgba(45, 156, 219, 0.6); }
.nav-link.nav-kids:hover .kids-s { transform: translateY(-4px) rotate(6deg); color: #219653; text-shadow: 0 0 8px rgba(39, 174, 96, 0.6); }

.nav-link.nav-kids .kids-k { transition-delay: 0s; }
.nav-link.nav-kids .kids-i { transition-delay: 0.04s; }
.nav-link.nav-kids .kids-d { transition-delay: 0.08s; }
.nav-link.nav-kids .kids-s { transition-delay: 0.12s; }

/* Mobile Menu Islamia Kids styling */
.mobile-link.mobile-kids .kids-logo {
    font-weight: 800;
}
.mobile-link.mobile-kids:hover .kids-k { transform: translateY(-3px) rotate(-6deg); text-shadow: 0 0 8px rgba(255, 94, 94, 0.6); }
.mobile-link.mobile-kids:hover .kids-i { transform: translateY(-3px) rotate(4deg); text-shadow: 0 0 8px rgba(255, 174, 0, 0.6); }
.mobile-link.mobile-kids:hover .kids-d { transform: translateY(-3px) rotate(-4deg); text-shadow: 0 0 8px rgba(45, 156, 219, 0.6); }
.mobile-link.mobile-kids:hover .kids-s { transform: translateY(-3px) rotate(6deg); text-shadow: 0 0 8px rgba(39, 174, 96, 0.6); }

.mobile-link.mobile-kids .kids-k { transition-delay: 0s; }
.mobile-link.mobile-kids .kids-i { transition-delay: 0.04s; }
.mobile-link.mobile-kids .kids-d { transition-delay: 0.08s; }
.mobile-link.mobile-kids .kids-s { transition-delay: 0.12s; }


/* === PLAYER MODAL EPISODES SECTION === */
.player-episodes-section {
    margin-top: 1.5rem;
    background: var(--player-black);
    border: 1px solid var(--player-line);
    border-radius: var(--r-md);
    overflow: hidden;
    padding: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}
.player-episodes-header {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--player-line);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}
.player-tab-btn {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-bottom: 2px solid transparent;
    transition: all var(--fast);
    cursor: pointer;
}
.player-tab-btn:hover {
    color: var(--text-primary);
}
.player-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.player-tab-content {
    position: relative;
}
.player-episodes-list, .player-trailers-list, .player-previews-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.4rem;
}
.player-episodes-list::-webkit-scrollbar, .player-trailers-list::-webkit-scrollbar, .player-previews-list::-webkit-scrollbar {
    width: 4px;
}
.player-episodes-list::-webkit-scrollbar-track, .player-trailers-list::-webkit-scrollbar-track, .player-previews-list::-webkit-scrollbar-track {
    background: transparent;
}
.player-episodes-list::-webkit-scrollbar-thumb, .player-trailers-list::-webkit-scrollbar-thumb, .player-previews-list::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 10px;
}
.player-ep-item {
    display: flex;
    gap: 1.2rem;
    padding: 0.8rem;
    background: var(--player-card-black);
    border: 1px solid var(--player-line);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--fast);
}
.player-ep-item:hover {
    background: var(--player-card-hover);
    border-color: rgba(201, 168, 76, 0.15);
    transform: translateX(4px);
}
.player-ep-item.active {
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.07), var(--player-card-black) 42%);
    border-color: var(--accent);
}
.player-ep-item.is-unavailable { opacity: 0.72; }
.player-ep-item.is-unavailable .player-ep-play-overlay { display: none; }
.player-list-empty {
    padding: 1.25rem;
    border: 1px dashed var(--glass-border);
    border-radius: var(--r-md);
    color: var(--text-secondary);
    text-align: center;
}
.video-placeholder-detail { font-size: 0.72rem; color: var(--text-muted); }
.player-ep-thumb {
    position: relative;
    width: 140px;
    aspect-ratio: 16/9;
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}
.player-ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.player-ep-item:hover .player-ep-thumb img {
    transform: scale(1.05);
}
.player-ep-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--fast);
}
.player-ep-item:hover .player-ep-play-overlay,
.player-ep-item.active .player-ep-play-overlay {
    opacity: 1;
}
.player-ep-play-overlay svg {
    color: var(--accent);
    filter: drop-shadow(0 2px 8px var(--accent-glow));
    transform: scale(0.9);
    transition: transform var(--fast);
}
.player-ep-item:hover .player-ep-play-overlay svg {
    transform: scale(1.1);
}
.player-ep-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}
.player-ep-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.player-ep-item.active .player-ep-title {
    color: var(--accent-light);
}
.player-ep-desc {
    font-size: 0.82rem;
    color: #dedcd7;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.player-film-details-text {
    font-size: 0.88rem;
    color: #e8e6e1;
    line-height: 1.7;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.4rem;
}
.player-film-details-text::-webkit-scrollbar {
    width: 4px;
}
.player-film-details-text::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 10px;
}

/* === DETAIL DRAWER EPISODES === */
.drawer-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.drawer-ep-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--fast);
}
.drawer-ep-item:hover {
    background: var(--accent-subtle);
    border-color: rgba(201, 168, 76, 0.18);
    transform: translateX(4px);
}
.drawer-ep-play-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--accent);
    flex-shrink: 0;
    transition: all var(--fast);
}
.drawer-ep-item:hover .drawer-ep-play-btn {
    background: var(--accent);
    color: var(--bg-primary);
    transform: scale(1.08);
    box-shadow: 0 0 12px var(--accent-glow);
}
.drawer-ep-info {
    flex: 1;
    min-width: 0;
}
.drawer-ep-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.drawer-ep-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === RESPONSIVE EPISODES === */
@media (max-width: 768px), (max-width: 1100px) and (orientation: landscape) and (max-height: 520px) {
    .player-modal {
        align-items: stretch;
        justify-content: stretch;
        background: var(--player-black);
    }
    .player-modal > .modal-overlay { display: none; }
    .player-modal > .modal-content {
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
        background: linear-gradient(180deg,var(--player-black-raised) 0%,var(--player-black) 100%);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        -webkit-overflow-scrolling: touch;
        transform: none;
    }
    .player-modal.active > .modal-content { transform: none; }
    .player-modal > .modal-content::-webkit-scrollbar { display: none; }
    .player-modal .player-topbar {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        box-sizing: border-box;
        height: var(--player-topbar-height);
        padding: calc(12px + var(--player-safe-top)) max(18px, var(--player-safe-right)) 12px max(18px, var(--player-safe-left));
        background: var(--player-black);
        border: 0;
    }
    .player-modal .player-topbar-brand {
        position: relative;
        display: block;
        flex: 0 0 112px;
        width: 112px;
        height: 34px;
        overflow: hidden;
    }
    .player-modal .player-topbar-brand img {
        position: absolute;
        top: -5px;
        left: -41px;
        width: 176px;
        height: 44px;
        max-width: none;
    }
    .player-modal .modal-close {
        position: static;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 12px;
        border: 0;
        border-radius: 12px;
        color: #e8e6e1;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .player-modal .modal-close svg { width: 20px; height: 20px; stroke-width: 1.6; }
    .player-modal .modal-close:hover { transform: none; background: rgba(255,255,255,.045); }
    .player-modal .modal-close:active { background: rgba(201,168,76,.1); }
    .player-modal .video-wrapper {
        position: relative;
        top: auto;
        z-index: 10;
        width: 100%;
        padding-top: 0;
        aspect-ratio: 16 / 9;
        border-radius: 0;
        box-shadow: 0 14px 38px rgba(0,0,0,.55);
        pointer-events: auto;
        touch-action: auto;
    }
    .player-modal .video-wrapper iframe { pointer-events: auto; touch-action: auto; }
    .player-modal .video-info { padding: 1.25rem 1rem .35rem; }
    .player-modal .video-info-title {
        margin: 0 3rem .55rem 0;
        font-size: clamp(1.2rem,5.5vw,1.45rem);
        line-height: 1.25;
    }
    .player-modal .video-info-meta {
        flex-wrap: wrap;
        gap: .35rem .55rem;
        margin-bottom: .65rem;
        font-size: .75rem;
    }
    .player-modal .video-info-desc { font-size: .82rem; line-height: 1.55; }
    .player-modal .player-episodes-section {
        margin: .75rem .75rem 0;
        padding: 0 0 calc(1rem + var(--player-safe-bottom));
        border-color: rgba(255,255,255,.08);
        border-radius: 16px 16px 0 0;
        background: var(--player-black);
    }
    .player-modal .player-episodes-header {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0,1fr);
        gap: 0;
        margin: 0;
        padding: .35rem .4rem 0;
        border-bottom-color: rgba(255,255,255,.08);
    }
    .player-modal .player-tab-btn {
        min-width: 0;
        min-height: 48px;
        padding: .55rem .3rem;
        font-size: .78rem;
        line-height: 1.15;
        text-align: center;
    }
    .player-modal .player-tab-content { padding: .8rem; }
    .player-modal .player-ep-item {
        width: 100%;
        min-height: 92px;
        flex-direction: row;
        align-items: center;
        gap: .75rem;
        padding: .65rem;
        color: inherit;
        text-align: left;
        background: var(--player-card-black);
        border-color: rgba(255,255,255,.075);
        border-radius: 12px;
    }
    .player-modal .player-ep-item:hover { transform: none; }
    .player-modal .player-ep-item:active { transform: scale(.985); }
    .player-modal .player-ep-item:focus-visible,
    .player-modal .player-tab-btn:focus-visible,
    .player-modal .modal-close:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }
    .player-modal .player-ep-thumb {
        width: clamp(112px,36vw,148px);
        max-width: 40%;
        border-radius: 9px;
    }
    .player-modal .player-ep-title { font-size: .88rem; line-height: 1.25; }
    .player-modal .player-ep-desc { font-size: .72rem; line-height: 1.4; -webkit-line-clamp: 2; }
    .player-modal .player-ep-play-overlay { opacity: 1; background: linear-gradient(90deg,transparent,rgba(0,0,0,.18)); }
    .player-modal .player-ep-play-overlay svg {
        width: 30px;
        height: 30px;
        padding: 8px;
        border-radius: 50%;
        background: rgba(0,0,0,.65);
        box-sizing: content-box;
    }
    .player-modal .player-episodes-list, .player-modal .player-trailers-list, .player-modal .player-previews-list {
        max-height: none;
        overflow-y: visible;
        gap: .65rem;
        padding-right: 0;
    }
    .player-modal .player-film-details-text {
        max-height: none;
        overflow-y: visible;
        padding: .2rem;
        font-size: .84rem;
    }
}

@media (max-width: 380px) {
    .player-modal .video-info { padding-inline: .85rem; }
    .player-modal .player-episodes-section { margin-inline: .5rem; }
    .player-modal .player-tab-content { padding: .65rem; }
    .player-modal .player-ep-thumb { width: 108px; }
    .player-modal .player-ep-desc { -webkit-line-clamp: 1; }
}

@media (max-width: 1100px) and (orientation: landscape) and (max-height: 520px) {
    .player-modal .video-wrapper {
        width: min(calc(100% - 2 * max(var(--player-safe-left), var(--player-safe-right))), calc((100dvh - var(--player-topbar-height) - var(--player-safe-bottom)) * 16 / 9));
        margin-inline: auto;
    }
    .player-modal .video-info { padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .player-modal,
    .player-modal > .modal-content,
    .player-modal .player-topbar,
    .player-modal .player-ep-item { transition: none !important; }
}

/* === CINEMATIC MODAL EPISODES === */
.cinematic-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.8rem;
}
.cinematic-ep-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--fast);
}
.cinematic-ep-item:hover {
    background: var(--accent-subtle);
    border-color: rgba(201, 168, 76, 0.18);
    transform: translateX(4px);
}
#cinematicModal .cinematic-ep-item {
    background: var(--cinematic-card-black);
    border-color: var(--cinematic-line);
}
#cinematicModal .cinematic-ep-item:hover {
    background: var(--cinematic-card-hover);
    border-color: rgba(201,168,76,0.22);
}
.cinematic-ep-play-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--accent);
    flex-shrink: 0;
    transition: all var(--fast);
}
.cinematic-ep-item:hover .cinematic-ep-play-btn {
    background: var(--accent);
    color: var(--bg-primary);
    transform: scale(1.08);
    box-shadow: 0 0 12px var(--accent-glow);
}
.cinematic-ep-info {
    flex: 1;
    min-width: 0;
}
.cinematic-ep-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.cinematic-ep-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === SECTION DIVIDER === */
.section-divider-curve {
    position: relative;
    width: 100%;
    height: 70px;
    margin-top: -35px; /* Pull it up to overlap the hero banner */
    background-color: var(--bg-primary);
    z-index: 10;
    pointer-events: none;
    overflow: visible;
}
.section-divider-curve svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.45));
}

/* === COLLECTION (ROULETTE CAROUSEL) SECTION === */
.collection-carousel-section {
    position: relative;
    padding: 6rem 0 8rem;
    background: var(--bg-primary);
    overflow: hidden;
    z-index: 2;
}
.roulette-wrapper {
    position: relative;
    width: 100%;
    margin-top: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.roulette-stage {
    position: relative;
    width: 100%;
    height: 540px; /* height of cards + some vertical wiggle room */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: visible;
    cursor: default;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.roulette-stage.grabbing, .roulette-stage.grabbing .roulette-card {
    cursor: grabbing !important;
}

/* İmleç şekli de :hover ile aynı sorundan muzdaripti: kart sabit duran imlecin
   altından kayınca tarayıcı imleci yeniden çözmüyor, ok simgesi takılı
   kalıyordu. Bu yüzden imleci sahne üzerinden sürüyoruz ve tüm kartlara aynı
   değeri veriyoruz; tarayıcı hangi kartı "altında" sanırsa sansın sonuç aynı
   olduğu için eskimiş hit-test önemsizleşir ve şekil anında güncellenir.
   Ortadaki kart tıklanabilir (pointer), yandakiler sürüklenebilir (grab). */
.roulette-stage.cursor-pointer .roulette-card,
.roulette-stage.cursor-pointer .roulette-card * {
    cursor: pointer;
}
.roulette-stage.cursor-grab .roulette-card,
.roulette-stage.cursor-grab .roulette-card * {
    cursor: grab;
}
.roulette-track.dragging .roulette-card {
    transition: none !important;
}
.roulette-track.dragging .roulette-card-poster {
    transition: none !important;
}
.roulette-track {
    position: relative;
    /* preserve-3d içinde track kendi düzleminde (z=0) durur; yan kartlar ise
       translateZ ile arkasına iter. Track tüm alanı kapladığı için imleci
       kesiyor, yalnızca ortadaki kart hit-test alabiliyordu — yan kartlar ne
       tıklanabiliyor ne de hover alabiliyordu. Track'i hedef olmaktan çıkarıp
       kartları hedef bırakıyoruz. */
    pointer-events: none;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === ROULETTE CARD === */
.roulette-card {
    position: absolute;
    width: 320px;
    height: 480px;
    left: 50%;
    top: 50%;
    margin-left: -160px;
    margin-top: -240px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-card-gradient);
    border: 1px solid var(--glass-border);
    /* Ok/nokta tıklamasında --diff tek adımda değişir; transform bu değerden
       hesaplandığı için geçiş süresi olmadan kart anında zıplıyordu. Sürükleme
       sırasında .dragging bunu kapatır, böylece kart imleci birebir takip eder. */
    transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out), border-color 0.4s;
    transform: translateX(calc(var(--diff) * 180px)) translateZ(calc(var(--diff-abs) * -130px)) scale(calc(1 - var(--diff-abs) * 0.15)) rotateY(calc(var(--diff) * -15deg));
    z-index: calc(10 - var(--diff-abs));
    /* Kartlar opaktır. opacity ile karartmak onları saydamlaştırıyor, arkadaki
       kart öndekinin üzerinden sızıyordu; uzaklaşan kartlar bunun yerine
       brightness ile söner. Aynı kuraldaki transform da calc(var(--diff))
       kullanıyor ve sorunsuz geçiş yapıyor. */
    opacity: 1;
    filter: brightness(calc(1 - var(--diff-abs) * 0.3));
    /* Sabit "pointer" yerine sahnenin sürdüğü değeri devralır (yukarıya bak). */
    cursor: inherit;
    pointer-events: auto; /* track'te none olduğu için burada geri açılır */
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}


/* Hover, :hover yerine JS'in verdigi .is-hovered ile surulur. Tarayici, kart
   sabit duran imlecin altindan kayip gectiginde :hover'i yeniden hesaplamaz;
   bu yuzden sonraki karta gecince hover ancak fare kimildayinca geliyordu.
   Tek kaynak kullanmak, eski kartta takili kalan :hover'in da onune gecer. */
.roulette-card.is-hovered {
    border-color: rgba(255, 255, 255, 0.15);
}

/* 3D Pop on hover for the active card */
.roulette-stage:not(.grabbing) .roulette-card[data-active="true"].is-hovered {
    scale: 1.03;
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-glow);
}
.roulette-stage.grabbing .roulette-card {
    scale: 1;
}

/* Card Poster Image Layer with horizontal parallax slide */
.roulette-card-poster {
    position: absolute;
    inset: -20px; /* Expands bounds to hide raw background during parallax translation */
    background-image: var(--roulette-poster-desktop, none);
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    /* Karttan biraz daha uzun: görsel kart yerine oturduktan sonra hafifçe
       sürüklenerek rulet derinliği hissini verir. Hover'daki scale ayrı bir
       özellik olduğu için bundan etkilenmez. */
    transition: transform 0.8s var(--ease-out);
    scale: 1;
    transform: scale(1.1) translateX(calc(var(--diff) * -15px));
}
.roulette-stage:not(.grabbing) .roulette-card.is-hovered .roulette-card-poster {
    scale: 1.045;
}
.roulette-card-poster.placeholder-bg {
    transition: none;
}

/* Card Overlay (Bottom Vignette) */
.roulette-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #040407 0%, rgba(4, 4, 7, 0.7) 20%, rgba(4, 4, 7, 0) 65%);
    z-index: 1;
}

/* Card Content Overlay */
.roulette-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.8rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
}
.roulette-card-period {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.roulette-card-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.25;
}
.roulette-card-title {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1.2rem;
}

/* Card Button */
.roulette-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    transition: none;
    align-self: flex-start;
}
.roulette-stage:not(.grabbing) .roulette-card.is-hovered .roulette-card-btn {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}
.roulette-stage:not(.grabbing) .roulette-card[data-active="true"].is-hovered .roulette-card-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-color: transparent;
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}
.roulette-card-btn svg {
    transition: none;
}
.roulette-stage:not(.grabbing) .roulette-card.is-hovered .roulette-card-btn svg {
    transform: translateX(3px);
}

/* Navigation Arrows */
.roulette-arrow {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: all var(--fast);
}
.roulette-arrow:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.08);
    box-shadow: 0 0 15px var(--accent-glow);
}
.roulette-arrow.prev {
    left: 4%;
}
.roulette-arrow.next {
    right: 4%;
}

/* Pagination Dots */
.roulette-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 10;
}
.roulette-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all var(--fast);
}
.roulette-dot:hover {
    background: rgba(255, 255, 255, 0.35);
}
.roulette-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Mobile Responsive Overrides */
@media (max-width: 1024px) {
    .roulette-arrow.prev {
        left: 2%;
    }
    .roulette-arrow.next {
        right: 2%;
    }
}
@media (max-width: 768px) {
    .roulette-card-poster {
        background-image: var(--roulette-poster-mobile, var(--roulette-poster-desktop, none));
    }
    .roulette-stage {
        height: 440px;
    }
    .roulette-card {
        width: 260px;
        height: 390px;
        margin-left: -130px;
        margin-top: -195px;
        transform: translateX(calc(var(--diff) * 80px)) translateZ(calc(var(--diff-abs) * -90px)) scale(calc(1 - var(--diff-abs) * 0.2)) rotateY(calc(var(--diff) * -10deg));
        opacity: calc(1 - var(--diff-abs) * 0.82);
    }
    .roulette-card[data-active="false"] {
        pointer-events: none;
    }
    .roulette-card[data-active="true"] .roulette-card-btn {
        background: linear-gradient(135deg, var(--accent), var(--accent-light));
        border-color: transparent;
        color: var(--bg-primary);
        box-shadow: 0 4px 15px var(--accent-glow);
    }
    .roulette-arrow {
        width: 40px;
        height: 40px;
    }
    .roulette-arrow.prev {
        left: 1%;
    }
    .roulette-arrow.next {
        right: 1%;
    }
    .roulette-card-content {
        padding: 1.5rem 1.2rem;
    }
    .roulette-card-name {
        font-size: 1.15rem;
    }
    .roulette-card-title {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
}

/* === HOMEPAGE CHARACTER MODAL & TIMELINE STYLES === */
.char-cinematic-modal .cinematic-poster-col {
    position: relative;
    border-right: 1px solid var(--glass-border);
    padding: 0;
    overflow: hidden;
    background: #040407;
}

/* Character portraits must occupy their final geometry from the first frame.
   The generic cinematic modal scales its entire container from .95 to 1,
   which made portrait backgrounds look as if they expanded sideways. */
.char-cinematic-modal .cinematic-container,
.char-cinematic-modal.active .cinematic-container {
    transform: none;
    transition: none;
}

.char-cinematic-modal .cinematic-poster-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 65%, #040407 100%),
                linear-gradient(to bottom, rgba(4,4,7,0.2) 0%, transparent 15%, transparent 85%, #040407 100%);
    z-index: 1;
    pointer-events: none;
}

.char-cinematic-modal .cinematic-poster-wrapper {
    background: none;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 320px;
    aspect-ratio: auto;
    width: 100%;
}

.cinematic-char-emblem-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: none;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    position: relative;
}

.timeline-step {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.step-line {
    width: 2px;
    background: linear-gradient(to bottom, var(--glass-border) 60%, transparent 100%);
    position: relative;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-step:last-child .step-line {
    background: linear-gradient(to bottom, var(--glass-border) 0%, transparent 100%);
    height: 40px;
}

.step-dot {
    position: absolute;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-content {
    padding-bottom: 1.5rem;
    flex: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: 0.3px;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

@media (max-width: 900px) {
    .char-cinematic-modal .cinematic-poster-col {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        height: 180px;
        padding: 1.5rem;
    }
}

/* The home carousel owns its detail shell; the character catalogue keeps
   its independent layout in characters.css. Both use the same mobile frame. */
#charDetail.home-character-detail {
    --char-detail-safe-top: var(--app-safe-top, env(safe-area-inset-top, 0px));
    --char-detail-safe-right: var(--app-safe-right, env(safe-area-inset-right, 0px));
    --char-detail-safe-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom, 0px));
    --char-detail-safe-left: var(--app-safe-left, env(safe-area-inset-left, 0px));
    z-index: 10010;
}
#charDetail.home-character-detail .cinematic-container {
    max-width: 980px;
    background: #040407;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#charDetail.home-character-detail .char-detail-topbar { display: contents; }
#charDetail.home-character-detail .char-detail-archive { display: none; }
#charDetail.home-character-detail .cinematic-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}
#charDetail.home-character-detail .cinematic-poster-col {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: #040407;
}
#charDetail.home-character-detail .cinematic-poster-col::after { content: none; }
#charDetail.home-character-detail .cinematic-info-col {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 28px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    background: linear-gradient(180deg, #0b0b0f 0%, #07080b 100%);
    opacity: 1;
    transform: none;
    transition: none;
}
#charDetail.home-character-detail #charDrawerBody > * { flex-shrink: 0; }
#charDetail.home-character-detail .char-image-disclaimer {
    position: absolute;
    right: max(14px, var(--char-detail-safe-right));
    bottom: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
}
#charDetail.home-character-detail .char-image-disclaimer[hidden],
#charDetail.home-character-detail .char-image-disclaimer-tooltip[hidden] { display: none; }
#charDetail.home-character-detail .char-image-info-button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(226,196,119,.48);
    border-radius: 50%;
    color: #f4dfaa;
    background: radial-gradient(circle at 35% 25%, rgba(255,244,207,.18), transparent 40%), rgba(10,9,8,.72);
    box-shadow: 0 10px 28px #0007, inset 0 1px #ffffff1f;
    cursor: pointer;
    touch-action: manipulation;
}
#charDetail.home-character-detail .char-image-info-button span { font: italic 700 16px/1 Georgia, serif; }
#charDetail.home-character-detail .char-image-info-button:focus-visible { outline: 2px solid #e4c76d; outline-offset: 3px; }
#charDetail.home-character-detail .char-image-disclaimer-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    width: max-content;
    max-width: calc(100vw - 100px);
    padding: 8px 11px;
    border: 1px solid rgba(226,196,119,.32);
    border-radius: 10px;
    color: #e8e6e1;
    background: rgba(10,9,8,.96);
    font-size: 12px;
    line-height: 1.3;
    pointer-events: none;
    transform: translateY(-50%);
}
@media (min-width: 901px) {
    #charDetail.home-character-detail #charDrawerBody {
        /* The shared desktop drawer reserves 80px above a side-by-side copy
           column for its X. Here the X is over the banner, so no gutter is needed. */
        margin-top: 0;
        height: auto;
        padding-top: 20px;
    }
    #charDetail.home-character-detail .cinematic-poster-col {
        height: min(40dvh, 380px);
        min-height: 0;
        max-height: 50%;
        aspect-ratio: auto;
    }
    #charDetail.home-character-detail #modalEmblemBgImage { background-size: contain; }
}
@media (max-width: 900px) {
    #charDetail.home-character-detail {
        /* Root scrollbar-gutter stays stable for the page underneath. The
           full-screen drawer itself must include those reserved pixels. */
        width: 100vw;
        left: 0;
        right: auto;
        align-items: stretch;
        justify-content: stretch;
        background: #040407;
    }
    #charDetail.home-character-detail > .cinematic-overlay { display: none; }
    #charDetail.home-character-detail .cinematic-container {
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    #charDetail.home-character-detail .cinematic-info-col {
        padding: 12px max(24px, var(--char-detail-safe-right)) calc(2rem + var(--char-detail-safe-bottom)) max(24px, var(--char-detail-safe-left));
    }
    body:has(#charDetail.home-character-detail.active) .mobile-bottom-nav {
        /* The opaque detail already covers this persistent navigation. */
        pointer-events: none;
    }
}
@media (orientation: landscape) and (max-height: 560px) {
    #charDetail.home-character-detail .cinematic-content { display: block; overflow-y: auto; overscroll-behavior: contain; }
    #charDetail.home-character-detail .cinematic-info-col { overflow: visible; }
}

/* === POPULAR SERIES & MOVIES SECTIONS === */
.popular-series-section,
.popular-movies-section {
    position: relative;
    padding: 3rem 0;
    background: var(--bg-primary);
    overflow: hidden;
    z-index: 2;
}

/* Adjust padding for the bottom popular movies section to give footer space */
.popular-movies-section {
    padding-bottom: 6rem;
}

.series-header,
.movies-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.series-section-title,
.movies-section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.see-all-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.see-all-link svg {
    transition: transform 0.3s var(--ease-out);
}

.see-all-link:hover {
    color: var(--accent);
}

.see-all-link:hover svg {
    transform: translateX(3px);
}

/* Carousel Container & Arrows */
.series-carousel-wrapper,
.movies-carousel-wrapper {
    position: relative;
    width: 100%;
}

.series-carousel-track-container,
.movies-carousel-track-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding: 1rem 0; /* To prevent scaling outline cut-off */
}

.series-carousel-track-container::-webkit-scrollbar,
.movies-carousel-track-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.series-carousel-track,
.movies-carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 0.5rem;
}

/* Card styling with subtle unhovered opacity */
.series-card,
.movie-card {
    width: 185px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-decoration: none;
    cursor: pointer;
}

.series-card:not(.placeholder-card),
.movie-card:not(.placeholder-card) {
    opacity: 0.85; /* Subtle flat default opacity */
    transition: opacity 0.3s var(--ease-out);
}

.series-card:not(.placeholder-card):hover,
.movie-card:not(.placeholder-card):hover {
    opacity: 1; /* Fully bright on hover */
}

.series-poster-wrapper,
.movie-poster-wrapper {
    position: relative;
    width: 100%;
    height: 270px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-card-gradient);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}

/* Empty catalogue slots keep a neutral dark surface with the same bright
   yellow accent used by the primary character CTA. */
.placeholder-card .series-poster-wrapper,
.placeholder-card .movie-poster-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.65rem;
    border: 1px dashed rgba(228,201,106,0.34);
    background:
        radial-gradient(circle at 50% 42%, rgba(228,201,106,0.11), transparent 44%),
        linear-gradient(145deg, #111114 0%, #060608 72%);
    box-shadow: inset 0 1px 0 rgba(255,245,204,0.055), 0 12px 28px rgba(0,0,0,0.22);
}
.placeholder-card .placeholder-plus {
    width: 28px;
    height: 28px;
    color: rgba(228,201,106,0.5);
    filter: drop-shadow(0 0 12px rgba(228,201,106,0.22));
}
.placeholder-card .placeholder-label {
    color: rgba(228,201,106,0.36);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}
.placeholder-card .series-card-title,
.placeholder-card .movie-card-title { opacity: 0.12; color: var(--accent-dark); }

.series-poster-img,
.movie-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

/* Hover effects */
.series-card:hover .series-poster-wrapper,
.movie-card:hover .movie-poster-wrapper {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(201, 168, 76, 0.15);
}

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

/* Play button overlay */
.series-play-overlay,
.movies-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 20, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.series-play-btn,
.movies-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.series-play-btn svg,
.movies-play-btn svg {
    margin-left: 2px;
}

.series-card:hover .series-play-overlay,
.movie-card:hover .movies-play-overlay {
    opacity: 1;
}

.series-card:hover .series-play-btn,
.movie-card:hover .movies-play-btn {
    transform: scale(1);
}

/* Card Title below poster */
.series-card-title,
.movie-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    padding: 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.series-card:hover .series-card-title,
.movie-card:hover .movie-card-title {
    color: var(--accent);
}

/* Navigation Arrow Overlays */
.series-carousel-arrow,
.movies-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 0%,rgba(228,201,106,0.08),transparent 62%),rgba(18,18,20,0.8);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s var(--ease-out);
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.series-carousel-arrow.prev,
.movies-carousel-arrow.prev {
    left: -22px;
}

.series-carousel-arrow.next,
.movies-carousel-arrow.next {
    right: -22px;
}

.series-carousel-arrow:hover,
.movies-carousel-arrow:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* === STRAIGHT SECTION DIVIDER === */
.section-divider-straight {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.1) 15%, rgba(201, 168, 76, 0.4) 50%, rgba(201, 168, 76, 0.1) 85%, transparent);
    margin: 2rem 0;
    opacity: 0.8;
}

/* Ana sayfadaki bağımsız ayırıcıların dış marjları şeffaf kaldığında sabit
   ambient katmanı bu boşluklardan geniş bir bant gibi görünüyordu. Aynı toplam
   yüksekliği opak bir yüzeye taşıyıp altın çizgiyi ortada çiziyoruz; böylece
   bölüm aralığı ve çizgiler korunurken ambient-2 arkadan sızmıyor. */
.series-divider,
.kids-divider,
.wisdom-divider {
    position: relative;
    z-index: 2;
    height: 65px;
    margin: 0;
    opacity: 1;
    isolation: isolate;
    pointer-events: none;
    background:
        linear-gradient(to right, transparent, rgba(201, 168, 76, 0.1) 15%, rgba(201, 168, 76, 0.4) 50%, rgba(201, 168, 76, 0.1) 85%, transparent) center / 100% 1px no-repeat,
        var(--bg-primary);
}

/* Guide ile Kids arasında ayrıca yüksek bir ayırıcı yüzeyi görünmemeli. Çizgi
   doğrudan iki bölümün sınırında kalır; böylece arkasında açık/saydam bir bant
   oluşmaz. Bölümlerin kendi alt ve üst boşlukları ritmi zaten koruyor. */
.kids-divider {
    height: 1px;
}

@media (max-width: 768px) {
    .series-section-title,
    .movies-section-title {
        font-size: 1.8rem;
    }

    .series-card,
    .movie-card {
        width: 140px;
    }

    .series-poster-wrapper,
    .movie-poster-wrapper {
        height: 200px;
    }

    .series-carousel-arrow,
    .movies-carousel-arrow {
        display: none !important;
    }
}

/* === ISLAMIA KIDS HOMEPAGE ZONE === */
.kids-zone-section {
    position: relative;
    padding: 4rem 0 7rem;
    background: var(--bg-primary);
    overflow: hidden;
    z-index: 2;
}

.kids-zone-card {
    position: relative;
    width: 100%;
    border-radius: var(--r-xl);
    background: #07070c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4.5rem 4rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Glowing Background Lights */
.kids-zone-glow-1,
.kids-zone-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.kids-zone-glow-1 {
    top: -20%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: rgba(255, 94, 94, 0.09); /* Soft Pastel Pink */
}

.kids-zone-glow-2 {
    bottom: -20%;
    right: 10%;
    width: 350px;
    height: 350px;
    background: rgba(45, 156, 219, 0.09); /* Soft Pastel Blue */
}

.kids-zone-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.kids-zone-badge {
    font-size: 0.72rem;
    font-weight: 850;
    color: var(--accent);
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    text-shadow: 0 0 5px rgba(201, 168, 76, 0.15);
}

.kids-zone-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.kids-title-kids {
    background: linear-gradient(135deg, #FFAE00 0%, #2D9CDB 50%, #27AE60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kids-zone-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.2rem;
    max-width: 540px;
}

/* Feature Highlights — uniform card rows for a symmetric look */
.kids-features-grid {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 480px;
}

.kids-feature-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    align-items: center;
    gap: .85rem;
    padding: .95rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-align: left;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .kids-feature-item:hover {
        transform: translateX(4px);
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.16);
    }
}

.kids-feature-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-color: var(--accent);
}

.kids-feature-item:active {
    background: rgba(255, 255, 255, 0.04);
}

.kids-feature-arrow {
    color: var(--accent);
}

.kids-feature-info {
    min-width: 0;
}

.kids-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.kids-feature-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.kids-feature-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Call to Action Button */
.btn-kids-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #c9a84c 0%, #a08432 100%);
    color: #040407 !important;
    font-weight: 750;
    font-size: 0.95rem;
    padding: 15px 32px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(201, 168, 76, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-kids-cta svg {
    transition: transform 0.3s var(--ease-out);
}

.btn-kids-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(201, 168, 76, 0.45), 0 0 15px rgba(201, 168, 76, 0.25);
    background: linear-gradient(135deg, #d3b45a 0%, #b29339 100%);
}

.btn-kids-cta:hover svg {
    transform: translateX(4px);
}

/* Whimsical Floating Illustration Container */
/* Upgraded Kids Badge & Labels Layout */
.kids-badges {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.kids-badge-option {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 5px 12px;
    border-radius: 100px;
    width: fit-content;
    letter-spacing: 1px;
}

.kids-badge-main {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 850;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 100px;
    width: fit-content;
    letter-spacing: 2px;
}

.kids-title-accent {
    color: var(--accent);
}

.kids-title-blue {
    color: #2D9CDB;
}

.kids-footer-labels {
    display: flex;
    align-items: center;
    margin-top: 1.8rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
    width: 100%;
}

.kids-footer-icon {
    color: var(--accent);
}

.kids-zone-illustration {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scene: framed portrait illustration + floating info chips */
.kids-image-scene {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.kids-image-glow {
    position: absolute;
    inset: -14%;
    background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255, 174, 0, 0.14) 0%, rgba(48, 90, 165, 0.14) 45%, transparent 75%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.kids-image-frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: rotate(1.5deg);
    transition: transform 0.8s var(--ease-out);
}

.kids-zone-card:hover .kids-image-frame {
    transform: rotate(0deg) scale(1.02);
}

.kids-main-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Responsive Stacking Layout */
@media (max-width: 991px) {
    .kids-zone-card {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 2.5rem;
    }

    .kids-zone-content {
        max-width: 100%;
    }

    .kids-zone-illustration {
        width: 100%;
        margin: 0 auto;
        order: -1;
    }

    .kids-image-scene {
        max-width: 300px;
    }

    .kids-zone-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .kids-zone-section {
        padding: 3rem 0 5rem;
    }
    .kids-zone-card {
        padding: 2rem 1.5rem;
    }
    .kids-zone-title {
        font-size: 1.8rem;
    }
    .kids-zone-desc {
        font-size: 0.95rem;
    }
    .btn-kids-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ===================== COMING SOON — FULL-SCREEN PRODUCTION ===================== */
.coming-soon-dialog {
    --coming-safe-top: var(--safe-area-inset-top, var(--app-safe-top, env(safe-area-inset-top, 0px)));
    --coming-safe-right: var(--safe-area-inset-right, var(--app-safe-right, env(safe-area-inset-right, 0px)));
    --coming-safe-bottom: var(--safe-area-inset-bottom, var(--app-safe-bottom, env(safe-area-inset-bottom, 0px)));
    --coming-safe-left: var(--safe-area-inset-left, var(--app-safe-left, env(safe-area-inset-left, 0px)));
    position: fixed;
    inset: 0;
    width: 100vw;
    z-index: 12000;
    overflow: hidden;
    color: #e8e6e1;
    background: #080807;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}
.coming-soon-dialog.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.coming-soon-dialog__panel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: hidden;
    background: #080807;
}
.coming-soon-dialog__visual {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.coming-soon-dialog__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(.7);
    opacity: .32;
    transform: scale(1.08);
}
.coming-soon-dialog__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #08080722, #080807b8 65%), linear-gradient(180deg, #08080799, #08080733 30%, #080807ed 90%);
}
.coming-soon-dialog__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: calc(var(--coming-safe-top) + 20px) calc(var(--coming-safe-right) + clamp(20px, 4vw, 64px)) 12px calc(var(--coming-safe-left) + clamp(20px, 4vw, 64px));
}
.coming-soon-dialog__brand {
    position: relative;
    display: block;
    width: 94px;
    height: 34px;
}
.coming-soon-dialog__brand img {
    position: absolute;
    top: -5px;
    left: -41px;
    width: 176px;
    height: 44px;
    max-width: none;
}
.coming-soon-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d8b64e66 transparent;
    padding: 0 var(--coming-safe-right) var(--coming-safe-bottom) var(--coming-safe-left);
    scroll-padding-block: 20px;
}
.coming-soon-dialog__layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    align-content: center;
    gap: clamp(40px, 6vw, 96px);
    width: min(1120px, 100%);
    min-height: 100%;
    margin: 0 auto;
    padding: 32px clamp(24px, 4vw, 56px) 64px;
}
.coming-soon-dialog__artwork {
    min-width: 0;
    display: flex;
    justify-content: center;
}
.coming-soon-dialog__poster {
    display: block;
    width: auto;
    height: min(60svh, 540px);
    max-width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 24px 72px #0009;
}
.coming-soon-dialog__copy {
    min-width: 0;
    max-width: 540px;
}
.coming-soon-dialog__signal {
    display: flex;
    width: fit-content;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #d7b54b45;
    border-radius: 8px;
    color: #edcc69;
    background: #d7b54b0d;
    font: 700 11px/1.3 var(--font-display);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.coming-soon-dialog__signal span { display: block; margin-inline-end: -.12em; }
.coming-soon-dialog__film { margin-top: 22px; }
.coming-soon-dialog__film h2 {
    margin: 0;
    color: #fff;
    font: 800 clamp(36px, 4.5vw, 64px)/1.05 var(--font-display);
    letter-spacing: -.04em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.coming-soon-dialog__subtitle {
    margin: 12px 0 0;
    color: #edcc69;
    font: 600 clamp(16px, 1.6vw, 21px)/1.4 var(--font-display);
}
.coming-soon-dialog__description {
    margin: 22px 0 0;
    color: #e8e6e1;
    font-size: 15px;
    line-height: 1.7;
    text-wrap: pretty;
}
.coming-soon-dialog__message {
    margin: 24px 0 0;
    padding: 16px 18px;
    border: 1px solid #ffffff0d;
    border-radius: 14px;
    color: #e8e6e1;
    background: #ffffff05;
    font-size: 13px;
    line-height: 1.7;
    text-wrap: pretty;
}
.coming-soon-dialog__confirm {
    width: 100%;
    min-height: 52px;
    margin-top: 24px;
    padding: 14px 24px;
    border: 0;
    border-radius: 14px;
    color: #151106;
    background: linear-gradient(110deg, #d5b348, #efd577);
    font: 750 14px/1.4 var(--font-display);
    cursor: pointer;
    transition: filter .2s ease;
}
.coming-soon-dialog__confirm:hover { filter: brightness(1.08); }
.coming-soon-dialog__close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #dfbd5338;
    border-radius: 14px;
    color: #e8e6e1;
    background: #11110fcc;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.coming-soon-dialog__close:hover { color: #edcc69; border-color: #dfbd5380; }
.coming-soon-dialog__close:focus-visible,
.coming-soon-dialog__confirm:focus-visible { outline: 2px solid #efd16e; outline-offset: 3px; }
.coming-soon-dialog__close svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.coming-soon-dialog [hidden] { display: none; }
.coming-soon-dialog:not(.has-poster) .coming-soon-dialog__artwork { display: none; }
.coming-soon-dialog:not(.has-poster) .coming-soon-dialog__layout { grid-template-columns: minmax(0, 540px); justify-content: center; }
.btn-watch.is-coming-soon,
.card-watch-btn.is-coming-soon,
.btn-cinematic-watch.is-coming-soon,
.showcase-btn.is-coming-soon { letter-spacing: .015em; }

@media (max-width: 700px) {
    .coming-soon-dialog__header {
        padding: calc(var(--coming-safe-top) + 12px) calc(var(--coming-safe-right) + 20px) 8px calc(var(--coming-safe-left) + 20px);
    }
    .coming-soon-dialog__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        max-width: 480px;
        padding: 20px 24px 28px;
    }
    .coming-soon-dialog__poster {
        height: clamp(152px, 29svh, 270px);
        border-radius: 12px;
    }
    .coming-soon-dialog__visual::after {
        background: linear-gradient(180deg, #08080777, #08080755 32%, #080807e8 62%, #080807);
    }
    .coming-soon-dialog__film { margin-top: 16px; }
    .coming-soon-dialog__film h2 { font-size: clamp(32px, 9vw, 42px); }
    .coming-soon-dialog__subtitle { margin-top: 8px; font-size: 16px; }
    .coming-soon-dialog__description { margin-top: 16px; font-size: 14px; line-height: 1.65; }
    .coming-soon-dialog__message { margin-top: 20px; padding: 14px 16px; font-size: 12px; }
    .coming-soon-dialog__confirm { margin-top: 20px; }
}

@media (orientation: landscape) and (max-height: 560px) {
    .coming-soon-dialog__header {
        padding: calc(var(--coming-safe-top) + 8px) calc(var(--coming-safe-right) + 20px) 4px calc(var(--coming-safe-left) + 20px);
    }
    .coming-soon-dialog__layout {
        grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
        gap: 32px;
        padding: 12px 24px 24px;
    }
    .coming-soon-dialog__poster { height: clamp(150px, 65svh, 280px); }
    .coming-soon-dialog__film { margin-top: 12px; }
    .coming-soon-dialog__film h2 { font-size: 32px; }
    .coming-soon-dialog__subtitle { margin-top: 6px; font-size: 15px; }
    .coming-soon-dialog__description { margin-top: 12px; font-size: 13px; }
    .coming-soon-dialog__message { margin-top: 14px; padding: 12px 14px; font-size: 12px; }
    .coming-soon-dialog__confirm { margin-top: 14px; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .coming-soon-dialog,
    .coming-soon-dialog * { transition: none !important; }
}

/* ===== ISLAMIA KIDS CAROUSEL CARD SPECIFIC STYLES ===== */
.movie-card-kids .movie-poster-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.movie-card-kids:hover .movie-poster-wrapper {
    border-color: rgba(45, 156, 219, 0.5);
    box-shadow: 0 12px 30px rgba(45, 156, 219, 0.25), 0 0 15px rgba(45, 156, 219, 0.15);
}
.kids-card-overlay {
    background: rgba(10, 10, 15, 0.25) !important;
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.kids-card-badge {
    background: linear-gradient(135deg, #FF5E5E, #FFAE00, #2D9CDB, #27AE60);
    color: #040407;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-shadow: none;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: kidsBadgePulse 2.5s ease-in-out infinite;
}
.movie-card-kids:hover .kids-card-badge {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(45, 156, 219, 0.4);
}
@keyframes kidsBadgePulse {
    0%, 100% { transform: scale(0.95); box-shadow: 0 4px 10px rgba(45, 156, 219, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(45, 156, 219, 0.5); }
}

/* ================================================================
   INTERACTIVE TIMELINE SECTION
   ================================================================ */
.history-timeline-section {
    position: relative;
    padding: 6rem 0;
    width: 100%;
    z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(228,201,106,0.055) 50%, transparent);
}

.timeline-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.timeline-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 4px;
}

.timeline-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.timeline-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.timeline-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline Layout */
.history-timeline-section .timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 4.5rem;
}

/* Horizontal Track */
.timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 960px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin: 3rem 0 1rem;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    box-shadow: 0 0 12px var(--accent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Nodes */
.timeline-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    transform: translateY(-50%);
}

.node-dot {
    width: 16px;
    height: 16px;
    background: #121214;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 0 0 rgba(201, 168, 76, 0);
}

.timeline-node:hover .node-dot {
    transform: scale(1.35);
    border-color: var(--accent-light);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-node.active .node-dot {
    transform: scale(1.45);
    background: var(--accent);
    border-color: var(--text-primary);
    box-shadow: 0 0 15px var(--accent);
}

.timeline-node.passed .node-dot {
    border-color: var(--accent);
    background: var(--accent);
}

.node-year {
    position: absolute;
    top: -2.2rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.timeline-node.active .node-year {
    color: var(--accent);
    transform: scale(1.1);
}

.node-label {
    position: absolute;
    top: 1.8rem;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.timeline-node.active .node-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* Event Detail Card */
.timeline-card {
    width: 100%;
    max-width: 760px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    background: radial-gradient(circle at 50% 0%,rgba(228,201,106,0.09),transparent 58%),linear-gradient(145deg,rgba(30,30,36,0.58),rgba(13,13,15,0.68)) !important;
    border: 1px solid rgba(228,201,106,0.14) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.15;
    pointer-events: none;
}

.timeline-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.timeline-card-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-card-year {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 850;
    color: var(--accent);
    background: rgba(201, 168, 76, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.timeline-card-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
}

.timeline-card-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.timeline-card-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.btn-timeline-watch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2.2rem !important;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(201, 168, 76, 0.25);
}

/* Mobile Vertical Adaptation */
@media (max-width: 768px) {
    .history-timeline-section {
        padding: 4rem 0;
    }

    .history-timeline-section .timeline-container {
        gap: 3rem;
        align-items: flex-start;
        padding: 0 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .timeline-track {
        flex-direction: column;
        width: 4px;
        height: 380px;
        margin: 2rem 0 2rem 35px;
        left: 0;
        transform: none;
    }

    .timeline-progress {
        width: 100% !important;
        height: 0%;
        transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .timeline-node {
        transform: translateY(-50%);
        flex-direction: row;
        width: calc(100vw - 110px);
        max-width: 260px;
        justify-content: flex-start;
        left: 0;
        margin-left: 24px;
    }

    .node-dot {
        position: absolute;
        left: -30px;
        top: 50%;
        transform: translateY(-50%) !important;
    }

    .timeline-node:hover .node-dot {
        transform: translateY(-50%) scale(1.35) !important;
    }

    .timeline-node.active .node-dot {
        transform: translateY(-50%) scale(1.45) !important;
    }

    .node-year {
        position: static;
        font-size: 0.95rem;
        margin-right: 0.8rem;
        transform: none !important;
        color: var(--accent);
    }

    .node-label {
        position: static;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .timeline-card {
        padding: 2rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .timeline-card-title {
        font-size: 1.25rem;
    }

    .timeline-card-desc {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* === DEDICATED COLLECTION PAGE STYLES === */
.collection-page-hero {
    padding: 10rem 0 4rem;
    position: relative;
    background: linear-gradient(180deg, rgba(18, 18, 30, 0.4) 0%, rgba(5, 5, 8, 0) 100%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.collection-page-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 40%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.collection-page-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.collection-filter-container {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.collection-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 2rem;
    border-radius: var(--r-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 3.5rem;
}

.filter-btn-group {
    display: flex;
    gap: 0.5rem;
}

.filter-tab-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: var(--r-lg);
    background: transparent;
    transition: all var(--fast);
}

.filter-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.filter-tab-btn.active {
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 4px 15px var(--accent-glow);
}

.collection-search-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(4, 4, 7, 0.6);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: var(--r-lg);
    width: 320px;
    max-width: 100%;
    transition: all var(--fast);
}

.collection-search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.collection-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 100%;
}

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

.collection-grid-section {
    padding-bottom: 8rem;
    background: var(--bg-primary);
    min-height: 400px;
}

.collection-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.collection-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .collection-filters-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1.2rem;
    }
    .filter-btn-group {
        justify-content: center;
    }
    .collection-search-box {
        width: 100%;
    }
}


/* === QUIZ SECTION === */
.quiz-section {
    position: relative;
    padding: 6rem 0 7rem;
    background: var(--bg-primary);
    overflow: hidden;
    z-index: 2;
}

.quiz-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 991px) {
    .quiz-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .quiz-info-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.quiz-badge {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 850;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.quiz-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.quiz-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 460px;
    margin-bottom: 2.2rem;
}

/* Score Stats Widget */
.quiz-stats-widget {
    display: flex;
    gap: 2rem;
    padding: 1.4rem 2rem;
    border-radius: var(--r-md);
    max-width: 320px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.08);
}

/* Quiz Card */
.quiz-card {
    position: relative;
    width: 100%;
    min-height: 420px;
    padding: 3.5rem clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-card-gradient) !important;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s var(--ease-smooth);
}

.quiz-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 168, 76, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.quiz-card.correct-glow {
    border-color: rgba(39, 174, 96, 0.35) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(39, 174, 96, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.quiz-card.wrong-glow {
    border-color: rgba(235, 87, 87, 0.35) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(235, 87, 87, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Visual Progress dots styles */
.quiz-progress-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    width: 100%;
}

.progress-dot {
    width: 35px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.progress-dot.active {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scaleY(1.2);
}

.progress-dot.correct {
    background: #27AE60;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.4);
}

.progress-dot.wrong {
    background: #eb5757;
    box-shadow: 0 0 10px rgba(235, 87, 87, 0.4);
}

/* Screen States Wrapper */
.quiz-screen {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: quizFadeIn 0.5s var(--ease-out) forwards;
}

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

/* Start Screen */
.quiz-emblem {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-subtle);
    border: 1.5px solid rgba(201, 168, 76, 0.25);
    color: var(--accent);
    margin-bottom: 1.8rem;
    box-shadow: 0 0 30px var(--accent-glow);
    animation: quizPulse 2.5s ease-in-out infinite;
}

.quiz-emblem svg {
    width: 32px;
    height: 32px;
}

@keyframes quizPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--accent-glow); }
    50% { transform: scale(1.06); box-shadow: 0 0 40px rgba(201, 168, 76, 0.4); }
}

.quiz-start-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.quiz-start-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    max-width: 340px;
    line-height: 1.6;
}

.btn-quiz-start {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 2.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--r-sm);
    box-shadow: 0 8px 25px var(--accent-glow);
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
}

.btn-quiz-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(201, 168, 76, 0.5);
}

/* Question Screen */
.quiz-q-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.quiz-q-counter {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.quiz-timer-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #27AE60;
    font-family: var(--font-display);
}

.quiz-timer-wrap.warning {
    color: #E2B13C;
}

.quiz-timer-wrap.danger {
    color: #eb5757;
    animation: quizAlert 0.5s ease infinite alternate;
}

@keyframes quizAlert {
    from { opacity: 1; }
    to { opacity: 0.4; }
}

.quiz-timer-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 1.8rem;
    overflow: hidden;
    position: relative;
}

.quiz-timer-fill {
    height: 100%;
    width: 100%;
    background: #27AE60;
    transition: width 0.1s linear;
}

.quiz-timer-fill.warning {
    background: #E2B13C;
}

.quiz-timer-fill.danger {
    background: #eb5757;
}

.quiz-q-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 2.2rem;
    text-align: left;
    width: 100%;
    min-height: 70px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.quiz-options .quiz-option-btn {
    opacity: 0;
    transform: translateY(10px);
    animation: optionFadeIn 0.4s var(--ease-out) forwards;
}

.quiz-options .quiz-option-btn:nth-child(1) { animation-delay: 0.05s; }
.quiz-options .quiz-option-btn:nth-child(2) { animation-delay: 0.12s; }
.quiz-options .quiz-option-btn:nth-child(3) { animation-delay: 0.19s; }
.quiz-options .quiz-option-btn:nth-child(4) { animation-delay: 0.26s; }

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

.quiz-option-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    padding: 1rem 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
    position: relative;
}

.quiz-option-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateX(6px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.05);
}

.quiz-option-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.quiz-option-btn:hover:not(:disabled) .quiz-option-badge {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.quiz-option-btn.correct {
    background: rgba(39, 174, 96, 0.12) !important;
    border-color: #27AE60 !important;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.1);
    opacity: 1 !important;
}

.quiz-option-btn.correct .quiz-option-badge {
    background: #27AE60 !important;
    border-color: #27AE60 !important;
    color: #040407 !important;
}

.quiz-option-btn.wrong {
    background: rgba(235, 87, 87, 0.12) !important;
    border-color: #eb5757 !important;
    animation: quizShake 0.4s ease forwards !important;
    box-shadow: 0 0 15px rgba(235, 87, 87, 0.1);
    opacity: 1 !important;
}

@keyframes quizShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.quiz-option-btn.wrong .quiz-option-badge {
    background: #eb5757 !important;
    border-color: #eb5757 !important;
    color: #040407 !important;
}

.quiz-action {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 2rem;
    min-height: 42px;
}

.btn-quiz-next {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--r-sm);
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.btn-quiz-next.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-quiz-next:hover {
    box-shadow: 0 6px 18px var(--accent-glow);
}

/* Results Screen */
.quiz-result-glow {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.05);
    border: 2px solid rgba(201, 168, 76, 0.2);
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 35px var(--accent-glow);
}

.quiz-result-score {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 850;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.quiz-result-rank {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.quiz-result-feedback {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.2rem;
    max-width: 360px;
}

.btn-quiz-restart {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2.2rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--r-sm);
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
}

.btn-quiz-restart:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.quiz-emblem svg {
    animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

/* ================================================================
   AUDIO NARRATOR STYLES
   ================================================================ */
.audio-narrator-panel {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.audio-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 0 10px var(--accent-glow);
}

.audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.audio-wave-container {
    flex: 1;
    height: 40px;
    position: relative;
    overflow: hidden;
}

#audioWaveCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.audio-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    min-width: 45px;
    text-align: right;
}

@media (max-width: 600px) {
    .audio-narrator-panel {
        gap: 0.8rem;
        padding: 0.6rem 0.9rem;
    }
}

.audio-narrator-panel[data-character-audio-panel] {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.9rem 1rem;
}

.character-audio-playback-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.character-audio-transport {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin-top: 0.65rem;
}

.character-audio-skip {
    min-width: 2.45rem;
    min-height: 2rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid rgba(224, 190, 94, 0.24);
    border-radius: 999px;
    color: #e8e6e1;
    background: rgba(232, 230, 225, 0.035);
    font: inherit;
    font-size: 0.66rem;
    font-weight: 760;
    cursor: pointer;
}

.character-audio-skip:is(:hover, :focus-visible):not(:disabled) {
    border-color: rgba(235, 201, 105, 0.64);
    color: #f0d477;
    background: rgba(235, 201, 105, 0.1);
}

.character-audio-skip:disabled {
    cursor: default;
    opacity: 0.35;
}

.character-audio-seek,
.character-audio-dock__seek {
    --character-audio-seek-progress: 0%;
    width: 100%;
    height: 1rem;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: transparent;
}

.character-audio-seek::-webkit-slider-runnable-track,
.character-audio-dock__seek::-webkit-slider-runnable-track {
    height: 0.24rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #d8b650 var(--character-audio-seek-progress), rgba(232, 230, 225, 0.14) var(--character-audio-seek-progress));
}

.character-audio-seek::-moz-range-track,
.character-audio-dock__seek::-moz-range-track {
    height: 0.24rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #d8b650 var(--character-audio-seek-progress), rgba(232, 230, 225, 0.14) var(--character-audio-seek-progress));
}

.character-audio-seek::-webkit-slider-thumb,
.character-audio-dock__seek::-webkit-slider-thumb {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: -0.33rem;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #191407;
    border-radius: 50%;
    background: #efd476;
    box-shadow: 0 0 0 2px rgba(239, 212, 118, 0.18);
}

.character-audio-seek::-moz-range-thumb,
.character-audio-dock__seek::-moz-range-thumb {
    width: 0.72rem;
    height: 0.72rem;
    border: 2px solid #191407;
    border-radius: 50%;
    background: #efd476;
    box-shadow: 0 0 0 2px rgba(239, 212, 118, 0.18);
}

.character-audio-seek:disabled,
.character-audio-dock__seek:disabled {
    cursor: default;
    opacity: 0.38;
}

.character-audio-seek:focus-visible,
.character-audio-dock__seek:focus-visible {
    outline: 2px solid #efd273;
    outline-offset: 3px;
}

.character-audio-duration {
    min-width: 2.8rem;
    color: #e8e6e1;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
    opacity: 0.72;
}

.audio-play-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    filter: saturate(0.35);
    box-shadow: none;
}

.audio-play-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.character-audio-download-panel {
    display: grid;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(232, 230, 225, 0.1);
}

.character-audio-status {
    margin: 0;
    color: #e8e6e1;
    font-size: 0.76rem;
    line-height: 1.45;
}

.character-audio-download-progress {
    position: relative;
    width: 100%;
    height: 0.28rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(232, 230, 225, 0.1);
}

.character-audio-download-progress > span {
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    border-radius: inherit;
    background: linear-gradient(90deg, #ad8128, #edd071);
    transition: transform 0.2s ease;
}

.character-audio-actions,
.character-audio-storage-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.character-audio-action,
#modalAudioDeleteAllBtn {
    min-height: 2rem;
    padding: 0.38rem 0.72rem;
    border: 1px solid rgba(224, 190, 94, 0.28);
    border-radius: 999px;
    color: #e8e6e1;
    background: rgba(232, 230, 225, 0.035);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.character-audio-action--primary {
    color: #171205;
    border-color: transparent;
    background: linear-gradient(145deg, #efd579, #bc902c);
}

.character-audio-action:is(:hover, :focus-visible),
#modalAudioDeleteAllBtn:is(:hover, :focus-visible) {
    border-color: rgba(235, 201, 105, 0.64);
    background-color: rgba(235, 201, 105, 0.1);
}

.character-audio-action:disabled {
    opacity: 0.5;
    cursor: wait;
}

.character-audio-storage-row {
    justify-content: space-between;
    padding-top: 0.15rem;
    color: #e8e6e1;
    font-size: 0.64rem;
}

#modalAudioDeleteAllBtn {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #d9b95d;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

[data-character-audio-panel] [hidden] {
    display: none !important;
}

[data-character-audio-panel][data-audio-state="unavailable"] .character-audio-playback-row,
[data-character-audio-panel][data-audio-state="appOnly"] .character-audio-playback-row,
[data-character-audio-panel][data-audio-state="unavailable"] .character-audio-transport,
[data-character-audio-panel][data-audio-state="appOnly"] .character-audio-transport {
    opacity: 0.52;
}

@media (max-width: 600px) {
    .audio-narrator-panel[data-character-audio-panel] { padding: 0.75rem 0.8rem; }
    .character-audio-playback-row { gap: 0.75rem; }
    .character-audio-transport { grid-template-columns: auto minmax(4rem, 1fr) auto; }
    .character-audio-duration { grid-column: 1 / -1; text-align: right; }
    .character-audio-actions { align-items: stretch; }
    .character-audio-action { flex: 1 1 auto; }
    .character-audio-storage-row { align-items: flex-start; flex-direction: column; }
}

/* Character archive pagination remains inside the scrollable detail record. */
.char-detail-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 2.25rem;
}

.char-detail-next {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    min-width: min(19rem, 100%);
    min-height: 4.5rem;
    padding: 0.75rem 0.8rem 0.75rem 1.15rem;
    overflow: hidden;
    border: 1px solid rgba(226, 190, 91, 0.3);
    border-radius: 1rem;
    color: #f3ede0;
    background:
        radial-gradient(circle at 90% 0%, rgba(225, 187, 83, 0.13), transparent 45%),
        linear-gradient(145deg, rgba(28, 24, 15, 0.82), rgba(8, 8, 9, 0.92));
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.04);
    font: inherit;
    text-align: left;
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.char-detail-next::before {
    content: '';
    position: absolute;
    top: 0;
    right: 1rem;
    left: 1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(237, 205, 113, 0.68), transparent);
    pointer-events: none;
}

.char-detail-next:is(:hover, :focus-visible) {
    border-color: rgba(235, 201, 105, 0.62);
    box-shadow: 0 1.15rem 2.8rem rgba(0, 0, 0, 0.34), 0 0 1.4rem rgba(196, 150, 44, 0.08);
    transform: translateY(-2px);
}

.char-detail-next:focus-visible {
    outline: 2px solid #efd173;
    outline-offset: 3px;
}

.char-detail-next-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.char-detail-next-copy > span {
    color: #d8b65a;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.char-detail-next-copy strong {
    overflow: hidden;
    color: #f4efe3;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.char-detail-next-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(229, 195, 98, 0.38);
    border-radius: 50%;
    color: #edcf75;
    background: rgba(215, 174, 58, 0.07);
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.char-detail-next-arrow svg {
    width: 1.1rem;
    height: 1.1rem;
}

.char-detail-next:is(:hover, :focus-visible) .char-detail-next-arrow {
    color: #171205;
    background: linear-gradient(145deg, #efd579, #bc902c);
    transform: translateX(2px);
}

@media (max-width: 600px) {
    .char-detail-navigation { padding-top: 1.7rem; }
    .char-detail-next {
        width: min(100%, 20rem);
        min-height: 4.15rem;
        border-radius: 0.9rem;
    }
}

/* ===== DAILY WISDOM SECTION (GÜNÜN HİKMETİ) ===== */
.daily-wisdom-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: #040407;
}

.daily-wisdom-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.daily-wisdom-section .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.wisdom-card {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: rgba(18, 18, 22, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--r-2xl);
    padding: 4rem 3rem 3rem 3rem;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.wisdom-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.15);
}

.wisdom-card-glow-1 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.wisdom-card-glow-2 {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 201, 106, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.wisdom-quote-icon {
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: -10px;
    left: 4rem;
    user-select: none;
    pointer-events: none;
}

.wisdom-quote-container {
    position: relative;
    z-index: 2;
    margin-bottom: 2.5rem;
}

.wisdom-quote-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
    letter-spacing: -0.3px;
    transition: opacity 0.25s ease;
}

.wisdom-quote-author {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    transition: opacity 0.25s ease;
}

.wisdom-card-actions {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn-wisdom-action {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-xl);
    cursor: pointer;
    transition: all var(--fast);
}

.btn-wisdom-action:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-wisdom-action svg {
    transition: transform var(--fast);
}

.btn-wisdom-action:hover svg {
    transform: scale(1.1);
}

/* Toast message styling */
.wisdom-toast {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translate(-50%, 50px);
    background: radial-gradient(circle at 50% 0%,rgba(228,201,106,0.12),transparent 70%),rgba(20,20,25,0.96);
    border: 1px solid var(--accent);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: var(--r-full);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
    z-index: 10008;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.wisdom-toast.active {
    transform: translate(-50%, 0);
    opacity: 1;
}

@media (max-width: 768px) {
    .wisdom-card {
        padding: 3.5rem 1.8rem 2.2rem 1.8rem;
    }
    .wisdom-quote-text {
        font-size: 1.3rem;
        line-height: 1.5;
    }
    .wisdom-quote-icon {
        font-size: 6rem;
        left: 2rem;
        top: -15px;
    }
}

/* ===== WHERE TO START GUIDE SECTION ===== */
.guide-section {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Subtle transition that stays attached to the guide itself. This replaces
   the detached horizontal divider that remained behind when the popular
   series and movie sections were disabled from the admin panel. */
.guide-section::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(228, 201, 106, 0.1) 16%,
        rgba(228, 201, 106, 0.56) 50%,
        rgba(228, 201, 106, 0.1) 84%,
        transparent 100%);
    box-shadow: 0 0 12px rgba(228, 201, 106, 0.2);
    transform: none;
    pointer-events: none;
}

.guide-section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 1rem auto 0;
    line-height: 1.6;
    text-align: center;
}

.guide-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.guide-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    border-radius: var(--r-2xl);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 168, 76, 0.06);
    color: #fff;
}

.guide-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.guide-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: brightness(0.35) saturate(0.8);
}

.guide-card:hover .guide-card-bg img {
    transform: scale(1.08);
    filter: brightness(0.45) saturate(1);
}

.guide-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(5, 5, 8, 0.2) 0%,
        rgba(5, 5, 8, 0.6) 45%,
        rgba(5, 5, 8, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.guide-card-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2.2rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    justify-content: flex-end;
}

.guide-card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card:hover .guide-card-icon-wrap {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.25);
    transform: scale(1.08);
}

.guide-card-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
    line-height: 1.25;
    text-align: center;
}

.guide-card-divider {
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 1.2rem;
    border-radius: 2px;
}

.guide-card-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 290px;
}

.guide-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    border: 1px solid rgba(201, 168, 76, 0.4);
    background: rgba(4, 4, 7, 0.55);
    border-radius: var(--r-xl);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
}

.guide-card:hover .guide-card-cta {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

.guide-card:hover .guide-card-cta svg {
    transform: translateX(3px);
    transition: transform 0.3s ease;
}

/* Featured (center) card */
.guide-card-featured {
    border-color: rgba(201, 168, 76, 0.12);
}

.guide-card-featured .guide-card-bg img {
    filter: brightness(0.4) saturate(0.9);
}

.guide-card-featured:hover .guide-card-bg img {
    filter: brightness(0.55) saturate(1.1);
}

/* Footer text */
.guide-footer-text {
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-top: 3.5rem;
    letter-spacing: 0.3px;
}

.guide-footer-text em {
    color: var(--accent);
    font-style: italic;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .guide-cards-row {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        gap: 1.2rem;
    }

    .guide-card {
        min-height: 340px;
    }
}

@media (max-width: 576px) {
    .guide-section {
        padding: 4rem 0 3rem;
    }

    .guide-card {
        min-height: 300px;
    }

    .guide-card-content {
        padding: 2rem 1.5rem;
    }

    .guide-card-title {
        font-size: 1.35rem;
    }
}

/* ===== PREMIUM EDITORIAL GUIDE — 2026 REDESIGN ===== */
.guide-section {
    isolation: isolate;
    padding: clamp(7rem, 9vw, 10rem) 0 clamp(6rem, 8vw, 9rem);
    background:
        radial-gradient(circle at 14% 26%, rgba(201, 168, 76, 0.075), transparent 27%),
        radial-gradient(circle at 88% 72%, rgba(32, 49, 52, 0.18), transparent 33%),
        #050608;
}

.guide-section::before {
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 4%, rgba(201, 168, 76, 0.08) 23%, rgba(201, 168, 76, 0.52) 50%, rgba(201, 168, 76, 0.08) 77%, transparent 96%);
    box-shadow: none;
}

.guide-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 78%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 78%, transparent);
}

.guide-section__inner {
    position: relative;
}

.guide-section__header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
    align-items: end;
    gap: clamp(2rem, 8vw, 8rem);
}

.guide-section__heading {
    min-width: 0;
}

.guide-section__kicker {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.guide-section__kicker::before {
    display: none;
}

.guide-section .section-title {
    max-width: 760px;
    margin: 0;
    color: #f4f1e9;
    font-size: clamp(3.25rem, 5.6vw, 6.25rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
    text-align: left;
}

.guide-section .section-title .text-accent {
    color: var(--accent);
}

.guide-section-desc {
    max-width: 450px;
    margin: 0 0 0.3rem;
    color: rgba(233, 230, 220, 0.58);
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    text-align: left;
}

.guide-cards-row {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(340px, 0.78fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.4vw, 1.35rem);
    height: clamp(590px, 48vw, 720px);
    margin-top: clamp(3rem, 5vw, 5rem);
}

.guide-card,
.guide-card:hover {
    min-height: 0;
    border: 1px solid rgba(231, 211, 151, 0.16);
    border-radius: 1.5rem;
    background: #0b0b0d;
    color: #fff;
    box-shadow: none;
    transform: none;
}

.guide-card {
    isolation: isolate;
    transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.guide-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 18%, transparent 76%, rgba(201, 168, 76, 0.08));
    opacity: 0.3;
    transition: opacity 0.45s ease;
}

.guide-card:hover {
    border-color: rgba(222, 188, 92, 0.44);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(201, 168, 76, 0.05) inset;
}

.guide-card:hover::before {
    opacity: 0.75;
}

.guide-card--primary {
    grid-row: 1 / 3;
}

.guide-card-bg,
.guide-card-bg::after {
    position: absolute;
    inset: 0;
}

.guide-card-bg {
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
}

.guide-card-bg::after {
    content: '';
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 4, 6, 0.08) 22%, rgba(3, 4, 6, 0.22) 48%, rgba(3, 4, 6, 0.92) 100%);
}

.guide-card--primary .guide-card-bg::after {
    background:
        linear-gradient(180deg, rgba(3, 4, 6, 0.04) 18%, rgba(3, 4, 6, 0.28) 54%, rgba(3, 4, 6, 0.94) 100%),
        linear-gradient(90deg, rgba(3, 4, 6, 0.28), transparent 58%);
}

.guide-card-bg img,
.guide-card:hover .guide-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) brightness(0.82) contrast(1.05);
    transform: scale(1.002);
    transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
}

.guide-card:hover .guide-card-bg img {
    filter: saturate(0.98) brightness(0.9) contrast(1.04);
    transform: scale(1.045);
}

.guide-card--primary .guide-card-bg img {
    object-position: 55% center;
}

.guide-card--collection .guide-card-bg img {
    object-position: 42% 54%;
}

.guide-card--discover .guide-card-bg img {
    object-position: 36% 52%;
}

.guide-card-overlay {
    display: none;
}

.guide-card-topline {
    position: absolute;
    top: clamp(1.25rem, 2.2vw, 2rem);
    left: clamp(1.25rem, 2.2vw, 2rem);
    right: clamp(1.25rem, 2.2vw, 2rem);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.guide-card-category {
    margin-left: auto;
    text-align: right;
}

.guide-card-content {
    position: relative;
    z-index: 4;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: clamp(2rem, 4vw, 4.1rem);
    text-align: left;
}

.guide-card--compact .guide-card-content {
    padding: clamp(1.6rem, 2.4vw, 2.6rem);
}

.guide-card-title {
    max-width: 650px;
    margin: 0 0 0.9rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.25vw, 4.8rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-align: left;
    text-wrap: balance;
}

.guide-card--compact .guide-card-title {
    max-width: 420px;
    margin-bottom: 0.5rem;
    font-size: clamp(1.65rem, 2.3vw, 2.65rem);
    line-height: 1.02;
}

.guide-card-desc {
    max-width: 530px;
    margin: 0 0 clamp(1.35rem, 2.4vw, 2.2rem);
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(0.84rem, 1.05vw, 1rem);
    line-height: 1.65;
    text-align: left;
}

.guide-card--compact .guide-card-desc {
    display: -webkit-box;
    max-width: 420px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
    line-height: 1.55;
}

.guide-card-cta,
.guide-card:hover .guide-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #f4ddb0;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guide-card-cta::before {
    display: none;
}

.guide-card-cta i {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(228, 201, 106, 0.45);
    border-radius: 50%;
    color: var(--accent);
    transition: color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.guide-card:hover .guide-card-cta::before {
    display: none;
}

.guide-card:hover .guide-card-cta i {
    color: #080808;
    background: var(--accent);
    transform: translateX(0.25rem);
}

.guide-card:hover .guide-card-cta svg {
    transform: none;
}

.guide-section__footer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.guide-section__footer > span {
    display: none;
}

.guide-footer-text {
    margin: 0;
    color: rgba(231, 228, 218, 0.48);
    font-size: 0.82rem;
    letter-spacing: 0.045em;
    text-align: left;
}

.guide-footer-text em {
    color: #dec47c;
    font-style: normal;
}

@media (max-width: 1100px) {
    .guide-cards-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 480px 330px;
        height: auto;
    }

    .guide-card--primary {
        grid-row: auto;
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .guide-section {
        padding: 5.5rem 0 4.5rem;
    }

    .guide-section__header {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        text-align: center;
    }

    .guide-section__kicker {
        justify-content: center;
    }

    .guide-section .section-title,
    .guide-section-desc {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .guide-section .section-title {
        font-size: clamp(3rem, 13vw, 4.6rem);
    }

    .guide-section-desc {
        max-width: 32rem;
    }

    .guide-cards-row {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        max-width: 38rem;
        margin-top: 2.75rem;
        gap: 1rem;
    }

    .guide-card,
    .guide-card--primary,
    .guide-card--compact {
        grid-column: auto;
        min-height: 390px;
    }

    .guide-card--primary {
        min-height: 470px;
    }

    .guide-card-content,
    .guide-card--compact .guide-card-content {
        padding: 2rem;
    }

    .guide-card-title,
    .guide-card--compact .guide-card-title {
        font-size: clamp(2rem, 8vw, 3.1rem);
    }

    .guide-card--compact .guide-card-desc {
        font-size: 0.84rem;
        -webkit-line-clamp: 3;
    }

    .guide-card--primary .guide-card-bg img,
    .guide-card--collection .guide-card-bg img,
    .guide-card--discover .guide-card-bg img {
        object-position: center;
    }

    .guide-section__footer {
        justify-content: center;
        margin-top: 2rem;
    }

    .guide-footer-text {
        max-width: 28rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .guide-section__kicker {
        font-size: 0.64rem;
    }

    .guide-card,
    .guide-card--primary,
    .guide-card--compact {
        min-height: 355px;
        border-radius: 1.15rem;
    }

    .guide-card--primary {
        min-height: 420px;
    }

    .guide-card-topline {
        top: 1.25rem;
        left: 1.25rem;
        right: 1.25rem;
        font-size: 0.57rem;
    }

    .guide-card-content,
    .guide-card--compact .guide-card-content {
        padding: 1.5rem;
    }

    .guide-card-desc,
    .guide-card--compact .guide-card-desc {
        font-size: 0.8rem;
    }

    .guide-card-cta,
    .guide-card:hover .guide-card-cta {
        gap: 0.7rem;
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }

    .guide-card-cta::before {
        width: 1.4rem;
    }

    .guide-card-cta i {
        width: 2.2rem;
        height: 2.2rem;
    }

    .guide-section__footer > span {
        display: none;
    }
}

/* ===== PREMIUM DISCOVERY BENTO — FIVE-PATH LAYOUT ===== */
.guide-section {
    padding: clamp(5.5rem, 7vw, 8rem) 0 clamp(5rem, 7vw, 7.5rem);
    background:
        radial-gradient(circle at 13% 20%, rgba(188, 142, 42, .1), transparent 27%),
        radial-gradient(circle at 83% 35%, rgba(18, 48, 68, .18), transparent 34%),
        linear-gradient(135deg, #05080d 0%, #04070b 52%, #061019 100%);
}

.guide-section__header {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .72fr);
    align-items: center;
    gap: clamp(2rem, 8vw, 8rem);
}

.guide-section__kicker {
    margin-bottom: 1rem;
    color: #d4ad42;
    font-size: .68rem;
}

.guide-section .section-title {
    max-width: 820px;
    font-size: clamp(3.3rem, 5vw, 5.65rem);
    line-height: .94;
}

.guide-section-desc {
    padding-left: 1.45rem;
    border-left: 1px solid rgba(218, 177, 65, .58);
    color: rgba(232, 230, 225, .68);
    font-size: clamp(.9rem, 1.05vw, 1.05rem);
    line-height: 1.75;
}

.guide-cards-row {
    grid-template-columns: minmax(0, 1.38fr) minmax(390px, 1fr);
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    height: clamp(620px, 43vw, 710px);
    margin-top: clamp(2.75rem, 4vw, 4rem);
}

.guide-card,
.guide-card:hover {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(218, 177, 65, .29);
    border-radius: 1.25rem;
    background: #080b0f;
    box-shadow: inset 0 1px rgba(255,255,255,.045);
}

.guide-card:focus-visible {
    outline: 2px solid #e4c96a;
    outline-offset: 3px;
}

.guide-card--primary {
    grid-row: 1 / 5;
    display: flex;
    align-items: flex-end;
}

.guide-card-bg,
.guide-card-bg::after {
    position: absolute;
    inset: 0;
}

.guide-card-bg img,
.guide-card:hover .guide-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.86) brightness(.82) contrast(1.06);
}

.guide-card--primary .guide-card-bg img { object-position: 55% center; }
.guide-card--primary .guide-card-bg::after {
    background: linear-gradient(180deg, rgba(3,5,8,.04) 16%, rgba(3,5,8,.12) 38%, rgba(3,5,8,.92) 78%, #05070a 100%);
}

.guide-card-topline {
    top: clamp(1.3rem, 2vw, 1.8rem);
    left: clamp(1.3rem, 2vw, 1.8rem);
}

.guide-card-featured-badge {
    padding: .48rem .72rem;
    border: 1px solid rgba(228, 201, 106, .5);
    border-radius: 999px;
    color: #f0d574;
    background: rgba(4, 7, 10, .58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: .63rem;
    letter-spacing: .09em;
}

.guide-card--primary .guide-card-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: clamp(1.7rem, 3vw, 3rem);
}

.guide-card--primary .guide-card-title {
    max-width: 650px;
    margin-bottom: .8rem;
    font-size: clamp(2.65rem, 4vw, 4.65rem);
}

.guide-card--primary .guide-card-desc {
    max-width: 650px;
    margin-bottom: 1.25rem;
    font-size: clamp(.82rem, .95vw, .96rem);
}

.guide-card-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(1.25rem, 2.4vw, 2.2rem);
    padding: .95rem 1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .8rem;
    background: rgba(8, 10, 13, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.guide-card-stats > span {
    min-width: 0;
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: .7rem;
    padding: 0 1rem;
    border-right: 1px solid rgba(255,255,255,.1);
}

.guide-card-stats > span:first-child { padding-left: 0; }
.guide-card-stats > span:last-child { padding-right: 0; border-right: 0; }
.guide-card-stats i { grid-row: 1 / 3; width: 2.3rem; height: 2.3rem; display:grid; place-items:center; border:1px solid rgba(228,201,106,.35); border-radius:50%; color:#e4c96a; font-style:normal; }
.guide-card-stats strong { overflow-wrap:anywhere; color:#f5f2e9; font-size:.78rem; line-height:1.15; }
.guide-card-stats small { overflow-wrap:anywhere; color:rgba(232,230,225,.5); font-size:.62rem; line-height:1.2; }

.guide-card--compact {
    grid-column: 2;
    display: grid;
    grid-template-columns: 3.7rem minmax(0, 1fr) 2.65rem;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem 1rem 1.4rem;
}

.guide-card--compact .guide-card-bg::after {
    background: linear-gradient(90deg, #080b0f 0%, rgba(8,11,15,.97) 38%, rgba(8,11,15,.63) 64%, rgba(8,11,15,.12) 100%);
}

.guide-card--compact .guide-card-bg img {
    object-position: 82% center;
}

.guide-card-icon,
.guide-card-arrow {
    position: relative;
    z-index: 4;
    display: grid;
    place-items: center;
    color: #dfbd58;
}

.guide-card-icon {
    width: 3.7rem;
    height: 3.7rem;
    border: 1px solid rgba(228,201,106,.28);
    border-radius: .85rem;
    background: rgba(218,177,65,.08);
}

.guide-card-icon svg { width:1.55rem; height:1.55rem; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.guide-card-arrow { width:2.65rem; height:2.65rem; border:1px solid rgba(255,255,255,.3); border-radius:50%; color:#f6f2e9; background:rgba(4,7,10,.45); }
.guide-card-arrow svg { width:1rem; height:1rem; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

.guide-card--compact .guide-card-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 0;
}

.guide-card--compact .guide-card-title {
    max-width: 15rem;
    margin: 0 0 .35rem;
    font-size: clamp(1.05rem, 1.45vw, 1.45rem);
    line-height: 1.05;
}

.guide-card--compact .guide-card-desc {
    max-width: 15rem;
    margin: 0;
    color: rgba(232,230,225,.64);
    font-size: clamp(.68rem, .76vw, .78rem);
    line-height: 1.42;
    -webkit-line-clamp: 2;
}

.guide-section__footer { margin-top: 2rem; }

@media (max-width: 1100px) {
    .guide-cards-row {
        grid-template-columns: minmax(0, 1.15fr) minmax(330px, .9fr);
        grid-template-rows: repeat(4, minmax(0, 1fr));
        height: 620px;
    }
    .guide-card--primary { grid-row: 1 / 5; grid-column: 1; }
    .guide-card--compact { grid-column: 2; }
    .guide-card-stats > span { grid-template-columns:1fr; grid-template-rows:auto auto auto; justify-items:center; gap:.3rem; padding-inline:.5rem; text-align:center; }
    .guide-card-stats i { grid-row:auto; width:2rem; height:2rem; }
}

@media (max-width: 760px) {
    .guide-section { padding: 4.75rem 0 4rem; }
    .guide-section__header { grid-template-columns: 1fr; gap:1.15rem; }
    .guide-section__kicker { justify-content:flex-start; }
    .guide-section .section-title,
    .guide-section-desc { margin-right:0; margin-left:0; text-align:left; }
    .guide-section .section-title { font-size:clamp(2.8rem,12vw,4.2rem); }
    .guide-section-desc { max-width:34rem; padding-left:1rem; }
    .guide-cards-row { grid-template-columns:1fr; grid-template-rows:none; height:auto; max-width:38rem; margin-top:2.25rem; }
    .guide-card--primary { grid-column:1; grid-row:auto; min-height:480px; }
    .guide-card--compact { grid-column:1; min-height:124px; }
    .guide-card--primary .guide-card-content { padding:1.7rem; }
    .guide-card--primary .guide-card-title { font-size:clamp(2.25rem,10vw,3.5rem); }
    .guide-card--compact .guide-card-title { font-size:1.15rem; }
    .guide-section__footer { justify-content:flex-start; }
    .guide-footer-text { margin-left:0; text-align:left; }
}

@media (max-width: 480px) {
    .guide-section { padding:4rem 0 3.5rem; }
    .guide-section .section-title { font-size:clamp(2.65rem,13vw,3.55rem); }
    .guide-card,
    .guide-card--primary,
    .guide-card--compact { border-radius:1rem; }
    .guide-card--primary { min-height:440px; }
    .guide-card--primary .guide-card-content { padding:1.25rem; }
    .guide-card--primary .guide-card-title { font-size:2.35rem; }
    .guide-card--primary .guide-card-desc { font-size:.76rem; }
    .guide-card-stats { padding:.75rem .45rem; }
    .guide-card-stats > span { padding-inline:.35rem; }
    .guide-card-stats i { width:1.75rem; height:1.75rem; font-size:.72rem; }
    .guide-card-stats strong { font-size:.63rem; }
    .guide-card-stats small { font-size:.52rem; }
    .guide-card--compact { grid-template-columns:2.65rem minmax(0,1fr) 2.2rem; min-height:112px; gap:.7rem; padding:.8rem .75rem .8rem .9rem; }
    .guide-card-icon { width:2.65rem; height:2.65rem; border-radius:.7rem; }
    .guide-card-icon svg { width:1.25rem; height:1.25rem; }
    .guide-card-arrow { width:2.2rem; height:2.2rem; }
    .guide-card--compact .guide-card-title { max-width:11rem; font-size:.98rem; }
    .guide-card--compact .guide-card-desc { max-width:11rem; font-size:.64rem; }
}

/* ===== DOWNLOADED CHARACTER AUDIO MANAGER ===== */
body.character-audio-manager-open {
    overflow: hidden;
}

.character-audio-manager[hidden],
.character-audio-manager__empty[hidden],
.character-audio-manager__progress[hidden],
.character-audio-manager__delete-all[hidden] {
    display: none !important;
}

.character-audio-manager {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: grid;
    place-items: center;
    padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    color: #e8e6e1;
    font-family: var(--font-body, 'Outfit', 'Inter', sans-serif);
}

.character-audio-manager__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(0.6rem);
    -webkit-backdrop-filter: blur(0.6rem);
}

.character-audio-manager__dialog {
    position: relative;
    width: min(43rem, 100%);
    max-height: min(46rem, calc(100dvh - 2rem));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    overflow: hidden;
    border: 1px solid rgba(222, 189, 91, 0.38);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 8% 0%, rgba(219, 181, 76, 0.14), transparent 35%),
        linear-gradient(145deg, #17140d, #080806 65%, #110d05);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 244, 207, 0.03) inset;
}

.character-audio-manager__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 1.05rem 1.1rem;
    border-bottom: 1px solid rgba(232, 230, 225, 0.09);
}

.character-audio-manager__mark {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(225, 193, 96, 0.45);
    border-radius: 50%;
    color: #e2c36b;
    background: rgba(210, 169, 56, 0.06);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.character-audio-manager__heading {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.character-audio-manager__heading strong {
    color: #f4efe4;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1rem;
}

.character-audio-manager__heading > span {
    color: #e8e6e1;
    font-size: 0.72rem;
    line-height: 1.4;
    opacity: 0.68;
}

.character-audio-manager__close {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232, 230, 225, 0.12);
    border-radius: 50%;
    color: #e8e6e1;
    background: rgba(232, 230, 225, 0.035);
    cursor: pointer;
}

.character-audio-manager__close svg {
    width: 1rem;
    height: 1rem;
}

.character-audio-manager__summary {
    padding: 0.75rem 1.1rem;
    color: #d9bd68;
    font-size: 0.7rem;
    font-weight: 720;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.character-audio-manager__list {
    display: grid;
    gap: 0.6rem;
    overflow-y: auto;
    padding: 0 1.1rem 1rem;
    scrollbar-color: rgba(218, 183, 81, 0.55) transparent;
}

.character-audio-manager__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(232, 230, 225, 0.09);
    border-radius: 0.85rem;
    background: rgba(232, 230, 225, 0.025);
}

.character-audio-manager__item-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.character-audio-manager__item-copy strong,
.character-audio-manager__item-copy > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-audio-manager__item-copy strong {
    color: #f4efe4;
    font-size: 0.85rem;
}

.character-audio-manager__item-copy > span {
    color: #e8e6e1;
    font-size: 0.67rem;
    opacity: 0.68;
}

.character-audio-manager__item-copy .character-audio-manager__item-status {
    margin-top: 0.22rem;
    color: #dabb61;
    opacity: 0.88;
}

.character-audio-manager__progress {
    grid-column: 1 / -1;
    height: 0.22rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(232, 230, 225, 0.1);
}

.character-audio-manager__progress > span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ad8128, #edd071);
    transform-origin: left center;
}

.character-audio-manager__item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.character-audio-manager__action,
.character-audio-manager__delete-all {
    min-height: 2.15rem;
    padding: 0.38rem 0.68rem;
    border: 1px solid rgba(224, 190, 94, 0.28);
    border-radius: 999px;
    color: #e8e6e1;
    background: rgba(232, 230, 225, 0.035);
    font: inherit;
    font-size: 0.65rem;
    font-weight: 740;
    cursor: pointer;
}

.character-audio-manager__action.is-primary {
    border-color: transparent;
    color: #171205;
    background: linear-gradient(145deg, #efd579, #bc902c);
}

.character-audio-manager__action:is(:hover, :focus-visible),
.character-audio-manager__delete-all:is(:hover, :focus-visible),
.character-audio-manager__close:is(:hover, :focus-visible) {
    border-color: rgba(235, 201, 105, 0.64);
    outline: none;
    box-shadow: 0 0 0 2px rgba(235, 201, 105, 0.14);
}

.character-audio-manager__empty {
    margin: 0;
    padding: 2rem 1.1rem 2.5rem;
    color: #e8e6e1;
    font-size: 0.8rem;
    line-height: 1.55;
    text-align: center;
    opacity: 0.74;
}

.character-audio-manager__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-top: 1px solid rgba(232, 230, 225, 0.09);
}

.character-audio-manager__storage {
    color: #e8e6e1;
    font-size: 0.65rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .character-audio-manager {
        place-items: end center;
        padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0 0;
    }

    .character-audio-manager__dialog {
        width: 100%;
        max-height: calc(100dvh - max(0.5rem, env(safe-area-inset-top, 0px)));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 1.2rem 1.2rem 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .character-audio-manager__item {
        grid-template-columns: minmax(0, 1fr);
    }

    .character-audio-manager__item-actions {
        justify-content: flex-start;
    }

    .character-audio-manager__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===== PERSISTENT CHARACTER AUDIO DOCK ===== */
/* Quiet surfaces keep playback separate from download management. */
.character-audio-dock {
    position: fixed;
    z-index: 9895;
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    width: min(420px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px 12px;
    padding: 16px 18px 12px;
    border: 1px solid #ffffff1c;
    border-radius: 24px;
    color: #e8e6e1;
    background: #181819f5;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 12px 40px #0007;
    font-family: var(--font-body, 'Outfit', sans-serif);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity .2s ease, transform .3s ease, visibility 0s .3s;
}
.character-audio-dock--visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.character-audio-dock__record {
    display: flex; align-items: center; gap: 12px; min-width: 0;
    border: 0; border-radius: 12px; background: none; color: inherit;
    text-align: left; padding: 0; font: inherit; cursor: pointer;
}
.character-audio-dock__portrait, .character-audio-manager__portrait {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; object-fit: cover; background: #282827;
}
.character-audio-dock__portrait[hidden], .character-audio-manager__portrait[hidden] { display: none; }
.character-audio-dock__copy { display: grid; gap: 3px; min-width: 0; }
.character-audio-dock__title, .character-audio-dock__subtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.character-audio-dock__title { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.2px; }
.character-audio-dock__subtitle { font-size: 12px; font-weight: 400; line-height: 1.4; color: #e8e6e1; }
.character-audio-dock__library {
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 0; border-radius: 50%; background: none; color: #e8e6e1; cursor: pointer;
}
.character-audio-dock__library svg { width: 22px; height: 22px; }
.character-audio-dock__controls {
    grid-column: 1 / -1; display: grid; grid-template-columns: 44px 44px 52px 44px 44px;
    align-items: center; justify-content: space-between; gap: 6px; padding: 0 6px;
}
.character-audio-dock__action {
    display: grid; place-items: center; width: 44px; height: 44px; min-width: 0;
    border: 0; border-radius: 50%; padding: 0; background: none; color: #e8e6e1;
    cursor: pointer; transition: background .15s, transform .15s;
}
.character-audio-dock__action svg { width: 23px; height: 23px; fill: currentColor; }
.character-audio-dock__close { justify-self: end; align-self: start; }
.character-audio-dock__close svg { width: 20px; height: 20px; fill: none; }
.character-audio-dock__action .character-audio-dock__skip-icon { fill: none; }
.character-audio-dock__action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.character-audio-dock__action--toggle { width: 52px; height: 52px; background: #e4c76d; color: #211b0e; }
.character-audio-dock__action--toggle svg { width: 22px; height: 22px; }
.character-audio-dock__action:disabled { opacity: .3; cursor: default; }
.character-audio-dock__action:active:not(:disabled) { transform: scale(.94); }
.character-audio-dock__action:hover:not(:disabled), .character-audio-dock__library:hover { background: #ffffff0d; }
.character-audio-dock__action--toggle:hover:not(:disabled) { background: #edda97; }
.character-audio-dock button:focus-visible { outline: 2px solid #e4c76d; outline-offset: 2px; }
.character-audio-dock__timeline { grid-column: 1 / -1; display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.character-audio-dock__time, .character-audio-dock__duration { font: 400 10px/1.3 'Inter', sans-serif; font-variant-numeric: tabular-nums; color: #e8e6e1; }
.character-audio-dock__duration { text-align: right; }
.character-audio-dock__seek { height: 28px; }
.character-audio-dock__status { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.character-audio-dock__status:empty { display: none; }
@media (max-width: 760px) {
    .character-audio-dock {
        left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
        bottom: calc(var(--mobile-bottom-nav-height, 74px) + env(safe-area-inset-bottom, 0px) + 10px);
        width: auto; padding: 14px 16px 10px; gap: 6px 10px; border-radius: 22px;
    }
}

#charDetail .audio-narrator-panel[data-character-audio-panel] {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px 18px; margin: 20px 0 24px; border: 1px solid #ffffff12;
    border-radius: 18px; background: #161615; box-shadow: none; backdrop-filter: none;
}
#charDetail .character-audio-playback-row {
    display: grid; grid-template-columns: minmax(0,1fr) 40px 48px 40px minmax(0,1fr); grid-template-rows: auto auto auto;
    gap: 6px 8px; align-items: center; opacity: 1;
}
#charDetail .character-audio-heading {
    grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
    color: #e8e6e1; font: 500 12px/1.4 'Inter', sans-serif;
}
#charDetail .character-audio-heading svg { width: 17px; height: 17px; flex-shrink: 0; color: #d9c481; }
#charDetail .character-audio-downloaded { display: inline-flex; flex: 0 0 14px; width: 14px; height: 14px; margin-inline-start: 2px; }
#charDetail .character-audio-heading .character-audio-downloaded svg { width: 14px; height: 14px; color: #adc78d; }
#charDetail .character-audio-download-indicator {
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; margin-inline-start: auto;
    color: #e8e6e1; font: 400 10px/1.4 'Inter', sans-serif; font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#charDetail [data-audio-download-amount] { direction: ltr; unicode-bidi: isolate; }
#charDetail .character-audio-heading .character-audio-download-icon { width: 16px; height: 16px; color: #e4c76d; }
#charDetail .character-audio-download-arrow { animation: character-audio-download-arrow 1.1s ease-in-out infinite; }
@keyframes character-audio-download-arrow {
    0%, 100% { transform: translateY(-2px); opacity: .55; }
    50% { transform: translateY(1px); opacity: 1; }
}
#charDetail .audio-play-btn {
    grid-column: 3; grid-row: 2; justify-self: center; width: 48px; height: 48px;
    color: #211b0e; border: 0; border-radius: 50%; background: #e4c76d;
    box-shadow: none; transition: transform .18s ease, background .18s ease;
}
#charDetail .audio-play-btn svg { width: 21px; height: 21px; }
#charDetail .audio-play-btn:hover:not(:disabled) { background: #edda97; transform: scale(1.04); box-shadow: none; }
#charDetail .audio-play-btn:active:not(:disabled) { transform: scale(.96); }
#charDetail .audio-play-btn:disabled { opacity: 1; color: #d5c898; background: #292722; box-shadow: none; filter: none; }
#charDetail .audio-play-btn:focus-visible, #charDetail .character-audio-skip:focus-visible { outline: 2px solid #e4c76d; outline-offset: 4px; }
#charDetail .character-audio-skip {
    position: relative; grid-row: 2; width: 40px; height: 44px; min-width: 0;
    padding: 0; border: 0; background: none; color: #e8e6e1; border-radius: 50%;
}
#charDetail #modalAudioRewindBtn { grid-column: 2; justify-self: center; }
#charDetail #modalAudioForwardBtn { grid-column: 4; justify-self: center; }
#charDetail .character-audio-skip svg { position: absolute; top: 10px; left: 8px; width: 24px; height: 24px; }
#charDetail .character-audio-skip span { position: absolute; top: 18px; left: 0; right: 0; font: 500 9px/1.2 'Inter', sans-serif; }
#charDetail .character-audio-skip:disabled { opacity: .28; }
#charDetail .character-audio-timeline { grid-column: 1 / -1; grid-row: 3; min-width: 0; direction: ltr; }
#charDetail .character-audio-wave { width: 100%; height: 32px; overflow: hidden; pointer-events: none; }
#charDetail #audioWaveCanvas { display: block; width: 100%; height: 100%; }
#charDetail .character-audio-seek { height: 16px; display: block; }
#charDetail .character-audio-time-labels { display: flex; justify-content: space-between; gap: 8px; }
#charDetail .character-audio-time-labels .audio-time, #charDetail .character-audio-duration { min-width: 0; color: #e8e6e1; opacity: 1; font: 400 11px/1.4 'Inter', sans-serif; font-variant-numeric: tabular-nums; }
#charDetail .character-audio-download-panel { display: grid; border: 0; padding: 0; margin-top: 14px; gap: 12px; }
#charDetail .character-audio-status { color: #e8e6e1; margin: 0; font: 400 12px/1.5 'Inter', sans-serif; }
#charDetail [data-audio-state='checking'] .character-audio-download-panel,
#charDetail [data-audio-state='notDownloaded'] .character-audio-download-panel,
#charDetail [data-audio-state='completed'] .character-audio-download-panel { display: none; }
#charDetail [data-audio-state='webReady'] .character-audio-download-panel:has(.character-audio-status[hidden]) { display: none; }
.character-audio-manager__item-status:empty { display: none; }
#charDetail [data-audio-state='completed'] .character-audio-status { text-align: center; }
#charDetail .character-audio-actions { display: flex; }
#charDetail .character-audio-actions:not(:has(> :not([hidden]))) { display: none; }
#charDetail .character-audio-action--primary {
    width: 100%; min-height: 44px; display: flex; justify-content: center; align-items: center; gap: 9px;
    padding: 10px 12px; border: 1px solid #ffffff20; border-radius: 13px; background: #ffffff05;
    color: #e8e6e1; font: 500 12px/1.4 'Inter', sans-serif; box-shadow: none;
}
#charDetail .character-audio-action--primary svg { width: 17px; height: 17px; flex-shrink: 0; }
#charDetail .character-audio-action--primary:hover { background: #ffffff0d; }
#charDetail [data-audio-state]:not([data-audio-state='notDownloaded']) .character-audio-action--primary svg { display: none; }
#charDetail .character-audio-download-progress { height: 4px; border-radius: 8px; }
#charDetail [data-character-audio-panel]:is([data-audio-state='unavailable'], [data-audio-state='appOnly']) .character-audio-timeline,
#charDetail [data-character-audio-panel]:is([data-audio-state='unavailable'], [data-audio-state='appOnly']) .character-audio-skip { display: none; }
#charDetail [data-character-audio-panel]:is([data-audio-state='unavailable'], [data-audio-state='appOnly']) .character-audio-playback-row { grid-template-columns: 52px minmax(0,1fr); grid-template-rows: auto; gap: 12px; }
#charDetail [data-character-audio-panel]:is([data-audio-state='unavailable'], [data-audio-state='appOnly']) .audio-play-btn { grid-column: 1; grid-row: 1; width: 52px; height: 52px; }
#charDetail [data-character-audio-panel]:is([data-audio-state='unavailable'], [data-audio-state='appOnly']) .character-audio-heading { grid-column: 2; grid-row: 1; }
#charDetail [data-character-audio-panel]:is([data-audio-state='unavailable'], [data-audio-state='appOnly']) .character-audio-heading svg { display: none; }
@media (max-width: 600px) {
    #charDetail .audio-narrator-panel[data-character-audio-panel] { padding: 12px 14px; border-radius: 16px; }
    #charDetail .character-audio-playback-row { grid-template-columns: minmax(0,1fr) 40px 44px 40px minmax(0,1fr); gap: 6px 8px; }
    #charDetail .character-audio-heading { gap: 6px; font-size: 11px; }
    #charDetail .character-audio-heading svg { width: 15px; height: 15px; }
    #charDetail .audio-play-btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    #charDetail .audio-play-btn { transition: none; }
    #charDetail .character-audio-download-arrow { animation: none; }
}
/* A narrow, grabbable thumb without concentric decoration. */
.character-audio-seek::-webkit-slider-thumb, .character-audio-dock__seek::-webkit-slider-thumb { width: 10px; height: 10px; border: 0; margin-top: -3px; background: #e4c76d; box-shadow: none; }
.character-audio-seek::-moz-range-thumb, .character-audio-dock__seek::-moz-range-thumb { width: 10px; height: 10px; border: 0; background: #e4c76d; box-shadow: none; }

.character-audio-manager__dialog { border: 1px solid #ffffff18; border-radius: 26px; background: #181819; box-shadow: 0 24px 80px #0008; }
.character-audio-manager__header { gap: 12px; padding: 24px 24px 16px; border: 0; }
.character-audio-manager__mark { border: 0; background: #ffffff08; color: #dfc77f; width: 44px; height: 44px; border-radius: 14px; }
.character-audio-manager__mark svg { width: 22px; height: 22px; }
.character-audio-manager__heading strong { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.character-audio-manager__heading > span { font-size: 12px; color: #e8e6e1; opacity: 1; line-height: 1.5; margin-top: 4px; }
.character-audio-manager__close { width: 44px; height: 44px; border: 0; background: none; }
.character-audio-manager__summary { color: #e8e6e1; padding: 0 24px 16px; font-size: 12px; }
.character-audio-manager__list { padding: 0 24px; gap: 0; }
.character-audio-manager__item { display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; column-gap: 12px; row-gap: 10px; border: 0; border-bottom: 1px solid #ffffff0d; border-radius: 0; padding: 18px 0; background: none; }
.character-audio-manager__item-copy { grid-column: 2; }
.character-audio-manager__item-copy strong { font-size: 15px; font-weight: 600; }
.character-audio-manager__item-copy > span { color: #e8e6e1; opacity: 1; font-size: 12px; }
.character-audio-manager__item-copy .character-audio-manager__item-status { margin-top: 5px; color: #e8e6e1; font-size: 11px; }
.character-audio-manager__progress { grid-column: 2; }
.character-audio-manager__portrait { grid-column: 1; grid-row: 1; }
.character-audio-manager__item-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.character-audio-manager__action { min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 0; background: #ffffff07; font-size: 12px; font-weight: 500; }
.character-audio-manager__action.is-primary { color: #e4c76d; background: #e4c76d0b; border: 0; }
.character-audio-manager__footer { padding: 16px 24px 20px; border: 0; justify-content: flex-end; }
.character-audio-manager__storage { display: none; }
.character-audio-manager__delete-all { min-height: 44px; border: 0; background: none; color: #e8e6e1; font-size: 12px; font-weight: 400; }
@media (max-width: 600px) {
    .character-audio-manager { padding: env(safe-area-inset-top, 0px) 0 0; align-items: end; }
    .character-audio-manager__dialog { width: 100%; max-height: min(85dvh, 720px); border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .character-audio-manager__header { padding: 22px 20px 14px; }
    .character-audio-manager__heading strong { font-size: 18px; }
    .character-audio-manager__summary { padding-inline: 20px; }
    .character-audio-manager__list { padding-inline: 20px; }
    .character-audio-manager__footer { flex-direction: row; padding: 10px 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .character-audio-dock, .character-audio-dock__action, #charDetail .audio-play-btn { transition: none; }
}

/* Let chapter spacing end with the text instead of stacking empty gutters. */
#charDetail .timeline-container { margin-top: 4px; gap: 28px; }
#charDetail .timeline-container .step-content { padding-bottom: 0; }
#charDetail .timeline-container .timeline-step:last-child .step-desc { margin-bottom: 0; }
