/* ==========================================================================
   v10 — pages: contact / careers / bug report / blog, share menu, gauge,
   timers, levels, multi-player, manual payments.
   ========================================================================== */

/* ---------- generic page hero + form card */
.page-hero { text-align: center; padding: clamp(18px, 3vw, 36px) 12px 10px; max-width: 820px; margin: 0 auto 20px; }
.page-hero .eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: .82rem; }
.page-hero h1 { margin: 12px 0 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.page-hero p { color: var(--text-2); line-height: 2; }
.page-hero .big-p { font-size: 1.05rem; }
.hero-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.form-card { max-width: 680px; margin: 0 auto 26px; padding: clamp(18px, 3vw, 32px); border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.form-card h2 { margin-top: 0; text-align: center; }
.gift-banner { display: inline-block; margin-top: 10px; padding: 10px 16px; border-radius: 14px; background: rgba(245,196,81,.12); border: 1px solid rgba(245,196,81,.35); color: var(--gold); font-weight: 700; }
.roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.roles span { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .88rem; }

/* ---------- ads section */
.center-note { text-align: center; color: var(--muted); max-width: 720px; margin: -4px auto 18px; line-height: 1.9; }
.center-title { text-align: center; margin: 28px 0 14px; }
.ad-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.ad-type { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.ad-type .ad-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, var(--accent), var(--violet)); }
.ad-type h3 { margin: 14px 0 6px; }
.ad-type p { color: var(--text-2); line-height: 1.9; margin: 0 0 10px; }
.ad-type ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--text-2); font-size: .9rem; }
.placements { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.placement { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.placement b { display: block; }
.placement small { color: var(--muted); }
.pl-ic { width: 54px; height: 40px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); position: relative; flex: none; }
.pl-ic::after { content: ""; position: absolute; background: var(--accent); border-radius: 3px; }
.pl-top::after { inset: 5px 5px auto 5px; height: 8px; }
.pl-side::after { inset: 5px auto 5px 5px; width: 10px; }
.pl-above::after { inset: 12px 8px auto 8px; height: 7px; }
.pl-below::after { inset: auto 8px 8px 8px; height: 7px; }

/* ---------- blog */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.blog-feature { display: block; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); margin-bottom: 22px; }
.bf-img { aspect-ratio: 16/8; background: var(--surface-3) center/cover; }
.bf-body { padding: 18px 22px; }
.bf-body h1 { margin: 0 0 8px; font-size: 1.35rem; }
.bf-body p { color: var(--text-2); line-height: 1.9; margin: 0 0 8px; }
.blog-item { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--border); }
.bi-img { border-radius: 14px; aspect-ratio: 16/10; background: var(--surface-3) center/cover; }
.bi-body h2 { margin: 0 0 8px; font-size: 1.05rem; }
.bi-body h2 a:hover { color: var(--accent-text); }
.bi-body p { color: var(--text-2); line-height: 1.9; margin: 0 0 10px; }
.bi-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.blog-side { position: sticky; top: calc(var(--header-h) + 16px); }
.blog-side h3 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.bs-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bs-item.wide { padding: 12px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; background: var(--surface); }
.bs-img { width: 120px; aspect-ratio: 16/10; border-radius: 10px; background: var(--surface-3) center/cover; flex: none; }
.bs-item b { display: block; font-size: .9rem; line-height: 1.6; }
.bs-item small { color: var(--muted); font-size: .78rem; }
.post-cover { width: 100%; border-radius: 18px; margin-bottom: 16px; }
.post h1 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); }
.post-lead { font-size: 1.05rem; color: var(--text); line-height: 2; font-weight: 600; }
.post-body { color: var(--text-2); line-height: 2.1; font-size: 1rem; }
.post-body h2, .post-body h3 { color: var(--text); margin-top: 28px; }
.post-body img { border-radius: 14px; margin: 14px auto; }
.post-body a { color: var(--accent-text); }
@media (max-width: 1024px) { .blog-layout { grid-template-columns: 1fr; } .blog-side { position: static; } }
@media (max-width: 720px) { .blog-item { grid-template-columns: 1fr; } }

/* ---------- share menu */
.share-menu { min-width: 260px; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; }
.share-grid a, .share-grid button { display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px !important; border-radius: 12px; font-size: .74rem !important; text-align: center !important; }
.share-grid .s-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .8rem; }

/* ---------- weekly airing countdown */
.airing { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 20px; border-radius: 18px; margin-bottom: 24px;
  background: linear-gradient(120deg, rgba(91,140,255,.16), rgba(139,124,246,.12)); border: 1px solid rgba(139,124,246,.35); }
.airing-label b { display: block; font-size: 1.02rem; }
.airing-label small { color: var(--muted); }
.airing-chip { padding: 3px 10px; border-radius: 999px; background: rgba(245,196,81,.15); color: var(--gold); font-weight: 700; font-size: .78rem; }
.countdown { display: flex; gap: 8px; margin-inline-start: auto; }
.countdown div { min-width: 64px; padding: 8px 6px; border-radius: 14px; background: rgba(11,16,32,.55); border: 1px solid rgba(255,255,255,.08); text-align: center; }
.countdown b { display: block; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); font-size: .72rem; }
.card-air { position: absolute; z-index: 1; top: 8px; left: 50%; transform: translateX(-50%); font-size: .66rem; font-weight: 800; padding: 2px 8px;
  border-radius: 999px; background: rgba(139,124,246,.92); color: #fff; white-space: nowrap; }
@media (max-width: 720px) { .countdown { margin: 0; width: 100%; justify-content: space-between; } .countdown div { flex: 1; min-width: 0; } }

/* ---------- user levels (comments) */
.lvl-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; border: 1px solid; }
.lvl-1 { color: #9aa3c4; border-color: rgba(154,163,196,.4); }
.lvl-2 { color: #e0a36b; border-color: rgba(224,163,107,.5); }
.lvl-3 { color: #cbd5e1; border-color: rgba(203,213,225,.55); }
.lvl-4 { color: #f5c451; border-color: rgba(245,196,81,.6); }
.lvl-5 { color: #8aabff; border-color: rgba(138,171,255,.6); }
.lvl-6 { color: #f0abfc; border-color: rgba(240,171,252,.6); background: rgba(240,171,252,.08); }
.name-lvl-4 { color: #f5c451; }
.name-lvl-5 { color: #8aabff; }
.name-lvl-6 { background: linear-gradient(90deg, #f0abfc, #8aabff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.comment.top-fan { background: linear-gradient(90deg, rgba(139,124,246,.07), transparent); border-radius: 12px; padding-inline: 10px; }
.staff-tag { font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff; }
.level-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.level-card .lv-num { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--violet)); flex: none; }
.level-card .meter { height: 8px; }
.level-card ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--text-2); font-size: .86rem; }

/* ---------- subscription gauge (panel) */
.gauge-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.gauge { width: 200px; flex: none; }
.gauge svg { width: 100%; display: block; }
.gauge-info b { font-size: 1.1rem; }
.gauge-info div { color: var(--text-2); margin-top: 4px; }

/* ---------- dashboard stat buttons */
.stat .stat-go { display: inline-flex; margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--accent-text); }
.stat .stat-go:hover { text-decoration: underline; }

/* ---------- sign-in history */
.ip { font-family: ui-monospace, Consolas, monospace; direction: ltr; unicode-bidi: embed; }

/* ---------- multi-player switch */
.player-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.player-switch span { color: var(--muted); font-size: .84rem; }
.player-switch button { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.player-switch button.on { background: var(--accent); color: #fff; border-color: transparent; }
.player-note { font-size: .8rem; color: var(--warning); margin-top: 6px; }
.player-wrap video.native { width: 100%; height: 100%; background: #000; }

/* ---------- manual (crypto / card) payment */
.pay-box { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; }
.pay-card { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.pay-card h2 { margin: 0 0 10px; font-size: 1.1rem; }
.pay-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pay-facts div { padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.pay-facts small { display: block; color: var(--muted); font-size: .76rem; }
.pay-facts b { font-size: 1.1rem; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.method { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 2px solid var(--border); cursor: pointer; position: relative; }
.method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.method input { position: absolute; opacity: 0; }
.method .m-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .78rem; background: #fff; color: #0b1020; }
.method small { display: block; color: var(--muted); }
.method .rec { position: absolute; top: -9px; inset-inline-end: 10px; font-size: .68rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #10b981; color: #fff; }
.wallet { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--border-strong); font-family: ui-monospace, Consolas, monospace; direction: ltr; word-break: break-all; }
.wallet button { margin-inline-start: auto; flex: none; }
.pay-warn { padding: 10px 14px; border-radius: 12px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); color: var(--warning); font-size: .86rem; }
.plan-usd { font-size: .9rem; color: var(--accent-text); font-weight: 700; }

.follow-btn .f-on { display: none; }
.follow-btn.is-active .f-on { display: inline; }
.follow-btn.is-active .f-off { display: none; }

.level-card .lv-steps { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.name-lvl-2 { color: #e0a36b; }
.name-lvl-3 { color: #e2e8f0; }
.card-box { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px; }
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 18px 0; }
.pager a { padding: 6px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }

.coupon-row { display: flex; gap: 8px; margin-top: 12px; }
.coupon-row .input { flex: 1; }
.method.on { border-color: var(--accent); background: var(--accent-soft); }
a.method { color: inherit; text-decoration: none; }
.pay-timer { margin-top: 12px; font-size: .9rem; color: var(--text-2); }
.pay-timer b { font-variant-numeric: tabular-nums; color: var(--gold); }
.pay-timer.late b { color: var(--danger, #ef4444); }
.form-stack { display: grid; gap: 12px; }
.form-stack .field { display: grid; gap: 6px; }
.form-stack .field > span { font-weight: 700; font-size: .88rem; }

.player-switch .q-select { width: auto; padding: 4px 10px; height: auto; font-size: .82rem; }

/* password eye + rules */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-inline-end: 46px !important; }
.pw-eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; border-radius: 8px; color: inherit; }
.pw-eye:hover { background: rgba(255,255,255,.08); }
.pw-rules { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; opacity: .85; }
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok { color: #4ade80; }
.pw-rules li.ok::before { content: "✓ "; }
.captcha-refresh.sm { width: 30px; height: 30px; font-size: .85rem; margin-inline-start: 6px; vertical-align: middle; }

/* signed-in devices */
.dev-list { display: grid; gap: 10px; margin-top: 12px; }
.dev-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.dev-ico { font-size: 1.6rem; flex: none; }
.dev-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dev-info small { opacity: .7; font-size: .8rem; }
.dev-out { flex: none; color: #fca5a5 !important; border-color: rgba(252,165,165,.35) !important; }
@media (max-width: 520px) { .dev-item { flex-wrap: wrap; } .dev-out { width: 100%; } }

/* weekly releases: compact cards */
.row-scroll.weekly-row { grid-auto-columns: 112px; gap: 12px; }
.wk-card { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.wk-img { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--surface-2, #1a2140);
  border: 1px solid rgba(255,255,255,.08); transition: transform .2s, border-color .2s; }
.wk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-card:hover .wk-img { transform: translateY(-3px); border-color: var(--accent, #8b7cf6); }
.wk-card.today .wk-img { border-color: #f5c451; box-shadow: 0 0 0 1px #f5c451; }
.wk-today { position: absolute; top: 6px; inset-inline-start: 6px; background: #f5c451; color: #1a1300; font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.wk-title { font-size: .8rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wk-when { font-size: .72rem; color: var(--accent-2, #a5b4fc); font-weight: 700; }
@media (max-width: 640px) { .row-scroll.weekly-row { grid-auto-columns: 96px; gap: 10px; } }

/* share sheet */
.share-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.share-modal[hidden] { display: none; }
.share-back { position: absolute; inset: 0; background: rgba(4,7,20,.7); backdrop-filter: blur(4px); }
.share-sheet { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px;
  border-radius: 22px; background: linear-gradient(180deg, #131a36, #0d1328); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: shareIn .22s ease; }
@keyframes shareIn { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.share-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.share-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.share-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.share-meta b { font-size: 1.1rem; }
.share-name { font-size: .85rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: inherit; cursor: pointer; flex: none; }
.share-x:hover { background: rgba(255,255,255,.16); }
.share-link { display: flex; gap: 8px; margin-bottom: 6px; }
.share-link input { flex: 1; min-width: 0; height: 38px; border-radius: 10px; padding: 0 10px; font-size: .82rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: inherit; }
.share-label { font-size: .78rem; font-weight: 700; opacity: .65; margin: 14px 2px 6px; }
.share-sheet .share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; padding: 0; }
.share-sheet .share-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0;
  border-radius: 14px; background: transparent; color: inherit; font: inherit; font-size: .74rem; cursor: pointer; transition: background .15s; }
.share-sheet .share-grid button:hover { background: rgba(255,255,255,.07); }
.share-sheet .share-grid button[hidden] { display: none; }
.share-sheet .s-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .72rem; }
.share-sheet .s-ic svg { width: 24px; height: 24px; }
body.no-scroll { overflow: hidden; }
@media (max-width: 560px) { .share-modal { place-items: end center; padding: 0; }
  .share-sheet { border-radius: 22px 22px 0 0; width: 100%; max-height: 85vh; } }
.post-meta .btn { margin-inline-start: 10px; }

/* medals: bronze / silver / gold */
.bdg .medal { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: rgba(255,255,255,.05); border: 2px dashed rgba(255,255,255,.18); }
.bdg .medal .emoji { font-size: 1.7rem; filter: grayscale(1); opacity: .5; }
.bdg .medal.m1, .bdg .medal.m2, .bdg .medal.m3 { border: 0; padding: 4px; }
.bdg .medal.m1 .emoji, .bdg .medal.m2 .emoji, .bdg .medal.m3 .emoji { filter: none; opacity: 1; }
.bdg .medal.m1 { background: conic-gradient(from 200deg, #8a4b1f, #e0a36b, #b0682d, #f3c08f, #8a4b1f); box-shadow: 0 0 16px rgba(205,127,50,.35); }
.bdg .medal.m2 { background: conic-gradient(from 200deg, #7b8494, #f1f5f9, #a3acba, #ffffff, #7b8494); box-shadow: 0 0 18px rgba(203,213,225,.35); }
.bdg .medal.m3 { background: conic-gradient(from 200deg, #a8780e, #fde68a, #d4a017, #fff3c4, #a8780e); box-shadow: 0 0 24px rgba(245,196,81,.5); }
.bdg .medal.m1::before, .bdg .medal.m2::before, .bdg .medal.m3::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #121a36; }
.bdg .medal .emoji { position: relative; }
.bdg .medal.m3::after { content: "★"; position: absolute; top: -6px; inset-inline-end: -4px; color: #fde68a; font-size: .9rem; text-shadow: 0 0 6px rgba(245,196,81,.9); }
.bdg.t1 .lvl { color: #e0a36b; } .bdg.t2 .lvl { color: #e2e8f0; } .bdg.t3 .lvl { color: #fcd34d; }
.bsteps { display: flex; justify-content: center; gap: 6px; margin: 8px 0 2px; }
.bstep { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); opacity: .6; }
.bstep i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.bstep.s1 i { background: #cd7f32; } .bstep.s2 i { background: #cbd5e1; } .bstep.s3 i { background: #f5c451; }
.bstep.done { opacity: 1; font-weight: 700; }
.bstep.s1.done { border-color: rgba(205,127,50,.6); } .bstep.s2.done { border-color: rgba(203,213,225,.6); } .bstep.s3.done { border-color: rgba(245,196,81,.7); }

/* gauge v2 — always visible, direction-independent */
.gauge { width: 210px; flex: none; text-align: center; direction: ltr; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge .needle { transform-origin: 100px 100px; transform-box: view-box; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.gauge-tag { display: inline-block; margin-top: 4px; padding: 2px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); direction: inherit; }
.gauge-active .gauge-tag { color: #fcd34d; border-color: rgba(245,196,81,.45); }
.gauge-unlimited .gauge-tag { color: #86efac; border-color: rgba(134,239,172,.4); }
.gauge-none .gauge-tag { color: #fca5a5; border-color: rgba(252,165,165,.35); }
@media (max-width: 560px) { .gauge-wrap { justify-content: center; text-align: center; } .gauge { width: 190px; } }

/* share sheet — light card so names under icons are easy to read */
.share-sheet { background: #ffffff; color: #0f172a; border: 1px solid #e2e8f0; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.share-meta b { color: #0f172a; }
.share-name { color: #475569; opacity: 1; }
.share-x { background: #f1f5f9; color: #0f172a; }
.share-x:hover { background: #e2e8f0; }
.share-link input { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.share-label { color: #64748b; opacity: 1; }
.share-sheet .share-grid button { color: #1e293b !important; font-weight: 600; }
.share-sheet .share-grid button:hover { background: #f1f5f9; }
.share-sheet .s-ic { box-shadow: 0 4px 10px rgba(15,23,42,.15); }

.all-gold { margin-top: 10px; padding: 16px; border-radius: 14px; text-align: center; font-weight: 800; color: #fcd34d;
  background: linear-gradient(90deg, rgba(245,196,81,.08), rgba(245,196,81,.16), rgba(245,196,81,.08)); border: 1px solid rgba(245,196,81,.4); }

/* ---------- crypto checkout (en / zh / ja) */
.cx-wrap { max-width: 620px; margin: 0 auto; display: grid; gap: 14px; }
.cx-card, .cx-box { background: var(--surface, #121a36); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 18px; }
.cx-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.cx-head h1, .cx-title h1 { margin: 0; font-size: 1.4rem; }
.cx-title p { margin: 4px 0 0; }
.cx-card h2 { font-size: 1.1rem; margin: 0 0 4px; }
.cx-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cx-fact { background: rgba(255,255,255,.04); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.cx-fact small { opacity: .65; font-size: .75rem; }
.cx-fact b { font-size: 1.05rem; }
.cx-off { color: #4ade80; opacity: 1 !important; }
.cx-coupon { display: flex; gap: 8px; margin-top: 12px; }
.cx-coupon .input { flex: 1; min-width: 0; height: 36px; }
.cx-sep { height: 1px; background: rgba(255,255,255,.08); margin: 16px -18px; }
.cx-warn { font-size: .82rem; margin: 0 0 12px; }
.cx-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-method { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); color: inherit; font: inherit; text-align: start; transition: border-color .15s, background .15s; }
.cx-method:hover { border-color: var(--accent, #8b7cf6); background: rgba(139,124,246,.08); }
.cx-rec { position: absolute; top: -10px; inset-inline-end: 14px; background: #dcfce7; color: #15803d; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.cx-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: .72rem; flex: none;
  background: linear-gradient(135deg, #1e3a8a, #3b6ef5); color: #fff; letter-spacing: .03em; }
.cx-ico.sm { width: 26px; height: 26px; border-radius: 8px; font-size: .55rem; display: inline-grid; vertical-align: middle; }
.cx-name { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-name small { opacity: .6; font-size: .75rem; }
.cx-go { opacity: .5; font-size: 1.3rem; }
.cx-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-sico { font-size: 1.2rem; }
.cx-chip { background: rgba(245,196,81,.15); color: #fcd34d; border: 1px solid rgba(245,196,81,.35); font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.cx-done, .cx-err { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cx-done { border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.06); }
.cx-err { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.07); }
.cx-amount-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.cx-amount b { font-size: 2rem; font-weight: 900; letter-spacing: .02em; }
.cx-amount span { font-weight: 800; color: #4ade80; }
.cx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cx-box .cx-sep { margin: 12px -18px; }
.cx-net { margin: 6px 0 12px; font-weight: 600; }
.cx-addr { font-size: .95rem; font-weight: 700; word-break: break-all; background: rgba(255,255,255,.05); padding: 10px 12px; border-radius: 10px; flex: 1; min-width: 0; }
.cx-alert { margin-top: 8px; font-size: .8rem; color: #fcd34d; }
.cx-left { font-size: 1.1rem; letter-spacing: .08em; }
.cx-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); margin-top: 12px; overflow: hidden; }
.cx-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #3b6ef5, #8b7cf6); border-radius: inherit; transition: width 1s linear; }
[data-timer].late .cx-bar i { background: #ef4444; }
.cx-form { display: grid; gap: 8px; margin-top: 12px; }
.cx-form label { font-size: .85rem; font-weight: 600; }
.cx-form .input, .cx-form input[type=text] { width: 100%; }
.cx-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed rgba(255,255,255,.15);
  border-radius: 14px; cursor: pointer; text-align: center; transition: border-color .15s; }
.cx-drop:hover { border-color: var(--accent, #8b7cf6); }
.cx-up { font-size: 1.6rem; color: #f5c451; }
.cx-check { margin-bottom: 20px; }
@media (max-width: 560px) { .cx-facts { grid-template-columns: 1fr 1fr; } .cx-facts .cx-fact:last-child { grid-column: span 2; } .cx-methods { grid-template-columns: 1fr; } }
.cx-box > b, .cx-box > small { display: block; }
.cx-box > small { margin-top: 4px; }

/* version pill on episode cards — same look as the dub/sub tags on anime cards */
.ver-pill { font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.ver-pill.v-dub { background: rgba(16,185,129,.92); }
.ver-pill.v-sub { background: rgba(59,110,245,.92); }
.ep-card .card-badges .badge-free { border-radius: 999px; font-size: .68rem; font-weight: 800; padding: 3px 9px; }
.ep-card .card-badges { top: 8px; }

.hp-field { position: absolute !important; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* gateway choice on the plans page */
.gw-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.gw-pick label { cursor: pointer; }
.gw-pick input { position: absolute; opacity: 0; pointer-events: none; }
.gw-pick span { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); }
.gw-pick input:checked + span { border-color: var(--accent, #8b7cf6); background: rgba(139,124,246,.18); }
.gw-pick input:focus-visible + span { outline: 2px solid var(--accent, #8b7cf6); }

/* language menu with flags (local SVG files, nothing loaded from outside) */
.flag { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; display: inline-block; flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 1px 3px rgba(0,0,0,.35); vertical-align: middle; }
.lang-btn .flag { width: 24px; height: 16px; }
.lang-menu { min-width: 170px; }
.lang-menu button { display: flex !important; align-items: center; gap: 10px; width: 100%; }
.lang-menu button span:first-of-type { flex: 1; text-align: start; }
.lang-check { color: var(--accent, #8b7cf6); font-weight: 800; }

/* ---------- premium page */
.pr-hero { text-align: center; max-width: 760px; margin: 8px auto 30px; }
.pr-kicker { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: .82rem;
  color: #fcd34d; background: rgba(245,196,81,.12); border: 1px solid rgba(245,196,81,.35); }
.pr-hero h1 { margin: 14px 0 10px; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.3;
  background: linear-gradient(90deg, #fff, #c4b5fd 55%, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-hero p { color: var(--text-2, #aab3d3); font-size: 1.02rem; line-height: 1.9; margin: 0 0 8px; }
.pay-nets { display: flex; justify-content: center; gap: 8px; margin: 8px 0 0 !important; flex-wrap: wrap; }
.pay-nets span { padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: .74rem; }
.pr-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 26px auto 8px; max-width: 900px;
  color: var(--text-2, #aab3d3); font-size: .9rem; }
.pr-why, .pr-compare, .pr-faq, .pr-cta { max-width: 980px; margin: 44px auto 0; }
.pr-why h2, .pr-compare h2, .pr-faq h2, .pr-cta h2 { text-align: center; font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 18px; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.pr-card { padding: 18px; border-radius: 16px; background: var(--surface, #141a2f); border: 1px solid var(--border, #232b4d);
  transition: transform .2s, border-color .2s; }
.pr-card:hover { transform: translateY(-3px); border-color: rgba(139,124,246,.6); }
.pr-card .ic { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.pr-card b { font-size: 1rem; }
.pr-card p { margin: 6px 0 0; color: var(--text-2, #aab3d3); font-size: .9rem; line-height: 1.8; }
.pr-compare table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface, #141a2f);
  border: 1px solid var(--border, #232b4d); border-radius: 16px; overflow: hidden; }
.pr-compare th, .pr-compare td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--border, #232b4d); font-size: .92rem; }
.pr-compare td:first-child, .pr-compare th:first-child { text-align: start; }
.pr-compare tr:last-child td { border-bottom: 0; }
.pr-compare .pm { background: rgba(245,196,81,.07); color: #fcd34d; font-weight: 800; }
.pr-compare .no { color: var(--muted, #7c86a8); }
.pr-compare .part { color: var(--muted, #7c86a8); font-size: .8rem; }
.pr-faq details { background: var(--surface, #141a2f); border: 1px solid var(--border, #232b4d); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.pr-faq summary { cursor: pointer; font-weight: 700; }
.pr-faq p { margin: 10px 0 0; color: var(--text-2, #aab3d3); line-height: 1.8; }
.pr-cta { text-align: center; padding: 30px 20px; border-radius: 20px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(139,124,246,.18), rgba(59,110,245,.14)); border: 1px solid rgba(139,124,246,.35); }
.pr-cta p { color: var(--text-2, #aab3d3); margin: 0 0 16px; }
@media (max-width: 560px) { .pr-compare th, .pr-compare td { padding: 10px 8px; font-size: .82rem; } }

.plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)) !important; max-width: 1100px; margin-inline: auto; }
.plan { padding: 24px 18px !important; }

/* premium hero — readable in both themes */
.pr-hero h1 { background: linear-gradient(90deg, #ffffff 0%, #d8ccff 45%, #a5c8ff 100%); -webkit-background-clip: text;
  background-clip: text; color: transparent; text-shadow: none; padding-bottom: 4px; }
:root[data-theme="light"] .pr-hero h1 { background-image: linear-gradient(90deg, #3b2a9e 0%, #6d28d9 50%, #1d4ed8 100%); }
:root[data-theme="light"] .pr-kicker { color: #92400e; background: #fef3c7; border-color: #f59e0b; }
:root[data-theme="light"] .pr-hero p { color: #374151; }
:root[data-theme="light"] .pr-trust { color: #374151; }
:root[data-theme="light"] .pr-compare .pm { color: #b45309; background: #fffbeb; }
:root[data-theme="light"] .pr-cta { background: linear-gradient(135deg, #ede9fe, #dbeafe); border-color: #c4b5fd; }

/* ================= 3D medals ================= */
.mdl { --m1:#7a4419; --m2:#f6c892; --m3:#a0602b; --m4:#e3a46c;            /* rim metal */
       --f1:#c98448; --f2:#7a4119; --f3:#3a1d08;                          /* face */
       --r1:#8b3a1a; --r2:#f08a43;                                        /* ribbon */
       --glow: rgba(224,138,70,.0);
  position: relative; width: 86px; height: 104px; margin: 0 auto 6px; }
.mdl.t2 { --m1:#7c8595; --m2:#ffffff; --m3:#a8b1bf; --m4:#e6ebf2; --f1:#b9c4d4; --f2:#5c6778; --f3:#232a35;
          --r1:#1e3a8a; --r2:#dbe4f3; }
.mdl.t3 { --m1:#8a6200; --m2:#fff4c2; --m3:#c99a10; --m4:#ffe07a; --f1:#f6c94f; --f2:#a26d00; --f3:#4a3000;
          --r1:#b91c1c; --r2:#fbbf24; --glow: rgba(251,191,36,.55); }
.mdl.t0 { --m1:#2b3245; --m2:#59627a; --m3:#363e54; --m4:#4a536b; --f1:#2a3144; --f2:#1a1f2e; --f3:#10141f;
          --r1:#262c3d; --r2:#3a4258; }

/* ribbon tails behind the medal */
.mdl-rib { position: absolute; left: 50%; bottom: 0; width: 50px; height: 44px; transform: translateX(-50%); z-index: 0;
  background: linear-gradient(90deg, var(--r1) 0 30%, var(--r2) 30% 70%, var(--r1) 70%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 82%, 50% 100%, 25% 82%, 0 100%);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }

/* polished metal rim with a ridged coin edge */
.mdl-rim { position: absolute; top: 0; left: 50%; width: 78px; height: 78px; margin-left: -39px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center;
  background: conic-gradient(from 210deg, var(--m1), var(--m2), var(--m3), var(--m4), var(--m1), var(--m2), var(--m3), var(--m1));
  box-shadow: 0 8px 18px rgba(0,0,0,.5), 0 0 22px var(--glow),
              inset 0 2px 1px rgba(255,255,255,.65), inset 0 -3px 4px rgba(0,0,0,.45); }
.mdl-rim::before { content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.22) 0 2.5deg, rgba(0,0,0,.18) 2.5deg 5deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%); mask: radial-gradient(circle, transparent 66%, #000 67%); }

/* recessed face */
.mdl-face { position: relative; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, var(--f1), var(--f2) 58%, var(--f3));
  box-shadow: inset 0 4px 7px rgba(0,0,0,.55), inset 0 -2px 3px rgba(255,255,255,.28), 0 0 0 2px rgba(0,0,0,.28), 0 1px 0 3px rgba(255,255,255,.12); }
.mdl-face::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); }
.mdl-face::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%);
  transform: translateX(-130%); }
.mdl-ico { position: relative; z-index: 1; font-size: 1.65rem; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.55)); }

/* tier plaque */
.mdl-plq { position: absolute; left: 50%; top: 68px; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  font-size: .62rem; letter-spacing: 1px; line-height: 1; padding: 3px 7px 4px; border-radius: 999px; color: var(--m4);
  background: linear-gradient(180deg, #1b2236, #0d111c); border: 1px solid var(--m3);
  box-shadow: 0 2px 6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); text-shadow: 0 0 6px var(--glow); }

/* locked: dull steel, faded icon */
.mdl.t0 .mdl-ico { filter: grayscale(1) brightness(.7); opacity: .5; }
.mdl.t0 .mdl-rim { box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.2), inset 0 -3px 4px rgba(0,0,0,.5); }
.mdl.t0 .mdl-plq { color: #9aa3ba; font-size: .6rem; letter-spacing: 0; }

/* gold: breathing glow + light sweep; every earned medal shines on hover */
.mdl.t3 .mdl-rim { animation: mdlGlow 3.2s ease-in-out infinite; }
.mdl.t3 .mdl-face::after { animation: mdlShine 4.5s ease-in-out infinite; }
.bdg:hover .mdl:not(.t0) .mdl-face::after { animation: mdlShine 1.1s ease-out; }
.mdl.t3::after { content: "✦"; position: absolute; top: -2px; right: 4px; z-index: 3; color: #fff7d1; font-size: .8rem;
  text-shadow: 0 0 8px #fbbf24; animation: mdlTwinkle 2.4s ease-in-out infinite; }
.bdg:hover .mdl:not(.t0) .mdl-rim { transform: translateY(-2px) rotate(-4deg); }
.mdl-rim { transition: transform .25s ease; }
@keyframes mdlShine { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
@keyframes mdlGlow { 0%, 100% { box-shadow: 0 8px 18px rgba(0,0,0,.5), 0 0 14px rgba(251,191,36,.35), inset 0 2px 1px rgba(255,255,255,.65), inset 0 -3px 4px rgba(0,0,0,.45); }
                     50% { box-shadow: 0 8px 18px rgba(0,0,0,.5), 0 0 30px rgba(251,191,36,.7), inset 0 2px 1px rgba(255,255,255,.65), inset 0 -3px 4px rgba(0,0,0,.45); } }
@keyframes mdlTwinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .mdl *, .mdl::after { animation: none !important; } }

/* cards around the medals */
.bdg.t1, .bdg.t2, .bdg.t3 { background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 60%), var(--surface, #141a2f); }
.bdg.t3 { border-color: rgba(251,191,36,.55); box-shadow: 0 0 0 1px rgba(251,191,36,.15), 0 10px 30px rgba(251,191,36,.08); }
.bdg.t2 { border-color: rgba(203,213,225,.45); }
.bdg.t1 { border-color: rgba(224,138,70,.45); }
.bdg.next { opacity: .92; }
.bdg .medal { display: none; }  /* old flat medal, no longer used */

/* ================= level card (each level has its own colour) =================
   Performance: CSS only, animations use transform/opacity (GPU), max 1 rotating ring + 6 sparks,
   paused when off-screen (content-visibility) and disabled for "reduce motion". */
.lvc { --c1:#4ade80; --c2:#16a34a; --cg:rgba(74,222,128,.35);
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center;
  padding: 22px; margin-bottom: 20px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.03), transparent), var(--surface, #141a2f);
  border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent);
  box-shadow: 0 12px 40px -18px var(--cg); content-visibility: auto; contain-intrinsic-size: 1px 320px; }
.lvc.lv2 { --c1:#38bdf8; --c2:#0369a1; --cg:rgba(56,189,248,.35); }
.lvc.lv3 { --c1:#fb923c; --c2:#c2410c; --cg:rgba(251,146,60,.4); }
.lvc.lv4 { --c1:#f43f5e; --c2:#9f1239; --cg:rgba(244,63,94,.4); }
.lvc.lv5 { --c1:#a78bfa; --c2:#6d28d9; --cg:rgba(167,139,250,.45); }
.lvc.lv6 { --c1:#fbbf24; --c2:#b45309; --cg:rgba(251,191,36,.55); }

/* crest: hexagon with the emblem and level number */
.lvc-crest { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.lvc-aura { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--c1), transparent 35%, var(--c1) 50%, transparent 65%, var(--c1), transparent);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 66%, transparent 68%);
          mask: radial-gradient(circle, transparent 58%, #000 60%, #000 66%, transparent 68%); opacity: .55; }
.lvc.lv4 .lvc-aura, .lvc.lv5 .lvc-aura, .lvc.lv6 .lvc-aura { animation: lvcSpin 9s linear infinite; opacity: .9; }
.lvc-hex { position: relative; width: 84px; height: 92px; display: grid; place-items: center; align-content: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 85%, #fff), var(--c1) 35%, var(--c2)); }
.lvc-hex::before { content: ""; position: absolute; inset: 4px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--c2) 70%, #000), #0c1020 80%); }
.lvc-ico { position: relative; font-size: 1.9rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.lvc-n { position: relative; font-size: 1.05rem; font-weight: 900; color: var(--c1); text-shadow: 0 0 10px var(--cg); line-height: 1.3; }
.lvc-sparks i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff7cc; box-shadow: 0 0 8px #fbbf24;
  left: 50%; top: 50%; opacity: 0; animation: lvcSpark 3.6s ease-in-out infinite; }
.lvc-sparks i:nth-child(1) { --x: -52px; --y: -30px; animation-delay: 0s; }
.lvc-sparks i:nth-child(2) { --x: 50px; --y: -40px; animation-delay: .6s; }
.lvc-sparks i:nth-child(3) { --x: 56px; --y: 22px; animation-delay: 1.2s; }
.lvc-sparks i:nth-child(4) { --x: -48px; --y: 34px; animation-delay: 1.8s; }
.lvc-sparks i:nth-child(5) { --x: 4px; --y: -60px; animation-delay: 2.4s; }
.lvc-sparks i:nth-child(6) { --x: -6px; --y: 58px; animation-delay: 3s; }

/* text */
.lvc-main { min-width: 0; }
.lvc-kicker { font-weight: 800; letter-spacing: .06em; color: var(--c1); font-size: .78rem; }
.lvc-name { margin: 2px 0 4px; font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 900; line-height: 1.3;
  background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--c1) 70%, #fff) 60%, var(--c1));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lvc.lv6 .lvc-name { background-image: linear-gradient(90deg, #fff7cc, #fbbf24 35%, #f472b6 65%, #a78bfa); }
.lvc-sub { margin: 0 0 10px; color: var(--text-2, #aab3d3); font-size: .92rem; }

/* progress bar with a light sweep (transform only) */
.lvc-bar { position: relative; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.lvc-bar i { position: relative; display: block; height: 100%; border-radius: inherit; overflow: hidden;
  background: linear-gradient(90deg, var(--c2), var(--c1)); box-shadow: 0 0 14px var(--cg); }
.lvc-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%); animation: lvcSweep 3.5s ease-in-out infinite; }
.lvc-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.lvc-hint { display: block; margin-top: 6px; color: var(--muted, #7c86a8); font-size: .74rem; }
.lvc-perks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lvc-perks span { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: color-mix(in srgb, var(--c1) 80%, #fff);
  background: color-mix(in srgb, var(--c1) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c1) 40%, transparent); }

/* level path */
.lvc-path { grid-column: 1 / -1; list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.lvc-path::before { content: ""; position: absolute; top: 19px; inset-inline: 8%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); }
.lvn { --n1:#4ade80; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.lvn.lv2 { --n1:#38bdf8; } .lvn.lv3 { --n1:#fb923c; } .lvn.lv4 { --n1:#f43f5e; } .lvn.lv5 { --n1:#a78bfa; } .lvn.lv6 { --n1:#fbbf24; }
.lvn-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem;
  background: #10152a; border: 2px solid rgba(255,255,255,.12); }
.lvn b { font-size: .74rem; } .lvn small { font-size: .66rem; color: var(--muted, #7c86a8); }
.lvn.done .lvn-dot { border-color: var(--n1); background: color-mix(in srgb, var(--n1) 22%, #10152a); }
.lvn.done b { color: var(--n1); }
.lvn.now .lvn-dot { width: 46px; height: 46px; margin-top: -3px; border-color: var(--n1);
  background: color-mix(in srgb, var(--n1) 30%, #10152a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--n1) 25%, transparent), 0 0 18px var(--n1); }
.lvn.now .lvn-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--n1); animation: lvcPing 2.4s ease-out infinite; }
.lvn.now b { color: var(--n1); font-weight: 900; }
.lvn.lock { opacity: .5; } .lvn.lock .lvn-dot { font-size: .8rem; }

@keyframes lvcSpin { to { transform: rotate(360deg); } }
@keyframes lvcSweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes lvcPing { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes lvcSpark { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  30% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); opacity: 0; } }

@media (max-width: 600px) {
  .lvc { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lvc-main { width: 100%; }
  .lvc-perks { justify-content: center; }
  .lvc-path { grid-template-columns: repeat(3, 1fr); row-gap: 12px; } .lvc-path::before { display: none; }
}
:root[data-theme="light"] .lvc-hex::before, :root[data-theme="light"] .lvn-dot { background: #1b2238; }
:root[data-theme="light"] .lvc-name { background-image: linear-gradient(90deg, var(--c2), var(--c1)); }

/* medals: the glow fades a separate layer (opacity) instead of repainting the shadow every frame */
.mdl.t3 .mdl-rim { animation: none; }
.mdl.t3 .mdl-rim::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 26px 4px rgba(251,191,36,.75); opacity: .35; animation: mdlGlowO 3.2s ease-in-out infinite; }
@keyframes mdlGlowO { 50% { opacity: 1; } }
.badges { content-visibility: auto; contain-intrinsic-size: 1px 600px; }   /* off-screen medals are not drawn or animated */
.bdg:nth-child(3n+2) .mdl-face::after { animation-delay: 1.4s; }
.bdg:nth-child(3n) .mdl-face::after { animation-delay: 2.8s; }
@media (prefers-reduced-motion: reduce) { .lvc *, .lvc *::before, .lvc *::after, .mdl-rim::after { animation: none !important; } }
.lvc.lv6 .lvc-name { background-image: linear-gradient(90deg, #fff3c4 0%, #fcd34d 30%, #f59e0b 60%, #fbbf24 80%, #f9a8d4 100%); }

/* ================= light theme: readable gold / coloured text =================
   The bright yellows were made for the dark background; on light backgrounds they get darker shades. */
:root[data-theme="light"] .bdg.t1 .lvl { color: #9a3412; }
:root[data-theme="light"] .bdg.t2 .lvl { color: #475569; }
:root[data-theme="light"] .bdg.t3 .lvl { color: #a16207; }
:root[data-theme="light"] .bdg small { color: #4b5563; }
:root[data-theme="light"] .bdg.t3 { border-color: #f59e0b; box-shadow: 0 6px 20px rgba(245,158,11,.12); }
:root[data-theme="light"] .bdg.t2 { border-color: #94a3b8; }
:root[data-theme="light"] .bdg.t1 { border-color: #f97316; }
:root[data-theme="light"] .bstep { color: #1f2937; background: #fff; border-color: #d1d5db; opacity: .75; }
:root[data-theme="light"] .bstep.done { opacity: 1; }
:root[data-theme="light"] .all-gold { color: #92400e; background: #fef3c7; border-color: #f59e0b; }

/* level card */
.lvn { --n2: #15803d; }
.lvn.lv2 { --n2: #0369a1; } .lvn.lv3 { --n2: #c2410c; } .lvn.lv4 { --n2: #be123c; } .lvn.lv5 { --n2: #6d28d9; } .lvn.lv6 { --n2: #a16207; }
.lvc { --c3: #15803d; }
.lvc.lv2 { --c3: #0369a1; } .lvc.lv3 { --c3: #c2410c; } .lvc.lv4 { --c3: #be123c; } .lvc.lv5 { --c3: #6d28d9; } .lvc.lv6 { --c3: #a16207; }
:root[data-theme="light"] .lvc { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 55%), #fff;
  border-color: color-mix(in srgb, var(--c1) 55%, #fff); }
:root[data-theme="light"] .lvc-kicker { color: var(--c3); }
:root[data-theme="light"] .lvc .lvc-name, :root[data-theme="light"] .lvc.lv6 .lvc-name {
  background-image: linear-gradient(90deg, var(--c3), color-mix(in srgb, var(--c3) 70%, var(--c1))); }
:root[data-theme="light"] .lvc-sub { color: #374151; }
:root[data-theme="light"] .lvc-hint { color: #6b7280; }
:root[data-theme="light"] .lvc-bar { background: #e5e7eb; box-shadow: inset 0 1px 2px rgba(0,0,0,.12); }
:root[data-theme="light"] .lvc-perks span { color: var(--c3); background: color-mix(in srgb, var(--c1) 12%, #fff);
  border-color: color-mix(in srgb, var(--c3) 45%, #fff); }
:root[data-theme="light"] .lvc-path::before { background: #e5e7eb; }
:root[data-theme="light"] .lvn b { color: #374151; }
:root[data-theme="light"] .lvn small { color: #6b7280; }
:root[data-theme="light"] .lvn.done b, :root[data-theme="light"] .lvn.now b { color: var(--n2); }
:root[data-theme="light"] .lvn-dot { background: #1b2238; border-color: #cbd5e1; }
:root[data-theme="light"] .lvn.lock .lvn-dot { background: #f3f4f6; }
:root[data-theme="light"] .lvn.lock { opacity: .65; }

/* other spots with fixed light-yellow text */
:root[data-theme="light"] .name-lvl-2 { color: #9a3412; }
:root[data-theme="light"] .name-lvl-3 { color: #475569; }
:root[data-theme="light"] .name-lvl-4 { color: #a16207; }
:root[data-theme="light"] .name-lvl-5 { color: #1d4ed8; }
:root[data-theme="light"] .name-lvl-6 { background-image: linear-gradient(90deg, #a21caf, #1d4ed8); }
:root[data-theme="light"] .cx-alert { color: #92400e; }
:root[data-theme="light"] .cx-up { color: #b45309; }
:root[data-theme="light"] .suggest .note { color: #a16207; }
:root[data-theme="light"] .cx-chip { color: #92400e; background: #fef3c7; border-color: #f59e0b; }
:root[data-theme="light"] .wk-today { background: #f59e0b; color: #fff; }
:root[data-theme="light"] .lvl-1 { color: #4b5563; border-color: #9ca3af; }
:root[data-theme="light"] .lvl-2 { color: #9a3412; border-color: #fb923c; background: #fff7ed; }
:root[data-theme="light"] .lvl-3 { color: #334155; border-color: #94a3b8; background: #f1f5f9; }
:root[data-theme="light"] .lvl-4 { color: #92400e; border-color: #f59e0b; background: #fffbeb; }
:root[data-theme="light"] .lvl-5 { color: #1d4ed8; border-color: #60a5fa; background: #eff6ff; }
:root[data-theme="light"] .lvl-6 { color: #a16207; border-color: #f59e0b; background: linear-gradient(90deg, #fef3c7, #fce7f3); }
:root[data-theme="light"] .premium-tag { color: #92400e; }
:root[data-theme="light"] .lvc-bar span { color: #111827; text-shadow: 0 0 3px #fff, 0 0 2px #fff; }

/* countdown v2: compact, solid colour, readable in light and dark */
.countdown { gap: 6px; }
.countdown div { min-width: 48px; padding: 5px 4px 4px; border-radius: 10px; border: 0;
  background: linear-gradient(160deg, #6d5ce8, #3b6ef5); box-shadow: 0 3px 10px rgba(59,110,245,.3), inset 0 1px 0 rgba(255,255,255,.25); }
.countdown b { font-size: 1.12rem; line-height: 1.15; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.countdown small { display: block; color: rgba(255,255,255,.85); font-size: .62rem; font-weight: 700; line-height: 1.3; }
.countdown div:last-child { background: linear-gradient(160deg, #8b7cf6, #6d5ce8); }
:root[data-theme="light"] .airing { background: linear-gradient(120deg, #eef2ff, #f5f3ff); border-color: #c7d2fe; }
:root[data-theme="light"] .airing-label small { color: #4b5563; }
:root[data-theme="light"] .airing-chip { color: #92400e; background: #fef3c7; }
@media (max-width: 720px) { .countdown { justify-content: flex-start; } .countdown div { flex: 0 0 auto; min-width: 52px; } }

.hs-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; font-size: .66rem; font-weight: 800;
  background: rgba(139,124,246,.18); color: #c4b5fd; border: 1px solid rgba(139,124,246,.4); }
:root[data-theme="light"] .hs-tag { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }

.tr-note { display: inline-block; margin: 2px 0 4px; font-size: .74rem; opacity: .8; }

/* personal offer */
.offer-banner{display:flex;gap:14px;align-items:center;max-width:860px;margin:0 auto 22px;padding:14px 18px;border-radius:16px;
  background:linear-gradient(135deg,rgba(236,72,153,.16),rgba(168,85,247,.16));border:1px solid rgba(236,72,153,.35)}
.offer-banner .ob-gift{font-size:34px;line-height:1}
.offer-banner b{display:block;font-size:16px}
.offer-banner small{opacity:.85}
.offer-tag{display:inline-block;margin-bottom:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;
  background:linear-gradient(90deg,#ec4899,#a855f7);color:#fff}
.price-old{text-decoration:line-through;opacity:.55;font-size:15px}
.coupon-box{margin:8px 0;font-size:13px}
.coupon-box summary{cursor:pointer;opacity:.8}
.coupon-box input{width:100%;margin-top:6px;padding:8px 10px;border-radius:10px;border:1px solid var(--border,rgba(128,128,128,.3));
  background:transparent;color:inherit;text-transform:uppercase}

/* watch page: episode list header */
.ep-panel { padding: 16px; }
.ep-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.ep-side-head b { display: block; font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--text); }
.ep-side-head small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; max-width: 200px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-side-tags { display: flex; align-items: center; gap: 6px; }
.ep-count { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); white-space: nowrap; }

/* ---------------- error pages (404 / 403 / 400) ---------------- */
.err-hero { max-width: 720px; margin: 10px auto 34px; text-align: center; padding: 10px 16px; }
.err-art { width: 190px; height: 190px; margin: 0 auto -18px; }
.err-ghost { width: 100%; height: 100%; animation: err-float 3.6s ease-in-out infinite; overflow: visible; }
.err-shadow { fill: rgba(0, 0, 0, .25); animation: err-shadow 3.6s ease-in-out infinite; transform-origin: 110px 200px; }
.err-map { transform-origin: 160px 150px; animation: err-wiggle 2.4s ease-in-out infinite; }
.err-emoji { font-size: 64px; margin-bottom: -6px; animation: err-float 3.6s ease-in-out infinite; }
.err-code { position: relative; display: inline-block; font-size: clamp(84px, 20vw, 150px); font-weight: 900; line-height: 1;
  letter-spacing: -.05em; direction: ltr;
  background: linear-gradient(135deg, #a78bfa, #ec4899 55%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(236, 72, 153, .25)); }
.err-code::before, .err-code::after { content: attr(data-text); position: absolute; inset: 0; background: inherit;
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .55; }
.err-code::before { animation: err-glitch 3s infinite steps(1); clip-path: inset(0 0 60% 0); }
.err-code::after { animation: err-glitch 3s .15s infinite steps(1) reverse; clip-path: inset(55% 0 0 0); }
.err-title { font-size: clamp(22px, 4vw, 30px); margin: 6px 0 10px; color: var(--text); }
.err-text { color: var(--muted); line-height: 2; max-width: 560px; margin: 0 auto 22px; font-size: 15px; }
.err-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 10px; }
.err-search input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; }
.err-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.err-guess { font-size: 13.5px; color: var(--muted); margin: 0 0 6px; }
.err-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.err-popular { margin-bottom: 30px; }
@keyframes err-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes err-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .6; } }
@keyframes err-wiggle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes err-glitch { 0%, 88%, 100% { transform: none; } 90% { transform: translate(-4px, 2px); } 93% { transform: translate(4px, -2px); } 96% { transform: translate(-2px, 0); } }
@media (prefers-reduced-motion: reduce) { .err-ghost, .err-shadow, .err-map, .err-emoji, .err-code::before, .err-code::after { animation: none; } }
@media (max-width: 520px) { .err-search { flex-direction: column; } .err-art { width: 150px; height: 150px; } }

.maint-banner { background: #d97706; color: #fff; text-align: center; padding: 7px 12px; font-size: 13.5px; font-weight: 600; position: relative; z-index: 60; }
.maint-banner a { color: #fff; text-decoration: underline; }

/* ---------------- phones & tablets: account panel menu becomes one swipeable row ---------------- */
@media (max-width: 1024px) {
  .panel-side { border-radius: 16px; }
  .panel-side .who { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; text-align: start;
    padding: 14px 16px; }
  .panel-side .who .avatar { margin: 0; grid-row: span 3; width: 56px; height: 56px; font-size: 1.3rem; }
  .panel-side .who b { font-size: 1rem; }
  .panel-nav { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .panel-nav::-webkit-scrollbar { display: none; }
  .panel-nav hr { display: none; }
  .panel-nav a, .panel-nav button { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; scroll-snap-align: start; gap: 6px; }
  .panel-nav form { flex: 0 0 auto; margin: 0; }
  .panel-nav .emoji { width: auto; }
  .panel-nav a.active { border-color: transparent; }
  .panel-nav .badge-n { margin-inline-start: 4px; }
}
/* header: never squash the logo next to the sign-in button */
.logo { flex-shrink: 0; }
.logo-img { max-width: none; object-fit: contain; }
@media (max-width: 380px) {
  .logo-img { height: 28px; }
  .auth-btns { height: 32px; font-size: .82rem; }
  .auth-btns a { padding: 5px 8px; }
  .site-header .icon-btn { width: 34px; height: 34px; }
}
@media (max-width: 1024px) {
  .panel-side .who > * { justify-self: start; }
  .panel-side .who .ltr { width: fit-content; }
}

/* ---------------- phone fixes (found on a real Android phone) ---------------- */
/* 2) account panel: the swipeable menu row must never widen the page */
@media (max-width: 1024px) {
  .panel-layout { grid-template-columns: minmax(0, 1fr); }
  .panel-layout > * { min-width: 0; }
}
/* 3) "Sign in / Join" stays on one line in every language */
.auth-btns, .auth-btns a { white-space: nowrap; }
/* 4) header menus (notifications, account, language) and the "add to list" menu open inside the screen */
@media (max-width: 640px) {
  .site-header .dropdown-menu { position: fixed; top: calc(var(--header-h, 64px) + 6px); inset-inline: 8px; width: auto;
    min-width: 0; max-width: none; max-height: calc(100vh - var(--header-h, 64px) - 90px); overflow-y: auto; }
  .list-menu { position: fixed !important; inset-inline: 12px !important; top: auto !important; bottom: 84px; width: auto;
    min-width: 0 !important; max-height: 60vh; overflow-y: auto; z-index: 80; }
}
/* nothing may make the page scroll sideways on a phone */
html, body { max-width: 100%; overflow-x: clip; }

/* translated file picker */
.file-pick { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; cursor: pointer; margin: 4px 0; }
.file-pick input[type="file"] { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-pick input[type="file"]:focus-visible + .btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-pick .fname { color: var(--muted); font-size: .85rem; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type="file"] { max-width: 100%; }

.list-menu form button { width: auto; flex: 0 0 auto; }
.list-menu form input { flex: 1 1 auto; min-width: 0; }

/* official address line in the footer */
.footer-addr { margin: 4px 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07); font-size: .85rem; line-height: 1.9; color: #aab3d3; }
.footer-addr b { color: #f1f4ff; }
.footer-addr a { color: #8aabff; }

.footer-addr { text-align: center; }

.forgot-link { margin: -4px 0 12px; font-size: .88rem; text-align: end; }
.forgot-link a { color: var(--accent-text, #8aabff); }

.notfound-box { display: grid; gap: 6px; justify-items: start; padding: 12px 14px; margin: 0 0 16px; border-radius: 12px;
  border: 1px solid rgba(59,130,246,.35); background: rgba(59,130,246,.10); font-size: .9rem; line-height: 1.8; }
.notfound-box.warn { border-color: rgba(220,38,38,.35); background: rgba(220,38,38,.08); }
.notfound-box span { color: var(--muted); }
.notfound-box .btn { margin-top: 4px; }

/* home banner: no bright sliver of the zooming image at the edges (seen with GPU drawing at 125%/150% Windows scaling) */
.hero-slide { overflow: hidden; border-radius: inherit; }          /* each slide clips its own zooming image */
.hero-slide::after { inset: -1px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 2px #0b1020, inset 0 0 0 3px rgba(11, 16, 32, .6); }  /* thin dark frame drawn on top of the edge */
.hero-dots { z-index: 4; }

/* ---------------- ad banners (same look on computer, Android and iPhone) ---------------- */
.adb { position: relative; margin: 0 0 18px; }
.adb a { display: block; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); line-height: 0; }
.adb img { display: block; width: 100%; height: auto; object-fit: cover; }
.adb-tag { position: absolute; top: 8px; inset-inline-start: 8px; line-height: 1.4; font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; letter-spacing: .02em; }
/* shapes: computer */
.adb-top img { aspect-ratio: 8 / 1; }
.adb-dl_above img, .adb-dl_below img { aspect-ratio: 970 / 120; }
.adb-side img { aspect-ratio: 1 / 2; }
.adb-side { position: sticky; top: calc(var(--header-h, 64px) + 16px); max-width: 300px; margin-inline: auto; }
.adb-top { margin-top: 2px; }
.adb-dl_above { margin: 4px 0 16px; }
.adb-dl_below { margin: 16px 0 0; }
/* shapes: tablets and phones (Android / iPhone) — every spot becomes a 4:1 strip */
@media (max-width: 1024px) {
  .adb-top img, .adb-dl_above img, .adb-dl_below img, .adb-side img { aspect-ratio: 4 / 1; }
  .adb-side { position: static; max-width: none; }
  .adb-desktop-only { display: none; }
  .adb a { border-radius: 12px; }
}
/* "your ad here" box for empty spots */
.adb-empty a { line-height: 1.6; border-style: dashed; background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(236,72,153,.08)); }
.adb-ph { display: grid; place-items: center; text-align: center; gap: 2px; padding: 14px; min-height: 72px; color: var(--text); }
.adb-ph small { color: var(--muted); }
.adb-side.adb-empty .adb-ph { min-height: 240px; }
@media (max-width: 1024px) { .adb-side.adb-empty .adb-ph { min-height: 72px; } }

/* ===================== v16: legal pages, newsletter, moderation, player overlays, invite, follow, PWA ===================== */
.legal-page { max-width: 820px; margin: 24px auto; padding: 26px 30px; line-height: 2.05; }
.legal-page h1 { font-size: 1.7rem; margin: 0 0 4px; }
.legal-page h2 { font-size: 1.12rem; margin: 26px 0 8px; color: var(--accent-text); }
.legal-page ul { padding-inline-start: 22px; margin: 6px 0 12px; }
.legal-page li { margin-bottom: 4px; }
.legal-date { font-size: .85rem; margin-bottom: 18px; }
.legal-help { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 14px; }
.legal-note { font-size: .82rem; color: var(--muted); line-height: 1.9; margin: 10px 0 0; text-align: center; }
.legal-note a, .agree-field a, .comment-rules a, .ban-note a { color: var(--accent-text); font-weight: 600; }
.pr-legal { margin-top: 14px; }
.agree-field .check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.9; cursor: pointer; }
.agree-field input[type=checkbox] { width: 18px; height: 18px; margin-top: 5px; flex: none; accent-color: var(--accent); }

/* newsletter box in the footer */
.footer-news { margin: 22px 0 6px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.footer-news label { display: block; margin-bottom: 10px; line-height: 1.8; }
.footer-news label span { color: var(--muted); font-size: .88rem; }
.footer-news .fn-row { display: flex; gap: 8px; position: relative; }
.footer-news .fn-row .input { flex: 1; min-width: 0; }
.footer-news .btn { flex: none; }
.nl-card { text-align: center; }
.link-btn.install-app { padding: 0; font: inherit; color: inherit; }

/* comments: report, ban note, rules, review */
.report-menu { display: inline-block; position: relative; }
.report-menu > summary { list-style: none; cursor: pointer; }
.report-menu > summary::-webkit-details-marker { display: none; }
.report-menu > summary.reported { color: var(--muted); }
.report-menu:not([open]) .report-box { display: none; }
.report-box { position: absolute; z-index: 30; inset-inline-end: 0; top: calc(100% + 6px); width: 250px; padding: 10px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 6px; }
.report-box b { font-size: .85rem; margin-bottom: 2px; }
.report-box button { text-align: start; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; font-size: .86rem; }
.report-box button:hover { border-color: var(--accent); }
.report-box button:disabled { opacity: .6; cursor: wait; }
.ban-note { margin: 10px 0 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent); line-height: 1.9; }
.comment-rules { font-size: .78rem; margin: 6px 0 0; }
.preview-note { padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; border: 1px dashed var(--warning);
  background: color-mix(in srgb, var(--warning) 10%, transparent); }

/* player: "Skip intro" + "Next episode" card (inside the player box, also in full screen) */
.skip-intro { position: absolute; z-index: 12; bottom: 70px; inset-inline-end: 18px; display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px; }
.skip-intro .si-go { background: rgba(255,255,255,.95); color: #111; border: 0; border-radius: 10px; padding: 10px 18px;
  font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; box-shadow: 0 6px 22px rgba(0,0,0,.45); }
.skip-intro .si-go:hover { background: #fff; transform: translateY(-1px); }
.skip-intro .si-auto { font-size: .75rem; color: #fff; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 8px;
  display: flex; gap: 5px; align-items: center; cursor: pointer; }
.next-card { position: absolute; z-index: 12; bottom: 70px; inset-inline-end: 18px; width: min(320px, calc(100% - 36px));
  background: rgba(10,14,28,.92); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 14px;
  box-shadow: 0 10px 34px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(6px); }
.next-card small { opacity: .75; display: block; }
.next-card b { display: block; font-size: 1rem; line-height: 1.6; }
.next-card .nc-count { font-size: .8rem; opacity: .85; }
.next-card .nc-btns { display: flex; gap: 8px; }
.next-card .nc-play { flex: 1; text-align: center; background: var(--accent); color: #fff; border-radius: 10px; padding: 9px 12px;
  font-weight: 800; text-decoration: none; }
.next-card .nc-cancel { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 10px;
  padding: 9px 12px; cursor: pointer; font: inherit; }
.skip-intro[hidden], .next-card[hidden] { display: none; }
@media (max-width: 640px) {
  .skip-intro, .next-card { bottom: 54px; inset-inline-end: 10px; }
  .skip-intro .si-go { padding: 8px 14px; font-size: .85rem; }
  .next-card { padding: 10px; gap: 8px; }
}

/* invite friends */
.invite-lead { line-height: 2; }
.invite-link { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.invite-link .input { flex: 1 1 260px; min-width: 0; font-size: .9rem; }
.invite-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.invite-stats > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.invite-stats b { display: block; font-size: 1.5rem; color: var(--accent-text); }
.invite-stats span { font-size: .8rem; color: var(--muted); }
.invite-rules { line-height: 2; padding-inline-start: 20px; color: var(--text-2); }
@media (max-width: 480px) { .invite-stats { grid-template-columns: 1fr; } }

/* anime I follow */
.follow-mail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px; margin: 12px 0 16px; background: var(--surface-2); }
.follow-list { display: flex; flex-direction: column; gap: 10px; }
.follow-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--border); }
.follow-item .fi-poster img { width: 48px; height: 68px; object-fit: cover; border-radius: 8px; display: block; }
.follow-item .fi-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.follow-item .fi-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-note { text-align: center; padding: 18px 8px; line-height: 2; }
@media (max-width: 640px) {  /* phones: the report menu opens as a small sheet above the bottom bar, never off-screen */
  .report-box { position: fixed; inset-inline: 12px; inset-block-start: auto; bottom: 84px; width: auto; z-index: 60; }
}

/* profile: email & mobile */
.contact-form { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.contact-form input { flex: 1 1 220px; min-width: 0; }
.contact-form .btn { flex: 0 0 auto; white-space: nowrap; }
.contact-fixed { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2, rgba(255,255,255,.04)); border: 1px solid var(--border, rgba(255,255,255,.08)); }
.contact-fixed .muted { font-size: .85rem; }

/* profile: anime avatar picker, age + gender side by side */
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; margin-top: 6px; }
.av-opt { padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; aspect-ratio: 1; max-width: 100%;
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.av-opt img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--surface-3); }
.av-opt:hover { transform: translateY(-2px); }
.av-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.av-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* subscription gauge: draw with the theme's text colour so it shows on light and dark cards */
.gauge { color: var(--text); }
.gauge .g-tick { stroke: currentColor; stroke-opacity: .25; }
.gauge .g-tick.major { stroke-opacity: .55; }
.gauge .g-num { fill: currentColor; fill-opacity: .55; }
.gauge .g-pct, .gauge .needle polygon, .gauge .g-hub { fill: currentColor; }
.gauge .g-hub-dot { fill: var(--surface); }
