:root {
  color-scheme: dark;
  --bg: #09070e;
  --bg-deep: #050407;
  --surface: #15111d;
  --surface-2: #20182a;
  --surface-3: #2a2037;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #fffaff;
  --muted: #bdb5c8;
  --muted-2: #81798c;
  --pink: #ff4fd8;
  --pink-hot: #ff2ebc;
  --cyan: #32e7ff;
  --yellow: #fff269;
  --violet: #8a5cff;
  --danger: #ff5577;
  --nav-h: 58px;
  --top-h: 52px;
  --radius: 24px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 80% 10%, rgba(138,92,255,.1), transparent 34%), #09070e; }
.ambient span { position: absolute; width: 28rem; height: 28rem; border-radius: 50%; filter: blur(90px); opacity: .14; }
.ambient span:nth-child(1) { background: var(--pink); left: -12rem; top: 20%; }
.ambient span:nth-child(2) { background: var(--cyan); right: -14rem; top: -5rem; }
.ambient span:nth-child(3) { background: var(--violet); left: 45%; bottom: -20rem; }

.app-shell { min-height: 100dvh; position: relative; isolation: isolate; }
.topbar { height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; position: fixed; inset: 0 0 auto; z-index: 80; display: flex; align-items: center; justify-content: space-between; pointer-events: none; background: linear-gradient(180deg, rgba(5,4,7,.8), transparent); }
.topbar > * { pointer-events: auto; }
.brand-button { border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; }
.brand-logo { display: block; width: 180px; height: auto; flex: 0 0 auto; }
.topbar .brand-logo { width: 117px; }
.topbar .brand-button { min-height: 44px; }
.topbar .login-pill { min-height: 32px; padding: 0 11px; font-size: .75rem; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.free-pill, .login-pill { min-height: 36px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; }
.free-pill { display: none; padding: 0 13px; color: rgba(255,255,255,.78); background: rgba(10,8,14,.5); border: 1px solid rgba(255,255,255,.13); font-size: .75rem; backdrop-filter: blur(14px); }
.free-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-right: 7px; box-shadow: 0 0 10px var(--cyan); }
.login-pill { cursor: pointer; border: 1px solid rgba(255,255,255,.24); padding: 0 14px; color: #fff; background: rgba(10,8,14,.62); backdrop-filter: blur(14px); font-weight: 750; font-size: .82rem; }
.login-pill:hover { background: var(--text); color: var(--bg); }

.app-page { display: none; min-height: 100dvh; }
.app-page.is-active { display: block; }
.page-feed.is-active { display: grid; }

.page-feed { position: relative; grid-template-columns: 1fr; place-items: center; height: 100dvh; overflow: hidden; background: #050407; }
.feed-scroll { width: 100%; height: 100dvh; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed-scroll::-webkit-scrollbar { display: none; }
.reel { position: relative; width: 100%; height: 100dvh; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: #07050a; }
.reel::before { content: ""; position: absolute; inset: 0; background: var(--poster) center/cover; filter: blur(36px) saturate(1.2); opacity: .27; transform: scale(1.14); }
.reel-video { width: 100%; height: 100%; object-fit: cover; position: relative; display: block; background: #08060c; }
.reel-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.22), transparent 22%, transparent 48%, rgba(5,2,8,.2) 61%, rgba(5,2,8,.94) 100%); }
.reel-grain { position: absolute; inset: 0; pointer-events: none; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.video-tap-layer { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; }
.play-flash { position: absolute; z-index: 4; left: 50%; top: 46%; translate: -50% -50%; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(7,5,10,.52); backdrop-filter: blur(10px); opacity: 0; scale: .72; pointer-events: none; transition: opacity .16s, scale .16s; }
.play-flash.is-visible { opacity: 1; scale: 1; }
.play-flash svg { width: 28px; fill: currentColor; }

.reel-badge { position: absolute; z-index: 5; left: 16px; top: calc(var(--top-h) + env(safe-area-inset-top) + 12px); display: flex; align-items: center; gap: 7px; }
.reel-badge span { background: rgba(8,5,11,.58); border: 1px solid rgba(255,255,255,.17); backdrop-filter: blur(12px); padding: 6px 9px; border-radius: 7px; text-transform: uppercase; font-weight: 800; font-size: .68rem; letter-spacing: .06em; }
.reel-badge .episode-tag { color: var(--yellow); }
.reel-badge button.episode-tag { min-height: 32px; border: 0; background: transparent; padding: 0 4px; cursor: pointer; font: inherit; }

.reel-meta { position: absolute; z-index: 6; left: 16px; right: 78px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 26px); text-shadow: 0 2px 16px rgba(0,0,0,.72); }
.reel-meta .series-name { color: var(--pink); font-weight: 850; letter-spacing: .03em; font-size: .78rem; margin: 0 0 7px; display: flex; align-items: center; gap: 8px; }
.reel-meta .series-name::before { content: ""; width: 19px; height: 2px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.reel-meta h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 6vw, 2rem); line-height: 1.12; letter-spacing: -.025em; }
.reel-meta p { margin: 0; color: rgba(255,255,255,.82); font-size: .87rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.reel-tags span { font-size: .72rem; color: rgba(255,255,255,.84); }

.reel-actions { position: absolute; z-index: 9; right: max(10px, env(safe-area-inset-right)); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 23px); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.action-button { position: relative; width: 56px; min-height: 52px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; color: #fff; text-shadow: 0 2px 10px #000; }
.action-button .action-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,5,12,.5); border: 1px solid rgba(255,255,255,.17); backdrop-filter: blur(12px); transition: transform .15s, background .15s, color .15s; }
.action-button:hover .action-icon { transform: scale(1.08); background: rgba(255,255,255,.18); }
.action-button:active .action-icon { transform: scale(.93); }
.action-button svg { width: 21px; height: 21px; }
.action-button small { font-size: .64rem; font-weight: 720; margin-top: 2px; min-height: .8rem; }
.action-button.is-on .action-icon { color: var(--pink); background: rgba(255,79,216,.18); border-color: rgba(255,79,216,.5); box-shadow: 0 0 18px rgba(255,79,216,.22); }
.action-button[data-action="danmaku"].is-on .action-icon { color: var(--cyan); border-color: rgba(50,231,255,.55); }

.progress-track { position: absolute; left: 0; right: 0; z-index: 12; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); height: 2px; background: rgba(255,255,255,.17); }
.progress-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--cyan)); box-shadow: 0 0 8px var(--pink); }
.preview-time { position: absolute; z-index: 8; right: 17px; top: calc(var(--top-h) + env(safe-area-inset-top) + 16px); color: rgba(255,255,255,.75); font-size: .7rem; padding: 5px 8px; border-radius: 99px; background: rgba(5,3,7,.5); backdrop-filter: blur(8px); }

.danmaku-layer { position: absolute; z-index: 7; inset: 18% 0 auto; height: 30%; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; }
.danmaku-layer.is-on { opacity: 1; }
.danmaku { position: absolute; white-space: nowrap; font-size: .88rem; font-weight: 760; color: white; text-shadow: 0 1px 3px #000, 0 0 8px #000; animation: fly 8s linear infinite; }
.danmaku:nth-child(1) { top: 8%; animation-delay: -1s; }
.danmaku:nth-child(2) { top: 42%; animation-delay: -5s; color: #fff269; }
.danmaku:nth-child(3) { top: 72%; animation-delay: -3s; color: #77efff; }
@keyframes fly { from { transform: translateX(110vw); } to { transform: translateX(-120%); } }

.preview-gate { position: absolute; z-index: 20; inset: 0; display: none; place-items: end center; padding: 24px 18px calc(var(--nav-h) + env(safe-area-inset-bottom) + 22px); background: linear-gradient(180deg, rgba(6,4,9,.12), rgba(6,4,9,.97) 62%); }
.preview-gate.is-visible { display: grid; }
.preview-gate-card { width: min(100%, 410px); text-align: center; }
.preview-gate-card .gate-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 13px; border-radius: 50%; color: var(--yellow); background: rgba(255,242,105,.1); border: 1px solid rgba(255,242,105,.35); }
.preview-gate-card .gate-icon svg { width: 26px; }
.preview-gate-card h3 { font-size: 1.45rem; margin: 0 0 8px; }
.preview-gate-card p { color: var(--muted); margin: 0 0 17px; line-height: 1.5; font-size: .9rem; }
.gate-actions { display: grid; gap: 9px; }
.gate-actions button { min-height: 48px; border-radius: 14px; font-weight: 820; cursor: pointer; }
.gate-actions .unlock-button { border: 0; color: #150713; background: linear-gradient(135deg, var(--pink), #ff8be7); }
.gate-actions .replay-button { border: 1px solid var(--line-strong); background: rgba(255,255,255,.06); }
.preview-gate-card .gate-balance { color: var(--yellow); font-weight: 750; }
.preview-gate-card .gate-error { color: #ffabbf; }
.gate-actions .unlock-button:disabled { opacity: .55; cursor: not-allowed; }
.gate-demo-note { display: block; margin-top: 13px; font-size: .72rem; line-height: 1.5; color: var(--muted); }

.swipe-hint { position: absolute; z-index: 22; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 6px); left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; font-size: .64rem; color: rgba(255,255,255,.68); animation: hintFade 4.5s forwards; pointer-events: none; }
.swipe-hint svg { width: 18px; animation: nudge 1.3s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-5px); } }
@keyframes hintFade { 0%, 65% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.feed-context { display: none; }

.bottom-nav { height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 4px max(10px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px, env(safe-area-inset-left)); position: fixed; inset: auto 0 0; z-index: 90; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(9,7,14,.88); border-top: 1px solid rgba(255,255,255,.11); backdrop-filter: blur(20px) saturate(1.3); }
.nav-item { position: relative; border: 0; background: transparent; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; min-height: 44px; color: #85808c; cursor: pointer; font-size: .7rem; font-weight: 720; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item.is-active { color: #fff; }
.nav-item.is-active::before { content: ""; position: absolute; top: -5px; width: 22px; height: 3px; border-radius: 0 0 5px 5px; background: linear-gradient(90deg, var(--pink), var(--cyan)); box-shadow: 0 0 10px var(--pink); }
.nav-item.is-active svg { color: var(--pink); filter: drop-shadow(0 0 6px rgba(255,79,216,.45)); }
.nav-spark { height: 23px; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; }
.nav-item i { position: absolute; top: 2px; left: calc(50% + 8px); font-style: normal; font-size: .5rem; padding: 2px 4px; border-radius: 4px; color: #170713; background: var(--yellow); font-weight: 900; }

.content-wrap { width: min(100% - 28px, 900px); margin: 0 auto; padding: calc(var(--top-h) + env(safe-area-inset-top) + 34px) 0 calc(var(--nav-h) + env(safe-area-inset-bottom) + 36px); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 2px 24px; }
.eyebrow, .mini-label { display: block; color: var(--pink); font-size: .72rem; line-height: 1; letter-spacing: .15em; font-weight: 900; text-transform: uppercase; }
.section-heading h1 { margin: 8px 0 0; font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.13; letter-spacing: -.045em; }
.count-badge { white-space: nowrap; color: var(--muted); font-size: .76rem; border: 1px solid var(--line); background: rgba(255,255,255,.035); padding: 7px 10px; border-radius: 99px; }

.search-box { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top) + 8px); z-index: 30; display: flex; align-items: center; min-height: 52px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(18,14,24,.92); box-shadow: 0 10px 30px rgba(0,0,0,.24); backdrop-filter: blur(18px); }
.search-box svg { width: 21px; margin-left: 16px; color: var(--muted); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 0 12px; font-size: 1rem; }
.search-box input::placeholder { color: #938c9b; }
.search-box:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(50,231,255,.1), 0 10px 30px rgba(0,0,0,.24); }
.video-tap-layer:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--cyan); }
.search-box kbd { margin-right: 7px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted-2); border-radius: 8px; padding: 6px 8px; font: 600 .68rem var(--font); }
.filter-row { margin: 16px 0 22px; display: flex; flex-direction: column; gap: 13px; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.category-tabs::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 38px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.035); cursor: pointer; font-size: .84rem; color: var(--muted); }
.filter-chip.is-active { color: #140713; background: var(--pink); border-color: var(--pink); font-weight: 850; box-shadow: 0 0 18px rgba(255,79,216,.25); }
.sort-select { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; }
.sort-select select { min-height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: #fff; padding: 0 30px 0 11px; }

.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.series-card { min-width: 0; border: 0; padding: 0; text-align: left; color: inherit; background: transparent; cursor: pointer; }
.series-cover { position: relative; aspect-ratio: .76; overflow: hidden; border-radius: 17px; background: var(--cover-bg); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.series-cover::before { content: ""; position: absolute; inset: 0; background: var(--cover-art); transition: scale .35s ease; }
.series-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5,3,8,.86) 100%); }
.series-card:hover .series-cover::before { scale: 1.05; }
.series-cover .cover-no { position: absolute; z-index: 2; top: 11px; left: 11px; font-size: .64rem; font-weight: 900; letter-spacing: .12em; color: rgba(255,255,255,.76); }
.series-cover .cover-spark { position: absolute; z-index: 2; right: 9px; top: 7px; color: var(--yellow); font-size: 1.3rem; filter: drop-shadow(0 0 8px currentColor); }
.series-cover .play-cover { position: absolute; z-index: 3; left: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); background: rgba(8,5,11,.5); border-radius: 50%; backdrop-filter: blur(10px); }
.series-cover .play-cover svg { width: 16px; fill: #fff; }
.series-info { padding: 10px 3px 12px; }
.series-info h2 { margin: 0 0 5px; font-size: 1rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.series-info p { margin: 0; color: var(--muted-2); font-size: .73rem; display: flex; align-items: center; gap: 6px; }
.series-info p i { width: 3px; height: 3px; border-radius: 50%; background: var(--pink); }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state > span { color: var(--cyan); font-size: 2rem; }
.empty-state h2 { margin: 12px 0 5px; color: #fff; }
.empty-state p { margin: 0; }

.detail-wrap { width: min(100% - 28px, 920px); }
.detail-back { min-height: 40px; margin-bottom: 16px; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: .82rem; }
.detail-back:hover { color: #fff; }
.detail-hero { display: grid; gap: 20px; }
.detail-cover { position: relative; aspect-ratio: .76; width: min(100%, 360px); overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: #15101d; box-shadow: 0 24px 60px rgba(0,0,0,.42); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,3,8,.75)); pointer-events: none; }
.detail-copy { align-self: end; }
.detail-copy .eyebrow { color: var(--cyan); }
.detail-copy h1 { margin: 10px 0 10px; font-size: clamp(2rem, 9vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.detail-meta span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.035); font-size: .7rem; }
.detail-description { margin: 0; color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.75; }
.episode-section { margin-top: 30px; }
.episode-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.episode-section-head h2 { margin: 0; font-size: 1.3rem; }
.episode-section-head span { color: var(--muted-2); font-size: .72rem; }
.episode-list { display: grid; gap: 9px; }
.episode-row { width: 100%; min-height: 92px; padding: 12px; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; color: #fff; background: rgba(255,255,255,.03); text-align: left; cursor: pointer; }
.episode-row:hover { border-color: rgba(50,231,255,.38); background: rgba(50,231,255,.055); }
.episode-number { width: 48px; height: 58px; display: grid; place-items: center; border-radius: 12px; color: var(--cyan); background: rgba(50,231,255,.08); font-weight: 900; }
.episode-copy { min-width: 0; }
.episode-copy b, .episode-copy span { display: block; }
.episode-copy b { margin-bottom: 6px; font-size: .94rem; }
.episode-copy span { color: var(--muted); font-size: .78rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.episode-play { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #130711; background: var(--pink); font-size: .86rem; }

.benefits-wrap { width: min(100% - 28px, 820px); }
.benefit-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(35,27,45,.88), rgba(16,12,22,.94)); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: 0 18px 45px rgba(0,0,0,.26); }
.benefit-card::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; filter: blur(70px); opacity: .16; pointer-events: none; }
.welcome-card { background: radial-gradient(circle at 88% 8%, rgba(255,79,216,.22), transparent 32%), linear-gradient(145deg, #25152d, #100c16 70%); }
.welcome-card::before { right: -60px; top: -60px; background: var(--pink); }
.card-sticker { position: absolute; top: 17px; right: -29px; rotate: 12deg; color: #170713; background: var(--yellow); padding: 6px 34px; font-size: .67rem; font-weight: 950; letter-spacing: .06em; box-shadow: 0 0 18px rgba(255,242,105,.3); }
.welcome-copy { padding-top: 8px; }
.benefit-card h2 { margin: 9px 0 10px; font-size: clamp(1.25rem, 5.4vw, 1.8rem); line-height: 1.2; letter-spacing: -.03em; }
.benefit-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: 0; }
.membership-offer { position: relative; margin-top: 20px; padding: 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(6,4,9,.52); }
.membership-offer > div:first-child { display: flex; justify-content: space-between; align-items: flex-end; }
.membership-offer > div span { color: var(--muted); font-size: .78rem; }
.membership-offer strong { font-size: 2.05rem; line-height: 1; }
.membership-offer strong small { font-size: .72rem; margin-right: 3px; }
.membership-offer strong em { color: var(--muted); font-size: .72rem; font-style: normal; font-weight: 600; }
.membership-offer ul { display: grid; grid-template-columns: 1fr; gap: 7px; list-style: none; padding: 15px 0; margin: 0; color: rgba(255,255,255,.82); font-size: .78rem; }
.membership-offer li::before { content: "✦"; color: var(--cyan); margin-right: 8px; }
.primary-cta, .secondary-cta, .dialog-confirm { min-height: 50px; border-radius: 14px; font-weight: 850; cursor: pointer; }
.primary-cta { width: 100%; padding: 0 18px; border: 0; display: flex; align-items: center; justify-content: space-between; color: #160713; background: linear-gradient(110deg, var(--pink), #ff91e8); box-shadow: 0 0 25px rgba(255,79,216,.18); }
.primary-cta span { font-size: 1.25rem; }
.annual-note { text-align: center; font-size: .68rem !important; color: var(--muted-2) !important; margin-top: 10px !important; }
.referral-card, .wish-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.referral-card::before { left: -60px; top: -60px; background: var(--cyan); }
.wish-card::before { right: -60px; bottom: -60px; background: var(--pink); }
.icon-tile { grid-row: 1 / span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 1.35rem; }
.icon-tile svg { width: 23px; }
.icon-tile.cyan { color: var(--cyan); background: rgba(50,231,255,.09); border: 1px solid rgba(50,231,255,.25); }
.icon-tile.pink { color: var(--pink); background: rgba(255,79,216,.09); border: 1px solid rgba(255,79,216,.25); }
.benefit-copy strong { color: var(--yellow); }
.secondary-cta { grid-column: 1 / -1; width: 100%; padding: 0 16px; border: 1px solid rgba(50,231,255,.34); background: rgba(50,231,255,.07); display: flex; align-items: center; justify-content: space-between; }
.secondary-cta:hover { background: rgba(50,231,255,.14); }
.pink-border { border-color: rgba(255,79,216,.4); background: rgba(255,79,216,.07); }
.wish-input { position: relative; grid-column: 1 / -1; display: block; }
.wish-input textarea { resize: vertical; width: 100%; min-height: 116px; border: 1px solid var(--line); border-radius: 15px; padding: 14px 14px 30px; color: #fff; background: rgba(5,4,8,.48); font-size: 1rem; line-height: 1.5; }
.wish-input span { position: absolute; right: 12px; bottom: 10px; color: var(--muted-2); font-size: .68rem; }

.origin-card { display: grid; gap: 24px; padding: 0; background: #120c19; }
.origin-image { margin: 0; min-width: 0; background: #000; }
.origin-image img { display: block; width: 100%; height: auto; }
.origin-copy { min-width: 0; padding: 0 22px 24px; }
.origin-copy .mini-label { font-size: .875rem; letter-spacing: .06em; }
.origin-copy h2 { margin: 10px 0 20px; line-height: 1.4; }
.origin-copy > p { font-size: 1rem; line-height: 1.85; color: #ddd4e5; margin-bottom: 16px; }
.origin-copy .origin-manifesto { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,79,216,.28); color: #ffb9ed; font-weight: 750; }
.origin-sources { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.origin-sources summary { cursor: pointer; width: fit-content; padding: 4px 0; }
.origin-sources a { display: block; color: var(--cyan); margin-top: 8px; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .origin-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0; align-items: start; }
  .origin-image { margin: 24px 0 24px 24px; overflow: hidden; border-radius: 16px; }
  .origin-copy { padding: 24px; }
}

.profile-wrap { width: min(100% - 28px, 820px); }
.profile-header { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.profile-header h1 { margin: 7px 0 5px; font-size: clamp(1.75rem, 7vw, 2.7rem); letter-spacing: -.04em; }
.profile-header p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .84rem; }
.guest-avatar { position: relative; width: 62px; height: 62px; border-radius: 50%; padding: 2px; background: conic-gradient(from 30deg, var(--pink), var(--yellow), var(--cyan), var(--pink)); }
.guest-avatar::after { content: "✦"; position: absolute; right: -2px; top: -4px; color: var(--yellow); font-size: 1.2rem; }
.guest-avatar span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; color: var(--pink); background: #17101e; font-size: 1.5rem; font-weight: 950; }
.primary-cta.compact { grid-column: 1 / -1; justify-content: center; min-height: 45px; }
.account-summary { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; margin: 18px 0; }
.account-summary article { position: relative; min-height: 105px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.account-summary article:first-child { background: linear-gradient(140deg, rgba(255,79,216,.14), rgba(255,255,255,.025)); }
.account-summary article:last-child { grid-column: 1 / -1; min-height: 78px; }
.account-summary span { color: var(--muted); font-size: .72rem; }
.account-summary strong { font-size: 1.16rem; }
.account-summary small { position: absolute; right: 14px; bottom: 14px; color: var(--muted-2); }
.status-dot { position: absolute; right: 14px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.profile-grid { display: grid; gap: 9px; }
.profile-item { min-height: 72px; width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 11px 14px; text-align: left; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.03); cursor: pointer; }
.profile-item:hover { border-color: rgba(255,79,216,.34); background: rgba(255,79,216,.05); }
.profile-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--cyan); background: rgba(50,231,255,.07); }
.profile-icon svg { width: 21px; }
.profile-item b, .admin-preview-link b { display: block; font-size: .9rem; }
.profile-item small, .admin-preview-link small { color: var(--muted-2); font-size: .7rem; }
.profile-item em { color: var(--muted-2); font-style: normal; font-size: 1.5rem; }
.admin-preview-link { margin-top: 17px; min-height: 70px; padding: 14px 16px; border-radius: 17px; border: 1px dashed rgba(255,242,105,.3); display: flex; align-items: center; justify-content: space-between; gap: 15px; color: inherit; text-decoration: none; background: rgba(255,242,105,.045); }
.admin-preview-link em { color: var(--yellow); font-style: normal; font-size: .72rem; white-space: nowrap; }

.login-dialog { width: min(92vw, 420px); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 26px; padding: 30px 24px 22px; text-align: center; color: #fff; background: radial-gradient(circle at 85% 0, rgba(255,79,216,.21), transparent 34%), #15101c; box-shadow: 0 30px 100px rgba(0,0,0,.76); }
.login-dialog::backdrop { background: rgba(3,2,5,.74); backdrop-filter: blur(10px); }
.login-dialog > .brand-logo { width: 150px; margin: 0 auto 16px; }
.dialog-close { position: absolute; right: 13px; top: 12px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(0,0,0,.2); cursor: pointer; font-size: 1.45rem; }
.dialog-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .46; }
.dialog-art span { position: absolute; top: 15px; left: -3px; rotate: -18deg; color: var(--pink); font-size: .65rem; font-weight: 950; border: 1px solid var(--pink); padding: 3px 12px; }
.dialog-kicker { color: var(--cyan); font-size: .66rem; letter-spacing: .15em; font-weight: 900; }
.login-dialog h2 { margin: 8px 0; font-size: 1.55rem; letter-spacing: -.03em; }
.login-dialog > p { margin: 0 auto 18px; color: var(--muted); line-height: 1.55; font-size: .86rem; max-width: 310px; }
.login-form { display: grid; gap: 10px; text-align: left; }
.login-form label { display: grid; gap: 6px; color: var(--muted); font-size: .72rem; }
.login-form input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 13px; padding: 0 14px; color: #fff; background: rgba(5,4,8,.55); font-size: 1rem; outline: none; }
.login-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(50,231,255,.1); }
.login-error { margin: 0 !important; color: #ff8ebd !important; font-size: .76rem !important; text-align: left; }
.demo-accounts { margin-top: 13px; display: grid; gap: 7px; color: var(--muted-2); font-size: .68rem; }
.demo-accounts div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.demo-accounts button { min-height: 37px; border: 1px solid var(--line); border-radius: 10px; color: #fff; background: rgba(255,255,255,.045); cursor: pointer; }
.demo-accounts button:hover { border-color: rgba(50,231,255,.45); }
.login-dialog .prototype-note { width: 100%; text-align: center !important; margin: 10px 0 !important; font-size: .67rem !important; color: var(--muted-2) !important; }
.dialog-confirm { width: 100%; border: 0; color: #130711; background: var(--pink); }
.login-pill.is-signed-in { color: #09070e; background: var(--cyan); border-color: var(--cyan); }
.profile-header.is-signed-in .guest-avatar span { color: var(--cyan); }
.profile-header.is-signed-in .primary-cta { background: rgba(255,255,255,.07); color: #fff; border: 1px solid var(--line); }
.status-dot.is-paid { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.admin-preview-link[hidden] { display: none; }
.toast-region { position: fixed; z-index: 200; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); translate: -50% 0; width: min(90vw, 380px); pointer-events: none; }
.toast { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 13px; color: #fff; background: rgba(24,18,31,.95); box-shadow: 0 14px 35px rgba(0,0,0,.45); backdrop-filter: blur(16px); font-size: .82rem; text-align: center; animation: toastIn .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 640px) {
  .free-pill { display: inline-flex; }
  .filter-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .sort-select { align-self: auto; }
  .membership-offer ul { grid-template-columns: repeat(3, 1fr); }
  .profile-header { grid-template-columns: auto 1fr auto; }
  .primary-cta.compact { grid-column: auto; width: auto; }
  .account-summary { grid-template-columns: 1.1fr .8fr 1.1fr; }
  .account-summary article:last-child { grid-column: auto; min-height: 105px; }
  .detail-hero { grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); align-items: end; gap: 38px; }
}

@media (min-width: 980px) {
  :root { --nav-h: 58px; --top-h: 56px; }
  .topbar { padding-left: 32px; padding-right: 32px; }
  .topbar .brand-logo { width: 205px; }
  .topbar .brand-button { transform: translateY(10px); }
  .page-feed { grid-template-columns: minmax(280px, 1fr) minmax(380px, 520px) minmax(280px, 1fr); background: transparent; }
  .feed-scroll { grid-column: 2; width: min(100%, 520px); height: calc(100dvh - 28px); margin: 14px 0; border-radius: 26px; box-shadow: 0 30px 90px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.12); }
  .reel { height: calc(100dvh - 28px); border-radius: 26px; }
  .reel-badge { top: calc(var(--top-h) + 4px); }
  .preview-time { top: calc(var(--top-h) + 8px); }
  .reel-meta { bottom: calc(var(--nav-h) + 28px); }
  .reel-actions { bottom: calc(var(--nav-h) + 24px); }
  .progress-track { bottom: var(--nav-h); }
  .preview-gate { padding-bottom: calc(var(--nav-h) + 24px); }
  .feed-context { grid-column: 1; grid-row: 1; justify-self: end; align-self: center; width: min(80%, 330px); display: block; padding-right: 46px; }
  .feed-context .eyebrow { color: var(--cyan); }
  .feed-context h1 { font-size: clamp(2.4rem, 3.6vw, 4.5rem); line-height: .98; margin: 13px 0 20px; letter-spacing: -.065em; }
  .feed-context p { color: var(--muted); line-height: 1.7; font-size: .9rem; }
  .feed-context-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
  .feed-context-chips span { border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px; color: var(--muted-2); font-size: .65rem; }
  .page-feed::after { content: "POP!"; grid-column: 3; grid-row: 1; justify-self: start; align-self: center; margin-left: 58px; rotate: 9deg; color: transparent; -webkit-text-stroke: 1px rgba(255,79,216,.36); font-size: 5rem; font-weight: 950; letter-spacing: -.1em; text-shadow: 0 0 28px rgba(255,79,216,.16); }
  .bottom-nav { left: 50%; right: auto; width: 520px; translate: -50% 0; border: 1px solid rgba(255,255,255,.12); border-bottom: 0; border-radius: 20px 20px 0 0; }
  .content-wrap { padding-top: calc(var(--top-h) + 54px); }
  .series-grid { gap: 20px; }
  #page-list #seriesGrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .series-cover { border-radius: 22px; }
  .series-info h2 { font-size: 1.13rem; }
  .detail-wrap { padding-top: calc(var(--top-h) + 38px); }
  .benefit-card { padding: 30px; }
  .welcome-card { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
  .membership-offer { margin-top: 0; }
  .referral-card, .wish-card { grid-template-columns: auto 1fr auto; align-items: center; }
  .referral-card .secondary-cta { grid-column: 3; width: 220px; }
  .wish-card .wish-input { grid-column: 2 / -1; }
  .wish-card .secondary-cta { grid-column: 2 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-height: 700px) {
  .reel-actions { gap: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); }
  .action-button { width: 48px; min-height: 42px; padding: 1px 0; }
  .action-button .action-icon { width: 33px; height: 33px; }
  .action-button svg { width: 18px; height: 18px; }
  .action-button small { font-size: .56rem; margin-top: 0; }
  .reel-meta { right: 68px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); }
}

/* Series actions have their own layout, separate from episode rows and wallet CTAs. */
.episode-copy{min-width:0}.episode-copy b,.episode-copy>span{overflow-wrap:anywhere}.episode-copy .episode-access{display:block;margin-top:8px;color:#a4ddf5;font-size:.875rem;line-height:1.5}.episode-play{flex:none}
.series-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px;padding-top:20px;border-top:1px solid rgba(245,165,213,.2)}
.series-action{position:relative;min-width:0;min-height:82px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:18px 20px;border:1px solid rgba(164,221,245,.35);border-radius:16px;background:linear-gradient(120deg,rgba(164,221,245,.08),rgba(245,165,213,.09));color:var(--text);font:inherit;text-align:left;white-space:normal;cursor:pointer}
.series-action b{font-size:1rem;line-height:1.5}.series-action span{font-size:.875rem;line-height:1.5;color:#d8cce4}.series-action-primary{border-color:rgba(245,165,213,.55);background:linear-gradient(110deg,rgba(164,221,245,.13),rgba(255,79,216,.2))}.series-action:hover{border-color:var(--pink);box-shadow:0 0 22px rgba(255,79,216,.15)}
.series-action:focus-visible,.dialog-close:focus-visible{outline:2px solid var(--pink);outline-offset:4px}.dialog-close{color:#ffb9ed;border-color:rgba(245,165,213,.35);display:grid;place-items:center;padding:0;background:#23172e}.dialog-close:hover{border-color:var(--pink)}
@media(max-width:600px){.series-actions{grid-template-columns:minmax(0,1fr);gap:12px}.series-action{min-height:76px;padding:16px}.episode-row{grid-template-columns:36px minmax(0,1fr) 32px;gap:10px}.episode-play{width:32px;height:32px}.episode-copy b{line-height:1.5}}

/* Series overview, horizontal episode cards, discussion and discovery. */
.detail-wrap { width:min(100% - 28px,1120px); }
.detail-hero { padding:22px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(130deg,rgba(255,79,216,.1),rgba(164,221,245,.05)); align-items:center; gap:26px; }
.detail-copy { align-self:center; min-width:0; }
.detail-copy h1 { font-size:clamp(1.6rem,3.4vw,2.6rem); line-height:1.25; letter-spacing:-.025em; }
.detail-cover { width:100%; max-width:320px; margin:auto; box-shadow:none; }
.detail-cover img { object-fit:contain; }
.detail-cover::after { display:none; }
.detail-description { white-space:pre-line; font-size:.92rem; }
.detail-controls { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.detail-controls .series-action,.bundle-compact { width:auto; min-height:42px; padding:10px 15px; font-size:.8rem; }
.detail-preview-note { color:var(--cyan); font-size:.8rem; margin-top:16px; }
.bundle-compact { border-color:var(--pink); color:#ffc4ee; flex-shrink:0; }
.episode-section-head { align-items:center; }
.episode-section-head small { color:var(--muted); font-size:.8rem; }
.episode-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.episode-row { min-height:116px; align-items:center; }
.episode-copy > span:not(.episode-access) { white-space:normal; overflow:visible; display:block; line-height:1.6; }
.detail-comments,.detail-related { margin-top:36px; }
.detail-comments h2,.detail-related h2 { font-size:1.2rem; }
#seriesCommentForm { padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--surface); margin-bottom:16px; }
#seriesCommentForm label { display:grid; gap:10px; color:var(--muted); font-size:.85rem; }
#seriesCommentForm select,#seriesCommentForm textarea { width:100%; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--text); padding:12px; font:inherit; }
#seriesCommentForm textarea { min-height:80px; resize:vertical; }
#seriesCommentForm button { margin-top:10px; min-height:42px; padding:10px 18px; }
.detail-comment-list { display:grid; gap:10px; }
.detail-comment-list article { display:flex; align-items:flex-start; gap:12px; padding:16px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.025); }
.comment-avatar { width:36px; height:36px; flex-shrink:0; border-radius:50%; display:grid; place-items:center; color:var(--cyan); background:rgba(255,79,216,.16); }
.detail-comment-list b { font-size:.85rem; }
.detail-comment-list small,.detail-related > p { color:var(--muted); font-size:.75rem; }
.detail-comment-list p { margin:8px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; font-size:.85rem; }
.related-strip { display:grid; grid-auto-flow:column; grid-auto-columns:140px; overflow-x:auto; gap:14px; padding:8px 0 16px; }
@media(max-width:650px){.detail-hero{padding:16px;grid-template-columns:1fr}.episode-list{grid-template-columns:1fr}.detail-controls .series-action{flex:1 1 40%}.detail-cover{max-width:260px}}
.series-tags {display:flex;flex-wrap:wrap;gap:7px;color:var(--cyan);font-size:.82rem;margin:14px 0;}
.series-statistics {display:flex;flex-wrap:wrap;align-items:center;gap:13px;color:var(--muted);font-size:.84rem;}
.series-statistics button {display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:inherit;padding:5px 0;cursor:pointer;font:inherit;}
.series-statistics svg {width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7;}
.series-statistics button:hover {color:var(--pink);}
.rating-stars span {color:#ecc786;letter-spacing:2px;}
.demo-stats-note {display:block;color:var(--muted-2);font-size:.62rem;margin:5px 0 14px;}
.creator-actions {display:flex;flex-wrap:wrap;gap:9px;margin:14px 0 20px;}
.creator-actions button,.creator-records button,.tip-dialog button[data-topup] {padding:10px 14px;min-height:42px;border:1px solid rgba(255,79,216,.35);border-radius:9px;background:rgba(255,79,216,.06);color:#f8b5e5;cursor:pointer;}
.creator-actions .creator-name {color:#c8eaff;background:rgba(164,221,245,.1);border-color:rgba(164,221,245,.25);}
.creator-actions button[data-social="urge"] {color:#ffacda;}
.social-share {display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.8rem;}
.social-share button {width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);cursor:pointer;}
.creator-profile {padding:28px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(130deg,rgba(255,79,216,.12),rgba(164,221,245,.08));margin-bottom:24px;}
.creator-profile p {line-height:1.7;white-space:pre-line;}
.creator-profile small,.creator-records p {color:var(--muted);}
.creator-records {margin-top:28px;}
.tip-dialog select {padding:12px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:10px;margin:12px;}
.tip-dialog [role="status"] {color:#ffacda;}
@media(max-width:650px){.series-statistics{gap:8px;font-size:.78rem}.creator-actions button{flex:1 1 auto}.creator-actions .creator-name{flex-basis:100%}.social-share{width:100%;margin-top:6px}}
/* Drama library: feature carousel, compact filters and ranked discovery. */
#page-list .content-wrap {width:min(100% - 28px,1200px);padding-top:calc(var(--top-h) + env(safe-area-inset-top) + 24px);}
.library-sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.library-banner {position:relative;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--surface);touch-action:pan-y;}
.library-banner article {position:relative;min-height:300px;aspect-ratio:3.5;isolation:isolate;animation:bannerReveal .4s ease;}
.library-banner article[hidden] {display:none;}
.library-banner article>img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;z-index:-2;}
.library-banner article::after {content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,7,14,.95),rgba(9,7,14,.73) 38%,rgba(9,7,14,.06) 85%),linear-gradient(0deg,rgba(9,7,14,.45),transparent 60%);z-index:-1;}
.banner-copy {padding:34px 36px 58px;width:min(66%,660px);}
.banner-copy>span {display:inline-block;padding:5px 10px;border:1px solid rgba(164,221,245,.45);border-radius:99px;color:#c9ecff;font-size:.68rem;}
.banner-copy h2 {font-size:clamp(1.6rem,3vw,2.6rem);line-height:1.25;margin:13px 0;}
.banner-copy p {font-size:.84rem;color:#d7cfdf;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 18px;}
.banner-copy>div {display:flex;flex-wrap:wrap;gap:9px;}
.banner-copy button {min-height:40px;padding:10px 17px;font-size:.78rem;}
.banner-controls {position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:6px;align-items:center;}
.banner-controls>div {display:flex;gap:2px;}
.banner-controls button {border:0;background:rgba(9,7,14,.45);color:#fff;cursor:pointer;min-width:30px;height:30px;border-radius:50%;}
.banner-controls [data-banner-dot] {min-width:24px;background:transparent;position:relative;}
.banner-controls [data-banner-dot]::after {content:'';position:absolute;width:5px;height:5px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:8px;background:#9993a0;}
.banner-controls [data-banner-dot].is-active::after {width:16px;background:linear-gradient(90deg,var(--cyan),var(--pink));}
.library-toolbar {display:flex;gap:18px;align-items:center;justify-content:space-between;margin:22px 0 26px;}
.library-toolbar .filter-row {order:0;flex:1;min-width:0;margin:0;gap:10px;}
.library-toolbar .search-box {order:1;position:static;min-height:38px;width:230px;flex-shrink:0;border-radius:10px;}
.library-toolbar .search-box input {font-size:.8rem;min-width:0;}
.library-toolbar .search-box kbd {display:none;}
.library-toolbar .filter-chip {font-size:.72rem;min-height:32px;padding:6px 12px;}
.library-toolbar .sort-select {font-size:.7rem;}
.library-section-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 14px;}
.library-section-head h2 {font-size:1.2rem;margin:0;}
.library-section-head small {font-size:.65rem;color:var(--muted);font-weight:400;margin-left:7px;}
.library-section-head button {border:0;background:transparent;color:var(--cyan);cursor:pointer;min-height:36px;}
.ranking-strip {display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 90px)/7);gap:15px;overflow-x:auto;padding:4px 2px 14px;scroll-snap-type:x proximity;}
.ranking-item {position:relative;min-width:0;scroll-snap-align:start;}
.ranking-item .series-card {width:100%;}
.ranking-item .rank-number {position:absolute;left:8px;top:3px;z-index:3;font-size:2.5rem;font-weight:950;font-style:italic;color:#fff;text-shadow:0 2px 12px #000,2px 0 0 #9b6193;pointer-events:none;}
.ranking-item .cover-no,.ranking-item .cover-spark {display:none;}
.ranking-item>small {color:var(--muted);font-size:.7rem;}
.ranking-item .series-info h2 {font-size:.82rem;}
@keyframes bannerReveal {from{opacity:.25}to{opacity:1}}
@media(max-width:979px){.ranking-strip{grid-auto-columns:145px}.library-toolbar{flex-wrap:wrap}.library-toolbar .filter-row{flex-basis:100%}.library-toolbar .search-box{width:100%}.banner-copy{width:80%;padding:24px 22px 55px}.library-banner article{min-height:270px;aspect-ratio:2.3}}
@media(max-width:600px){.banner-copy{width:94%}.banner-copy h2{font-size:1.55rem}.library-banner article{min-height:255px;aspect-ratio:1.5}.banner-copy p{font-size:.76rem}.library-banner article::after{background:linear-gradient(90deg,rgba(9,7,14,.9),rgba(9,7,14,.32)),linear-gradient(0deg,rgba(9,7,14,.7),transparent)}.ranking-strip{grid-auto-columns:125px}.library-toolbar{gap:12px;margin:16px 0}.library-toolbar .filter-row{flex-wrap:wrap}.library-toolbar .category-tabs{flex-basis:100%}.banner-controls button{height:34px}}
@media(prefers-reduced-motion:reduce){.library-banner article{animation:none}}

/* Shared full-duration scrubber and aspect-preserving playback. */
.reel[data-orientation="landscape"] .reel-video { object-fit: contain; }
.progress-track { height: 28px; background: transparent; }
.progress-track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; background: #ffffff40; }
.progress-fill { position: absolute; top: 12px; height: 4px; pointer-events: none; }
.video-seek { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; opacity: .01; cursor: pointer; touch-action: none; }
.progress-track:focus-within { outline: 1px solid var(--cyan); }
.seek-time { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); padding: 7px 12px; border-radius: 8px; background: #100b1fee; color: white; white-space: nowrap; pointer-events: none; }
.player-open { overflow: hidden; }
.reel.player-fullscreen { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; z-index: 10000; border-radius: 0; --nav-h: 0px; --top-h: 0px; }
.reel.player-fullscreen .reel-video { object-fit: contain; width: 100%; height: 100%; }
.player-fullscreen .progress-track { bottom: max(10px, env(safe-area-inset-bottom)); left: 16px; right: 16px; }
.player-fullscreen .reel-meta { bottom: 48px; }
.player-fullscreen .reel-actions { bottom: 45px; }
@media (pointer: coarse) and (orientation: portrait) {
  .reel.player-fullscreen[data-orientation="landscape"] { inset: auto; top: 50%; left: 50%; width: 100dvh; height: 100vw; transform: translate(-50%, -50%) rotate(90deg); }
}
@media (max-height: 550px), (pointer: coarse) and (orientation: portrait) {
  .player-fullscreen[data-orientation="landscape"] .reel-actions { flex-direction: row; right: 12px; bottom: 40px; }
  .player-fullscreen[data-orientation="landscape"] .reel-actions .action-button:not([data-action="fullscreen"]):not([data-action="mute"]) { display: none; }
  .player-fullscreen[data-orientation="landscape"] .reel-meta { display: none; }
  .player-fullscreen .preview-gate-card { max-height: 85%; overflow-y: auto; }
}
