:root {
  --bg: #0b0b10;
  --bg-2: #15151d;
  --bg-3: #1f1f2a;
  --line: rgba(255, 255, 255, .08);
  --text: #f5f5f7;
  --muted: #9a9aa8;
  --accent: #ff3d6e;
  --accent-2: #ff8a3d;
  --gold: #ffc53d;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --radius: 12px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; overscroll-behavior: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; }
svg { width: 24px; height: 24px; }

#app {
  position: relative;
  max-width: 460px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(255, 61, 110, .08);
}

.view {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 20px);
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.view.no-nav { padding-bottom: 30px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 10px;
  background: linear-gradient(var(--bg) 60%, rgba(11, 11, 16, 0));
}
.logo { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 800; letter-spacing: .2px; flex: 1; }
.logo span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.icon-btn svg { width: 20px; height: 20px; }
.coin-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(255, 197, 61, .12); color: var(--gold); font-weight: 700; font-size: 14px; }
.coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #f5a300 70%); box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; margin: 4px 16px 18px; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; overflow: hidden; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 18px; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.hero-info .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-actions { display: flex; gap: 10px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); transition: all .3s; }
.dots i.on { width: 18px; background: var(--accent); }

.tag { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.12); color: #ddd; }
.tag.hot { background: rgba(255, 61, 110, .2); color: #ff8aa8; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 99px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 20px rgba(255, 61, 110, .35); }
.btn-ghost { background: rgba(255,255,255,.12); }
.btn-gold { background: linear-gradient(90deg, #ffd56b, #ffab1a); color: #3a2400; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--bg-3); color: var(--muted); font-size: 13px; font-weight: 600; }
.chip.on { background: var(--text); color: var(--bg); }

/* ---------- Rows & cards ---------- */
.row { margin-top: 22px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px 10px; }
.row-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.row-head a { color: var(--muted); font-size: 13px; }
.row-track { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.row-track::-webkit-scrollbar { display: none; }

.card { flex: 0 0 116px; scroll-snap-align: start; }
.card .thumb { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .title { margin-top: 7px; font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: 2px; font-size: 11px; color: var(--muted); }
.card .meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.card .meta .c-star { color: #ffc94d; font-weight: 700; }
.card .meta .c-views { display: inline-flex; align-items: center; gap: 3px; }
.card .meta .c-views svg { width: 12px; height: 12px; opacity: .8; }
.badge { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 5px; background: var(--accent); color: #fff; }
.badge.new { background: #19c37d; }
.ep-count { position: absolute; bottom: 6px; right: 6px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.6); }
.progress-mini { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.progress-mini i { display: block; height: 100%; background: var(--accent); }
.card.wide { flex-basis: 132px; }

.rank-card { display: flex; align-items: flex-end; flex: none; scroll-snap-align: start; }
.rank-card .num { font-family: 'Playfair Display', serif; font-size: 84px; font-weight: 800; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.55); margin-right: -12px; z-index: 1; }
.rank-card .card { flex-basis: 110px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; padding: 6px 16px; }
.grid .card { flex: none; }

.empty { text-align: center; padding: 70px 30px; color: var(--muted); }
.empty .big { font-size: 46px; margin-bottom: 10px; }

/* ---------- Bottom nav ---------- */
.nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(13, 13, 19, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.nav.dark { background: rgba(0,0,0,.85); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.nav a svg { width: 23px; height: 23px; }
.nav a.on { color: var(--text); }
.nav a.on svg { color: var(--accent); }

/* ---------- Detail ---------- */
.detail-bg { position: absolute; top: 0; left: 0; right: 0; height: 420px; overflow: hidden; z-index: 0; }
.detail-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(1.3); transform: scale(1.3); opacity: .55; }
.detail-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(11,11,16,.2), var(--bg)); }
.detail { position: relative; z-index: 1; }
.back-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; position: sticky; top: 0; z-index: 5; }
.detail-head { display: flex; gap: 16px; padding: 4px 16px 0; }
.detail-head .poster { flex: 0 0 128px; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.detail-head .poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-head h1 { margin: 6px 0 8px; font-size: 22px; line-height: 1.2; font-weight: 800; }
.stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.stats b { color: var(--text); }
.stats .star { color: var(--gold); }
.detail-head .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-actions { display: flex; gap: 10px; padding: 18px 16px 0; }
.detail-actions .btn-primary { flex: 1; }
.square-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); flex: none; }
.square-btn.on { color: var(--accent); }
.square-btn svg { width: 20px; height: 20px; }
.synopsis { padding: 16px; color: #c9c9d3; font-size: 14px; line-height: 1.6; }
.synopsis.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 0; margin-bottom: 16px; }
.section-title { padding: 6px 16px 10px; font-size: 17px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; }
.section-title small { font-weight: 500; font-size: 12px; color: var(--muted); }

.range-tabs { display: flex; gap: 18px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.range-tabs button { color: var(--muted); font-size: 14px; font-weight: 600; padding-bottom: 6px; border-bottom: 2px solid transparent; flex: none; }
.range-tabs button.on { color: var(--text); border-color: var(--accent); }
.ep-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0 16px; }
.ep { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--bg-3); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ep.watched { color: var(--muted); }
.ep.current { background: rgba(255,61,110,.18); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ep .lock { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; color: var(--gold); }
.ep .lock svg { width: 12px; height: 12px; }
.ep .free { position: absolute; top: 0; left: 0; font-size: 8px; padding: 1px 4px; border-radius: 10px 0 6px 0; background: #19c37d; color: #fff; font-weight: 800; }

/* ---------- Player ---------- */
.player { position: absolute; inset: 0; background: #000; overflow: hidden; touch-action: none; user-select: none; }
.player video, .feed-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.player .poster-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.5); transform: scale(1.2); display: none; }
.player.locked .poster-fill { display: block; }
.player.locked video { visibility: hidden; }
.tap-layer { position: absolute; inset: 0; z-index: 2; }
.shade-top, .shade-bottom { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 3; }
.shade-top { top: 0; height: 130px; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.shade-bottom { bottom: 0; height: 280px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.p-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 14px 12px; }
.p-top .t { flex: 1; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-top .t small { color: #ccc; font-weight: 500; }
.p-side { position: absolute; right: 10px; bottom: 150px; z-index: 5; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.p-side button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.p-side svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.p-side .on svg { color: var(--accent); }
.p-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 70px 18px 14px; padding-bottom: calc(18px + var(--safe-b)); }
.p-bottom .name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.p-bottom .desc { font-size: 13px; color: #ddd; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.ep-bar { display: flex; align-items: center; justify-content: space-between; width: calc(100% + 56px); padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; }
.ep-bar svg { width: 16px; height: 16px; }
.seek { position: relative; width: calc(100% + 56px); height: 18px; margin-top: 8px; display: flex; align-items: center; }
.seek input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; margin: 0; }
.seek .track { width: 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.seek .fill { height: 100%; width: 0; background: #fff; }
.time { display: flex; justify-content: space-between; font-size: 11px; color: #bbb; width: calc(100% + 56px); }
.play-ind { position: absolute; left: 50%; top: 50%; z-index: 4; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: all .2s; pointer-events: none; }
.play-ind svg { width: 36px; height: 36px; margin-left: 4px; }
.player.paused .play-ind { opacity: 1; transform: scale(1); }
.spinner { position: absolute; left: 50%; top: 50%; z-index: 4; width: 42px; height: 42px; margin: -21px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.player.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.player .stage { position: absolute; inset: 0; }
.stage.slide-up { animation: slideUp .35s ease; }
.stage.slide-down { animation: slideDown .35s ease; }
@keyframes slideUp { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.lock-card { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 4; text-align: center; display: none; width: 80%; }
.player.locked .lock-card { display: block; }
.lock-card .big { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: rgba(255,197,61,.15); color: var(--gold); display: grid; place-items: center; }
.lock-card .big svg { width: 30px; height: 30px; }
.hint { position: absolute; left: 50%; bottom: 46%; transform: translateX(-50%); z-index: 4; font-size: 12px; color: #fff; background: rgba(0,0,0,.5); padding: 8px 14px; border-radius: 99px; pointer-events: none; animation: fadeHint 3.5s forwards; white-space: nowrap; }
@keyframes fadeHint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.end-card { position: absolute; inset: 0; z-index: 8; background: rgba(0,0,0,.85); display: flex; flex-direction: column; justify-content: center; padding: 30px 20px; backdrop-filter: blur(8px); }
.end-card h3 { margin: 0 0 4px; font-size: 22px; }

/* ---------- Feed (For You) ---------- */
.feed { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; background: #000; }
.feed::-webkit-scrollbar { display: none; }
.feed-item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.feed-item .p-bottom { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 14px); }
.feed-item .p-side { bottom: calc(var(--nav-h) + 130px); }
.feed-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: center; gap: 22px; padding: 16px; font-weight: 700; pointer-events: none; }
.feed-top span { opacity: .6; }
.feed-top span.on { opacity: 1; border-bottom: 2px solid #fff; padding-bottom: 4px; }
.mute-btn { position: absolute; top: 12px; right: 12px; z-index: 11; }

/* ---------- Sheets ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 460px; max-height: 78dvh; overflow-y: auto; background: var(--bg-2); border-radius: 20px 20px 0 0; padding: 10px 0 calc(20px + var(--safe-b)); animation: up .28s cubic-bezier(.2,.9,.3,1); }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 12px; }
.sheet-head h3 { margin: 0; font-size: 17px; }
.sheet-body { padding: 0 16px; }
.closing .sheet { animation: down .2s forwards; }
.closing { animation: fadeOut .2s forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
.unlock-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-3); margin-bottom: 10px; width: 100%; text-align: left; }
.unlock-opt .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 20px; }
.unlock-opt .txt { flex: 1; }
.unlock-opt .txt b { display: block; font-size: 15px; }
.unlock-opt .txt small { color: var(--muted); font-size: 12px; }
.unlock-opt.vip { background: linear-gradient(90deg, rgba(255,197,61,.18), rgba(255,138,61,.12)); }
.balance { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.balance b { color: var(--gold); }
.ad-box { aspect-ratio: 16/10; border-radius: 14px; background: linear-gradient(135deg, #2b5876, #4e4376); display: grid; place-items: center; text-align: center; margin-bottom: 14px; position: relative; }
.ad-box .count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 99px; font-size: 12px; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; top: 70px; transform: translate(-50%, -20px); z-index: 200; background: rgba(30,30,40,.95); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; max-width: 90vw; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Search ---------- */
.search-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.search-input { flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 99px; background: var(--bg-3); }
.search-input svg { width: 18px; height: 18px; color: var(--muted); }
.search-input input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; }
.list-item { display: flex; gap: 12px; padding: 10px 16px; align-items: center; }
.list-item img { width: 64px; aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; flex: none; }
.list-item .info { flex: 1; min-width: 0; }
.list-item .info b { display: block; font-size: 15px; margin-bottom: 3px; }
.list-item .info small { color: var(--muted); font-size: 12px; display: block; }
.list-item .info p { margin: 6px 0 0; font-size: 12px; color: #bbb; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.label { padding: 14px 16px 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }

/* ---------- Tabs ---------- */
.page-title { padding: 16px 16px 6px; font-size: 26px; font-weight: 800; margin: 0; }
.tabs { display: flex; gap: 22px; padding: 6px 16px 14px; }
.tabs button { font-size: 16px; font-weight: 700; color: var(--muted); padding-bottom: 6px; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-color: var(--accent); }

/* ---------- Rewards ---------- */
.wallet { margin: 6px 16px 18px; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, #3a2a00, #1a1408 60%), var(--bg-2); border: 1px solid rgba(255,197,61,.25); position: relative; overflow: hidden; }
.wallet::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(rgba(255,197,61,.35), transparent 70%); }
.wallet small { color: #e7cf95; font-size: 13px; }
.wallet .amt { display: flex; align-items: center; gap: 10px; font-size: 38px; font-weight: 800; margin: 6px 0 14px; }
.wallet .amt .coin { width: 30px; height: 30px; }
.panel { margin: 0 16px 16px; padding: 16px; border-radius: 18px; background: var(--bg-2); }
.panel h3 { margin: 0 0 4px; font-size: 16px; }
.panel .sub { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.day { border-radius: 10px; background: var(--bg-3); padding: 8px 0; text-align: center; font-size: 11px; color: var(--muted); }
.day .coin { margin: 5px auto; }
.day b { display: block; color: var(--text); font-size: 12px; }
.day.done { background: rgba(255,197,61,.14); color: var(--gold); }
.day.today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.task:first-of-type { border-top: 0; }
.task .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; font-size: 19px; flex: none; }
.task .txt { flex: 1; }
.task .txt b { display: block; font-size: 14px; }
.task .txt small { color: var(--gold); font-size: 12px; font-weight: 600; }
.task .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pack { border-radius: 14px; background: var(--bg-3); padding: 14px 6px; text-align: center; position: relative; }
.pack b { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 18px; }
.pack small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.pack .price { margin-top: 10px; font-weight: 700; font-size: 13px; color: var(--accent); }
.pack .bonus { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 800; background: var(--accent); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }

/* ---------- Profile ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 20px 16px 16px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.profile-head b { font-size: 19px; display: block; }
.profile-head small { color: var(--muted); }
.bigscreen-card { margin: 0 16px 12px; padding: 14px 16px; border-radius: 18px; display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none;
  background: linear-gradient(120deg, rgba(43,184,255,.18), rgba(139,92,255,.22)); box-shadow: inset 0 0 0 1px rgba(120,170,255,.3), 0 14px 30px -18px rgba(80,140,255,.8); }
.bigscreen-card .bs-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #2bb8ff, #8b5cff); box-shadow: 0 8px 20px -8px rgba(43,184,255,.8); }
.bigscreen-card .bs-ico svg { width: 22px; height: 22px; color: #fff; }
.bigscreen-card .txt { flex: 1; min-width: 0; }
.bigscreen-card .txt b { display: block; font-size: 15px; }
.bigscreen-card .txt small { color: #b9c6ff; font-size: 12px; }
.bigscreen-card .txt u { text-decoration: none; color: #fff; font-weight: 600; }
.bigscreen-card .bs-go svg { width: 18px; height: 18px; color: #b9c6ff; }
.bigscreen-card:active { transform: scale(.98); }
.vip-card { margin: 0 16px 16px; padding: 18px; border-radius: 18px; background: linear-gradient(120deg, #2e2410, #5a3f0b 60%, #2e2410); border: 1px solid rgba(255,197,61,.35); display: flex; align-items: center; gap: 14px; }
.vip-card .crown { font-size: 34px; }
.vip-card .txt { flex: 1; }
.vip-card .txt b { color: #ffd56b; font-size: 17px; display: block; }
.vip-card .txt small { color: #e9d7a8; font-size: 12px; }
.menu { margin: 0 16px 16px; border-radius: 18px; background: var(--bg-2); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.menu-item:first-child { border-top: 0; }
.menu-item .ico { width: 22px; text-align: center; font-size: 17px; }
.menu-item span:nth-child(2) { flex: 1; font-size: 15px; }
.menu-item .val { color: var(--muted); font-size: 13px; }
.switch { width: 44px; height: 26px; border-radius: 99px; background: var(--bg-3); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 16px 16px; border-radius: 18px; background: var(--bg-2); padding: 14px 0; }
.stat-row div { text-align: center; }
.stat-row b { display: block; font-size: 20px; }
.stat-row small { color: var(--muted); font-size: 12px; }
.demo-note { text-align: center; color: var(--muted); font-size: 11px; padding: 6px 16px 20px; }

@media (min-width: 461px) {
  body { background: radial-gradient(circle at 50% 0, #1a0d16, #000 60%); }
}
.hero-title { margin: 0 0 10px; font-family: 'Playfair Display', serif; font-size: 30px; line-height: 1.1; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* ---------- Publisher Studio ---------- */
.studio .back-bar { background: var(--bg); }
.viewer-btn { height: 34px; padding: 0 14px; font-size: 13px; }
.studio-hero { text-align: center; padding: 10px 24px 20px; }
.studio-hero .big { font-size: 54px; }
.studio-hero h2 { margin: 6px 0; font-size: 22px; }
.studio-hero p { color: #c9c9d3; font-size: 14px; line-height: 1.5; margin: 0; }
.rules { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 18px; }
.rules label { display: flex; gap: 10px; font-size: 13px; color: #d4d4dc; line-height: 1.45; }
.rules input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; margin-top: 1px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.field em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .8; float: right; }
.field input, .field textarea, .ep-card input, .ep-card textarea {
  width: 100%; background: var(--bg-3); border: 1px solid transparent; border-radius: 10px; color: var(--text);
  font: inherit; font-size: 15px; padding: 11px 12px; outline: none; resize: vertical; }
.field input:focus, .field textarea:focus, .ep-card input:focus, .ep-card textarea:focus { border-color: var(--accent); }
.field input:disabled { opacity: .6; }
.chip:disabled { opacity: .55; }
.seg { display: flex; background: var(--bg-3); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; padding: 9px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--text); color: var(--bg); }
.poster-panel { display: flex; gap: 14px; align-items: flex-start; }
.poster-panel img { width: 96px; aspect-ratio: 2/3; border-radius: 10px; flex: none; object-fit: cover; background: var(--bg-3); }
.poster-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.poster-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.poster-actions .btn { padding: 8px 12px; font-size: 13px; cursor: pointer; }
.poster-panel .hint-text { margin: 6px 0 10px; }
[hidden] { display: none !important; }
.mini-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin: 2px 0 6px; }
.picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.picker button { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-3); font-size: 18px; }
.picker button.on { box-shadow: 0 0 0 2px var(--accent); }
.picker .swatch { width: 28px; height: 28px; border-radius: 50%; }
.upload-btn { cursor: pointer; border: 1.5px dashed rgba(255,255,255,.25); background: transparent; }
.hint-text { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 8px 2px 0; }
.ep-card { margin: 0 16px 10px; padding: 12px; border-radius: 14px; background: var(--bg-2); display: flex; flex-direction: column; gap: 8px; }
.ep-card.readonly { opacity: .85; }
.ep-card-head { display: flex; align-items: center; gap: 8px; }
.ep-card-head .ep-file { flex: 1; min-width: 0; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn.sm { width: 30px; height: 30px; flex: none; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.ep-sum { margin: 0; font-size: 13px; color: #c9c9d3; }
.pill { display: inline-block; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .3px; margin-right: 4px; }
.pill.draft { background: rgba(255,255,255,.12); color: #ccc; }
.pill.review { background: rgba(255,197,61,.18); color: var(--gold); }
.pill.live { background: rgba(25,195,125,.18); color: #3ddc97; }
.pill.rejected { background: rgba(255,61,110,.18); color: #ff7a9a; }
.pills { margin: 4px 0; }
.err-text { color: #ff7a9a; font-size: 12px; }
.notice { margin: 0 16px 14px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice.small { margin: 8px 0; font-size: 12px; padding: 8px 10px; }
.notice.ok { background: rgba(25,195,125,.12); color: #8ff0c4; }
.notice.warn { background: rgba(255,197,61,.12); color: #ffd98a; }
.notice.error { background: rgba(255,61,110,.12); color: #ffb0c2; }
.notice.review { background: rgba(255,197,61,.12); color: #ffd98a; }
.sheet .notice { margin: 12px 0; }
.sticky-actions { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); margin-top: 10px; }
.sticky-actions .btn-primary { flex: 1; }
.btn.danger { color: #ff7a9a; }
.channel { display: flex; align-items: center; gap: 12px; padding: 4px 16px 16px; }
.channel .avatar { width: 52px; height: 52px; font-size: 22px; }
.channel b { display: block; font-size: 17px; }
.channel small { color: var(--muted); font-size: 12px; }
.chips-wallet { background: linear-gradient(135deg, #2a0f2e, #14081a 60%); border-color: rgba(255,61,110,.3); }
.chips-wallet::after { background: radial-gradient(rgba(255,61,110,.35), transparent 70%); }
.chips-wallet small { color: #f0b5c6; }
.chip-ico { color: var(--accent); font-size: 28px; }
.studio-item .info small { margin-top: 2px; }
.checks { display: flex; flex-direction: column; gap: 4px; }
.check-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.check-row .ci { width: 22px; text-align: center; flex: none; }
.check-row ul { margin: 6px 0 0; padding-left: 16px; color: #ffb0c2; font-size: 12px; }
.mini-spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; }
.review-card .rc-head { display: flex; gap: 12px; }
.review-card .rc-head img { width: 60px; aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; flex: none; }
.review-card .rc-head b { display: block; font-size: 15px; }
.review-card .rc-head small { display: block; color: var(--muted); font-size: 12px; }
.rc-desc { font-size: 13px; color: #c9c9d3; line-height: 1.5; }
.rc-meta { font-size: 12px; color: #bbb; line-height: 1.6; }
.review-card details { margin: 8px 0; font-size: 13px; }
.review-card summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.rc-ep { padding: 8px 0; border-top: 1px solid var(--line); }
.rc-ep p { margin: 4px 0; color: #c9c9d3; }
.rc-ep small { color: var(--muted); }
.link { color: var(--accent); font-size: 12px; font-weight: 700; margin-left: 6px; }
.rc-actions { display: flex; gap: 10px; margin-top: 10px; }
.rc-actions .btn { flex: 1; height: 40px; font-size: 14px; }
.upbar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.upbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.upload-btn.disabled { opacity: .45; pointer-events: none; }

/* ---------- KYC ---------- */
.kyc-card { display: block; }
.kyc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kyc-cta { height: 30px; padding: 0 12px; font-size: 12px; }
.kyc-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.kyc-rows div, .kyc-status div { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.kyc-card small, .kyc-status small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }
.kyc-status { display: flex; flex-direction: column; gap: 8px; }
.kyc-summary { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.kyc-summary div { display: flex; justify-content: space-between; gap: 12px; }
.kyc-summary span { color: var(--muted); flex: none; text-transform: capitalize; }
.kyc-summary b { text-align: right; word-break: break-word; font-weight: 600; }
.kyc-summary em { color: #ffd98a; font-style: normal; font-weight: 500; font-size: 11px; }
.kyc-summary a { color: var(--accent); }
.kyc-summary small { color: var(--muted); }
.field select { width: 100%; background: var(--bg-3); border: 1px solid transparent; border-radius: 10px; color: var(--text); font: inherit; font-size: 15px; padding: 11px 12px; outline: none; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.doc-up { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.22); margin-bottom: 10px; cursor: pointer; }
.doc-up span { font-weight: 600; font-size: 14px; }
.doc-up em { font-style: normal; font-size: 12px; color: var(--muted); }
.doc-up.done { border-style: solid; border-color: rgba(25,195,125,.45); background: rgba(25,195,125,.06); }
.consent { display: flex; gap: 10px; font-size: 12px; color: #c9c9d3; line-height: 1.5; margin-top: 6px; }
.consent input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.kyc-item { width: 100%; text-align: left; display: block; }
.kyc-item small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 8px; word-break: break-word; }
.kyc-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.kyc-docs figure { margin: 0; border-radius: 10px; background: var(--bg-3); min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.kyc-docs img { width: 100%; height: 110px; object-fit: cover; }
.kyc-docs figcaption { font-size: 11px; color: var(--muted); padding: 4px; text-transform: capitalize; }
.kyc-docs .pdf { color: var(--accent); font-size: 12px; padding: 20px 0; }
.kyc-decide > div { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.audit { font-size: 11px; color: var(--muted); padding: 4px 0; border-top: 1px solid var(--line); }
.rc-kyc { font-size: 12px; color: #bbb; line-height: 1.7; margin-top: 8px; }
.rc-kyc a { color: var(--accent); }

/* full-video upload + optional episode details */
.up-modes { display: grid; gap: 8px; }
.full-panel { margin: 10px 0 0; }
.full-panel .seg button { font-size: 12px; padding: 8px 4px; }
.split-note { margin: 10px 0 0; display: grid; gap: 6px; }
.split-note small { color: inherit; opacity: .8; }
.ep-more summary { cursor: pointer; font-size: 12px; color: var(--muted); padding: 6px 0 2px; }
.ep-more summary em { font-style: normal; opacity: .7; }
.ep-more[open] summary { margin-bottom: 6px; }

/* player: two video elements swap so episodes change without a poster/black flash */
.player .stage video.pv { opacity: 0; transition: opacity .15s; }
.player .stage video.pv.on { opacity: 1; }
.q-badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; flex-shrink: 0; }

/* ratings */
.rate-stars { display: flex; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.rate-stars button { font-size: 40px; line-height: 1; color: rgba(255,255,255,.22); background: none; border: 0; padding: 4px; cursor: pointer; transition: transform .1s, color .1s; }
.rate-stars button.on { color: #ffc53d; }
.rate-stars button:active { transform: scale(.9); }
.rate-label { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 16px; min-height: 20px; }
.rate-btn { margin-top: 10px; background: rgba(255,255,255,.08); color: var(--text); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.stats .star small { font-weight: 400; color: var(--muted); }

/* studio poster: auto / manual */
.seg.poster-mode { margin: 6px 0 10px; }
.seg.poster-mode button { font-size: 12px; }

/* subscription plans */
.plan-pill { color: var(--gold); white-space: nowrap; }
.unlock-opt .price { font-size: 17px; text-align: right; white-space: nowrap; }
.unlock-opt .price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.plan-wallet .amt { font-size: 26px; }
a.vip-card { color: inherit; text-decoration: none; }

/* publisher: eligible watch time */
.earn-wallet { background: linear-gradient(135deg, #2a0f2e, #14081a 60%); border-color: rgba(255,61,110,.3); }
.earn-wallet::after { background: radial-gradient(rgba(255,61,110,.35), transparent 70%); }
.earn-wallet small { color: #f0b5c6; position: relative; z-index: 1; }
.month-tabs { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.month-tabs button { padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.08); color: #f0b5c6; }
.month-tabs button.on { background: #fff; color: #14081a; }
.earn-list { margin-top: 14px; display: grid; gap: 8px; position: relative; z-index: 1; }
.earn-list div { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.06); }
.earn-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earn-list small { grid-column: 1 / -1; font-size: 11px; }
.terms-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 600; color: #ffb3cb; text-decoration: none; position: relative; z-index: 1; }
.rules .terms-link { margin: 0 0 10px; }
.earn-rules { margin-top: 12px; font-size: 12px; color: #f0b5c6; position: relative; z-index: 1; }
.earn-rules summary { cursor: pointer; font-weight: 600; }
.earn-rules ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
.earn-note { display: block; margin-top: 6px; opacity: .8; }

/* =====================================================================
   MODERN THEME (2026-11-17): ambient lighting, glass surfaces, motion,
   cinematic episode loader. Layered on top of the base styles above.
   ===================================================================== */
:root {
  --bg: #07070c;
  --bg-2: rgba(22, 20, 32, .72);
  --bg-3: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --muted: #a3a1b5;
  --accent: #ff3d7f;
  --accent-2: #ff8a3d;
  --accent-3: #8b5cff;
  --glow: rgba(255, 61, 127, .45);
  --glass: rgba(18, 16, 28, .62);
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, #ffc53d 100%);
  --ease: cubic-bezier(.2, .9, .25, 1);
  --nav-h: 64px;
  --nav-gap: 10px;
}

/* ---------- ambient light behind every screen ---------- */
#app { background: var(--bg); isolation: isolate; box-shadow: 0 0 120px rgba(139, 92, 255, .12), 0 0 60px rgba(255, 61, 127, .08); }
#app::before, #app::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: .55;
}
#app::before { width: 380px; height: 380px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(255, 61, 127, .55), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
#app::after { width: 420px; height: 420px; right: -170px; top: 38%; background: radial-gradient(circle, rgba(139, 92, 255, .5), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(90px, 140px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-80px, -160px) scale(1.1); } }
.view { background: transparent; animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@media (min-width: 461px) { body { background: radial-gradient(1200px 700px at 50% -10%, #2a0f2a, #000 65%); } }

/* ---------- top bar & logo ---------- */
.topbar { background: linear-gradient(rgba(7, 7, 12, .92) 55%, rgba(7, 7, 12, 0)); }
.logo span { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: sheen 6s linear infinite; filter: drop-shadow(0 0 10px rgba(255, 61, 127, .45)); }
@keyframes sheen { to { background-position: -200% 0; } }
.icon-btn { background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 14px rgba(0,0,0,.3); transition: transform .15s, background .2s; }
.icon-btn:active { transform: scale(.9); background: rgba(255,255,255,.14); }
.coin-pill.plan-pill { background: linear-gradient(120deg, rgba(255,197,61,.22), rgba(255,138,61,.12)); box-shadow: inset 0 0 0 1px rgba(255,197,61,.35), 0 0 18px rgba(255,197,61,.18); }

/* ---------- hero ---------- */
.hero-track { border-radius: 24px; box-shadow: 0 24px 60px -18px var(--glow), 0 0 0 1px rgba(255,255,255,.08); }
.hero-slide img { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 60% at 80% 0%, rgba(255,255,255,.12), transparent 50%); }
.hero-info { background: linear-gradient(transparent, rgba(7,7,12,.55) 35%, rgba(7,7,12,.96)); padding-top: 90px; z-index: 1; }
.hero-info { animation: rise .7s var(--ease) both .1s; }
.hero-title { text-shadow: 0 4px 30px rgba(255, 61, 127, .35), 0 2px 10px rgba(0,0,0,.6); }
.dots i.on { width: 22px; background: var(--grad); box-shadow: 0 0 10px var(--glow); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- buttons ---------- */
.btn { transition: transform .15s var(--ease), box-shadow .25s, filter .2s; position: relative; overflow: hidden; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn-primary { background: var(--grad); background-size: 140% 100%; box-shadow: 0 10px 28px -6px var(--glow), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn-primary:disabled::after { display: none; }
.btn-ghost { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.btn-gold { box-shadow: 0 10px 26px -8px rgba(255, 171, 26, .6), inset 0 1px 0 rgba(255,255,255,.5); }

/* ---------- chips & tags ---------- */
.chip { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: all .25s var(--ease); }
.chip.on { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -4px var(--glow); }
.tag { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.tag.hot { background: rgba(255, 61, 127, .22); color: #ffb0c8; box-shadow: inset 0 0 0 1px rgba(255,61,127,.35); }

/* ---------- rows & cards: light-up, shimmer placeholder, staggered entrance ---------- */
.row-head h2 { font-size: 19px; letter-spacing: -.2px; }
.row-head h2::after { content: ""; display: block; width: 26px; height: 3px; margin-top: 6px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 10px var(--glow); }
.row-track { padding-top: 6px; padding-bottom: 14px; }
.card { transition: transform .25s var(--ease); }
.card:active { transform: scale(.95); }
.card .thumb {
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 70%) 0 0 / 250% 100%, #15131f;
  animation: shimmer 1.6s linear infinite;
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.07);
  transition: box-shadow .3s;
}
@keyframes shimmer { to { background-position: -250% 0, 0 0; } }
.card .thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 35%); opacity: .7; }
.card:hover .thumb, .card:focus-visible .thumb { box-shadow: 0 16px 32px -10px var(--glow), 0 0 0 1px rgba(255,61,127,.5); }
.row-track > *, .grid > * { animation: cardIn .55s var(--ease) both; }
.row-track > :nth-child(2), .grid > :nth-child(2) { animation-delay: .05s; }
.row-track > :nth-child(3), .grid > :nth-child(3) { animation-delay: .1s; }
.row-track > :nth-child(4), .grid > :nth-child(4) { animation-delay: .15s; }
.row-track > :nth-child(5), .grid > :nth-child(5) { animation-delay: .2s; }
.row-track > :nth-child(n+6), .grid > :nth-child(n+6) { animation-delay: .25s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.badge { background: var(--grad); box-shadow: 0 4px 12px -2px var(--glow); }
.badge.new { background: linear-gradient(120deg, #19c37d, #3de0b0); box-shadow: 0 4px 12px -2px rgba(25,195,125,.6); }
.ep-count { background: rgba(0,0,0,.6); }
.progress-mini i { background: var(--grad); box-shadow: 0 0 8px var(--glow); }
.rank-card .num { -webkit-text-stroke: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; filter: drop-shadow(0 0 12px rgba(255,61,127,.35)); }
/* number sits at the poster's bottom-left, tucked behind it, never over the title below */
.rank-card { align-items: flex-start; }
.rank-card .num { z-index: 0; font-size: 46px; margin-top: 128px; margin-right: 6px; padding-left: 2px; }   /* 165px poster - 37px number: bottom-aligned, beside it */   /* 165px poster - 67px number */
.rank-card .card { position: relative; z-index: 1; }

/* ---------- floating glass bottom nav ---------- */
.view { padding-bottom: calc(var(--nav-h) + var(--safe-b) + var(--nav-gap) + 26px); }
.view.no-nav { padding-bottom: 30px; }
.nav {
  left: 12px; right: 12px; bottom: calc(var(--nav-gap) + var(--safe-b)); height: var(--nav-h); padding-bottom: 0;
  border-radius: 24px; border-top: 0;
  background: rgba(16, 14, 26, .78); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(255,255,255,.07);
}
.nav.dark { background: rgba(6, 6, 10, .6); }
.nav a { position: relative; transition: color .25s; }
.nav a svg { transition: transform .3s var(--ease), filter .3s; }
.nav a.on svg { color: var(--accent); transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 8px var(--glow)); }
.nav a.on::before { content: ""; position: absolute; top: 6px; width: 34px; height: 34px; border-radius: 12px; background: radial-gradient(circle, rgba(255,61,127,.28), transparent 70%); }
.nav a.on::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.feed-item .p-bottom { padding-bottom: calc(var(--nav-h) + var(--nav-gap) + var(--safe-b) + 18px); }

/* ---------- detail page ---------- */
.detail-bg img { opacity: .7; filter: blur(34px) saturate(1.6); }
.detail-bg::after { background: linear-gradient(rgba(7,7,12,.1), rgba(7,7,12,.55) 55%, var(--bg)); }
.detail-head .poster { border-radius: 18px; box-shadow: 0 20px 44px -12px var(--glow), 0 0 0 1px rgba(255,255,255,.12); animation: rise .6s var(--ease) both; }
.detail-head h1 { animation: rise .6s var(--ease) both .08s; }
.square-btn { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: transform .15s; }
.square-btn:active { transform: scale(.9); }
.square-btn.on { box-shadow: inset 0 0 0 1px rgba(255,61,127,.5), 0 0 16px -4px var(--glow); }
.ep { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); transition: transform .15s, background .2s; }
.ep:active { transform: scale(.92); }
.ep.current { background: rgba(255,61,127,.16); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 18px -4px var(--glow); animation: epPulse 2.2s ease-in-out infinite; }
@keyframes epPulse { 50% { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 26px 0 var(--glow); } }

/* ---------- sheets, panels, toast ---------- */
.sheet-backdrop { background: rgba(3, 3, 8, .62); }
.sheet { background: linear-gradient(180deg, rgba(34, 28, 50, .97), rgba(14, 12, 22, .99)); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px -10px rgba(139, 92, 255, .25), inset 0 1px 0 rgba(255,255,255,.14); animation: up .38s var(--ease); }
.sheet .grab { background: var(--grad); opacity: .6; }
.unlock-opt { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .15s, box-shadow .25s; }
.unlock-opt:active { transform: scale(.98); }
.unlock-opt.vip { background: linear-gradient(110deg, rgba(255,197,61,.2), rgba(255,61,127,.12)); box-shadow: inset 0 0 0 1px rgba(255,197,61,.35), 0 10px 30px -14px rgba(255,197,61,.5); }
.panel, .menu, .stat-row, .ep-card { background: var(--glass); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.05); }
.wallet { box-shadow: 0 20px 50px -20px rgba(255,197,61,.45), inset 0 1px 0 rgba(255,255,255,.12); }
.wallet::after { animation: drift1 9s ease-in-out infinite alternate; }
.earn-wallet { box-shadow: 0 20px 50px -20px var(--glow), inset 0 1px 0 rgba(255,255,255,.12); }
.avatar { box-shadow: 0 10px 30px -8px var(--glow), 0 0 0 3px rgba(255,255,255,.08); }
.switch.on { background: var(--grad); box-shadow: 0 0 14px -2px var(--glow); }
#toast { background: rgba(28, 24, 42, .94); box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.1); }
.search-bar { background: rgba(7,7,12,.9); }
.search-input { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.search-input:focus-within { box-shadow: inset 0 0 0 1px rgba(255,61,127,.6), 0 0 18px -6px var(--glow); }
.field input, .field textarea, .field select, .ep-card input, .ep-card textarea { background: rgba(255,255,255,.06); }
.field select option { background: #15131f; }
.ad-box { background: radial-gradient(120% 90% at 20% 0%, rgba(255,61,127,.35), transparent 60%), radial-gradient(120% 90% at 100% 100%, rgba(139,92,255,.4), transparent 60%), #15111f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); overflow: hidden; }

/* ---------- player chrome ---------- */
.p-side button { transition: transform .15s var(--ease); }
.p-side button:active { transform: scale(.85); }
.p-side .on svg { filter: drop-shadow(0 0 10px var(--glow)); }
.ep-bar { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); border-radius: 14px; }
.seek .track { height: 4px; overflow: visible; }
.seek .fill { background: var(--grad); border-radius: 4px; box-shadow: 0 0 10px var(--glow); position: relative; }
.seek .fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px var(--accent); }
.play-ind { background: rgba(10, 8, 18, .5); box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 0 40px -6px var(--glow); }
.q-badge { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.stage.slide-up { animation: slideUp2 .5s var(--ease); }
.stage.slide-down { animation: slideDown2 .5s var(--ease); }
@keyframes slideUp2 { from { transform: translateY(26%) scale(.94); opacity: 0; filter: blur(6px) brightness(1.6); } }
@keyframes slideDown2 { from { transform: translateY(-26%) scale(.94); opacity: 0; filter: blur(6px) brightness(1.6); } }

/* ---------- cinematic episode loader ---------- */
.player .stage { transition: filter .45s ease, transform .45s var(--ease); }
.player.ep-loading .stage { filter: blur(10px) brightness(.45) saturate(1.3); transform: scale(1.04); }
.player .poster-fill { display: block; opacity: 0; transition: opacity .4s; }
.player.ep-loading .poster-fill, .player.locked .poster-fill { opacity: 1; }
.ep-loader {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  opacity: 0; transition: opacity .3s;
  background: radial-gradient(60% 40% at 50% 45%, rgba(255,61,127,.22), transparent 70%), radial-gradient(70% 50% at 50% 60%, rgba(139,92,255,.18), transparent 75%);
}
.player.loading .ep-loader { opacity: 1; transition-delay: .12s; }
.ld-orb { position: relative; width: 96px; height: 96px; display: grid; place-items: center; transition: transform .3s var(--ease); }
.ld-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 30%, var(--accent) 60%, var(--accent-2) 80%, #fff 92%, transparent 93%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 10px var(--accent)); animation: spin 1.1s linear infinite; }
.ld-ring.two { inset: 12px; background: conic-gradient(from 180deg, transparent 0 45%, var(--accent-3) 75%, #c9b6ff 90%, transparent 91%); filter: drop-shadow(0 0 8px var(--accent-3)); animation-duration: 1.7s; animation-direction: reverse; }
.ld-core { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(255,61,127,.35) 60%, rgba(139,92,255,.3)); box-shadow: 0 0 30px var(--glow), inset 0 0 0 1px rgba(255,255,255,.25); animation: corePulse 1.4s ease-in-out infinite; }
.ld-core svg { width: 20px; height: 20px; margin-left: 3px; }
@keyframes corePulse { 50% { transform: scale(1.12); box-shadow: 0 0 50px 6px var(--glow), inset 0 0 0 1px rgba(255,255,255,.35); } }
.ld-txt { display: none; text-align: center; }
.ld-txt small { display: block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #ffb3cb; opacity: .85; }
.ld-txt b { display: block; font-family: "Playfair Display", serif; font-size: 38px; line-height: 1.1; margin: 4px 0 2px; background: linear-gradient(90deg, #fff, #ffc2d6, #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 2.2s linear infinite; filter: drop-shadow(0 0 18px rgba(255,61,127,.55)); }
.ld-txt em { font-style: normal; font-size: 13px; color: #ddd; opacity: .8; max-width: 260px; display: block; margin: 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-bar { display: none; width: 150px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--grad); box-shadow: 0 0 10px var(--accent); animation: ldBar 1.2s ease-in-out infinite; }
@keyframes ldBar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
.player.ep-loading .ld-txt, .player.ep-loading .ld-bar { display: block; animation: rise .5s var(--ease) both; }
.player:not(.ep-loading) .ep-loader { background: none; }
.player:not(.ep-loading) .ld-orb { transform: scale(.7); }
.ep-flash { position: absolute; left: 0; right: 0; top: 30%; z-index: 4; text-align: center; pointer-events: none; opacity: 0; }
.ep-flash small { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #ffd0de; padding: 0 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-flash b { display: block; font-family: "Playfair Display", serif; font-size: 34px; text-shadow: 0 0 24px var(--glow), 0 2px 12px rgba(0,0,0,.7); }
.ep-flash.show { animation: flash 1.9s var(--ease) both; }
@keyframes flash { 0% { opacity: 0; transform: translateY(14px) scale(.96); letter-spacing: 6px; } 18%, 65% { opacity: 1; transform: none; letter-spacing: 0; } 100% { opacity: 0; transform: translateY(-10px); } }
.lock-card .big { box-shadow: 0 0 30px -4px rgba(255,197,61,.5); animation: corePulse 2s ease-in-out infinite; }


/* =====================================================================
   WELCOME / SIGN-IN (login.js): moving poster wall, glow, glass card
   ===================================================================== */
.login { position: absolute; inset: 0; z-index: 1; overflow: hidden; display: flex; flex-direction: column; background: #07070c; }
.lw-clip { position: absolute; inset: 0; overflow: hidden; contain: paint; }
.lw-wall { position: absolute; inset: -25% -30%; display: flex; gap: 12px; transform: rotate(-12deg); opacity: .9; }
.lw-col { flex: 1; overflow: hidden; }
.lw-track { display: flex; flex-direction: column; gap: 14px; animation: wallUp 70s linear infinite; }
.lw-col.c1 .lw-track { animation: wallDown 85s linear infinite; }
.lw-col.c2 .lw-track { animation-duration: 78s; }
.lw-track img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
@keyframes wallUp { to { transform: translateY(-50%); } }
@keyframes wallDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.lw-shade { position: absolute; inset: 0; background:
  radial-gradient(120% 50% at 50% 28%, rgba(7,7,12,.15), rgba(7,7,12,.75) 70%),
  linear-gradient(rgba(7,7,12,.65), rgba(7,7,12,.2) 28%, rgba(7,7,12,.85) 52%, #07070c 70%); }
.lw-orb { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.lw-orb.o1 { width: 300px; height: 300px; left: -90px; top: 22%; background: rgba(255,61,127,.45); animation: drift1 14s ease-in-out infinite alternate; }
.lw-orb.o2 { width: 320px; height: 320px; right: -120px; top: 44%; background: rgba(139,92,255,.4); animation: drift2 17s ease-in-out infinite alternate; }

.login-top { position: relative; z-index: 2; text-align: center; padding: calc(15vh + env(safe-area-inset-top, 0px)) 24px 0; animation: rise .9s var(--ease) both; }
.login-logo { font-family: "Playfair Display", serif; font-size: 50px; font-weight: 800; letter-spacing: .3px; text-shadow: 0 6px 40px rgba(255,61,127,.45); }
.login-logo span { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 5s linear infinite; }
.login-tag { margin: 6px 0 0; font-size: 15px; color: #e6d9ee; letter-spacing: .3px; animation: rise .9s var(--ease) both .15s; }
.login-tag b { background: linear-gradient(90deg, #ffd0de, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.login-card {
  position: relative; z-index: 2; margin: auto 12px calc(12px + var(--safe-b)); padding: 26px 20px 20px;
  border-radius: 30px; background: linear-gradient(180deg, rgba(36, 30, 54, .78), rgba(16, 14, 26, .9));
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.9), 0 -10px 60px -20px rgba(255,61,127,.35), inset 0 1px 0 rgba(255,255,255,.16), 0 0 0 1px rgba(255,255,255,.08);
}
.login-card::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,140,180,.9), transparent); }
.login-card.step-in > * { animation: stepIn .5s var(--ease) both; }
.login-card.step-in > :nth-child(2) { animation-delay: .04s; } .login-card.step-in > :nth-child(3) { animation-delay: .08s; }
.login-card.step-in > :nth-child(4) { animation-delay: .12s; } .login-card.step-in > :nth-child(5) { animation-delay: .16s; }
.login-card.step-in > :nth-child(n+6) { animation-delay: .2s; }
@keyframes stepIn { from { opacity: 0; transform: translateX(22px); filter: blur(4px); } }
.login-card h2 { margin: 0 0 8px; font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -.3px; }
.login-card .center { text-align: center; }
.muted-l { margin: 0 0 20px; color: #b9b5cc; font-size: 14px; line-height: 1.5; }
.muted-l b { color: #fff; }
.btn.lg { height: 54px; font-size: 16px; border-radius: 18px; }
.login-card .btn + .btn { margin-top: 10px; }
.btn.busy { pointer-events: none; background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.12) 0 10px, transparent 10px 20px), var(--grad); background-size: 28px 28px, 100% 100%; animation: busyStripes .6s linear infinite; }
@keyframes busyStripes { to { background-position: 28px 0, 0 0; } }
.fine { margin: 14px 0 0; text-align: center; font-size: 11px; color: #8e8aa3; }
.fine.test { color: #ffd98a; margin-top: 8px; }
.err-l { min-height: 18px; margin: 8px 2px; font-size: 12px; color: #ff8aa8; }
.link-l { color: #ff9cbc; font-weight: 700; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.link-l:disabled { color: #8e8aa3; text-decoration: none; }
.login-back { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.login-back svg { width: 18px; height: 18px; }

.phone-field { display: flex; align-items: center; gap: 4px; height: 58px; padding: 0 6px; border-radius: 18px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.1); transition: box-shadow .25s; }
.phone-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 28px -8px var(--glow); }
.phone-field.ok { box-shadow: inset 0 0 0 1.5px #3ddc97, 0 0 24px -8px rgba(61,220,151,.6); }
.phone-field .cc { height: 44px; padding: 0 12px; border-radius: 13px; background: rgba(255,255,255,.08); font-size: 15px; white-space: nowrap; }
.phone-field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 20px; font-weight: 600; letter-spacing: 1.5px; padding: 0 10px; }
.phone-field input::placeholder { color: rgba(255,255,255,.22); letter-spacing: 1px; }
.cc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; animation: rise .3s var(--ease); }
.cc-list button { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.07); text-align: left; font-size: 13px; }

.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp input { width: 100%; max-width: 52px; height: 60px; text-align: center; font-size: 24px; font-weight: 800; color: #fff; border: 0; outline: 0; border-radius: 16px;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.1); transition: box-shadow .2s, transform .2s; caret-color: var(--accent); }
.otp input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 24px -6px var(--glow); transform: translateY(-2px); }
.otp input.filled { background: rgba(255,61,127,.12); box-shadow: inset 0 0 0 1.5px rgba(255,61,127,.55); animation: pop .25s var(--ease); }
@keyframes pop { 50% { transform: scale(1.1); } }
.shake { animation: shake .45s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.done-burst { position: relative; width: 120px; height: 120px; margin: 4px auto 16px; display: grid; place-items: center; }
.done-burst .tick { position: relative; z-index: 2; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #fff;
  background: var(--grad); box-shadow: 0 0 40px var(--glow), inset 0 1px 0 rgba(255,255,255,.4); animation: tickIn .6s var(--ease) both .1s; }
@keyframes tickIn { from { transform: scale(.2) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.12); } }
.done-burst .ring { position: absolute; inset: 23px; border-radius: 50%; border: 2px solid rgba(255,61,127,.7); animation: ringOut 1.4s var(--ease) both .2s; }
.done-burst .ring.r2 { border-color: rgba(139,92,255,.7); animation-delay: .45s; }
@keyframes ringOut { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.done-burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffc53d; box-shadow: 0 0 10px #ffc53d;
  animation: spark 1s var(--ease) both .25s; }
.done-burst i:nth-child(odd) { background: #ff3d7f; box-shadow: 0 0 10px #ff3d7f; }
@keyframes spark { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(-64px) scale(.3); opacity: 0; } }

/* Google sign-in button (light, per Google's branding) */
.btn-google { background: #fff; color: #1f1f1f; font-weight: 700; gap: 12px; box-shadow: 0 10px 30px -10px rgba(255,255,255,.35), inset 0 0 0 1px rgba(0,0,0,.06); }
.btn-google svg { width: 20px; height: 20px; flex: none; }
.btn-google.busy { background: #f1f1f1; animation: none; background-image: none; }
.btn-google.busy svg { animation: spin 1s linear infinite; }
.gis-slot { min-height: 44px; display: flex; justify-content: center; margin-bottom: 10px; }
.err-l.center { text-align: center; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar { overflow: hidden; flex: none; }
.ellip { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.earn-dl { position: relative; z-index: 1; margin-top: 12px; padding: 9px 14px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }

/* licence certificate + episode codes (Studio) */
.lic-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); margin-bottom: 10px; }
.lic-row small { display: block; color: var(--muted); font-size: 11px; }
.lic-ico { font-size: 22px; }
.ep-code { font-family: ui-monospace, Consolas, monospace; font-size: 10px; color: #ffb3cb; letter-spacing: .3px; }

/* traceable watermark + 80 % mark + downloads */
.wm { position: absolute; z-index: 3; pointer-events: none; font: 600 11px/1 ui-monospace, Consolas, monospace; color: rgba(255,255,255,.28);
  text-shadow: 0 1px 2px rgba(0,0,0,.35); letter-spacing: .5px; white-space: nowrap; transition: top 1.2s ease, left 1.2s ease; user-select: none; }
.seek .track { position: relative; }
.seek-mark { position: absolute; left: 80%; top: -4px; width: 2px; height: 12px; margin-left: -1px; border-radius: 2px; background: rgba(255,255,255,.75); box-shadow: 0 0 6px rgba(255,255,255,.6); pointer-events: none; transition: background .3s, box-shadow .3s; }
.seek-mark.ok { background: #3ddc97; box-shadow: 0 0 10px #3ddc97; width: 3px; }
.seek-mark.no { background: rgba(255,255,255,.3); box-shadow: none; }
.p-side #dlBtn.on svg { color: #3ddc97; filter: drop-shadow(0 0 8px rgba(61,220,151,.6)); }
.dl-list { padding: 0 16px; display: grid; gap: 10px; }
.dl-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.dl-item.off { opacity: .6; }
.dl-thumb { position: relative; width: 62px; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: #1b1828; flex: none; display: grid; place-items: center; }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-thumb i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); }
.dl-thumb i svg { width: 22px; height: 22px; }
.dl-info { flex: 1; min-width: 0; }
.dl-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-info small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.dl-exp { color: #8ff0c4 !important; }
.dl-exp.bad { color: #ff8aa8 !important; }
.dl-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 6px; overflow: hidden; }
.dl-bar i { display: block; height: 100%; background: var(--grad); transition: width .3s; }

/* downloads: series grid + episode list */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; padding: 0 16px; }
.dl-series { text-align: left; animation: cardIn .5s var(--ease) both; }
.dl-series b { margin-top: 7px; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dl-series small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.dl-series small .bad { color: #ff8aa8; }
.dl-poster { position: relative; aspect-ratio: 2/3; border-radius: 16px; overflow: hidden; background: #1b1828; display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.07); transition: transform .2s var(--ease); }
.dl-poster img { width: 100%; height: 100%; object-fit: cover; }
.dl-poster em { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 8px;
  background: var(--grad); color: #fff; box-shadow: 0 4px 12px -2px var(--glow); }
.dl-series:active .dl-poster { transform: scale(.96); }
.dl-head { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
.dl-head-t { flex: 1; min-width: 0; }
.dl-head-t b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-head-t small { color: var(--muted); font-size: 12px; }
.btn.dl-delall { height: 34px; padding: 0 12px; font-size: 12px; color: #ff9cbc; }
.dl-ep { position: relative; width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; align-content: center;
  background: linear-gradient(135deg, rgba(255,61,127,.25), rgba(139,92,255,.25)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.dl-ep span { font-size: 9px; letter-spacing: 1px; color: #ffc2d6; }
.dl-ep b { font-size: 18px; line-height: 1; }
.dl-ep i { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); }
.dl-ep i svg { width: 11px; height: 11px; margin-left: 1px; }

/* hold to fast-forward / rewind */
.speed-ind { position: absolute; left: 50%; top: 16%; z-index: 6; transform: translate(-50%, -10px) scale(.92); opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 18px 10px; border-radius: 20px;
  background: rgba(12, 10, 20, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.12), 0 0 40px -10px var(--glow); transition: opacity .2s, transform .25s var(--ease); }
.speed-ind.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.speed-ind b { font-size: 26px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.speed-ind small { font-size: 10px; color: #d9d4e6; letter-spacing: .3px; }
.speed-ind .arrows { display: flex; gap: 1px; font-size: 13px; color: #fff; }
.speed-ind .arrows.back { transform: scaleX(-1); }
.speed-ind .arrows i { font-style: normal; animation: arrowRun 0.9s infinite; opacity: .25; }
.speed-ind .arrows i:nth-child(2) { animation-delay: .15s; }
.speed-ind .arrows i:nth-child(3) { animation-delay: .3s; }
@keyframes arrowRun { 40% { opacity: 1; text-shadow: 0 0 8px var(--accent); } }
.sp-bar { width: 90px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: var(--grad); transition: width .15s; }
.player.holding .p-side, .player.holding .p-bottom .desc { opacity: .35; transition: opacity .2s; }

/* app updates */
.upd-bar { position: fixed; z-index: 90; left: 50%; bottom: calc(78px + var(--safe-b)); transform: translateX(-50%); width: calc(100% - 32px); max-width: 420px;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 16px; font-size: 13px;
  background: linear-gradient(135deg, rgba(52,36,80,.96), rgba(24,18,38,.97)); box-shadow: 0 14px 40px -10px rgba(139,92,255,.55), inset 0 0 0 1px rgba(255,255,255,.1);
  animation: up .4s var(--ease); transition: opacity .25s, transform .25s; }
.upd-bar.closing { opacity: 0; transform: translateX(-50%) translateY(12px); }
.upd-bar b { flex: 1; }
.upd-bar .upd-go { height: 32px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: 13px; color: #fff; background: var(--grad); }
.upd-bar .upd-x { width: 30px; height: 30px; color: var(--muted); }
.upd-sheet { display: grid; justify-items: center; text-align: center; gap: 6px; padding-bottom: 6px; }
.upd-sheet .upd-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--grad); box-shadow: 0 10px 30px -8px var(--glow); margin-bottom: 6px; }
.upd-sheet > b { font-size: 18px; }
.upd-sheet small { color: var(--muted); }
.upd-sheet .upd-notes { margin: 8px 0 4px; font-size: 14px; line-height: 1.5; white-space: pre-line; color: #e9e4f5; }
.upd-sheet .upd-req { margin: 6px 0; font-size: 13px; color: #ffb3c8; }
.upd-sheet .dl-bar { width: 100%; }
.upd-sheet .btn { margin-top: 6px; }

/* rewarded ad unlock */
.unlock-opt.reward { background: linear-gradient(90deg, rgba(61,220,151,.18), rgba(61,180,255,.12)); box-shadow: inset 0 0 0 1px rgba(61,220,151,.35); }
.unlock-opt.reward .rw-ico { background: linear-gradient(135deg, #3ddc97, #2bb8ff); color: #06281b; font-size: 18px; box-shadow: 0 8px 20px -8px rgba(61,220,151,.7); }
.unlock-opt.reward.off { opacity: .55; }
.unlock-opt.reward:disabled { cursor: default; }
.unlock-or { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; color: var(--muted); font-size: 12px; }
.unlock-or::before, .unlock-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.1); }

/* seasons */
.season-bar { display: flex; align-items: center; gap: 12px; padding: 0 16px 12px; }
.season-bar small { color: var(--muted); font-size: 12px; }
.season-pick { position: relative; display: inline-flex; align-items: center; }
.season-pick select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--text);
  padding: 9px 38px 9px 14px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, rgba(255,61,127,.22), rgba(139,92,255,.22)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 8px 22px -12px var(--glow); }
.season-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.season-pick select option { background: #1b1828; color: #fff; }
.season-pick svg { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; }
.ep-pick-sheet .season-bar, .ep-pick-sheet .range-tabs, .ep-pick-sheet .ep-grid { padding-left: 0; padding-right: 0; }
.up-season { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font-size: 13px; color: var(--muted); }
.up-season .season-pick select { font-size: 14px; padding: 8px 34px 8px 12px; }
.ep-card-head b { white-space: nowrap; }
.season-head { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 8px; font-weight: 800; font-size: 15px; }
.season-head small { color: var(--muted); font-weight: 500; font-size: 12px; }
.ep-season { margin-left: auto; font: inherit; font-size: 12px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.08); border: 0;
  border-radius: 8px; padding: 4px 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ep-season option { background: #1b1828; }

/* ---------- accessibility: honour "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
