@font-face {
  font-family: "Oswald";
  src: url("/static/fonts/Oswald-VF.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --surface: #131315;
  --surface-2: #1a1a1d;
  --surface-3: #222226;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f5f5f4;
  --muted: #a8a8a3;
  --dim: #6f6f6b;
  --accent: #ffd21f;
  --accent-ink: #141100;
  --accent-soft: rgba(255, 210, 31, .12);
  --ok: #4ade80;
  --bad: #ff6b6b;
  --radius: 18px;
  --radius-s: 12px;
  --cn: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --num: "Oswald", "DIN Alternate", "Bahnschrift", var(--cn);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--cn);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* perspective grid, echoing the video backdrop */
.grid-floor {
  position: fixed; inset: auto 0 0 0; height: 62vh; z-index: -1; pointer-events: none;
  perspective: 520px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
          mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
}
.grid-floor::before {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 140%;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(62deg);
  transform-origin: bottom center;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255,210,31,.4), 0 6px 20px rgba(255,210,31,.18);
}
.brand-mark svg { width: 12px; height: 12px; margin-left: 2px; }
.badge-beta {
  font: 500 10px/1 var(--num); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(255,210,31,.35); padding: 4px 6px 3px; border-radius: 6px;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav button {
  position: relative; padding: 8px 14px; border-radius: 10px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav button[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.07); }
.nav .count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 600 11px/1 var(--num);
  vertical-align: 1px;
}
.who { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: var(--text); font-size: 13px; border: 1px solid var(--line-2);
}
.link-btn { color: var(--dim); font-size: 13px; }
.link-btn:hover { color: var(--text); }
@media (max-width: 720px) {
  .top .wrap { gap: 10px; }
  .brand-name, .who .name, .badge-beta { display: none; }
  .nav button { padding: 8px 10px; }
}

/* ------------------------------------------------ type */
.eyebrow { font: 500 12px/1 var(--num); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.page-head { padding: 56px 0 28px; }
.page-head h1 {
  margin: 14px 0 10px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; font-weight: 600; letter-spacing: -.01em;
}
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head p { margin: 0; color: var(--muted); max-width: 560px; }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 600; letter-spacing: .02em;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 28px rgba(255,210,31,.18); }
.btn-primary:hover { box-shadow: 0 10px 36px rgba(255,210,31,.3); }
.btn-primary:disabled { background: var(--surface-3); color: var(--dim); box-shadow: none; cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ------------------------------------------------ filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--line-2); color: var(--muted);
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { font: 500 12px var(--num); margin-left: 6px; opacity: .6; }

/* ------------------------------------------------ catalog */
.cat { margin-bottom: 56px; }
.cat-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.cat-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.cat-head .rule { flex: 1; height: 1px; background: var(--line); align-self: center; }

.feature {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.media video, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media .play {
  position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 6px; border-radius: 20px;
  background: rgba(10,10,10,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14); font-size: 14px; transition: background .2s;
}
.media .play:hover { background: rgba(10,10,10,.85); }
.media .play i {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: grid; place-items: center;
}
.media .play svg { width: 10px; height: 10px; margin-left: 2px; }
.feature-body { padding: 34px 34px 30px; display: flex; flex-direction: column; }
.status-live {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ok);
  font-family: var(--num); letter-spacing: .16em; text-transform: uppercase;
}
.status-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 4px rgba(74,222,128,.15);
}
.feature h3 { margin: 16px 0 10px; font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: .01em; }
.feature p { margin: 0; color: var(--muted); }
.specs { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.specs li { background: var(--surface); padding: 12px 14px; font-size: 13px; color: var(--muted); }
.specs li b { display: block; color: var(--text); font-weight: 500; font-size: 14px; }
.feature .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.feature .actions .btn-primary { flex: 1; min-width: 160px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-body { padding: 24px 20px 22px; }
  .feature h3 { font-size: 24px; }
}

.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card-soon {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.card-soon .media { aspect-ratio: 16 / 9; }
.card-soon .media img { filter: grayscale(.85) brightness(.55); }
.card-soon .media.empty {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,210,31,.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px), #101012;
}
.card-soon .tag {
  position: absolute; top: 14px; left: 14px; font: 500 11px/1 var(--num); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); background: rgba(0,0,0,.55); border: 1px solid var(--line-2); padding: 6px 9px 5px; border-radius: 7px;
}
.card-soon .body { padding: 18px 20px 20px; }
.card-soon h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.card-soon p { margin: 0; font-size: 13.5px; color: var(--dim); }
.card-soon .mini-specs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-soon .mini-specs span { font-size: 12px; color: var(--dim); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }

/* ------------------------------------------------ jobs */
.jobs { display: grid; gap: 12px; padding-bottom: 80px; }
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  transition: border-color .3s;
}
.job.is-running { border-color: rgba(255,210,31,.22); }
.job-title { font-size: 17px; font-weight: 600; line-height: 1.4; }
.job-meta { margin-top: 4px; font-size: 13px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.job-actions { display: flex; gap: 8px; align-items: center; }
.job-error {
  grid-column: 1 / -1; font-size: 13px; color: #ffb4b4; background: rgba(255,107,107,.08);
  border: 1px solid rgba(255,107,107,.18); border-radius: 10px; padding: 10px 12px; word-break: break-word;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 13px;
  font-size: 12.5px; border: 1px solid var(--line-2); color: var(--muted);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.running { color: var(--accent); border-color: rgba(255,210,31,.3); }
.pill.running::before { animation: pulse 1.4s infinite; }
.pill.done { color: var(--ok); border-color: rgba(74,222,128,.3); }
.pill.failed { color: var(--bad); border-color: rgba(255,107,107,.3); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.steps { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.step { min-width: 0; }
.step .bar { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; position: relative; }
.step.done .bar { background: var(--accent); }
.step.now .bar::after {
  content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); border-radius: 2px;
  animation: slide 1.6s var(--ease) infinite;
}
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.step .label { margin-top: 8px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.now .label { color: var(--text); }
.step.done .label { color: var(--muted); }
.job.is-failed .step .bar { background: var(--surface-3); }
.job.is-failed .step.done .bar { background: rgba(255,107,107,.45); }
.step .dur { font-family: var(--num); letter-spacing: .02em; }
.job-detail {
  grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--muted);
  padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.job-detail b { color: var(--accent); font-weight: 600; white-space: nowrap; }
.job-detail span { min-width: 0; }
.timer { font: 500 13px var(--num); letter-spacing: .04em; color: var(--muted); }
@media (max-width: 640px) {
  .job { grid-template-columns: 1fr; padding: 18px; }
  .step .label { font-size: 11px; }
  .job-actions .btn { flex: 1; }
  .job-actions { width: 100%; }
}

.empty {
  text-align: center; padding: 80px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted);
}
.empty h3 { margin: 0 0 8px; color: var(--text); font-weight: 600; }
.empty p { margin: 0 0 22px; }

/* admin table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 80px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--dim); font-weight: 500; font-size: 12px; letter-spacing: .06em; }
td.title { white-space: normal; min-width: 220px; }
tr:last-child td { border-bottom: 0; }
td .num { font-family: var(--num); }

/* ------------------------------------------------ sheet (generate) */
.scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(560px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s var(--ease);
}
.sheet.open { transform: none; }
.sheet-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 16px; }
.sheet-head h2 { margin: 6px 0 0; font-size: 22px; font-weight: 600; }
.sheet-head .x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.sheet-head .x:hover { background: rgba(255,255,255,.06); color: var(--text); }
.sheet-body { flex: 1; overflow-y: auto; padding: 8px 26px 28px; overscroll-behavior: contain; }
.sheet-foot {
  border-top: 1px solid var(--line); padding: 16px 26px calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 16px; background: var(--surface);
}
.sheet-foot .summary { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.sheet-foot .summary b { color: var(--text); font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .sheet { top: auto; height: 92vh; width: 100vw; border-left: 0; border-top: 1px solid var(--line-2);
    border-radius: 20px 20px 0 0; transform: translateY(100%); }
  .sheet-head, .sheet-body, .sheet-foot { padding-left: 16px; padding-right: 16px; }
}

.field { padding-top: 22px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.field-head h4 { margin: 0; font-size: 14px; font-weight: 600; }
.field-head h4 .idx { font: 500 12px var(--num); color: var(--accent); margin-right: 8px; letter-spacing: .1em; }
.field-head .hint { font-size: 12.5px; color: var(--dim); }

.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: 0 0 auto; width: 64px; padding: 10px 0 9px; border-radius: 12px; border: 1px solid var(--line-2);
  text-align: center; transition: all .2s var(--ease);
}
.date:hover { border-color: rgba(255,255,255,.25); }
.date .d { display: block; font: 500 20px/1.1 var(--num); letter-spacing: .02em; }
.date .w { display: block; font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.date[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.date[aria-pressed="true"] .w { color: rgba(20,17,0,.65); }

.league { margin-top: 14px; }
.league-name { font-size: 12px; color: var(--dim); letter-spacing: .06em; margin: 0 0 6px 2px; display: flex; gap: 8px; }
.league-name span { color: var(--muted); }
.match {
  width: 100%; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  margin-bottom: 6px; text-align: left; transition: border-color .2s, background .2s;
}
.match:hover { border-color: var(--line-2); background: #1d1d21; }
.match .t { font: 500 15px var(--num); color: var(--muted); letter-spacing: .03em; }
.match .teams { font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .teams i { font-style: normal; color: var(--dim); margin: 0 6px; font-size: 12px; }
.match .sel {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; font: 600 11px var(--num);
}
.match[aria-pressed="true"] { border-color: rgba(255,210,31,.55); background: var(--accent-soft); }
.match[aria-pressed="true"] .sel { width: auto; padding: 0 8px; border-radius: 11px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.match:disabled { opacity: .4; cursor: not-allowed; }
.more { width: 100%; margin-top: 10px; height: 40px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; }
.more:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.search {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2);
  padding: 0 14px; outline: none; font-size: 14px; margin-bottom: 4px;
}
.search:focus { border-color: rgba(255,210,31,.5); }
.search::placeholder { color: var(--dim); }

.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.voice {
  padding: 14px 12px; border-radius: 12px; border: 1px solid var(--line-2); text-align: left; transition: all .2s var(--ease);
}
.voice b { display: block; font-weight: 600; font-size: 14.5px; }
.voice span { font-size: 12px; color: var(--dim); }
.voice:hover { border-color: rgba(255,255,255,.25); }
.voice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.voice[aria-pressed="true"] span { color: var(--muted); }

.skeleton { height: 48px; border-radius: 12px; margin-bottom: 6px;
  background: linear-gradient(90deg, var(--surface-2), #202024, var(--surface-2)); background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.note { font-size: 13px; color: var(--dim); padding: 18px 0; }

/* ------------------------------------------------ modal (video / log) */
.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background: rgba(0,0,0,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.modal video { width: min(1100px, 100%); max-height: 82vh; border-radius: 14px; background: #000; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.modal .x { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.modal .x:hover { background: rgba(255,255,255,.18); }
.modal pre {
  width: min(1000px, 100%); max-height: 80vh; overflow: auto; margin: 0; padding: 20px; border-radius: 14px;
  background: #0f0f11; border: 1px solid var(--line-2); font: 12px/1.55 var(--mono); color: #d4d4d0; white-space: pre-wrap; word-break: break-all;
}

/* ------------------------------------------------ login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(400px, 100%); }
.login-card .brand { justify-content: center; margin-bottom: 34px; font-size: 18px; }
.login-card .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.login-card .brand-mark svg { width: 15px; height: 15px; }
.login-card h1 { text-align: center; margin: 0 0 8px; font-size: 30px; font-weight: 600; }
.login-card .sub { text-align: center; color: var(--muted); margin: 0 0 34px; }
.input {
  display: block; width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(19,19,21,.85); padding: 0 16px; outline: none; margin-bottom: 10px; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: rgba(255,210,31,.6); box-shadow: 0 0 0 4px rgba(255,210,31,.08); }
.input::placeholder { color: var(--dim); }
.login-card .btn { width: 100%; height: 50px; margin-top: 8px; }
.form-error { color: var(--bad); font-size: 13px; min-height: 20px; margin-top: 12px; text-align: center; }
.login-foot { margin-top: 40px; text-align: center; font-size: 12px; color: var(--dim); }

/* ------------------------------------------------ toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: all .3s var(--ease); pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); color: #1a0000; }

.fade-in { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.dry-banner {
  background: repeating-linear-gradient(135deg, #3a2a00 0 12px, #2c2000 12px 24px); color: var(--accent);
  text-align: center; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-bottom: 1px solid rgba(255,210,31,.35);
}

.filters { display: flex; gap: 8px; align-items: center; }
.filters .search { flex: 1; min-width: 0; }
.chip { flex: none; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font-size: 13.5px; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.chip[aria-pressed="true"] { background: #ff5a4f; border-color: #ff5a4f; color: #fff; }
.match .jc { font-style: normal; font-size: 11px; line-height: 1; margin-left: 8px; padding: 3px 6px; border-radius: 5px; background: rgba(255,90,79,.16); color: #ff7a70; letter-spacing: .02em; vertical-align: 1px; }
