:root {
  color-scheme: dark;
  --outer: #09090c;
  --surface: #100f14;
  --panel: #19181f;
  --raised: #22212a;
  --line: #2b2931;
  --text: #f5f2f1;
  --muted: #b7b2ba;
  --dim: #99929e;
  --gold: #ffbd59;
  --gold-light: #ffd990;
  --pink: #ff627b;
  --max: 480px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  font-size: 14px;
  background: var(--outer);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; min-height: 100vh; overscroll-behavior-y: none; }
body.has-layer { overflow: hidden; }
body.has-layer #app { pointer-events: none; }
body.is-player { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
button[disabled] { opacity: .46; cursor: default; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, video, svg { display: block; }
svg { flex: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding-left: 20px; }
small { font-size: .84em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; border: 0; }
.clipboard-value { position: fixed; opacity: 0; inset: 0 auto auto 0; }
.wrap { overflow-wrap: anywhere; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.muted { color: var(--muted); line-height: 1.55; }
.error, .field-error, .warning { color: #ff98ab; }
.error { font-size: 13px; line-height: 1.5; }
.full { width: 100%; }
.shell { position: relative; width: min(100%, var(--max)); margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--surface); box-shadow: 0 0 125px #0008; }
#app { min-height: inherit; outline: none; }
.web-bar, .hero-copy, .watch-side, .progress-meta .desktop-play { display: none; }
.content { padding: 12px 17px max(24px, calc(var(--safe-bottom) + 18px)); }
.section + .section { margin-top: 23px; }
.section-title { display: flex; align-items: center; justify-content: space-between; min-height: 33px; margin-bottom: 10px; gap: 8px; }
.section-title h2 { font-size: 17px; font-weight: 750; letter-spacing: .015em; }
.section-title small { color: var(--muted); }
.section-title .icon-button { width: 34px; height: 34px; }
.more-link, .text-button { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.text-button { border: 0; background: transparent; min-height: 36px; padding: 0 3px; }
.more-link:hover, .text-button:hover { color: var(--gold-light); }
.panel { background: var(--panel); border: 1px solid #ffffff08; border-radius: 15px; }
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  gap: 7px; border: 1px solid transparent; background: var(--raised); color: var(--text);
  min-height: 43px; padding: 9px 13px; border-radius: 11px; font-weight: 680;
  transition: background .14s ease, filter .14s ease, border-color .14s ease;
}
.button:hover:not(:disabled), .button:active:not(:disabled) { filter: brightness(1.10); }
.icon-button { width: 39px; height: 39px; min-height: 39px; border: 0; padding: 0; background: transparent; }
.icon-button:hover { background: #ffffff0e; }
.primary { color: #241305; background: linear-gradient(108deg, #ffb64f, #ffc971); border-color: #ffce81; }
.secondary { background: #222129; border-color: var(--line); }
.mini { border-radius: 999px; min-height: 34px; padding: 5px 12px; font-size: 12px; white-space: nowrap; }
.green { color: #c9f6df; background: #224b3d; border-color: #3a6b55; }
.danger { background: #612531; color: #ffe8ec; border-color: #913b4c; }
.selected { background: #472e20; color: var(--gold-light); border-color: #8a6234; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; line-height: 1.16; white-space: nowrap; letter-spacing: -.015em; }
.brand img { width: 29px; height: 29px; border-radius: 8px; }
.brand small { display: block; color: var(--dim); font-weight: 550; font-size: 10px; margin-top: 3px; letter-spacing: .05em; }
.topbar {
  position: sticky; z-index: 8; top: 0; min-height: calc(57px + var(--safe-top));
  align-items: center; background: #100f14eb; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: var(--safe-top) 13px 0;
}
.homebar { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(110px, auto) minmax(80px, 1fr); }
.top-actions { display: flex; align-items: center; gap: 3px; }
.top-actions.right { justify-content: flex-end; gap: 6px; }
.wordmark { background: transparent; min-height: 39px; padding: 4px 2px; }
.wordmark:active { filter: none; }
.member { display: inline-flex; align-items: center; gap: 3px; background: #26252c; color: #c8c3c9; border: 1px solid #ffffff07; font-size: 10px; font-weight: 750; padding: 5px 6px; border-radius: 999px; white-space: nowrap; }
.member.gold { color: var(--gold-light); background: #4b331b; }
.account { padding: 2px; border-radius: 9px; }
.account img { width: 34px; height: 34px; border-radius: 9px; }
.subbar { display: grid; grid-template-columns: 40px 1fr auto; gap: 5px; }
.bar-title h1 { font-size: 17px; line-height: 1.2; font-weight: 760; }
.bar-title h1:empty { display: none; }
.bar-title small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.bar-right { padding-right: 1px; }
.topbar.over { position: absolute; inset: 0 0 auto; background: linear-gradient(#000a, transparent); backdrop-filter: none; }
.topbar.over .icon-button { background: #11111887; border: 1px solid #ffffff19; box-shadow: 0 1px 6px #0004; }

.tag-strip { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 9px 17px 11px; white-space: nowrap; }
.tag-strip::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; gap: 6px; padding: 7px 11px; min-height: 32px; border-radius: 999px; background: #1d1b23; border: 1px solid #ffffff09; color: #dcd7df; font-size: 12px; font-weight: 620; }
.chip:hover { border-color: #ffbc5970; color: var(--gold-light); }
.chip.all { color: #1c1714; background: #f4ede2; border-color: #fff3df; font-weight: 800; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.count-chip { padding: 9px 13px; }
.count-chip span { font-size: 10px; color: var(--gold-light); }
.notice {
  display: flex; align-items: center; gap: 9px; overflow: hidden; margin: 0 17px 14px;
  min-height: 35px; border: 1px solid #7d542939; border-radius: 9px; padding: 0 9px;
  background: linear-gradient(105deg, #33241a, #251d19); color: #f2cc91; font-size: 11px;
}
.notice > svg:first-child { color: var(--gold); }
.notice-window { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); }
.notice-window > span { display: inline-block; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero { overflow: hidden; background: radial-gradient(55% 82% at 50% 47%, #5131233d, transparent 87%); }
.hero-track { position: relative; height: 399px; margin: 0 auto; padding-top: 4px; touch-action: pan-y; cursor: grab; outline-offset: -5px; }
.hero-track:active { cursor: grabbing; }
.hero-card {
  width: min(69%, 266px); height: calc(100% - 15px); position: absolute; left: 50%; top: 4px; border-radius: 17px;
  overflow: hidden; color: white; background: #251b19; border: 1px solid #ffffff1c; isolation: isolate;
  --shift: 0px; --scale: 1; transform: translateX(calc(-50% + var(--shift))) scale(var(--scale));
  opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.22,.62,.28,1), opacity .42s ease, filter .45s ease;
}
.hero-card[data-slot="0"] { z-index: 5; opacity: 1; pointer-events: auto; box-shadow: 0 21px 36px #000a, 0 3px 0 #39291c; }
.hero-card[data-slot="1"], .hero-card[data-slot="-1"] { z-index: 3; --scale: .88; opacity: .74; filter: brightness(.58); pointer-events: auto; }
.hero-card[data-slot="2"], .hero-card[data-slot="-2"] { z-index: 2; --scale: .765; opacity: .48; filter: brightness(.42); pointer-events: auto; }
.hero-card[data-slot="1"] { --shift: clamp(70px, 26vw, 118px); }
.hero-card[data-slot="-1"] { --shift: calc(-1 * clamp(70px, 26vw, 118px)); }
.hero-card[data-slot="2"] { --shift: clamp(121px, 40vw, 177px); }
.hero-card[data-slot="-2"] { --shift: calc(-1 * clamp(121px, 40vw, 177px)); }
.hero-card > img, .hero-card > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 39%; pointer-events: none; }
.hero-card > video { opacity: 0; transition: opacity .2s ease; }
.hero-card > video.playing { opacity: 1; }
.hero-card::after { position: absolute; content: ''; inset: 0; background: linear-gradient(180deg,#0b07082d,transparent 30%,transparent 47%,#100b0a39 60%,#100c10eb 92%); z-index: 1; pointer-events: none; }
.hero-badges, .hero-info { position: absolute; inset-inline: 12px; z-index: 2; }
.hero-badges { top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.hero-badges > span:last-child:not(.hot):not(.new):not(.free) { border-radius: 5px; padding: 4px 6px; background: #161216aa; font-size: 9px; white-space: nowrap; font-weight: 650; }
.badge { display: inline-flex; align-items: center; gap: 3px; border-radius: 5px; padding: 4px 6px; font-size: 10px; font-weight: 820; line-height: 1; white-space: nowrap; }
.badge.hot { background: #ff687f; color: #37131a; }
.badge.free { background: #91deb3; color: #102e23; }
.badge.new { background: #ffd07c; color: #3a2111; }
.badge.kind { background: #ffffff20; color: #f7efec; }
.hero-info { bottom: 12px; }
.hero-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.hero-title h2 { font-size: 22px; line-height: 1.16; font-weight: 850; letter-spacing: -.035em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 5px #000c; }
.hero-title span { color: #fff3e9; white-space: nowrap; font-size: 11px; }
.hero-watch { width: 100%; min-height: 40px; border-radius: 10px; }
.hero-dots { display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 26px; padding-bottom: 3px; }
.hero-dots button { padding: 6px 2px; border: 0; display: grid; place-items: center; background: none; }
.hero-dots button span { display: block; width: 5px; height: 4px; border-radius: 10px; background: #403a42; position: relative; overflow: hidden; transition: width .23s ease; }
.hero-dots button[aria-current="true"] span { width: 21px; background: #7f502b; }
.hero-dots button[aria-current="true"] span::after { content: ''; position: absolute; inset: 0; transform-origin: left; height: 100%; background: var(--gold); animation: stage-timer var(--hero-interval, 5s) linear both; }
@keyframes stage-timer { from { transform: scaleX(.07); } to { transform: scaleX(1); } }
.home-content { padding-top: 9px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.drama-card { min-width: 0; }
.card-cover { position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: 11px; background: #2d2225; }
.card-cover::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #140e16dc); pointer-events: none; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.drama-card:hover .card-cover img { transform: scale(1.035); }
.card-cover .badge { position: absolute; top: 8px; left: 8px; z-index: 1; }
.score, .cover-kind { position: absolute; bottom: 8px; z-index: 1; font-size: 11px; font-weight: 760; }
.score { left: 8px; display: flex; align-items: center; gap: 4px; color: #ffd68c; }
.cover-kind { right: 8px; color: #e3d9d6; font-size: 9px; }
.drama-card h3 { line-height: 1.35; font-size: 15px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drama-card p { font-size: 11px; color: var(--muted); line-height: 1.56; margin-top: 3px; min-height: 34px; }
.card-tags { display: flex; gap: 4px; margin: 6px 0; max-height: 25px; overflow: hidden; }
.card-tags span { background: #222029; color: #c6c0cb; border-radius: 4px; font-size: 9px; padding: 2px 5px; white-space: nowrap; }
.episodes-label { color: var(--dim); font-size: 10px; }
.footer { padding: 24px 18px max(24px, calc(var(--safe-bottom) + 18px)); background: #151319; border-top: 1px solid var(--line); }
.footer .brand { margin-bottom: 14px; }
.footer nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 10px; }
.footer nav a { padding: 6px 0; font-size: 12px; color: #ded8dc; }
.footer > small { display: block; margin-top: 13px; line-height: 1.65; color: var(--dim); }

.layer { position: fixed; inset: 0; z-index: 20; width: min(100%, var(--max)); margin: 0 auto; display: flex; align-items: flex-end; }
.scrim { position: fixed; inset: 0; background: #000a; }
.sheet { position: relative; z-index: 1; width: 100%; max-height: 82vh; max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain; background: #1b1921; border: 1px solid #ffffff15; border-bottom: 0; border-radius: 19px 19px 0 0; padding-bottom: var(--safe-bottom); animation: sheet-up .2s ease-out both; outline: none; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; min-height: 59px; gap: 10px; padding: 10px 15px 7px 18px; position: sticky; top: 0; z-index: 2; background: #1b1921; }
.sheet-heading h2 { font-size: 16px; font-weight: 780; line-height: 1.3; }
.sheet-heading p { font-size: 11px; margin-top: 4px; color: var(--muted); }
.sheet-heading .icon-button { height: 34px; width: 34px; min-height: 34px; background: #ffffff0b; border-radius: 50%; }
.sheet-body { padding: 4px 17px 18px; }
.sheet-body > h3 { font-size: 13px; color: var(--muted); margin: 10px 0; }
@keyframes sheet-up { from { transform: translateY(22px); opacity: .45; } to { transform: none; opacity: 1; } }
.drawer { align-items: stretch; }
.drawer .sheet { width: min(290px, 86%); max-height: none; border: 0; border-radius: 0 16px 16px 0; animation: drawer-in .23s ease-out both; }
.drawer .sheet-heading { padding-top: calc(var(--safe-top) + 10px); }
.drawer .sheet-body { padding: 3px 12px 17px; }
.drawer-menu h3 { font-size: 11px; font-weight: 700; color: var(--dim); padding: 14px 12px 7px; border-top: 1px solid var(--line); margin-top: 10px; }
.drawer .setting-row { margin-bottom: 2px; border-radius: 9px; border: 0; min-height: 41px; padding: 8px 11px; }
.drawer .setting-row[aria-current] { color: var(--gold-light); background: #4a3023; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.toast { position: fixed; z-index: 40; left: 50%; bottom: max(24px, calc(var(--safe-bottom) + 18px)); max-width: min(410px, 90%); transform: translateX(-50%); width: max-content; border-radius: 11px; padding: 10px 15px; background: #302a35f5; color: #fff6ed; font-size: 12px; border: 1px solid #ffffff18; box-shadow: 0 3px 20px #0008; pointer-events: none; }
.setting-row { display: flex; width: 100%; align-items: center; text-align: left; min-height: 47px; gap: 10px; padding: 10px 12px; border: 0; border-bottom: 1px solid #ffffff08; background: none; color: var(--text); }
.setting-row:last-child { border-bottom: 0; }
.setting-row:hover { background: #ffffff06; }
.setting-row > span { flex: 1 1 auto; min-width: 0; }
.setting-row > svg:first-child { color: var(--muted); }
.setting-row > svg:last-child, .setting-row small { color: var(--dim); white-space: nowrap; }
.empty { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; min-height: 210px; padding: 24px 14px; text-align: center; color: var(--muted); }
.empty > svg { color: #dbc096; }
.empty h2 { font-size: 17px; color: var(--text); }
.empty p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.empty .button { margin-top: 6px; min-width: 116px; }
.starting, .player-loading { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.starting img { width: 37px; height: 37px; }
.starting strong { color: var(--text); font-size: 18px; }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ffffff24; border-top-color: var(--gold); animation: spin .65s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.searchbar { display: flex; gap: 3px; }
.searchbar form { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; }
.searchbar form > button { color: var(--gold-light); background: transparent; border: 0; padding: 7px 4px; }
.search-field, .search-entry { display: flex; align-items: center; gap: 9px; padding: 7px 10px; background: #222029; border-radius: 9px; color: var(--muted); min-height: 39px; }
.search-field { flex: 1; min-width: 0; }
.search-field input { width: 100%; border: 0; background: transparent; padding: 2px 0; outline: none; }
.search-field:focus-within { box-shadow: inset 0 0 0 1px #ffbd596e; }
.search-field input:focus-visible { outline: none; }
.search-rank { display: flex; align-items: center; min-height: 43px; gap: 11px; padding: 6px 13px; border-bottom: 1px solid #ffffff09; }
.search-rank:last-child { border: 0; }
.search-rank.hot-word .rank-no, .search-rank.hot-word > svg { color: var(--gold-light); }
.rank-no { flex: 0 0 22px; color: var(--dim); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #ffffff09; }
.rank-row:first-child .rank-no { color: var(--gold); }
.rank-row:last-child { border: 0; }
.rank-row img { width: 39px; height: 52px; object-fit: cover; border-radius: 6px; }
.rank-row > div { flex: 1; min-width: 0; display: grid; gap: 5px; }
.rank-row > div small { color: var(--muted); }
.rank-score { display: flex; align-items: center; color: var(--gold); gap: 3px; }
.banners { margin: 12px 0 15px; }
.discover-banner { display: flex; align-items: flex-end; justify-content: space-between; height: 132px; padding: 13px; position: relative; background: #312321; border-radius: 13px; isolation: isolate; overflow: hidden; }
.discover-banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; }
.discover-banner::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(65deg,#180f13e8,transparent 83%); }
.discover-banner strong, .discover-banner small { display: block; }
.discover-banner strong { font-size: 22px; margin-top: 4px; }
.discover-banner small { color: var(--gold-light); }
.detail-cover { position: relative; height: 300px; background: #2c1b20; overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.detail-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 52%, var(--surface)); pointer-events: none; }
.detail-content { position: relative; margin-top: -36px; }
.detail-content h1 { margin: 8px 0; font-size: 26px; font-weight: 820; }
.flag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.detail-stats { display: flex; align-items: center; color: var(--gold-light); gap: 6px; margin-bottom: 12px; }
.detail-stats span { display: flex; align-items: center; color: var(--muted); gap: 4px; padding-left: 7px; font-size: 12px; }
.detail-content #synopsis { line-height: 1.72; color: #e3dce3; margin-top: 12px; }
.credit { color: var(--dim); line-height: 1.55; font-size: 11px; }
.credit a:hover, .player-credit a:hover { text-decoration: underline; color: var(--gold-light); }
.detail-actions { display: grid; grid-template-columns: 1.75fr 1fr; gap: 10px; margin: 15px 0 20px; }
.episode-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.episode { position: relative; display: grid; place-items: center; min-width: 0; min-height: 41px; background: #26242d; color: #f0ece7; font-size: 13px; font-weight: 720; border: 1px solid #393642; border-radius: 8px; }
.episode:hover { border-color: var(--gold); }
.episode.current { background: #4c3321; border-color: var(--gold); color: var(--gold-light); }
.episode.locked svg { position: absolute; top: 3px; right: 3px; color: var(--gold); }
.episode-groups { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.episode-groups .button { min-height: 33px; padding: 5px 10px; font-size: 12px; }
.ep-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11px; margin: 3px 0 11px; color: var(--muted); }
.ep-legend span { display: flex; align-items: center; gap: 4px; }
.ep-legend svg { color: var(--gold); }
.cards.related { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cards.related .drama-card p, .cards.related .card-tags { display: none; }
.cards.related .drama-card h3 { font-size: 12px; }

.personal > * + * { margin-top: 12px; }
.profile-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 4px 0; min-height: 65px; }
.profile-person h2 { font-size: 17px; overflow-wrap: anywhere; }
.profile-person p { color: var(--muted); font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.avatar { --hue: 31; border-radius: 50%; background: hsl(var(--hue) 34% 23%); color: hsl(var(--hue) 75% 86%); width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; font-size: 14px; font-weight: 800; border: 1px solid #ffffff10; }
.avatar.large { width: 54px; height: 54px; font-size: 20px; }
.vip-card, .wallet-line { display: flex; align-items: center; gap: 10px; }
.vip-card { padding: 13px 11px; min-height: 75px; color: var(--gold); background: linear-gradient(114deg, #3d2c1e, #2a211b); border-color: #e7a14a2d; }
.vip-card div, .wallet-line div { flex: 1; }
.vip-card h2 { font-size: 16px; }
.vip-card p { margin-top: 4px; color: #e6d1af; font-size: 11px; }
.wallet-card { padding: 12px; }
.wallet-line { color: var(--gold); min-height: 51px; }
.wallet-line small, .wallet-line strong { display: block; }
.wallet-line small { color: var(--muted); margin-bottom: 2px; }
.wallet-line strong { font-size: 23px; color: #fff0d4; line-height: 1; font-variant-numeric: tabular-nums; }
.checkin-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 9px 0; font-size: 12px; }
.checkin-head span { color: var(--muted); }
.checkin-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.checkin-days div { display: grid; place-items: center; gap: 5px; padding: 7px 0; background: #23212a; border: 1px solid #ffffff08; border-radius: 7px; }
.checkin-days small { color: var(--muted); font-size: 9px; }
.checkin-days b { font-size: 12px; }
.checkin-days .today { border-color: #ffb84a; color: var(--gold-light); background: #30261e; }
.checkin-days .checked { border-color: #528365; color: #a8e5be; }
.version { font-size: 10px; color: var(--dim); text-align: center; padding: 4px 0; }
.segmented { display: flex; align-items: center; gap: 4px; border: 1px solid #ffffff0b; border-radius: 10px; background: #1a1921; padding: 3px; margin-bottom: 13px; }
.segmented a { flex: 1; display: grid; place-items: center; min-height: 34px; color: var(--muted); font-size: 12px; border-radius: 7px; }
.segmented a.active { background: #423123; color: var(--gold-light); font-weight: 750; }
.history-row, .record-row { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-bottom: 1px solid #ffffff0c; }
.history-row:last-child, .record-row:last-child { border: 0; }
.history-row img { width: 47px; height: 64px; object-fit: cover; border-radius: 7px; }
.history-row div, .record-row div:first-child { flex: 1; min-width: 0; }
.history-row small, .record-row small { display: block; color: var(--muted); margin-top: 5px; }
.history-row > svg { color: var(--muted); }
.list-progress { height: 3px; background: #ffffff21; display: block; max-width: 210px; border-radius: 10px; margin-top: 7px; }
.list-progress i { display: block; background: var(--gold); height: 100%; border-radius: inherit; }
.list-panel + .button { margin-top: 10px; }
.record-row { padding-block: 13px; }
.record-row > div:last-child { text-align: right; }
.settings .section { margin-bottom: 16px; }
.settings .setting-row { padding-inline: 14px; }
.switch-row > input { appearance: none; width: 34px; height: 19px; border-radius: 999px; margin: 0; background: #44404a; position: relative; cursor: pointer; }
.switch-row > input::after { content: ''; position: absolute; width: 13px; height: 13px; border-radius: 50%; left: 3px; top: 3px; background: #d3cbd5; transition: transform .15s; }
.switch-row > input:checked { background: #c58a3b; }
.switch-row > input:checked::after { transform: translateX(15px); background: #fff2d9; }
.settings select { min-width: 98px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select { min-width: 0; }
select, .form input:not([type=checkbox]), .form textarea, .comment-form input {
  color: var(--text); background-color: #1a1820; border: 1px solid #37333e; border-radius: 9px; min-height: 43px; padding: 9px 11px;
}
select {
  appearance: none; min-height: 34px; padding-right: 35px; background-repeat: no-repeat; background-position: right 11px center; background-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23ded9df' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}
.form { display: grid; gap: 13px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.form textarea { resize: vertical; min-height: 85px; }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form .field-error { font-size: 11px; min-height: 0; }
.form .field-error:empty { display: none; }
.form input[aria-invalid=true] { border-color: #ca5c71; }
.form .with-button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.form .with-button > input { width: 100%; }
.form .with-button > button { min-height: 100%; }
.form .password { position: relative; display: block; }
.form .password > input { padding-right: 43px; }
.password > button { position: absolute; right: 3px; top: 0; }
.form .agreement { flex-direction: row; align-items: center; line-height: 1.5; }
.agreement input, input[data-list-item] { accent-color: #ffc171; height: 16px; width: 16px; }
.agreement a, .forgot { color: var(--gold-light); }
.auth-brand { text-align: center; margin: 5px 0 17px; }
.auth-brand .brand { margin-bottom: 11px; text-align: left; }
.auth-brand .brand img { width: 38px; height: 38px; }
.auth-brand h2 { font-size: 20px; }
.demo-code, .auth-reward { color: var(--gold-light); font-size: 12px; }
.auth-reward { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 15px; }
.forgot { justify-self: end; font-size: 12px; }
.info-panel { padding: 14px; margin-bottom: 12px; }
.info-panel h2 { font-size: 16px; }
.info-panel p { color: var(--muted); line-height: 1.65; margin: 8px 0; }
.info-panel .button { margin-top: 6px; }
.info-panel details + details { border-top: 1px solid #ffffff15; }
.info-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; min-height: 43px; list-style: none; }
.info-panel summary::-webkit-details-marker { display: none; }
.info-panel details[open] summary svg { transform: rotate(180deg); }
.confirm-copy { color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.store { min-height: inherit; background: radial-gradient(90% 420px at 50% 0%, #4d3421, transparent 96%), var(--surface); }
.store .topbar { background: #18131aa6; }
.store-hero { text-align: center; margin: 4px 0 15px; }
.store-hero svg { display: inline-block; color: var(--gold); margin-bottom: 3px; }
.store-hero h1 { color: var(--gold-light); font-size: 23px; }
.store-hero p { margin-top: 6px; color: #e6d4ba; font-size: 13px; }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 15px; }
.benefit-grid span { display: flex; align-items: center; gap: 6px; padding: 7px 9px; min-height: 38px; background: #ffffff0c; border: 1px solid #ffffff0b; border-radius: 9px; font-size: 12px; }
.benefit-grid svg { color: var(--gold); }
.plans { display: grid; gap: 9px; margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.plan { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 10px 12px; position: relative; border-radius: 12px; background: #211b1eaf; border: 1px solid #524339; cursor: pointer; }
.plan.chosen { border: 1px solid #ffbb61; box-shadow: inset 0 0 0 1px #ffbe593c; background: #5035225e; }
.plan input { accent-color: var(--gold); width: 16px; height: 16px; margin: 0; }
.plan-info { display: grid; gap: 5px; flex: 1; }
.plan-info small { color: var(--muted); font-size: 11px; }
.plan .badge { position: absolute; right: 9px; top: -6px; }
.plan b { font-size: 17px; font-variant-numeric: tabular-nums; }
.store-terms { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 10px; }
.store-terms a { color: var(--gold-light); text-decoration: underline; }
.payment-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; background: #2d2630; border-radius: 11px; margin-bottom: 10px; }
.payment-summary small { display: block; margin-top: 5px; color: var(--muted); }
.payment-summary b { color: var(--gold-light); font-size: 17px; }
.payment-summary ~ .muted { font-size: 12px; margin-bottom: 10px; }
.share-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: #27242d; }
.share-card img { flex: 0 0 46px; width: 46px; height: 57px; border-radius: 6px; object-fit: cover; }
.share-card div { min-width: 0; }
.share-card p, .share-url { font-size: 11px; color: var(--muted); margin-top: 4px; }
.share-url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px 5px; margin-top: 15px; }
.share-channels button { display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); }
.share-channels button span { font-size: 21px; font-weight: 800; width: 41px; height: 41px; display: grid; place-items: center; border-radius: 50%; background: #302b35; color: var(--gold-light); }
.share-channels button small { white-space: nowrap; color: var(--muted); font-size: 10px; }

.player-root { position: relative; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; background: #09080a; }
#shell.player-fullscreen { width: 100%; overflow: hidden; }
#shell.player-fullscreen .web-bar, #shell.player-fullscreen .watch-side { display: none; }
#shell.player-fullscreen .watch-layout { display: block; width: 100%; margin: 0; }
#shell.player-fullscreen .player-root { height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
.player-root > .empty { height: 100%; padding-top: 53px; }
.player-stage { height: 100%; position: relative; overflow: hidden; background: #08070a; -webkit-user-select: none; user-select: none; }
.player-picture, .player-neighbor, .player-touch { position: absolute; inset: 0; }
.player-neighbor { background-color: #151017; background-position: center; background-size: cover; transform: translateY(100%); }
.player-touch { z-index: 2; touch-action: none; }
.player-picture img, .player-picture video { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.player-picture video { opacity: 0; }
.player-picture video.playing { opacity: 1; }
.player-shade { position: absolute; inset: 0; background: linear-gradient(180deg,#08070abd 0%,transparent 21%,transparent 47%,#09080b62 69%,#09080bf5 100%); }
.player-top { z-index: 4; position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 4px; padding: calc(var(--safe-top) + 5px) 9px 4px; min-height: 54px; background: linear-gradient(#0706098a, transparent); }
.player-top .icon-button { width: 34px; height: 35px; min-height: 35px; color: #fff; }
.player-top .icon-button svg { width: 20px; height: 20px; }
.player-tabs { display: flex; align-items: center; gap: 7px; }
.player-tabs button { position: relative; background: none; border: 0; font-size: 14px; line-height: 1; color: #f3f1f1bf; height: 40px; font-weight: 690; padding: 0 3px; white-space: nowrap; }
.player-tabs button.active { color: #fff; font-size: 15px; font-weight: 850; }
.player-tabs button.active::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 15px; height: 2px; transform: translateX(-50%); background: var(--gold-light); border-radius: 9px; }
.player-top-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.sound-nudge, .speed-indicator, .playback-status { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid #ffffff1a; border-radius: 999px; background: #120f17b8; color: #f9f5f2; font-size: 11px; white-space: nowrap; }
.sound-nudge { top: calc(var(--safe-top) + 57px); }
.speed-indicator { top: calc(var(--safe-top) + 103px); }
.playback-status { top: 44%; pointer-events: none; }
.playback-status.retry-status .spinner { display: none; }
.player-toggle { position: absolute; z-index: 3; left: 50%; top: 44%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 69px; height: 69px; padding: 0; color: #fff; background: #14101877; border: 1px solid #ffffff29; border-radius: 50%; }
.playback-status:not([hidden]) + .player-toggle { top: 51%; }
.player-rail { position: absolute; right: 11px; bottom: calc(var(--safe-bottom) + 92px); z-index: 4; display: grid; justify-items: center; gap: 9px; }
.player-avatar { width: 45px; height: 45px; margin-bottom: 8px; position: relative; }
.player-avatar > a { display: block; height: 100%; width: 100%; }
.player-avatar img { width: 100%; height: 100%; border: 2px solid #fff4; border-radius: 50%; object-fit: cover; }
.avatar-follow { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; padding: 0; border: 1px solid #fff3; border-radius: 50%; width: 23px; height: 23px; color: #fff; background: #fa456c; }
.avatar-follow.followed { background: #312530; }
.player-action { display: grid; justify-items: center; align-items: center; gap: 3px; padding: 1px 0; width: 48px; min-height: 46px; background: transparent; color: white; border: 0; text-shadow: 0 1px 4px #000c; }
.player-action span { font-size: 11px; font-weight: 650; }
.player-action svg { filter: drop-shadow(0 1px 3px #0009); stroke-width: 2.1px; }
.player-action[data-player=like].active svg, .floating-heart svg { color: #ff5978; fill: #ff5978; }
.player-action[data-player=fav].active svg { fill: var(--gold); color: var(--gold); }
.player-meta { z-index: 3; position: absolute; bottom: calc(var(--safe-bottom) + 100px); left: 13px; right: 67px; color: #fff; }
.player-meta h1 { font-size: 21px; font-weight: 820; letter-spacing: -.025em; margin: 5px 0 5px; }
.player-meta h1 a { display: inline-flex; align-items: center; gap: 3px; }
.player-meta .clamp { font-size: 12px; color: #f4eded; line-height: 1.47; margin: 5px 0; }
.player-tags { color: #f6f0f0d9; font-size: 11px; display: flex; flex-wrap: wrap; gap: 4px; }
.player-credit { font-size: 9px; color: #e0d6dcaf; line-height: 1.35; }
.player-bottom { position: absolute; inset: auto 13px calc(var(--safe-bottom) + 10px); z-index: 4; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; min-height: 19px; font-variant-numeric: tabular-nums; color: #eee9ee; font-size: 11px; }
.progress-meta span { display: flex; align-items: center; gap: 4px; }
.progress-meta .trial { color: var(--gold-light); }
.progress-meta button { border: 0; background: transparent; color: #f0eaf0; font-size: 11px; padding: 3px 4px; }
.timeline { height: 19px; position: relative; display: flex; align-items: center; margin-bottom: 1px; }
.timeline::before { content: ''; position: absolute; width: 100%; height: 3px; border-radius: 8px; background: linear-gradient(90deg, #fff var(--played, 0%), #ffffff39 var(--played, 0%), #ffffff39 100%); }
.timeline.seeking::before { height: 5px; }
.timeline.trial-line span { position: absolute; top: 4px; left: var(--limit); width: 2px; height: 11px; border-radius: 8px; background: var(--gold); pointer-events: none; }
.timeline input { z-index: 1; height: 20px; min-width: 0; margin: 0; width: 100%; -webkit-appearance: none; appearance: none; touch-action: none; background: transparent; cursor: pointer; }
.timeline input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; height: 7px; width: 7px; border-radius: 50%; background: #fff; }
.timeline input::-moz-range-thumb { height: 7px; width: 7px; border: 0; border-radius: 50%; background: #fff; }
.timeline.seeking input::-webkit-slider-thumb { height: 11px; width: 11px; }
.player-episode-tools { display: flex; align-items: stretch; }
.select-episode { display: flex; flex: 1; min-width: 0; align-items: center; gap: 6px; min-height: 38px; width: 100%; border: 1px solid #ffffff13; border-radius: 9px; background: #f3edf224; color: white; padding: 6px 9px; text-align: left; font-size: 12px; }
.select-episode strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-episode span { margin-left: auto; display: flex; gap: 3px; align-items: center; white-space: nowrap; color: #f7eef0da; }
.select-episode b { color: var(--gold-light); font-size: 11px; font-weight: 720; white-space: nowrap; }
.fullscreen-button { flex: 0 0 38px; width: 38px; height: 38px; min-height: 38px; margin-left: 7px; border: 1px solid #ffffff13; border-radius: 9px; background: #f3edf224; color: #fff; }
.floating-heart { position: absolute; z-index: 6; pointer-events: none; animation: heart-out .75s ease-out both; }
@keyframes heart-out { from { transform: translate(-50%, -45%) scale(.5) rotate(-14deg); } 27% { opacity: 1; transform: translate(-50%, -60%) scale(1.12) rotate(3deg); } to { opacity: 0; transform: translate(-50%, -147%) scale(1) rotate(11deg); } }
.comments-list { max-height: 43vh; overflow: auto; overscroll-behavior: contain; }
.comments-list .empty { min-height: 140px; }
.comment-row { display: flex; gap: 9px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment-row > div { flex: 1; min-width: 0; }
.comment-row p { margin-top: 5px; overflow-wrap: anywhere; line-height: 1.55; }
.comment-author { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.comment-author span, .comment-author time { color: var(--muted); font-size: 10px; }
.comment-author span { background: #453324; color: var(--gold-light); padding: 1px 4px; border-radius: 4px; }
.comment-row button { flex-direction: column; min-height: 34px; font-size: 10px; color: var(--muted); gap: 1px; }
.comment-row button.liked { color: var(--pink); }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 10px; }
.option-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.option-chips .button { min-height: 34px; padding: 5px 8px; font-size: 12px; }
.paywall .sheet { background: linear-gradient(174deg, #2d241e, #1c1920 45%); }
.paywall .sheet-heading { background: #2b221f; }
.paywall-episode { display: flex; align-items: center; justify-content: space-between; padding: 7px 0 13px; color: var(--gold-light); }
.paywall-episode div { display: flex; gap: 10px; align-items: center; }
.paywall-episode img { width: 40px; height: 52px; border-radius: 6px; object-fit: cover; }
.paywall-episode strong, .paywall-episode small { display: block; }
.paywall-episode small { color: #d5c1af; margin-top: 4px; }
.pay-option { display: flex; justify-content: space-between; text-align: left; min-height: 55px; width: 100%; gap: 8px; margin-bottom: 7px; }
.pay-option span { flex: 1; min-width: 0; }
.pay-option span b, .pay-option span small { display: block; }
.pay-option span small { margin-top: 4px; font-weight: 500; }
.pay-option:not(.primary) span small { color: var(--muted); }
.pay-option strong { white-space: nowrap; font-size: 12px; }
.free-entry { display: flex; justify-content: center; align-items: center; color: var(--muted); gap: 3px; font-size: 11px; margin: 12px 0 2px; }
.ad-layer .sheet { position: absolute; inset: 0; min-height: 100%; border-radius: 0; padding-top: var(--safe-top); background: radial-gradient(ellipse at center, #553025, #15111a 68%); }
.ad-layer .sheet-heading { background: transparent; }
.ad-demo { position: relative; min-height: 67vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; text-align: center; }
.ad-demo img { width: 74px; height: 74px; border-radius: 19px; }
.ad-demo h2 { font-size: 24px; color: var(--gold-light); }
.ad-demo p { font-size: 12px; color: var(--muted); }
.ad-demo progress { accent-color: var(--gold); width: 145px; max-width: 80%; }
.ad-count { position: absolute; top: 1px; right: 0; font-size: 12px; color: var(--gold-light); }
.sheet:focus-visible { outline: none; }

@supports not (inset: 0) {
  .layer, .scrim, .hero-card > img, .hero-card > video, .hero-card::after,
  .discover-banner img, .discover-banner::after, .player-picture, .player-neighbor,
  .player-touch, .player-picture img, .player-picture video, .player-shade, .ad-layer .sheet {
    top: 0; right: 0; bottom: 0; left: 0;
  }
  .topbar.over, .player-top { top: 0; right: 0; left: 0; }
  .hero-badges, .hero-info { left: 12px; right: 12px; }
  .card-cover::after { top: 55%; right: 0; bottom: 0; left: 0; }
  .detail-cover::after { top: 0; right: 0; bottom: 0; left: 0; }
  .player-bottom { right: 13px; bottom: calc(var(--safe-bottom) + 10px); left: 13px; }
}
@supports not (aspect-ratio: 3 / 4.2) {
  .card-cover::before { display: block; content: ''; padding-bottom: 140%; }
  .card-cover img { position: absolute; top: 0; left: 0; }
}

@media (min-width: 481px) {
  body { background: radial-gradient(ellipse 85% 700px at 50% 148px, #251917 0, #101013 55%, #09090c 100%); }
  .shell { box-shadow: 0 0 0 1px #ffffff0b, 0 0 130px #000b; }
}
@media (max-width: 760px) {
  .shell, .layer { width: 100%; }
  .shell { box-shadow: none; }
}
@media (max-width: 380px) {
  .topbar { padding-inline: 9px; }
  .hero-track { height: 361px; }
  .hero-title h2 { font-size: 19px; }
  .content { padding-inline: 12px; }
  .tag-strip { padding-inline: 12px; }
  .notice { margin-inline: 12px; }
  .member span { font-size: 9px; }
  .player-rail { right: 6px; gap: 6px; }
  .player-meta { right: 59px; }
  .checkin-days { gap: 3px; }
}
@media (max-height: 620px) {
  .player-rail { gap: 4px; bottom: calc(var(--safe-bottom) + 86px); }
  .player-action { min-height: 40px; }
  .player-action > svg { width: 25px; height: 25px; }
  .player-meta { bottom: calc(var(--safe-bottom) + 88px); }
  .player-meta .clamp { -webkit-line-clamp: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .notice-window > span { animation: none; }
}
