:root {
    color-scheme: dark;
    --base: #0e0e13;
    --panel: #17171e;
    --line: #292930;
    --text: #f7f4ef;
    --muted: #aaa8b3;
    --accent: #ff7767;
    --accent-text: #211319;
    --rail: 218px;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--text); }
body.has-player { padding-bottom: 103px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { flex: none; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #ffab9c; outline-offset: 4px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 8; background: var(--text); color: var(--base); padding: 12px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; width: var(--rail); display: flex; flex-direction: column; background: #101016; border-right: 1px solid #24242b; padding: 31px 17px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 25px; font-weight: 850; letter-spacing: -.065em; line-height: 1; }
.brand > span > span { color: var(--accent); }
.brand small { display: block; font-size: 8px; letter-spacing: .23em; color: var(--muted); margin-top: 5px; }
.sidebar > .brand { margin-left: 8px; }
.side-nav { display: grid; gap: 5px; margin-top: 58px; }
.side-nav > p { font-size: 10px; letter-spacing: .19em; color: #9694a1; font-weight: 750; padding: 0 13px 9px; }
.side-nav > a, .side-bottom > a { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 10px 13px; border-radius: 8px; font-size: 14px; color: var(--muted); font-weight: 650; }
.side-nav > a:hover, .side-bottom > a:hover { background: var(--panel); color: var(--text); }
.side-nav > a[aria-current] { color: #ffa397; background: #281b24; }
.side-bottom { margin-top: auto; }
.side-bottom span { display: block; margin: 10px 13px 0; color: #9694a1; font-size: 12px; }
.shell { margin-left: var(--rail); }
.topbar, .main, .footer { width: min(100%, 1540px); margin-inline: auto; padding-inline: clamp(24px, 3vw, 46px); }
.topbar { display: flex; align-items: center; gap: 20px; min-height: 82px; justify-content: space-between; }
.mobile-brand { display: none; }
.search { display: flex; gap: 4px; align-items: center; width: min(360px, 100%); border: 1px solid var(--line); border-radius: 9px; background: #17171e; color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search button { background: transparent; border: 0; padding: 10px 5px 10px 12px; color: inherit; }
.search input { min-width: 0; flex: 1; padding: 10px 10px 10px 1px; color: var(--text); background: transparent; border: 0; font-size: 13px; outline: 0; }
.search input::placeholder { color: #a09da9; }
.main { min-height: 68vh; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-weight: 740; font-size: 13px; line-height: 1.25; text-align: center; }
.button:hover { filter: brightness(1.13); }
.button.primary { background: var(--accent); color: var(--accent-text); }
.button.ghost { background: #15161acc; color: var(--text); border-color: #ffffff36; }
.top-plus { color: #ff9e91; background: #261b23; border-color: #50303a; min-height: 39px; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.hero { min-height: clamp(385px, 33vw, 476px); display: flex; align-items: center; position: relative; isolation: isolate; border-radius: 16px; overflow: hidden; border: 1px solid #ffffff21; background: #152223 url("art/hero.webp") 58% 47% / cover no-repeat; }
.hero::before { position: absolute; content: ""; inset: 0; z-index: -1; background: linear-gradient(90deg, #0a1015 1%, #0b1116f2 24%, #0a1116aa 46%, #0e14171a 73%), linear-gradient(0deg, #0c1017d9, transparent 40%); }
.hero-copy { padding: 34px clamp(24px, 4vw, 58px); width: 100%; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; }
.signal { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; box-shadow: 0 0 15px #ff7767aa; }
.hero-kicker { font-size: 12px; font-weight: 780; letter-spacing: .26em; margin: 23px 0 6px; color: #f1d6bc; }
.hero h1 { font: 700 clamp(63px, 7.5vw, 116px)/.84 Georgia, serif; color: #fff4e7; letter-spacing: -.074em; }
.hero-meta { margin: 19px 0 10px; color: #ede0d2; font-size: 13px; font-weight: 650; }
i { display: inline-block; vertical-align: middle; width: 4px; height: 4px; margin: 0 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.hero-summary { max-width: 364px; color: #d0ced2; font-size: 14px; line-height: 1.55; margin-bottom: 19px; }
.hero-index { display: flex; align-items: center; gap: 8px; position: absolute; bottom: 21px; right: 24px; color: #dfdfdf; font-size: 9px; letter-spacing: .18em; }
.hero-index b { color: #ff9d8f; }
.hero-index span { width: 30px; height: 1px; background: #ffffff70; }
.catalogue { padding-top: 36px; }
.catalogue-page { padding-top: 22px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-head h1, .section-head h2 { font-size: clamp(27px, 3.2vw, 42px); letter-spacing: -.055em; line-height: 1.1; margin: 7px 0 0; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin-top: 8px; }
.text-link, .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 720; font-size: 13px; color: #ff9f93; }
.text-link:hover, .back:hover { text-decoration: underline; }
.back { margin: 15px 0 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 17px; }
.filters a, .pill { display: inline-flex; width: fit-content; align-items: center; color: #d1ced6; background: #1c1b23; border: 1px solid #2c2b34; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 650; }
.filters a:hover { border-color: #ad6e68; }
.filters a[aria-current] { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(11px, 1.3vw, 20px); }
.story { min-width: 0; --cover-color: #30444a; }
.story-pride { --cover-color: #603241; }
.story-dracula { --cover-color: #64272e; }
.story-treasure { --cover-color: #34534b; }
.story-alice { --cover-color: #4b376d; }
.story-time { --cover-color: #294d48; }
.story-panchatantra { --cover-color: #4a572b; }
.story-sakhiyan { --cover-color: #693b39; }
.story-gita { --cover-color: #82532b; }
.story-dhammapada { --cover-color: #355d5b; }
.poster { position: relative; overflow: hidden; isolation: isolate; border-radius: 9px; aspect-ratio: 4 / 4.9; border: 1px solid #ffffff28; background: var(--cover-color, #30444a); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0005, transparent 25%, transparent 44%, #09080de8); pointer-events: none; }
.story a:hover .poster { border-color: #ff9f93; }
.story a:hover img { transform: scale(1.055); }
.story img { transition: transform .25s ease; }
.free-label { position: absolute; top: 7px; left: 7px; z-index: 1; padding: 4px 6px; border-radius: 3px; background: #151319e8; border: 1px solid #ffffff35; font-size: 8px; letter-spacing: .11em; font-weight: 850; color: #fff5ec; }
.poster-title { position: absolute; inset: auto 8% 10%; z-index: 1; color: #fff5e5; font: bold clamp(16px, 1.9vw, 30px)/.94 Georgia, serif; text-align: center; text-wrap: balance; text-shadow: 0 1px 8px #000; }
.story h3 { font-size: 14px; line-height: 1.3; margin-top: 9px; }
.story p { color: var(--muted); margin-top: 5px; font-size: 11px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 30px 0; }
.empty a, .credits a, .policy dd a, .checkout-policy a { color: #ffa397; text-decoration: underline; text-underline-offset: .16em; }
.plus-banner { display: flex; align-items: center; gap: 16px; margin-top: 34px; border-radius: 12px; border: 1px solid #48313d; background: linear-gradient(112deg, #2c1d27, #191920 80%); padding: 20px; }
.banner-icon { flex: none; width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid #7a4b53; border-radius: 12px; background: #ff77671a; color: #ffa397; }
.plus-banner h2 { font-size: 23px; letter-spacing: -.035em; margin: 4px 0; }
.plus-banner p:not(.eyebrow) { font-size: 13px; color: var(--muted); }
.plus-banner .button { margin-left: auto; flex: none; }
.footer { margin-top: 35px; padding-block: 24px; border-top: 1px solid var(--line); display: flex; gap: 28px; align-items: center; justify-content: space-between; }
.footer .brand { font-size: 19px; }
.footer p { font-size: 11px; color: var(--muted); margin-top: 8px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: end; }
.footer nav a { font-size: 12px; color: var(--muted); }
.footer nav a:hover { color: var(--text); text-decoration: underline; }
.detail { display: grid; grid-template-columns: minmax(150px, 232px) 1fr; gap: clamp(20px, 4vw, 52px); align-items: center; padding: clamp(16px, 3vw, 30px); background: radial-gradient(ellipse at top left, #392c37, #18181e 72%); border: 1px solid var(--line); border-radius: 15px; }
.detail h1, .plus-page h1, .checkout h1, .status-panel h1, .policy h1 { font-size: clamp(36px, 5.9vw, 76px); letter-spacing: -.067em; line-height: .99; text-wrap: balance; margin: 9px 0 15px; }
.detail .poster-title { font-size: clamp(20px, 3vw, 37px); }
.detail-meta, .description { color: #d0cdd6; font-size: 15px; line-height: 1.6; }
.detail-native { color: #fff3e8; font-size: 21px; margin-bottom: 5px; }
.description { max-width: 590px; margin: 12px 0 19px; }
.episodes { margin-top: 33px; }
.episodes ol { margin: 17px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.episodes li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 2px; min-height: 66px; }
.episode-num { color: #c2bfc9; font-variant-numeric: tabular-nums; }
.episode-name { display: grid; gap: 4px; }
.episode-name small, .credits { color: var(--muted); font-size: 13px; }
.episode-action { background: #201c25; color: #ff9f93; min-width: 72px; min-height: 38px; }
.credits svg { width: 15px; }
.native-listen { margin-top: 24px; display: grid; gap: 10px; }
.native-listen audio { width: min(100%, 550px); }
.plus-page, .checkout, .status-panel { text-align: center; padding: clamp(23px, 4vw, 50px) 0; }
.plus-page > p:not(.eyebrow), .checkout > p:not(.eyebrow), .status-panel > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.55; }
.plus-page .eyebrow svg { width: 15px; margin-right: 4px; }
.plus-page > .pill { margin-top: 14px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 790px; margin: 28px auto 15px; text-align: left; }
.plan, .checkout-box { border: 1px solid var(--line); border-radius: 13px; padding: clamp(17px, 3vw, 29px); background: var(--panel); }
.plan { display: flex; flex-direction: column; align-items: stretch; }
.plan.featured { border-color: #9d5b58; background: linear-gradient(137deg, #312029, #17171e 75%); }
.plan-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px; }
.plan-label h2 { font-size: 20px; letter-spacing: -.035em; }
.plan-label .pill { color: #ffab9e; font-size: 10px; }
.price { margin: 12px 0 8px; font-size: 49px; font-weight: 800; letter-spacing: -.07em; }
.price small { color: var(--muted); font-size: 14px; letter-spacing: normal; font-weight: 600; }
.plan-copy { color: #cfccd4; line-height: 1.5; font-size: 14px; margin-bottom: auto; }
.plan-feature { font-size: 13px; margin: 16px 0; }
.plan-feature svg { color: var(--accent); }
.plus-page .plan-note { font-size: 13px !important; }
.checkout-box { max-width: 550px; margin: 25px auto 0; text-align: left; }
.checkout-box > p { font-size: 14px; color: #d4d0d9; line-height: 1.55; margin: 9px 0 15px; }
.line-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line-item strong { font-size: 21px; }
.billing-schedule { display: grid; gap: 9px; margin: 15px 0; padding: 14px 0; border-block: 1px solid #3c3b45; font-size: 14px; }
.billing-schedule div { display: flex; justify-content: space-between; gap: 12px; }
.billing-schedule dt { color: #d4d0d9; }
.billing-schedule dd { margin: 0; font-weight: 750; text-align: right; }
.checkout-note { display: flex; gap: 9px; align-items: start; padding: 12px; margin-top: 17px; background: #2b2027; border-radius: 7px; color: #ffc0b6; font-size: 13px; line-height: 1.55; }
.checkout-box .button { width: 100%; }
.renewal-check { display: flex; align-items: start; gap: 9px; font-size: 13px; line-height: 1.5; margin-bottom: 16px; cursor: pointer; }
.renewal-check input { margin: 2px 0 0; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.checkout-box .checkout-error { color: #ffb2a8; }
.status-panel { margin: 18px 0 32px; border: 1px solid var(--line); border-radius: 15px; background: radial-gradient(ellipse at top, #31232e, #17171e 68%); padding-inline: 18px; }
.status-panel .banner-icon { margin: 0 auto 17px; }
.status-panel > p:not(.eyebrow) { max-width: 465px; margin-inline: auto; }
.status-panel .actions { margin-top: 22px; justify-content: center; }
.policy { max-width: 835px; padding-top: 30px; }
.policy-date { color: var(--muted); font-size: 13px; }
.policy section { margin-top: 16px; padding: 17px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.policy section h2 { font-size: 18px; margin-bottom: 7px; }
.policy section p, .policy dd { color: #d0ced7; line-height: 1.65; overflow-wrap: anywhere; font-size: 14px; }
.policy dl { display: grid; grid-template-columns: minmax(100px, 1fr) 3fr; gap: 8px 16px; font-size: 14px; margin: 10px 0; }
.policy dt { font-weight: 700; }
.policy dd { margin: 0; }
.player { position: fixed; z-index: 4; bottom: 12px; left: calc(var(--rail) + 16px); right: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(230px, 450px) auto; align-items: center; gap: 11px; background: #201e29; border: 1px solid #57414d; border-radius: 13px; padding: 10px; box-shadow: 0 9px 40px #0009; }
.player img { border-radius: 5px; object-fit: cover; }
.player-info { display: grid; min-width: 0; }
.player-info strong, .player-info small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-info small { color: #c5c1cd; }
.player audio { width: 100%; height: 42px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #4c414d; border-radius: 8px; background: #24222d; color: var(--text); }
#player-error:empty { display: none; }
#player-error { grid-column: 2 / -1; color: #ffb2a8; font-size: 13px; }
@media (max-width: 1170px) {
    :root { --rail: 181px; }
    .sidebar { padding-inline: 12px; }
    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .poster-title { font-size: clamp(19px, 3vw, 34px); }
}
@media (max-width: 760px) {
    :root { --rail: 0px; }
    .sidebar { inset: 60px 0 auto; position: absolute; width: 100%; padding: 0 12px; border: 0; background: transparent; }
    .sidebar > .brand, .side-nav > p, .side-bottom, .top-plus { display: none; }
    .side-nav { display: flex; gap: 5px; margin: 0; }
    .side-nav a { min-height: 34px; padding: 5px 8px; gap: 5px; font-size: 12px; }
    .side-nav svg { width: 15px; }
    .mobile-brand { display: inline-flex; font-size: 21px; gap: 6px; }
    .topbar, .main, .footer { padding-inline: 13px; }
    .topbar { min-height: 60px; margin-bottom: 45px; gap: 10px; }
    .search { width: min(240px, 55%); }
    .search button { padding: 7px 2px 7px 6px; }
    .search svg { width: 16px; }
    .search input { padding-block: 7px; font-size: 12px; }
    .hero { min-height: 375px; background-position: 62% center; }
    .hero::before { background: linear-gradient(90deg, #0a1015ef, #0a1015b8 43%, #0a11163b 100%), linear-gradient(0deg, #0a1015c9, transparent 52%); }
    .hero-copy { padding: 22px 18px 27px; }
    .hero h1 { font-size: clamp(62px, 13vw, 86px); }
    .hero-summary { max-width: 295px; }
    .hero-index { display: none; }
    .catalogue { padding-top: 26px; }
    .catalogue .section-head { align-items: start; }
    .section-head .text-link { display: none; }
    .footer { align-items: start; flex-direction: column; gap: 14px; }
    .footer nav { justify-content: start; }
    .detail { grid-template-columns: minmax(90px, 130px) 1fr; padding: 13px; align-items: start; }
    .detail h1 { font-size: clamp(28px, 7vw, 48px); }
    .detail .description, .detail-meta { font-size: 13px; }
}
@media (max-width: 465px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .poster-title { font-size: 24px; }
    .plus-banner { flex-wrap: wrap; gap: 10px; padding: 14px; }
    .plus-banner > div:nth-child(2) { flex: 1; }
    .plus-banner .button { margin-left: 0; }
    .plans { grid-template-columns: 1fr; }
    .detail { grid-template-columns: minmax(72px, 88px) 1fr; gap: 11px; }
    .detail .poster-title { font-size: 13px; }
    .episode-num { font-size: 13px; }
    .episodes li { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; }
    .episode-name strong { font-size: 13px; }
    .episode-action { min-width: 40px; padding-inline: 8px; }
    .episode-action span { display: none; }
    body.has-player { padding-bottom: 132px; }
    .player { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 6px; left: 7px; right: 7px; bottom: 7px; }
    .player img { width: 36px; height: 36px; }
    .player audio { grid-row: 2; grid-column: 1 / -1; }
    .player .icon-button { grid-row: 1; grid-column: 3; }
    #player-error { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
