/* ================================================================
   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;
    }

    .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:
            linear-gradient(180deg,rgba(18,18,25,.9),rgba(5,5,9,.98)),
            rgba(5,5,9,.96);
        box-shadow:0 -18px 45px rgba(0,0,0,.48),0 -1px 0 rgba(228,201,106,.12);
        -webkit-backdrop-filter:blur(28px) saturate(135%);
        backdrop-filter:blur(28px) saturate(135%);
        isolation:isolate;
        transition:opacity .3s ease,visibility .3s ease,transform .3s ease;
    }
    .mobile-menu.active + .mobile-bottom-nav{
        opacity:0;
        visibility:hidden;
        pointer-events:none;
        transform:translateY(100%);
    }
    .mobile-bottom-nav::before{
        content:'';
        position:absolute;
        top:-1px;
        left:8%;
        width:84%;
        height:1px;
        background:linear-gradient(90deg,transparent,rgba(228,201,106,.28),transparent);
        pointer-events:none;
    }
    .mobile-bottom-nav__inner{
        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}
    /* 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,rgba(6,6,10,.9) 78%);
        animation:mbnChevPulse 1.5s ease-in-out infinite;
    }
    .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%{background-position:right 14px center,0 0}50%{background-position:right 5px center,0 0}}
    .mobile-bottom-nav__link{
        position:relative;
        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 .25s ease,background .25s ease,transform .25s ease;
    }
    .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 .25s ease,transform .25s ease;
    }
    .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 .25s ease;
    }
    .mobile-bottom-nav__link:active{transform:scale(.95)}
    .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:transform .28s cubic-bezier(.2,.8,.2,1),filter .28s ease;
    }
    .mobile-bottom-nav__link.is-active .mobile-bottom-nav__icon{
        transform:translateY(-1px);
        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));
    }
    #footer{padding-bottom:calc(2rem + var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom,0px))}
    .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}
.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}
.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:4rem 0 2rem;background:var(--bg-primary);overflow:hidden}
.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:flex;justify-content:space-between;align-items:flex-start;gap:4rem;margin-bottom:3rem}
.footer-brand{max-width:320px}
.footer-logo{position:relative;width:150px;height:43px;margin-bottom:0.7rem;display:block;overflow:hidden}
.footer-logo-img{position:absolute;top:-7px;left:-56px;width:240px;height:60px;max-width:none;opacity:.94}
.footer-play{width:26px;height:26px;font-size:0.65rem}
.footer-tagline{font-size:0.85rem;color:var(--text-secondary);line-height:1.6;margin-bottom:1.2rem}
.footer-social{display:flex;gap:0.7rem}
.footer-social-link{width:40px;height:40px;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-link:hover{transform:translateY(-3px)}
/* 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:flex;gap:5rem}
.footer-links-group{display:flex;flex-direction:column;gap:0.5rem}
.footer-links-group h4{font-size:0.7rem;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--text-primary);margin-bottom:0.3rem}
.footer-links-group a{font-size:0.85rem;color:var(--text-secondary);transition:all var(--fast);display:inline-block}
.footer-links-group a:hover{color:var(--accent);transform:translateX(3px)}
.footer-divider{height:1px;background:var(--glass-border);margin-bottom:1.5rem}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;font-size:0.72rem;color:var(--text-muted)}

/* === 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-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{flex-direction:column;gap:2rem}
    .footer-nav{gap:3rem}
    .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-nav{flex-direction:column;gap:1.5rem}
}
/* --- Slide Poster Clickable --- */
.slide-poster {
    pointer-events: none;
}

/* === 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-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-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);
}
.cinematic-cat-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    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);
}

@media (max-width: 900px) {
    .cinematic-container {
        height: 90vh;
        width: 95%;
        border-radius: var(--r-lg);
    }
    .cinematic-content {
        flex-direction: column;
    }
    .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: 320px;
        padding: 1.5rem 0 0.75rem;
    }
    .cinematic-modal:not(.char-cinematic-modal) .cinematic-poster-wrapper {
        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;
    }
    .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 {
    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 {
    width: 4px;
}
.player-episodes-list::-webkit-scrollbar-track, .player-trailers-list::-webkit-scrollbar-track {
    background: transparent;
}
.player-episodes-list::-webkit-scrollbar-thumb, .player-trailers-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) {
    .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;
        -webkit-overflow-scrolling: touch;
        transform: none;
    }
    .player-modal.active > .modal-content { transform: none; }
    .player-modal > .modal-content::-webkit-scrollbar { display: none; }
    .player-modal .modal-close {
        position: fixed;
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
        z-index: 20;
        width: 44px;
        height: 44px;
        border-color: rgba(255,255,255,.22);
        background: rgba(5,5,7,.78);
        box-shadow: 0 8px 28px rgba(0,0,0,.55);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .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 + env(safe-area-inset-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-template-columns: repeat(3,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 {
        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: 768px) and (orientation: landscape) and (max-height: 520px) {
    .player-modal .video-wrapper { position: relative; max-height: 100dvh; }
    .player-modal .video-info { padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .player-modal,
    .player-modal > .modal-content,
    .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 */
    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-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-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;
    }
}

/* === 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);
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.2);
    margin: 2rem 0;
    opacity: 0.8;
}

@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: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 0.9rem 1.15rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-align: left;
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}

.kids-feature-item:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.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 — PREMIUM RELEASE NOTICE ===================== */
.coming-soon-dialog {
    --coming-safe-top: env(safe-area-inset-top, 0px);
    --coming-safe-right: env(safe-area-inset-right, 0px);
    --coming-safe-bottom: env(safe-area-inset-bottom, 0px);
    --coming-safe-left: env(safe-area-inset-left, 0px);
    --coming-gutter: clamp(1rem, 3vw, 2.5rem);
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding:
        max(var(--coming-gutter), calc(var(--coming-safe-top) + 0.75rem))
        max(var(--coming-gutter), calc(var(--coming-safe-right) + 0.75rem))
        max(var(--coming-gutter), calc(var(--coming-safe-bottom) + 0.75rem))
        max(var(--coming-gutter), calc(var(--coming-safe-left) + 0.75rem));
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .36s var(--ease-out), visibility .36s;
}
.coming-soon-dialog.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.coming-soon-dialog__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(1, 2, 2, .86);
    backdrop-filter: blur(18px) saturate(.82);
    -webkit-backdrop-filter: blur(18px) saturate(.82);
}
.coming-soon-dialog__panel {
    position: relative;
    width: min(64rem, 94vw);
    min-height: min(37rem, 78vh);
    max-height: 100%;
    display: grid;
    grid-template-columns: minmax(18rem, .88fr) minmax(22rem, 1.12fr);
    overflow: hidden;
    border: 1px solid rgba(225, 190, 81, .28);
    border-radius: 1.8rem;
    color: #f8f4e9;
    background: linear-gradient(145deg, #0b0c0b 0%, #050606 62%, #100c05 100%);
    box-shadow: 0 36px 120px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 255, 255, .025) inset;
    transform: translateY(24px) scale(.975);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.coming-soon-dialog.is-active .coming-soon-dialog__panel { transform: translateY(0) scale(1); }
.coming-soon-dialog__panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 42%, rgba(5, 6, 6, .2) 49%, rgba(5, 6, 6, .96) 62%);
}
.coming-soon-dialog__visual {
    position: relative;
    min-height: 37rem;
    overflow: hidden;
    background: #11110e;
}
.coming-soon-dialog__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.76) contrast(1.06) brightness(.74);
    transform: scale(1.025);
}
.coming-soon-dialog__visual > div {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 3, 3, .04), rgba(2, 3, 3, .44));
}
.coming-soon-dialog__copy {
    position: relative;
    z-index: 3;
    min-height: 0;
    align-self: center;
    padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3.5vw, 3.6rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-bottom: 2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.coming-soon-dialog__copy::-webkit-scrollbar { display: none; }
.coming-soon-dialog__brand {
    margin: 0 0 2rem;
    color: rgba(247, 243, 233, .48);
    font: 650 .68rem/1 var(--font-body);
    letter-spacing: .26em;
}
.coming-soon-dialog__brand span { color: #fff; font-weight: 820; }
.coming-soon-dialog__signal {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #edca5f;
    font: 780 .7rem/1 var(--font-display);
    letter-spacing: .2em;
}
.coming-soon-dialog__signal i {
    width: 2.2rem;
    height: 1px;
    background: linear-gradient(90deg, #e4bd4f, transparent);
}
.coming-soon-dialog__copy h2 {
    max-width: 30rem;
    margin: 1rem 0 .75rem;
    color: #fff;
    font: 800 clamp(2.55rem, 5vw, 5.4rem)/.94 var(--font-display);
    letter-spacing: -.055em;
    text-wrap: balance;
}
.coming-soon-dialog__film {
    margin: 0;
    color: #efd171;
    font: 650 clamp(1rem, 1.5vw, 1.25rem)/1.4 var(--font-display);
}
.coming-soon-dialog__message {
    max-width: 31rem;
    margin: 1.5rem 0 0;
    color: rgba(239, 235, 224, .64);
    font-size: .94rem;
    line-height: 1.75;
}
.coming-soon-dialog__confirm {
    min-width: 9rem;
    min-height: 3rem;
    margin-top: 2rem;
    padding: .7rem 1.35rem;
    border: 1px solid rgba(232, 197, 91, .42);
    border-radius: 999px;
    color: #120e05;
    background: linear-gradient(135deg, #f0d26e, #cda636);
    font: 760 .8rem/1 var(--font-display);
    box-shadow: 0 12px 32px rgba(196, 148, 32, .16);
    transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.coming-soon-dialog__confirm:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(196, 148, 32, .25); }
.coming-soon-dialog__close {
    position: absolute;
    z-index: 5;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(231, 198, 91, .3);
    border-radius: 50%;
    color: rgba(255, 255, 255, .82);
    background: rgba(3, 4, 4, .5);
    backdrop-filter: blur(10px);
    transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.coming-soon-dialog__close:hover { color: #f1d16c; border-color: rgba(241, 209, 108, .75); transform: rotate(4deg); }
.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: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.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__panel {
        width: min(28rem, 100%);
        height: min(42rem, calc(100dvh - var(--coming-safe-top) - var(--coming-safe-bottom) - 1.5rem));
        min-height: 0;
        max-height: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: clamp(10.5rem, 37svh, 19rem) minmax(0, 1fr);
        border-radius: 1.35rem;
    }
    .coming-soon-dialog__panel::after {
        background: linear-gradient(180deg, transparent 22%, rgba(5, 6, 6, .45) 43%, #050606 62%);
    }
    .coming-soon-dialog__visual { min-height: 0; }
    .coming-soon-dialog__copy {
        align-self: stretch;
        margin-top: -2.25rem;
        padding: 1.35rem 1.35rem 1.75rem;
        scroll-padding-bottom: 1.75rem;
        text-align: center;
    }
    .coming-soon-dialog__brand { display: none; }
    .coming-soon-dialog__signal { justify-content: center; }
    .coming-soon-dialog__copy h2 {
        margin-inline: auto;
        font-family: 'Montserrat', var(--font-display);
        font-size: clamp(2rem, 9.5vw, 3.1rem);
        font-weight: 900;
        letter-spacing: -.06em;
    }
    .coming-soon-dialog__film,
    .coming-soon-dialog__message { margin-inline: auto; }
    .coming-soon-dialog__message { font-size: .83rem; line-height: 1.62; }
    .coming-soon-dialog__confirm { width: 100%; }
}

@media (orientation: landscape) and (max-height: 560px) {
    .coming-soon-dialog {
        --coming-gutter: 0.65rem;
    }

    .coming-soon-dialog__panel {
        width: min(58rem, 100%);
        height: 100%;
        min-height: 0;
        max-height: 100%;
        grid-template-columns: minmax(12rem, 0.78fr) minmax(18rem, 1.22fr);
        grid-template-rows: minmax(0, 1fr);
        border-radius: 1rem;
    }

    .coming-soon-dialog__panel::after {
        background: linear-gradient(90deg, transparent 34%, rgba(5, 6, 6, .5) 48%, #050606 63%);
    }

    .coming-soon-dialog__visual {
        min-height: 0;
    }

    .coming-soon-dialog__copy {
        align-self: stretch;
        margin: 0;
        padding: 1rem 3.8rem 1.15rem 1.25rem;
        scroll-padding-bottom: 1.15rem;
        text-align: left;
    }

    .coming-soon-dialog__brand {
        display: block;
        margin-bottom: 0.75rem;
    }

    .coming-soon-dialog__signal {
        justify-content: flex-start;
    }

    .coming-soon-dialog__copy h2 {
        margin: 0.65rem 0 0.45rem;
        font-family: 'Montserrat', var(--font-display);
        font-size: clamp(1.65rem, 5.2vw, 2.5rem);
        font-weight: 900;
        letter-spacing: -.06em;
    }

    .coming-soon-dialog__film,
    .coming-soon-dialog__message {
        margin-inline: 0;
    }

    .coming-soon-dialog__message {
        margin-top: 0.75rem;
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .coming-soon-dialog__confirm {
        width: auto;
        min-height: 2.65rem;
        margin-top: 0.9rem;
    }

    .coming-soon-dialog__close {
        top: 0.65rem;
        right: 0.65rem;
    }
}

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

/* ===== 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 {
    content: '';
    width: 2.25rem;
    height: 1px;
    background: currentColor;
}

.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 {
    content: '';
    width: 2.4rem;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.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 {
    width: 3.4rem;
}

.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 {
    width: min(12vw, 9rem);
    height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(201, 168, 76, 0.08));
}

.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;
    }
}

/* ===== 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 ===== */
.character-audio-dock {
    position: fixed;
    right: max(1.35rem, env(safe-area-inset-right, 0px));
    bottom: max(1.35rem, env(safe-area-inset-bottom, 0px));
    z-index: 9895;
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    width: min(48rem, calc(100vw - 2.7rem));
    min-height: 7.2rem;
    padding: 0.85rem 1rem 1.05rem;
    overflow: hidden;
    border: 1px solid rgba(222, 189, 91, 0.35);
    border-radius: 1.15rem;
    color: #f3efe5;
    background:
        radial-gradient(circle at 8% 0%, rgba(219, 181, 76, 0.13), transparent 38%),
        linear-gradient(145deg, rgba(20, 18, 12, 0.985), rgba(6, 6, 4, 0.99) 62%, rgba(14, 11, 5, 0.99));
    box-shadow:
        0 1.4rem 4rem rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255, 244, 207, 0.025) inset,
        0 0.9rem 2.5rem rgba(165, 124, 27, 0.08);
    font-family: var(--font-body, 'Outfit', 'Inter', sans-serif);
    isolation: isolate;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(1rem) scale(0.975);
    transition:
        opacity 0.28s ease,
        visibility 0s linear 0.28s,
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.character-audio-dock--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.character-audio-dock::before {
    content: '';
    position: absolute;
    top: 0;
    right: 1.2rem;
    left: 1.2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 205, 103, 0.7), transparent);
    pointer-events: none;
}

.character-audio-dock__ornament {
    position: absolute;
    top: -3.4rem;
    left: -3.2rem;
    z-index: -1;
    width: 8rem;
    height: 8rem;
    border: 1px solid rgba(213, 176, 70, 0.11);
    border-radius: 50%;
    box-shadow:
        0 0 0 0.85rem rgba(213, 176, 70, 0.025),
        0 0 0 1.75rem rgba(213, 176, 70, 0.018);
    pointer-events: none;
}

.character-audio-dock__record {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    padding: 0.35rem;
    border: 0;
    border-radius: 0.75rem;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.character-audio-dock__seal {
    width: 2.65rem;
    height: 2.65rem;
    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);
    box-shadow: 0 0 0 0.24rem rgba(210, 169, 56, 0.025);
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

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

.character-audio-dock__archive {
    overflow: hidden;
    color: #d7b85e;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 0.55rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-audio-dock__title,
.character-audio-dock__subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-audio-dock__title {
    color: #f5f0e5;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 0.92rem;
    font-weight: 720;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.character-audio-dock__subtitle {
    color: #e8e6e1;
    font-size: 0.68rem;
    line-height: 1.35;
    opacity: 0.67;
}

.character-audio-dock__time {
    min-width: 3rem;
    color: #e3c56c;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    font-weight: 720;
    letter-spacing: 0.04em;
    text-align: left;
}

.character-audio-dock__controls {
    display: grid;
    grid-template-columns: repeat(5, auto);
    align-items: stretch;
    gap: 0.35rem;
}

.character-audio-dock__action {
    min-width: 3.15rem;
    min-height: 3.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(224, 196, 112, 0.15);
    border-radius: 0.7rem;
    color: #e8e6e1;
    background: rgba(255, 248, 224, 0.025);
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.58rem;
    font-weight: 680;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.character-audio-dock__action svg {
    width: 1rem;
    height: 1rem;
    overflow: visible;
    fill: currentColor;
}

.character-audio-dock__action--toggle {
    min-width: 3.8rem;
    border-color: rgba(225, 191, 88, 0.5);
    color: #171205;
    background: linear-gradient(145deg, #edcf72, #bd9230);
    box-shadow: 0 0.5rem 1.25rem rgba(174, 129, 30, 0.16);
}

.character-audio-dock__action:is(:hover, :focus-visible):not(:disabled) {
    border-color: rgba(235, 207, 125, 0.58);
    color: #f4d97e;
    background: rgba(220, 180, 68, 0.1);
    transform: translateY(-1px);
}

.character-audio-dock__action--toggle:is(:hover, :focus-visible):not(:disabled) {
    color: #100d04;
    background: linear-gradient(145deg, #f4db87, #cba03a);
}

.character-audio-dock__action:disabled {
    cursor: default;
    opacity: 0.34;
}

.character-audio-dock__record:focus-visible,
.character-audio-dock__action:focus-visible {
    outline: 2px solid #efd273;
    outline-offset: 2px;
}

.character-audio-dock__timeline {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(4rem, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0 0.35rem;
}

.character-audio-dock__duration {
    min-width: 3rem;
    color: #e8e6e1;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    text-align: right;
    opacity: 0.7;
}

.character-audio-dock__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .character-audio-dock {
        right: max(0.65rem, env(safe-area-inset-right, 0px));
        bottom: calc(var(--mobile-bottom-nav-height, 74px) + env(safe-area-inset-bottom, 0px) + 0.7rem);
        left: max(0.65rem, env(safe-area-inset-left, 0px));
        grid-template-columns: minmax(0, 1fr);
        gap: 0.45rem 0.75rem;
        width: auto;
        min-height: 0;
        padding: 0.72rem 0.75rem 0.95rem;
        border-radius: 1rem;
    }

    .character-audio-dock__record {
        gap: 0.65rem;
        padding: 0.2rem;
    }

    .character-audio-dock__seal {
        width: 2.4rem;
        height: 2.4rem;
    }

    .character-audio-dock__controls {
        grid-column: 1 / -1;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .character-audio-dock__action,
    .character-audio-dock__action--toggle {
        min-width: 0;
        min-height: 2.5rem;
        flex-direction: row;
        gap: 0.35rem;
        padding: 0.45rem;
        font-size: 0.64rem;
    }

    .character-audio-dock__action svg {
        width: 0.88rem;
        height: 0.88rem;
    }

    .character-audio-dock__timeline {
        gap: 0.5rem;
        padding: 0 0.2rem;
    }
}

@media (max-width: 370px) {
    .character-audio-dock__seal {
        display: none;
    }

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

    .character-audio-dock__action,
    .character-audio-dock__action--toggle {
        font-size: 0.6rem;
    }

    .character-audio-dock__action:not(.character-audio-dock__action--toggle) span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .character-audio-dock,
    .character-audio-dock__action,
    .character-audio-seek::-webkit-slider-thumb,
    .character-audio-dock__seek::-webkit-slider-thumb {
        transition: none;
    }
}
