/* =====================================================================
   FINDEX — shared layout + three themes: phantom / wilds / ashen
   ===================================================================== */

:root {
  --bg: #0c0612; --surface: #140a1e; --surface2: #1f0d30; --line: #fff;
  --text: #fff; --muted: #bfa8d6; --accent: #a43cff; --accent2: #d9b3ff; --on-accent: #fff;
  --head: 'Anton', Impact, sans-serif; --body: 'Barlow Semi Condensed', system-ui, sans-serif;
  --radius: 0px;
  --st-watching: #5fd38d; --st-completed: #6aa8ff; --st-plan: #c9c9c9; --st-dropped: #ff5d73;
  --card-w: 150px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent2); }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code { background: rgba(255,255,255,.1); padding: 0 .3em; }
::selection { background: var(--accent); color: var(--on-accent); }

.bg-deco { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.page { max-width: 1320px; margin: 0 auto; padding: 28px 24px 60px; min-height: 70vh; }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 24px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); font-family: var(--head); font-size: 30px; line-height: 1; flex-shrink: 0; }
.logo span { display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-block; padding: 8px 14px; color: var(--text); text-decoration: none; background: none; border: 0; white-space: nowrap; }
.nav-item { position: relative; }
.nav-search { flex: 1; max-width: 360px; margin-left: auto; }
.nav-search input { width: 100%; padding: 9px 14px; background: rgba(255,255,255,.08); border: 1px solid var(--line); outline: none; border-radius: var(--radius); }
.nav-burger { display: none; background: none; border: 0; font-size: 26px; color: var(--text); }

.mega, .drop {
  position: absolute; top: 100%; left: 0; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.has-mega:hover > .mega, .has-mega:focus-within > .mega,
.has-drop:hover > .drop, .has-drop:focus-within > .drop { opacity: 1; visibility: visible; transform: none; }
.mega::before, .drop::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 18px; padding: 20px; min-width: 720px; background: var(--surface); }
.mega-head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 10px; margin-bottom: 6px; text-decoration: none; color: var(--text); font-family: var(--head); font-size: 1.1rem; }
.mega-item { display: flex; justify-content: space-between; padding: 6px 10px; text-decoration: none; color: var(--text); }
.mega em, .tab em, .res-title em { font-style: normal; font-size: .78em; opacity: .7; margin-left: 8px; }
.drop { min-width: 210px; padding: 8px; background: var(--surface); }
.drop-right { left: auto; right: 0; }
.drop-item { display: block; width: 100%; text-align: left; padding: 8px 12px; color: var(--text); text-decoration: none; background: none; border: 0; }
.theme-drop { right: 0; left: auto; min-width: 300px; }
.theme-opt { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; background: none; border: 1px solid transparent; text-align: left; margin-bottom: 4px; }
.theme-opt b { display: block; font-family: var(--head); font-weight: 400; letter-spacing: .04em; }
.theme-opt small { display: block; color: var(--muted); font-size: .8rem; }
.theme-opt.on { border-color: var(--accent); }
.swatch { display: flex; width: 54px; height: 34px; flex-shrink: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.25); }
.swatch i { flex: 1; }
.sw-phantom i:nth-child(1) { background: #000; } .sw-phantom i:nth-child(2) { background: #a43cff; } .sw-phantom i:nth-child(3) { background: #fff; }
.sw-wilds i:nth-child(1) { background: #10181d; } .sw-wilds i:nth-child(2) { background: #5fe0ee; } .sw-wilds i:nth-child(3) { background: #f3c969; }
.sw-ashen i:nth-child(1) { background: #0a0907; } .sw-ashen i:nth-child(2) { background: #6b5a35; } .sw-ashen i:nth-child(3) { background: #c9a961; }

/* ------------------------------------------------------------ buttons + inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border: 1px solid var(--line); background: transparent; color: var(--text); text-decoration: none; border-radius: var(--radius); transition: all .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: wait; }
.input { padding: 9px 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: var(--radius); outline: none; min-width: 0; }
.input:focus { border-color: var(--accent); }
.input-sm { padding: 6px 8px; font-size: .9rem; }
select.input option { background: #111; color: #eee; }
.mini { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); padding: 0; }

/* ------------------------------------------------------------ hero + sections */
.hero { margin: 10px 0 36px; }
.hero-guest { text-align: center; padding: 50px 0 30px; }
.kicker { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--muted); }
.hero-title { margin: 0; font-family: var(--head); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; }
.hero-title.big { font-size: clamp(4rem, 14vw, 9rem); }
.hero-sub { max-width: 640px; margin: 18px auto 26px; color: var(--muted); font-size: 1.1rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.hero-user { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; min-width: 118px; padding: 12px 16px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { font-family: var(--head); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.stat span { font-weight: 600; }
.stat small { color: var(--muted); }

.big-search { display: flex; gap: 10px; max-width: 720px; margin: 0 auto 22px; }
.big-search input { flex: 1; min-width: 0; padding: 14px 18px; font-size: 1.05rem; background: rgba(255,255,255,.07); border: 1px solid var(--line); outline: none; border-radius: var(--radius); }

.sec { margin: 0 0 44px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-title { margin: 0; font-family: var(--head); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.sec-sub { color: var(--muted); font-size: .92rem; }
.sec-link { margin-left: auto; text-decoration: none; }
.row-wrap { margin-bottom: 22px; }
.row-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.row-title { margin: 0; font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.row-sub { color: var(--muted); font-size: .85rem; }
.row-arrows { margin-left: auto; display: flex; gap: 6px; }
.arrow { width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); font-size: 20px; line-height: 1; padding: 0; }
.row-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 10px 4px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.row-scroll > * { scroll-snap-align: start; }

/* ------------------------------------------------------------ cards */
.card { flex: 0 0 var(--card-w); width: var(--card-w); display: flex; flex-direction: column; }
.card-cover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--surface2); transition: transform .2s, box-shadow .2s, border-color .2s, filter .2s; }
.card-cover img, .ucard-cover img, .rrow-cover img, .lrow-cover img { width: 100%; height: 100%; object-fit: cover; }
.no-cover { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--head); font-size: 2.6rem; color: var(--muted); background: var(--surface2); }
.cover-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--accent); color: var(--on-accent); }
.cover-badge.soon { background: #000; color: #fff; }
.card-body { padding: 8px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--muted); font-size: .82rem; }
.card .picker { margin-top: auto; }
.sk .card-cover, .sk .ucard-cover, .sk-line { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sk-line { height: 12px; margin-top: 6px; }
.sk-line.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* status picker */
.picker { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.pk { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: var(--radius); font-size: .88rem; transition: all .14s; }
.pk-i { font-size: .85em; }
.picker.compact { gap: 4px; flex-wrap: nowrap; }
.picker.compact .pk { flex: 1; padding: 4px 0; justify-content: center; font-size: .8rem; }
.pk.on.pk-watching { background: var(--st-watching); border-color: var(--st-watching); color: #08140c; }
.pk.on.pk-completed { background: var(--st-completed); border-color: var(--st-completed); color: #061020; }
.pk.on.pk-plan { background: var(--st-plan); border-color: var(--st-plan); color: #111; }
.pk.on.pk-dropped { background: var(--st-dropped); border-color: var(--st-dropped); color: #1d0508; }

/* update cards */
.updates { min-height: 140px; }
.ucard { flex: 0 0 340px; display: flex; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ucard-cover { width: 84px; flex-shrink: 0; aspect-ratio: 2 / 3; overflow: hidden; background: var(--surface2); }
.ucard-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.ucard.sk { height: 150px; }
.badge-new { align-self: flex-start; padding: 2px 10px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--surface2); border: 1px solid var(--line); }
.ucard.fresh .badge-new { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.u-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.ucard .picker { margin-top: auto; }
.empty-block { padding: 28px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); width: 100%; }
.empty { color: var(--muted); padding: 10px 0; }
.empty.small { font-size: .85rem; }

/* ------------------------------------------------------------ pages, tabs */
.page-head { margin-bottom: 18px; }
.page-title { margin: 0 0 4px; font-family: var(--head); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; }
.page-sub { margin: 0; color: var(--muted); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.tab { padding: 8px 16px; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); transition: all .14s; }
.tab-sm { padding: 5px 12px; font-size: .9rem; }
.tab.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.toolbar { display: flex; gap: 10px; margin: 6px 0 16px; flex-wrap: wrap; }
.toolbar #listFilter { flex: 1; min-width: 200px; }

/* search results */
.res-group { margin-bottom: 30px; }
.res-title { font-family: var(--head); font-weight: 400; font-size: 1.6rem; margin: 0 0 10px; }
.rrow, .lrow { display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; margin-bottom: 8px; background: var(--surface); border: 1px solid transparent; border-radius: var(--radius); transition: all .15s; }
.rrow-cover, .lrow-cover { width: 56px; aspect-ratio: 2 / 3; flex-shrink: 0; overflow: hidden; background: var(--surface2); }
.rrow-main, .lrow-main { flex: 1; min-width: 0; }
.rrow-title, .lrow-title { font-weight: 800; font-size: 1.08rem; line-height: 1.2; }
.rrow-alt, .lrow-alt { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow-alt .hl { color: var(--accent2); font-weight: 700; }
.match { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: 1px 6px; background: var(--accent); color: var(--on-accent); }
.rrow-meta, .lrow-meta { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.res-hint { margin: -4px 0 14px; color: var(--muted); font-size: .9rem; }
.rrow.series { align-items: flex-start; }
.flines { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.fline { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 3px 0 3px 10px; border-left: 3px solid transparent; }
.fline.tracked { border-left-color: var(--accent); }
.fline-label { display: flex; flex-direction: column; align-items: flex-end; width: 130px; line-height: 1.15; text-align: right; }
.fline-label b { font-size: .92rem; }
.fline-label small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.fline.add-as select { min-width: 150px; }
[data-theme="phantom"] .fline-label b { font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--accent2); }
[data-theme="phantom"] .fline.tracked { border-left: 4px solid #fff; }
[data-theme="wilds"] .fline-label b { font-family: var(--head); font-weight: 400; color: var(--accent2); letter-spacing: .05em; }
[data-theme="wilds"] .fline.tracked { border-left-color: var(--accent); box-shadow: -6px 0 12px -8px var(--accent); }
[data-theme="ashen"] .fline-label b { font-family: var(--head); font-weight: 400; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.tag { font-size: .7rem; font-weight: 600; padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.lrow-prog { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lrow-prog span { min-width: 82px; text-align: center; font-size: .92rem; }
.lrow { border-left: 4px solid var(--st-plan); }
.lrow.s-watching { border-left-color: var(--st-watching); }
.lrow.s-completed { border-left-color: var(--st-completed); }
.lrow.s-dropped { border-left-color: var(--st-dropped); }
.mini.x:hover { background: var(--st-dropped); border-color: var(--st-dropped); color: #000; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 14px 0; }
.spin { width: 16px; height: 16px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* panels, import, auth, faq */
.panel { position: relative; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.panel-title { margin: 0 0 12px; font-family: var(--head); font-weight: 400; font-size: 1.5rem; }
.import-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.import-grid form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.import-grid form .input { flex: 1; min-width: 180px; }
.steps { padding-left: 20px; margin: 0 0 6px; }
.steps li { margin-bottom: 6px; }
.or { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; }
.hint { color: var(--muted); font-size: .88rem; margin: 12px 0 0; }
.auth { max-width: 440px; margin: 40px auto; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.faq { display: grid; gap: 10px; margin-bottom: 18px; }
.faq-item { margin: 0; padding: 0; }
.faq-item summary { padding: 16px 22px; cursor: pointer; font-weight: 800; }
.faq-item p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

/* toasts, wipe, banner, footer */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { padding: 12px 18px; background: var(--surface2); border: 1px solid var(--accent); border-radius: var(--radius); max-width: 420px; animation: toastIn .25s ease-out; transition: opacity .5s, transform .5s; }
.toast.err { border-color: var(--st-dropped); }
.toast.out { opacity: 0; transform: translateY(10px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
.wipe { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; }
.pending-banner { position: fixed; left: 20px; bottom: 20px; z-index: 95; display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; }
.foot { text-align: center; padding: 24px; color: var(--muted); font-size: .85rem; }
.foot span { font-family: var(--head); letter-spacing: .1em; color: var(--text); }

/* =====================================================================
   THEME: PHANTOM  — rebel purple, jagged, loud
   ===================================================================== */
[data-theme="phantom"] {
  --bg: #0b0511; --surface: #12081b; --surface2: #1e0c2e; --line: #ffffff;
  --text: #ffffff; --muted: #c4aedb; --accent: #a43cff; --accent2: #dcb8ff; --on-accent: #fff;
  --head: 'Anton', Impact, sans-serif; --body: 'Barlow Semi Condensed', system-ui, sans-serif; --radius: 0px;
}
[data-theme="phantom"] body {
  background:
    radial-gradient(circle, rgba(164,60,255,.16) 1.3px, transparent 1.7px) 0 0 / 11px 11px,
    repeating-linear-gradient(118deg, transparent 0 70px, rgba(164,60,255,.05) 70px 140px),
    linear-gradient(160deg, #13071e, #060208 65%);
  background-attachment: fixed;
}
[data-theme="phantom"] .bg-deco::before {
  content: ''; position: absolute; right: -12vw; top: 14vh; width: 52vw; height: 90vh;
  background: linear-gradient(135deg, rgba(164,60,255,.30), rgba(90,10,160,.08));
  clip-path: polygon(30% 0, 100% 8%, 92% 100%, 0 86%, 14% 44%);
}
[data-theme="phantom"] .bg-deco::after {
  content: ''; position: absolute; left: -10vw; bottom: 8vh; width: 70vw; height: 18px;
  background: #fff; opacity: .06; transform: rotate(-12deg);
  box-shadow: 0 46px 0 #fff, 0 70px 0 rgba(255,255,255,.5);
}
[data-theme="phantom"] .nav { background: #000; }
[data-theme="phantom"] .nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 96% 100%, 88% 20%, 80% 90%, 70% 10%, 61% 100%, 52% 25%, 43% 85%, 33% 15%, 24% 100%, 15% 20%, 7% 80%, 0 30%);
}
[data-theme="phantom"] .logo { font-size: 28px; gap: 1px; }
[data-theme="phantom"] .logo span { padding: 2px 6px 1px; background: #fff; color: #000; transition: transform .2s; }
[data-theme="phantom"] .logo span:nth-child(1) { transform: rotate(-8deg); font-size: 34px; }
[data-theme="phantom"] .logo span:nth-child(2) { background: #000; color: #fff; outline: 2px solid #fff; transform: rotate(5deg) translateY(2px); }
[data-theme="phantom"] .logo span:nth-child(3) { background: var(--accent); color: #fff; transform: rotate(-3deg); font-size: 31px; }
[data-theme="phantom"] .logo span:nth-child(4) { transform: rotate(7deg) translateY(-2px); }
[data-theme="phantom"] .logo span:nth-child(5) { background: #000; color: var(--accent2); outline: 2px solid var(--accent); transform: rotate(-6deg); }
[data-theme="phantom"] .logo span:nth-child(6) { background: var(--accent); color: #000; transform: rotate(4deg); font-size: 33px; }
[data-theme="phantom"] .logo:hover span { transform: rotate(0) scale(1.08); }
[data-theme="phantom"] .nav-link { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; transition: all .12s; }
[data-theme="phantom"] .nav-link:hover, [data-theme="phantom"] .has-mega:hover > .nav-link { background: #fff; color: #000; transform: skewX(-12deg) rotate(-2deg); }
[data-theme="phantom"] .nav-link.active { background: var(--accent); color: #fff; transform: skewX(-12deg); }
[data-theme="phantom"] .nav-search input { background: #fff; color: #000; border: 0; font-weight: 600; clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%); padding-left: 20px; }
[data-theme="phantom"] .nav-search input::placeholder { color: #555; }
[data-theme="phantom"] .mega, [data-theme="phantom"] .drop { background: #000; border: 3px solid #fff; box-shadow: 10px 10px 0 var(--accent); }
[data-theme="phantom"] .mega { transform: translateY(8px) rotate(-1deg); }
[data-theme="phantom"] .has-mega:hover > .mega { transform: rotate(-1deg); }
[data-theme="phantom"] .mega-head { background: var(--accent); font-size: 1.25rem; text-transform: uppercase; transform: skewX(-10deg); }
[data-theme="phantom"] .mega-item, [data-theme="phantom"] .drop-item { font-weight: 600; transition: all .1s; }
[data-theme="phantom"] .mega-item:hover, [data-theme="phantom"] .drop-item:hover { background: #fff; color: #000; transform: translateX(6px) skewX(-10deg); }
[data-theme="phantom"] .theme-opt:hover { background: #1b0b2a; }

[data-theme="phantom"] .btn, [data-theme="phantom"] .pk, [data-theme="phantom"] .tab {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-weight: 400;
  background: #fff; color: #000; border: 0; transform: skewX(-12deg);
}
[data-theme="phantom"] .btn:hover, [data-theme="phantom"] .pk:hover, [data-theme="phantom"] .tab:hover { background: var(--accent); color: #fff; transform: skewX(-12deg) rotate(-3deg) scale(1.05); }
[data-theme="phantom"] .btn-primary { background: var(--accent); color: #fff; box-shadow: 4px 4px 0 #fff; }
[data-theme="phantom"] .btn-primary:hover { background: #fff; color: #000; box-shadow: 4px 4px 0 var(--accent); }
[data-theme="phantom"] .tab.on { background: var(--accent); color: #fff; box-shadow: 4px 4px 0 #fff; }
[data-theme="phantom"] .pk.on { box-shadow: 3px 3px 0 #fff; }
[data-theme="phantom"] .picker.compact .pk { transform: skewX(-10deg); }
[data-theme="phantom"] .input, [data-theme="phantom"] .big-search input { background: #fff; color: #000; border: 0; font-weight: 600; }
[data-theme="phantom"] .big-search input { clip-path: polygon(1.5% 0, 100% 0, 98.5% 100%, 0 100%); padding-left: 26px; }
[data-theme="phantom"] .mini { background: #fff; color: #000; border: 0; font-family: var(--head); transform: skewX(-10deg); }
[data-theme="phantom"] .mini:hover { background: var(--accent); color: #fff; }
[data-theme="phantom"] .arrow { background: #000; border: 2px solid #fff; font-family: var(--head); }
[data-theme="phantom"] .arrow:hover { background: var(--accent); }

[data-theme="phantom"] .hero-title, [data-theme="phantom"] .page-title {
  display: inline-block; text-transform: uppercase; transform: rotate(-2.5deg);
  text-shadow: 4px 4px 0 var(--accent), 8px 8px 0 #000;
}
[data-theme="phantom"] .hero-title.big { letter-spacing: .02em; text-shadow: 6px 6px 0 var(--accent), 12px 12px 0 #000; }
[data-theme="phantom"] .hero .kicker, [data-theme="phantom"] .hero .hero-title { display: table; }
[data-theme="phantom"] .hero-guest .kicker, [data-theme="phantom"] .hero-guest .hero-title { margin-left: auto; margin-right: auto; }
[data-theme="phantom"] .hero-title + .kicker, [data-theme="phantom"] .kicker + .hero-title { margin-top: 10px; }
[data-theme="phantom"] .kicker { background: #fff; color: #000; padding: 2px 12px; font-weight: 800; transform: skewX(-12deg) rotate(-2deg); letter-spacing: .15em; }
[data-theme="phantom"] .sec-title, [data-theme="phantom"] .res-title {
  display: inline-block; text-transform: uppercase; background: #000; color: #fff; padding: 4px 22px 2px 16px;
  border: 3px solid #fff; transform: rotate(-1.5deg); box-shadow: 6px 6px 0 var(--accent);
  clip-path: polygon(0 4%, 100% 0, 96% 100%, 2% 94%);
}
[data-theme="phantom"] .cat-sec:nth-child(even) .sec-title { background: var(--accent); transform: rotate(1.2deg); }
[data-theme="phantom"] .row-title { font-family: var(--head); font-weight: 400; color: var(--accent2); font-size: 1.15rem; }
[data-theme="phantom"] .stat { background: #000; border: 3px solid #fff; box-shadow: 5px 5px 0 var(--accent); transform: skewX(-6deg); transition: transform .15s; }
[data-theme="phantom"] .stat:hover { transform: skewX(-6deg) rotate(-2deg) scale(1.04); background: var(--accent); }

[data-theme="phantom"] .card-cover { border: 3px solid #fff; transform: rotate(-1.2deg); clip-path: polygon(0 1%, 100% 0, 99% 100%, 1% 99%); }
[data-theme="phantom"] .card:nth-child(even) .card-cover { transform: rotate(1.2deg); }
[data-theme="phantom"] .card:hover .card-cover { transform: rotate(-3deg) scale(1.05); border-color: var(--accent); }
[data-theme="phantom"] .card-title { font-weight: 800; }
[data-theme="phantom"] .cover-badge { font-family: var(--head); font-weight: 400; transform: rotate(-6deg); background: var(--accent); box-shadow: 2px 2px 0 #000; }
[data-theme="phantom"] .cover-badge.soon { background: #fff; color: #000; }
[data-theme="phantom"] .ucard { background: #000; border: 3px solid #fff; box-shadow: 7px 7px 0 var(--accent); }
[data-theme="phantom"] .ucard.fresh { transform: rotate(-.8deg); }
[data-theme="phantom"] .badge-new { font-family: var(--head); font-weight: 400; background: #fff; color: #000; border: 0; transform: skewX(-12deg) rotate(-2deg); font-size: .85rem; }
[data-theme="phantom"] .ucard.fresh .badge-new { background: var(--accent); color: #fff; }

[data-theme="phantom"] .rrow, [data-theme="phantom"] .lrow {
  background: linear-gradient(100deg, #150a20 0 68%, #22103a 68%); border: 0; border-left: 6px solid var(--accent);
  clip-path: polygon(0 0, 100% 0, 99.2% 100%, 0 100%);
}
[data-theme="phantom"] .rrow:hover, [data-theme="phantom"] .lrow:hover { background: linear-gradient(100deg, #2a0f45 0 68%, var(--accent) 68%); transform: translateX(6px); }
[data-theme="phantom"] .lrow.s-watching { border-left-color: var(--st-watching); }
[data-theme="phantom"] .lrow.s-completed { border-left-color: var(--st-completed); }
[data-theme="phantom"] .lrow.s-dropped { border-left-color: var(--st-dropped); }
[data-theme="phantom"] .lrow.s-plan { border-left-color: var(--st-plan); }
[data-theme="phantom"] .rrow-cover, [data-theme="phantom"] .lrow-cover { border: 2px solid #fff; transform: rotate(-3deg); }
[data-theme="phantom"] .rrow-title, [data-theme="phantom"] .lrow-title { font-size: 1.15rem; }
[data-theme="phantom"] .panel { background: #000; border: 3px solid #fff; box-shadow: 9px 9px 0 var(--accent); }
[data-theme="phantom"] .panel-title { text-transform: uppercase; display: inline-block; background: var(--accent); padding: 2px 14px; transform: skewX(-10deg) rotate(-1.5deg); }
[data-theme="phantom"] .faq-item summary { font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 1.1rem; }
[data-theme="phantom"] .faq-item[open] { box-shadow: 9px 9px 0 #fff; border-color: var(--accent); }
[data-theme="phantom"] .toast { background: #fff; color: #000; border: 0; border-left: 12px solid var(--accent); font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; transform: rotate(-2deg); clip-path: polygon(0 0, 100% 6%, 97% 100%, 0 92%); padding-right: 30px; }
[data-theme="phantom"] .toast.err { border-left-color: var(--st-dropped); }
[data-theme="phantom"] .toast.out { transform: translateX(120%) rotate(-2deg); }
[data-theme="phantom"] .wipe { background: var(--accent); }
[data-theme="phantom"] .wipe::after { content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 22vw; background: #fff; }
[data-theme="phantom"] .wipe.go { animation: phantomWipe .5s cubic-bezier(.7,0,.3,1); }
@keyframes phantomWipe {
  0% { opacity: 1; transform: translateX(-140%) skewX(-22deg); }
  45% { opacity: 1; transform: translateX(-10%) skewX(-22deg); }
  100% { opacity: 1; transform: translateX(140%) skewX(-22deg); }
}
[data-theme="phantom"] .pending-banner { background: #000; border: 3px solid #fff; box-shadow: 5px 5px 0 var(--accent); font-weight: 600; }
[data-theme="phantom"] .empty-block { border: 3px dashed var(--accent); }
[data-theme="phantom"] .foot span { color: var(--accent2); }

/* =====================================================================
   THEME: WILDS  — glowing ancient tech over a quiet wild
   ===================================================================== */
[data-theme="wilds"] {
  --bg: #0e1418; --surface: rgba(17, 29, 35, .82); --surface2: rgba(27, 43, 51, .92); --line: rgba(110, 231, 240, .28);
  --text: #e6efe9; --muted: #8fa9a9; --accent: #5fe0ee; --accent2: #f3c969; --on-accent: #052024;
  --head: 'Marcellus SC', Georgia, serif; --body: 'Nunito Sans', system-ui, sans-serif; --radius: 8px;
  --st-watching: #5fe0ee; --st-completed: #f3c969; --st-plan: #9fb4b0; --st-dropped: #e7735f;
}
[data-theme="wilds"] body {
  background:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(95,224,238,.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 110%, rgba(243,201,105,.10), transparent 60%),
    linear-gradient(#10191e, #0a0f12);
  background-attachment: fixed;
}
[data-theme="wilds"] .bg-deco {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%235fe0ee' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M-50 420 C 80 380 140 460 260 420 S 460 330 650 390'/%3E%3Cpath d='M-50 460 C 90 420 150 500 270 460 S 470 370 650 430'/%3E%3Cpath d='M-50 500 C 100 460 160 540 280 500 S 480 410 650 470'/%3E%3Cellipse cx='420' cy='160' rx='120' ry='70'/%3E%3Cellipse cx='420' cy='160' rx='80' ry='44'/%3E%3Cellipse cx='420' cy='160' rx='40' ry='20'/%3E%3Cellipse cx='120' cy='140' rx='90' ry='50'/%3E%3Cellipse cx='120' cy='140' rx='50' ry='26'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(95,224,238,.025) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(95,224,238,.025) 0 1px, transparent 1px 56px);
}
[data-theme="wilds"] .bg-deco::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.55));
}
[data-theme="wilds"] .nav { background: rgba(9, 15, 18, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 24px rgba(95,224,238,.08); }
[data-theme="wilds"] .logo { letter-spacing: .32em; font-size: 26px; color: #eef6f2; text-shadow: 0 0 14px rgba(95,224,238,.55); }
[data-theme="wilds"] .logo span:first-child { color: var(--accent); }
[data-theme="wilds"] .logo::before { content: ''; width: 12px; height: 12px; margin-right: 12px; border: 2px solid var(--accent); transform: rotate(45deg); box-shadow: 0 0 10px var(--accent); }
[data-theme="wilds"] .nav-link { font-family: var(--head); letter-spacing: .08em; color: #cfe0dc; position: relative; transition: color .15s, text-shadow .15s; }
[data-theme="wilds"] .nav-link:hover, [data-theme="wilds"] .has-mega:hover > .nav-link { color: var(--accent); text-shadow: 0 0 10px rgba(95,224,238,.7); }
[data-theme="wilds"] .nav-link.active { color: var(--accent); }
[data-theme="wilds"] .nav-link.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); border-radius: 2px; }
[data-theme="wilds"] .nav-search input { border-radius: 999px; background: rgba(95,224,238,.05); }
[data-theme="wilds"] .nav-search input:focus { border-color: var(--accent); box-shadow: 0 0 14px rgba(95,224,238,.3); }
[data-theme="wilds"] .mega, [data-theme="wilds"] .drop { background: rgba(10, 18, 22, .96); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 30px rgba(95,224,238,.08); backdrop-filter: blur(10px); }
[data-theme="wilds"] .mega-head { font-family: var(--head); color: var(--accent2); border-bottom: 1px solid rgba(243,201,105,.25); border-radius: 0; }
[data-theme="wilds"] .mega-item, [data-theme="wilds"] .drop-item { border-radius: 6px; color: #cfe0dc; }
[data-theme="wilds"] .mega-item:hover, [data-theme="wilds"] .drop-item:hover, [data-theme="wilds"] .theme-opt:hover { background: rgba(95,224,238,.09); color: var(--accent); }
[data-theme="wilds"] .theme-opt { border-radius: 8px; }

[data-theme="wilds"] .btn, [data-theme="wilds"] .tab, [data-theme="wilds"] .pk { border-radius: 999px; background: rgba(95,224,238,.04); }
[data-theme="wilds"] .btn:hover, [data-theme="wilds"] .tab:hover, [data-theme="wilds"] .pk:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 16px rgba(95,224,238,.35); }
[data-theme="wilds"] .btn-primary, [data-theme="wilds"] .tab.on { background: linear-gradient(180deg, #7aeaf5, #35b4c3); color: var(--on-accent); border-color: transparent; font-weight: 800; box-shadow: 0 0 18px rgba(95,224,238,.3); }
[data-theme="wilds"] .btn-primary:hover { color: var(--on-accent); box-shadow: 0 0 26px rgba(95,224,238,.65); }
[data-theme="wilds"] .pk.on { box-shadow: 0 0 14px currentColor; }
[data-theme="wilds"] .pk.on.pk-watching { box-shadow: 0 0 14px rgba(95,224,238,.6); }
[data-theme="wilds"] .pk.on.pk-completed { box-shadow: 0 0 14px rgba(243,201,105,.6); }
[data-theme="wilds"] .big-search input { border-radius: 999px; padding-left: 24px; background: rgba(95,224,238,.04); }
[data-theme="wilds"] .big-search input:focus { border-color: var(--accent); box-shadow: 0 0 22px rgba(95,224,238,.25); }
[data-theme="wilds"] .mini, [data-theme="wilds"] .arrow { border-radius: 50%; }
[data-theme="wilds"] .mini:hover, [data-theme="wilds"] .arrow:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px rgba(95,224,238,.4); }

[data-theme="wilds"] .hero-title, [data-theme="wilds"] .page-title { letter-spacing: .06em; color: #f2f7f3; text-shadow: 0 0 24px rgba(95,224,238,.35); }
[data-theme="wilds"] .hero-title.big { letter-spacing: .28em; padding-left: .28em; }
[data-theme="wilds"] .kicker { color: var(--accent2); }
[data-theme="wilds"] .sec-title, [data-theme="wilds"] .res-title { letter-spacing: .06em; display: inline-flex; align-items: center; gap: 14px; }
[data-theme="wilds"] .sec-title::before, [data-theme="wilds"] .res-title::before { content: ''; width: 10px; height: 10px; border: 2px solid var(--accent); transform: rotate(45deg); box-shadow: 0 0 10px var(--accent); flex-shrink: 0; }
[data-theme="wilds"] .sec-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
[data-theme="wilds"] .row-title { color: var(--accent2); font-weight: 600; font-size: .92rem; letter-spacing: .14em; }
[data-theme="wilds"] .stat { border-radius: 10px; backdrop-filter: blur(6px); }
[data-theme="wilds"] .stat:hover { border-color: var(--accent); box-shadow: 0 0 18px rgba(95,224,238,.25); }
[data-theme="wilds"] .stat b { color: var(--accent); text-shadow: 0 0 12px rgba(95,224,238,.5); }

[data-theme="wilds"] .card-cover { border-radius: 8px; border: 1px solid var(--line); }
[data-theme="wilds"] .card:hover .card-cover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,.5), 0 0 22px rgba(95,224,238,.3); }
[data-theme="wilds"] .cover-badge { border-radius: 999px; background: var(--accent); }
[data-theme="wilds"] .cover-badge.soon { background: var(--accent2); color: #2a1d00; }
[data-theme="wilds"] .ucard, [data-theme="wilds"] .panel, [data-theme="wilds"] .rrow, [data-theme="wilds"] .lrow { backdrop-filter: blur(6px); box-shadow: inset 0 0 26px rgba(95,224,238,.04); }
[data-theme="wilds"] .ucard.fresh { border-color: rgba(95,224,238,.6); box-shadow: 0 0 22px rgba(95,224,238,.15); }
[data-theme="wilds"] .ucard-cover, [data-theme="wilds"] .rrow-cover, [data-theme="wilds"] .lrow-cover { border-radius: 6px; }
[data-theme="wilds"] .badge-new { border-radius: 999px; }
[data-theme="wilds"] .rrow, [data-theme="wilds"] .lrow { border: 1px solid rgba(110,231,240,.12); }
[data-theme="wilds"] .lrow { border-left: 3px solid var(--st-plan); }
[data-theme="wilds"] .lrow.s-watching { border-left-color: var(--st-watching); }
[data-theme="wilds"] .lrow.s-completed { border-left-color: var(--st-completed); }
[data-theme="wilds"] .lrow.s-dropped { border-left-color: var(--st-dropped); }
[data-theme="wilds"] .rrow:hover, [data-theme="wilds"] .lrow:hover { border-color: var(--line); background: var(--surface2); }
[data-theme="wilds"] .panel::before, [data-theme="wilds"] .panel::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid var(--accent); opacity: .8; }
[data-theme="wilds"] .panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
[data-theme="wilds"] .panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
[data-theme="wilds"] .panel-title { color: var(--accent2); letter-spacing: .06em; }
[data-theme="wilds"] .faq-item summary { font-family: var(--head); letter-spacing: .04em; font-weight: 400; }
[data-theme="wilds"] .toasts { left: 50%; right: auto; transform: translateX(-50%); align-items: center; }
[data-theme="wilds"] .toast { border-radius: 999px; background: rgba(9, 18, 22, .95); padding: 12px 26px; font-family: var(--head); letter-spacing: .05em; box-shadow: 0 0 24px rgba(95,224,238,.3); }
[data-theme="wilds"] .wipe { background: radial-gradient(circle at 50% 40%, rgba(95,224,238,.22), transparent 60%); }
[data-theme="wilds"] .wipe.go { animation: wildsPulse .6s ease-out; }
@keyframes wildsPulse { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
[data-theme="wilds"] .pending-banner { border-radius: 999px; backdrop-filter: blur(8px); }
[data-theme="wilds"] .empty-block { border-radius: 10px; }

/* =====================================================================
   THEME: ASHEN  — dim gold, gothic serif, faded grace
   ===================================================================== */
[data-theme="ashen"] {
  --bg: #0a0907; --surface: rgba(19, 16, 12, .8); --surface2: #18140e; --line: rgba(201, 169, 97, .32);
  --text: #ddd3bf; --muted: #8f8571; --accent: #c9a961; --accent2: #efdfb0; --on-accent: #15100a;
  --head: 'Cinzel', Georgia, serif; --body: 'EB Garamond', Georgia, serif; --radius: 0px;
  --st-watching: #c9a961; --st-completed: #9fb38a; --st-plan: #8a8172; --st-dropped: #a5513f;
  font-size: 18px;
}
[data-theme="ashen"] body {
  font-size: 18px;
  background:
    radial-gradient(ellipse 55% 45% at 50% -8%, rgba(222,184,96,.24), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 115%, rgba(110,70,25,.22), transparent 70%),
    #0a0907;
  background-attachment: fixed;
}
[data-theme="ashen"] .bg-deco::before {
  content: ''; position: absolute; left: 50%; top: -10vh; width: 2px; height: 70vh; transform: translateX(-50%);
  background: linear-gradient(rgba(239,223,176,.0), rgba(239,223,176,.25), rgba(239,223,176,0));
  box-shadow: 0 0 80px 30px rgba(214,178,94,.08);
}
[data-theme="ashen"] .bg-deco::after {
  content: ''; position: absolute; inset: 0; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="ashen"] .nav { background: linear-gradient(rgba(10,9,7,.97), rgba(10,9,7,.82)); backdrop-filter: blur(6px); }
[data-theme="ashen"] .nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
[data-theme="ashen"] .logo { font-weight: 700; font-size: 24px; letter-spacing: .42em; color: var(--accent2); text-shadow: 0 0 18px rgba(214,178,94,.45); }
[data-theme="ashen"] .nav-link { font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: #bfb39a; transition: color .2s, text-shadow .2s; }
[data-theme="ashen"] .nav-link:hover, [data-theme="ashen"] .has-mega:hover > .nav-link, [data-theme="ashen"] .nav-link.active { color: var(--accent2); text-shadow: 0 0 12px rgba(239,223,176,.6); }
[data-theme="ashen"] .nav-link.active::before { content: '◆ '; font-size: .6em; color: var(--accent); vertical-align: middle; }
[data-theme="ashen"] .nav-search input { background: rgba(0,0,0,.4); border-color: var(--line); font-style: italic; }
[data-theme="ashen"] .mega, [data-theme="ashen"] .drop { background: rgba(9,8,6,.98); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.8); }
[data-theme="ashen"] .mega-head { font-family: var(--head); font-size: .9rem; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); border-bottom: 1px solid var(--line); }
[data-theme="ashen"] .mega-item, [data-theme="ashen"] .drop-item { color: #c8bda6; transition: all .2s; }
[data-theme="ashen"] .mega-item:hover, [data-theme="ashen"] .drop-item:hover, [data-theme="ashen"] .theme-opt:hover { color: var(--accent2); background: radial-gradient(ellipse at left, rgba(201,169,97,.16), transparent 70%); padding-left: 16px; }
[data-theme="ashen"] .theme-opt b { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }

[data-theme="ashen"] .btn, [data-theme="ashen"] .tab, [data-theme="ashen"] .pk {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; background: transparent; color: #cfc3a9;
}
[data-theme="ashen"] .btn:hover, [data-theme="ashen"] .tab:hover, [data-theme="ashen"] .pk:hover {
  border-color: var(--accent); color: var(--accent2); text-shadow: 0 0 10px rgba(239,223,176,.6);
  background: radial-gradient(ellipse at center, rgba(201,169,97,.2), transparent 75%);
}
[data-theme="ashen"] .btn-primary, [data-theme="ashen"] .tab.on { border-color: var(--accent); color: var(--accent2); background: linear-gradient(rgba(201,169,97,.16), rgba(201,169,97,.04)); box-shadow: inset 0 0 14px rgba(201,169,97,.15); }
[data-theme="ashen"] .pk.on { text-shadow: none; }
[data-theme="ashen"] .picker.compact .pk { font-size: .7rem; }
[data-theme="ashen"] .input, [data-theme="ashen"] .big-search input { background: rgba(0,0,0,.45); }
[data-theme="ashen"] .big-search input { font-style: italic; font-size: 1.15rem; }
[data-theme="ashen"] .mini, [data-theme="ashen"] .arrow { color: var(--accent); }
[data-theme="ashen"] .mini:hover, [data-theme="ashen"] .arrow:hover { border-color: var(--accent); box-shadow: 0 0 12px rgba(201,169,97,.35); }

[data-theme="ashen"] .hero-title, [data-theme="ashen"] .page-title { text-transform: uppercase; letter-spacing: .14em; color: var(--accent2); text-shadow: 0 0 30px rgba(214,178,94,.35); font-weight: 400; }
[data-theme="ashen"] .hero-title.big { font-weight: 400; letter-spacing: .3em; padding-left: .3em; font-size: clamp(3rem, 11vw, 7rem); }
[data-theme="ashen"] .hero-guest .hero-title.big::after { content: ''; display: block; width: 260px; max-width: 60%; height: 1px; margin: 22px auto 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
[data-theme="ashen"] .hero-sub { font-style: italic; }
[data-theme="ashen"] .kicker { font-family: var(--head); color: var(--accent); letter-spacing: .3em; }
[data-theme="ashen"] .sec-title, [data-theme="ashen"] .res-title { text-transform: uppercase; letter-spacing: .2em; font-size: 1.35rem; color: var(--accent2); }
[data-theme="ashen"] .sec-title::before, [data-theme="ashen"] .res-title::before { content: '◆'; font-size: .55em; color: var(--accent); margin-right: 14px; vertical-align: middle; }
[data-theme="ashen"] .sec-head { position: relative; padding-bottom: 10px; }
[data-theme="ashen"] .sec-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(201,169,97,.15) 60%, transparent); }
[data-theme="ashen"] .row-title { font-family: var(--head); font-weight: 400; color: var(--accent); font-size: .8rem; letter-spacing: .24em; }
[data-theme="ashen"] .stat { background: transparent; border-width: 1px 0; border-image: linear-gradient(90deg, transparent, var(--accent), transparent) 1; text-align: center; }
[data-theme="ashen"] .stat b { color: var(--accent2); font-size: 2.1rem; }
[data-theme="ashen"] .stat span { font-family: var(--head); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; }
[data-theme="ashen"] .stat:hover { background: radial-gradient(ellipse at center, rgba(201,169,97,.14), transparent 70%); }

[data-theme="ashen"] .card-cover { border: 1px solid var(--line); filter: saturate(.75) brightness(.9); }
[data-theme="ashen"] .card:hover .card-cover { filter: none; border-color: var(--accent); box-shadow: 0 0 28px rgba(214,178,94,.3); }
[data-theme="ashen"] .card-title { font-weight: 600; }
[data-theme="ashen"] .cover-badge { font-family: var(--head); font-weight: 400; font-size: .62rem; letter-spacing: .2em; background: rgba(10,9,7,.85); color: var(--accent2); border: 1px solid var(--accent); }
[data-theme="ashen"] .ucard, [data-theme="ashen"] .panel { border-width: 1px 0; border-image: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent) 1; background: linear-gradient(90deg, transparent, rgba(19,16,12,.85) 12%, rgba(19,16,12,.85) 88%, transparent); }
[data-theme="ashen"] .ucard.fresh { background: linear-gradient(90deg, transparent, rgba(60,46,20,.6) 12%, rgba(30,24,14,.85) 88%, transparent); }
[data-theme="ashen"] .badge-new { font-family: var(--head); font-weight: 400; letter-spacing: .18em; font-size: .64rem; background: transparent; color: var(--accent); }
[data-theme="ashen"] .ucard.fresh .badge-new { background: transparent; color: var(--accent2); border-color: var(--accent2); text-shadow: 0 0 10px rgba(239,223,176,.6); }
[data-theme="ashen"] .rrow, [data-theme="ashen"] .lrow { background: linear-gradient(90deg, rgba(201,169,97,.06), transparent 70%); border: 0; border-bottom: 1px solid rgba(201,169,97,.14); margin-bottom: 0; padding: 12px 14px; }
[data-theme="ashen"] .lrow { border-left: 2px solid var(--st-plan); }
[data-theme="ashen"] .lrow.s-watching { border-left-color: var(--st-watching); }
[data-theme="ashen"] .lrow.s-completed { border-left-color: var(--st-completed); }
[data-theme="ashen"] .lrow.s-dropped { border-left-color: var(--st-dropped); }
[data-theme="ashen"] .rrow:hover, [data-theme="ashen"] .lrow:hover { background: linear-gradient(90deg, rgba(201,169,97,.16), transparent 75%); }
[data-theme="ashen"] .rrow-title, [data-theme="ashen"] .lrow-title { font-weight: 600; font-size: 1.15rem; color: #eee4cf; }
[data-theme="ashen"] .rrow-cover, [data-theme="ashen"] .lrow-cover, [data-theme="ashen"] .ucard-cover { border: 1px solid var(--line); }
[data-theme="ashen"] .panel-title { text-transform: uppercase; letter-spacing: .16em; font-size: 1.1rem; color: var(--accent2); }
[data-theme="ashen"] .faq-item summary { font-family: var(--head); font-weight: 400; letter-spacing: .06em; color: var(--accent2); }
[data-theme="ashen"] .toasts { top: 42%; bottom: auto; left: 0; right: 0; align-items: stretch; }
[data-theme="ashen"] .toast {
  max-width: none; width: 100%; text-align: center; padding: 18px; border: 0; border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.92) 25%, rgba(0,0,0,.92) 75%, transparent);
  font-family: var(--head); letter-spacing: .22em; text-transform: uppercase; font-size: .95rem; color: var(--accent2);
  text-shadow: 0 0 14px rgba(239,223,176,.5); position: relative;
}
[data-theme="ashen"] .toast::before, [data-theme="ashen"] .toast::after { content: ''; position: absolute; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
[data-theme="ashen"] .toast::before { top: 0; }
[data-theme="ashen"] .toast::after { bottom: 0; }
[data-theme="ashen"] .toast.err { color: #e3a08f; }
[data-theme="ashen"] .toast.out { transform: none; }
[data-theme="ashen"] .wipe { background: #000; }
[data-theme="ashen"] .wipe.go { animation: ashenFade .55s ease; }
@keyframes ashenFade { 0% { opacity: .85; } 100% { opacity: 0; } }
[data-theme="ashen"] .pending-banner { font-style: italic; border-width: 1px 0; border-image: linear-gradient(90deg, transparent, var(--accent), transparent) 1; background: rgba(0,0,0,.85); }
[data-theme="ashen"] .foot span { font-weight: 400; letter-spacing: .35em; color: var(--accent); }
[data-theme="ashen"] .spin { border-color: var(--accent); border-right-color: transparent; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .nav-inner { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-links { display: none; order: 10; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-search { order: 9; max-width: none; flex-basis: 100%; margin: 0; }
  .mega { position: static; min-width: 0; grid-template-columns: repeat(2, 1fr); opacity: 1; visibility: visible; transform: none !important; display: none; box-shadow: none !important; }
  .nav-links.open .mega { display: grid; }
  .theme-drop { right: -60px; }
  .page { padding: 20px 16px 50px; }
}
@media (max-width: 720px) {
  :root { --card-w: 128px; }
  .rrow { flex-wrap: wrap; }
  .rrow .picker { width: 100%; }
  .flines { width: 100%; }
  .fline { flex-wrap: wrap; justify-content: flex-start; }
  .fline-label { flex-direction: row; gap: 8px; align-items: baseline; width: 100%; text-align: left; }
  .fline-label small { max-width: none; }
  .rrow .picker .pk { flex: 1; justify-content: center; padding: 6px 4px; font-size: .78rem; }
  .lrow { flex-wrap: wrap; }
  .lrow-main { flex-basis: calc(100% - 80px); }
  .lrow-prog { margin-left: 72px; }
  .big-search { flex-direction: column; }
  .ucard { flex-basis: 300px; }
  .hero-user { align-items: flex-start; }
  .toasts { left: 16px; right: 16px; align-items: stretch; }
}
