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

:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --surface: #15171b;
  --surface-2: #1d2025;
  --surface-3: #282c33;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f5f4f0;
  --muted: #adb0b6;
  --dim: #858992;
  --accent: #ffd21f;
  --accent-text: #ffd21f;
  --accent-ink: #141100;
  --accent-soft: rgba(255, 210, 31, .12);
  --ok: #4ade80;
  --bad: #ff6b6b;
  --top-bg: rgba(12,13,16,.88);
  --basket-bg: rgba(21,23,27,.9);
  --hover-bg: rgba(255,255,255,.045);
  --active-bg: rgba(255,255,255,.075);
  --grid-line: rgba(255,255,255,.045);
  --error-text: #ffb4b4;
  --paper-shadow: 0 16px 48px rgba(0,0,0,.12);
  --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);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4ef;
  --surface: #fff;
  --surface-2: #f1f0ea;
  --surface-3: #e9e7df;
  --line: rgba(32,35,41,.08);
  --line-2: rgba(32,35,41,.15);
  --text: #202329;
  --muted: #636871;
  --dim: #777b82;
  --accent-text: #896600;
  --accent-soft: #faf2d5;
  --ok: #16834b;
  --bad: #c63838;
  --top-bg: rgba(245,244,239,.9);
  --basket-bg: rgba(255,255,255,.8);
  --hover-bg: rgba(32,35,41,.035);
  --active-bg: rgba(32,35,41,.065);
  --grid-line: rgba(32,35,41,.035);
  --error-text: #a42c2c;
  --paper-shadow: 0 12px 36px rgba(25,28,33,.045);
}

* { 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, textarea, select { 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(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 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: var(--top-bg);
  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-text); 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: var(--hover-bg); }
.nav button[aria-current="page"] { color: var(--text); background: var(--active-bg); }
.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); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12px; white-space: nowrap; }
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-theme { position: absolute; top: 24px; right: 28px; }
@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-text); }
.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: var(--hover-bg); }
.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: var(--error-text); 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-text); 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: var(--hover-bg); border: 1px solid var(--line);
}
.job-detail b { color: var(--accent-text); 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-text); 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-text); 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: var(--surface-2); }
.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-text); 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; }
.styles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.visuals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .visuals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.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-text); 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), var(--surface-3), 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: var(--surface); 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; }
.login-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--line-2); border-radius: 12px; }
.login-tabs button { padding: 10px 6px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.login-tabs button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.login-label { display: block; margin: 14px 0 8px; color: var(--muted); font-size: 13px; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; min-width: 0; margin-bottom: 0; }
.login-card .code-row .btn { width: 126px; flex: none; margin-top: 0; padding: 0 10px; font-size: 13px; }
.login-hint { margin: 16px 0 10px; color: var(--dim); font-size: 13px; line-height: 1.7; }
.form-status { margin-top: 14px; color: var(--ok); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.form-status:empty { margin-top: 0; }
.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: var(--accent-soft); color: var(--accent-text);
  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; }

/* ------------------------------------------------ service and template settings */
.settings-form { display: grid; gap: 20px; padding-bottom: 48px; }
.settings-card { padding: 28px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; }
.settings-card h2 { margin: 0 0 16px; font-size: 21px; }
.settings-card p, .settings-save p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 20px; }
.settings-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.settings-field { display: block; min-width: 0; }
.settings-field > span { display: block; color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.settings-field .input { font-size: 14px; margin-bottom: 14px; }
.settings-field input[readonly] { color: var(--dim); }
.settings-field select { color: var(--text); }
.settings-save { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.settings-save p { margin: 0; }
.settings-save .btn { flex-shrink: 0; }
.settings-form .form-error { text-align: left; margin: 0; min-height: 0; }
.settings-form [hidden] { display: none; }
.voice-editor { margin: 12px 0; }
.voice-editor-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto; gap: 12px; align-items: center; }
.voice-editor-row .link-btn { color: var(--muted); }
.voice-public { white-space: nowrap; color: var(--muted); font-size: 12px; }
.voice-public input { margin-right: 5px; accent-color: var(--accent-text); }
.template-manager { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 24px; align-items: start; }
.template-list { display: grid; gap: 10px; }
.template-list > .btn { margin-bottom: 8px; }
.template-item { padding: 18px; border: 1px solid var(--line-2); border-radius: 12px; text-align: left; background: var(--surface); }
.template-item b { display: block; font-size: 14px; margin-bottom: 6px; }
.template-item span { font-size: 11px; color: var(--muted); }
.template-item[aria-current="true"] { border-color: var(--accent-text); background: var(--accent-soft); }
.sample-input { display: flex; align-items: center; gap: 12px; }
.sample-input > .settings-field { flex: 1; }
.upload-button { position: relative; overflow: hidden; flex-shrink: 0; cursor: pointer; }
.upload-button input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.sample-preview { display: flex; gap: 12px; flex-wrap: wrap; }
.sample-preview img, .sample-preview video { width: 220px; max-width: 100%; max-height: 140px; object-fit: contain; border-radius: 8px; background: #000; }
.duration-row { display: grid; grid-template-columns: 44px 1fr 1fr; align-items: center; gap: 12px; }
.duration-row > b { font-size: 13px; }
.settings-loading { color: var(--muted); padding: 20px 0; }

/* ------------------------------------------------ production statistics */
.stats-toolbar { display: flex; align-items: end; gap: 12px; margin: 0 0 22px; }
.stats-toolbar label { color: var(--muted); font-size: 12px; }
.stats-toolbar .input { display: block; width: 175px; margin-top: 7px; color-scheme: inherit; }
.stats-dashboard { display: grid; gap: 20px; padding-bottom: 80px; }
.stats-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stats-kpi { min-height: 160px; padding: 23px 25px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); display: flex; flex-direction: column; }
.stats-kpi.highlight { border-color: rgba(255,210,31,.35); background: linear-gradient(135deg, rgba(255,210,31,.14), var(--surface) 75%); }
.stats-kpi > span { color: var(--muted); font-size: 13px; }
.stats-kpi strong { font: 500 54px/1.12 var(--num); margin: 10px 0 4px; letter-spacing: -.02em; }
.stats-kpi.highlight strong { color: var(--accent-text); }
.stats-kpi small { color: var(--dim); font-size: 11px; margin-top: auto; }
.stats-panel { border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); overflow: hidden; }
.stats-panel-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 22px 25px 17px; }
.stats-panel-head h2 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 7px 0 0; }
.stats-panel-head > span { color: var(--dim); font-size: 12px; white-space: nowrap; }
.stats-template-head, .stats-template-row { display: grid; grid-template-columns: minmax(170px, 1fr) 80px 80px minmax(110px, .65fr); align-items: center; gap: 16px; padding: 11px 25px; }
.stats-template-head { color: var(--dim); font-size: 11px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-template-row { min-height: 68px; border-bottom: 1px solid var(--line); }
.stats-template-row:last-child { border-bottom: 0; }
.stats-template-name b, .stats-template-name small { display: block; }
.stats-template-name b { font-size: 14px; font-weight: 600; }
.stats-template-name small { color: var(--dim); font-size: 11px; margin-top: 2px; }
.stats-template-row > strong { font: 500 22px/1 var(--num); }
.stats-bar, .stats-months i { height: 7px; border-radius: 10px; background: var(--surface-3); overflow: hidden; }
.stats-bar i, .stats-months em { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.stats-table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.stats-daily-table { min-width: 720px; }
.stats-daily-table th, .stats-daily-table td { text-align: right; }
.stats-daily-table th:first-child, .stats-daily-table td:first-child { text-align: left; }
.stats-daily-table th { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.stats-daily-table td { color: var(--muted); }
.stats-daily-table td:first-child { color: var(--text); font-family: var(--num); }
.stats-day-total { display: grid; justify-items: end; gap: 4px; }
.stats-day-total b { color: var(--text); font: 500 17px/1 var(--num); }
.stats-day-total i { display: block; height: 3px; border-radius: 3px; background: var(--accent); }
.stats-months { border-top: 1px solid var(--line); }
.stats-months button { display: grid; grid-template-columns: 120px 1fr 60px; align-items: center; gap: 20px; width: 100%; padding: 15px 25px; text-align: left; border-bottom: 1px solid var(--line); color: var(--muted); }
.stats-months button:last-child { border-bottom: 0; }
.stats-months button:hover, .stats-months button[aria-current="true"] { background: var(--accent-soft); color: var(--text); }
.stats-months strong { color: var(--text); text-align: right; font: 500 17px/1 var(--num); }
@media (max-width: 960px) {
  .top .wrap { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 8px; gap: 8px 12px; }
  .top .nav { order: 3; flex: 0 0 100%; width: 100%; overflow-x: auto; }
  .top .nav button { flex: 0 0 auto; white-space: nowrap; }
  .top .who { margin-left: auto; }
  .template-manager { grid-template-columns: 1fr; }
  .template-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .settings-card { padding: 20px; }
  .settings-grid { grid-template-columns: 1fr; }
  .voice-editor-row { grid-template-columns: 1fr 1fr; }
  .settings-save { align-items: stretch; flex-direction: column; }
  .stats-kpis { grid-template-columns: 1fr 1fr; }
  .stats-kpi { min-height: 130px; padding: 18px; }
  .stats-kpi:last-child { grid-column: 1 / -1; min-height: 110px; }
  .stats-kpi strong { font-size: 42px; }
  .stats-panel-head { padding: 19px 17px 15px; }
  .stats-template-head, .stats-template-row { grid-template-columns: minmax(100px, 1fr) 48px 48px; gap: 8px; padding-left: 17px; padding-right: 17px; }
  .stats-template-head span:last-child, .stats-template-row .stats-bar { display: none; }
  .stats-months button { padding-left: 17px; padding-right: 17px; grid-template-columns: 110px 1fr 52px; gap: 10px; }
}

/* ------------------------------------------------ sample-first creation */
.sample-baskets { display: grid; gap: 26px; padding: 36px 0 80px; }
.sample-basket { padding: 22px; border: 1px solid var(--line-2); border-radius: 24px; background: var(--basket-bg); }
.sample-basket-head { display: flex; align-items: center; gap: 14px; padding: 2px 0 20px; }
.sample-basket-index { font: 500 14px var(--num); color: var(--accent-text); letter-spacing: .08em; }
.sample-basket-head h2 { flex: 1; min-width: 0; margin: 0; font-size: clamp(19px, 2.5vw, 26px); line-height: 1.3; font-weight: 600; }
.sample-basket-count { color: var(--dim); font-size: 12px; white-space: nowrap; }
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sample-basket[data-category="fun"] .sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sample-card { overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.sample-card .media { aspect-ratio: 16 / 9; }
.sample-card .media .play { left: 16px; bottom: 16px; width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; color: var(--accent-ink); background: var(--accent); }
.sample-card .media .play svg { margin-left: 3px; width: 13px; height: 13px; }
.sample-card > .btn { width: calc(100% - 32px); margin: 16px; }
.template-top { display: flex; justify-content: space-between; align-items: center; padding: 30px 0 20px; color: var(--muted); font-size: 13px; }
.template-top .link-btn { color: var(--text); font-size: 14px; }
.template-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.template-intro .media { aspect-ratio: 16 / 9; }
.template-intro.compact { grid-template-columns: 220px 1fr; }
.template-intro.compact .template-copy { padding: 20px 26px; }
.template-intro.compact h1 { font-size: 25px; margin: 9px 0 0; }
.template-intro.compact p, .template-intro.compact .template-specs { display: none; }
.template-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
.template-copy h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; margin: 16px 0; }
.template-copy p { color: var(--muted); margin: 0; }
.template-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.template-specs span { border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 9px; color: var(--muted); font-size: 12px; }
.template-form { max-width: 860px; margin: 28px auto 80px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.template-form .sheet-body { overflow: visible; padding-bottom: 30px; }
.template-form .sheet-foot { position: sticky; bottom: 0; z-index: 2; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { padding: 18px; border: 1px solid var(--line-2); border-radius: 12px; text-align: left; background: var(--surface-2); }
.mode b, .mode span { display: block; }
.mode b { display: flex; align-items: center; gap: 8px; }
.mode-recommend { padding: 3px 7px; border-radius: 5px; color: var(--accent-text); background: var(--accent-soft); font: 600 11px/1.2 var(--cn); }
.mode span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.mode[aria-pressed="true"] { border-color: var(--accent-text); background: var(--accent-soft); }
.voice-option { display: flex; flex-direction: column; min-width: 0; }
.voice-option .voice { flex: 1; }
.voice-preview { margin-top: 6px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--accent-text); font-size: 12px; }
.voice-preview:hover { background: var(--accent-soft); }
.voice-player { display: block; width: 100%; margin-top: 12px; }
.voice-player[hidden] { display: none; }
.manuscript-workspace { max-width: 1040px; margin: 36px auto 80px; scroll-margin-top: 100px; }
.manuscript-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.manuscript-heading h2 { margin: 10px 0 0; font-size: 32px; line-height: 1.2; letter-spacing: -.02em; }
.manuscript-workspace .job { margin-bottom: 22px; }
.manuscript-placeholder { padding: 30px; margin-top: 22px; border: 1px dashed var(--line-2); border-radius: 16px; background: var(--hover-bg); }
.manuscript-placeholder[hidden] { display: none; }
.manuscript-placeholder h3 { font-size: 20px; margin: 10px 0 8px; }
.manuscript-placeholder p, .manuscript-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.manuscript-note { margin-top: 16px; }
.writing-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); animation: writing-pulse 1.8s ease-in-out infinite; }
@keyframes writing-pulse { 50% { opacity: .35; } }
.manuscript-paper { border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: var(--paper-shadow); overflow: hidden; }
.manuscript-paper-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.manuscript-paper-head > span:last-child { color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.manuscript-text, .manuscript-approved { width: 100%; padding: 18px 24px; font: 14px/1.65 var(--cn); color: var(--text); background: transparent; }
.manuscript-text { display: block; min-height: 260px; border: 0; outline: none; resize: none; overflow: hidden; }
.manuscript-text:focus { box-shadow: inset 3px 0 0 var(--accent); }
.manuscript-text:disabled { opacity: .7; }
.manuscript-approved { white-space: pre-wrap; overflow-wrap: anywhere; }
.script-actions { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); background: var(--bg); }
.script-actions span { margin-right: auto; color: var(--muted); font-size: 13px; }
@media (max-width: 980px) { .sample-basket[data-category="fun"] .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .template-intro { grid-template-columns: 1fr; } .sample-basket .sample-grid, .sample-basket[data-category="fun"] .sample-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sample-baskets { padding-top: 18px; gap: 18px; } .sample-basket { padding: 14px; border-radius: 18px; } .sample-basket-head { gap: 9px; padding-bottom: 14px; } .sample-basket-head h2 { font-size: 18px; } .template-copy { padding: 22px; } .template-form .sheet-head, .template-form .sheet-body, .template-form .sheet-foot { padding-left: 16px; padding-right: 16px; } .mode-options { grid-template-columns: 1fr; } .script-actions .btn { flex: 1; } }
.template-notice { max-width: 860px; margin: 28px auto 0; padding: 14px 18px; border: 1px solid rgba(255,210,31,.3); border-radius: 12px; color: var(--accent-text); background: var(--accent-soft); font-size: 13px; }

@media (max-width: 640px) {
  .template-intro.compact { grid-template-columns: 120px minmax(0, 1fr); }
  .template-intro.compact .template-copy { padding: 16px; }
  .template-intro.compact h1 { font-size: 19px; }
  .template-intro.compact .eyebrow { font-size: 9px; letter-spacing: .05em; }
  .manuscript-workspace { margin-top: 26px; scroll-margin-top: 125px; }
  .manuscript-heading h2 { font-size: 28px; }
  .manuscript-paper-head { padding: 12px 16px; }
  .manuscript-text, .manuscript-approved { padding: 16px; font-size: 14px; line-height: 1.65; }
  .manuscript-text { min-height: 260px; }
  .manuscript-placeholder { padding: 22px; }
  .script-actions > span { flex-basis: 100%; }
  .script-actions .btn-primary { flex: 1.5; }
  .who { gap: 9px; }
  .login-theme { top: 16px; right: 16px; }
}
:root[data-theme="light"] .btn-primary { box-shadow: 0 5px 16px rgba(170,133,0,.1); }
:root[data-theme="light"] .sample-card { box-shadow: var(--paper-shadow); }
:root[data-theme="light"] .modal .x { color: #fff; }
:root[data-theme="light"] .toast.err { color: #fff; }


/* ------------------------------------------------ motion showcase begin */
.sample-grid.showcase-grid { grid-template-columns: 1fr; gap: 24px; }
.showcase-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.showcase-media { min-width: 0; align-self: start; background: var(--surface-2); }
.showcase-media .media { aspect-ratio: 16 / 9; }
.showcase-media .media video, .showcase-media .media img { object-fit: contain; }
.showcase-media .media .play { gap: 10px; height: 42px; padding: 0 16px; background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 3px 16px rgba(0,0,0,.2); font-size: 12px; font-weight: 600; }
.showcase-media .media .play svg { width: 11px; height: 11px; }
.showcase-copy { display: flex; flex-direction: column; padding: 26px 30px; min-width: 0; }
.showcase-copy h3 { margin: 0 0 13px; font-size: 30px; line-height: 1.15; letter-spacing: -.025em; }
.showcase-copy .showcase-headline { margin: 0 0 9px; color: var(--accent-text); font-size: 18px; font-weight: 600; line-height: 1.5; }
.showcase-copy .showcase-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.showcase-cta { padding-top: 22px; margin-top: auto; }
.showcase-cta .btn { width: 100%; }
.showcase-gallery { display: flex; flex-wrap: wrap; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); }
.showcase-thumb { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 5px 12px 5px 5px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 12px; text-align: left; }
.showcase-thumb img { display: block; width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #000; }
.showcase-thumb[aria-pressed="true"] { color: var(--text); border-color: var(--accent-text); background: var(--accent-soft); }
.showcase-evidence { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 15px; margin: 18px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.showcase-evidence > a { display: block; overflow: hidden; border-radius: 7px; background: #fff; }
.showcase-evidence img { display: block; width: 100%; height: 112px; object-fit: contain; }
.showcase-evidence figcaption { min-width: 0; display: grid; gap: 6px; }
.showcase-evidence b { font-size: 12px; font-weight: 600; }
.showcase-evidence span { color: var(--muted); font-size: 11px; line-height: 1.65; }
.showcase-evidence small { color: var(--accent-text); font-size: 10px; }
.showcase-intro .template-copy { justify-content: flex-start; }
.showcase-intro h1 { margin: 13px 0; }
.showcase-intro .template-specs { margin-top: 20px; }
.showcase-creator { margin: 22px 0 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.showcase-creator > summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; padding: 20px 28px; list-style: none; }
.showcase-creator > summary::-webkit-details-marker { display: none; }
.showcase-creator > summary > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.showcase-reference-label { color: var(--accent-text); font-size: 12px; }
.showcase-creator summary b { font-size: 18px; font-weight: 600; }
.showcase-disclosure { color: var(--muted); font-size: 12px; white-space: nowrap; }
.showcase-disclosure i { display: inline-block; padding-left: 7px; font: 18px/1 sans-serif; }
.showcase-creator[open] .showcase-disclosure i { transform: rotate(180deg); padding-left: 0; padding-right: 7px; }
.showcase-creator-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; padding: 25px 28px 28px; border-top: 1px solid var(--line); }
.showcase-creator-copy { align-self: center; max-width: 620px; }
.showcase-creator-handle { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.showcase-creator h2 { margin: 14px 0 12px; font-size: 26px; font-weight: 600; line-height: 1.4; }
.showcase-creator p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.showcase-estimate { display: grid; gap: 7px; margin-top: 25px; padding: 18px 20px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); }
.showcase-estimate b { font-size: 12px; color: var(--accent-text); }
.showcase-estimate span { font-size: 14px; line-height: 1.6; }
.showcase-estimate small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.showcase-creator-image { display: flex; flex-direction: column; gap: 12px; align-items: center; justify-self: center; width: 100%; max-width: 420px; text-decoration: none; }
.showcase-creator-image img { display: block; width: 100%; height: auto; }
.showcase-creator-image span { font-size: 11px; color: var(--accent-text); }
:root[data-theme="light"] .showcase-card { box-shadow: var(--paper-shadow); }
@media (max-width: 1050px) {
  .showcase-copy { padding: 22px; }
  .showcase-copy h3 { font-size: 26px; }
  .showcase-copy .showcase-headline { font-size: 16px; }
  .showcase-evidence { grid-template-columns: 85px minmax(0, 1fr); gap: 11px; padding: 10px; }
  .showcase-evidence img { height: 90px; }
}
@media (max-width: 800px) {
  .showcase-card { grid-template-columns: 1fr; }
  .showcase-evidence { grid-template-columns: 105px minmax(0, 1fr); }
  .showcase-evidence img { height: 112px; }
  .showcase-evidence span { font-size: 12px; }
  .showcase-creator-body { grid-template-columns: 1fr; gap: 28px; }
  .showcase-creator h2 { font-size: 22px; }
}
@media (max-width: 640px) {
  .showcase-copy { padding: 22px 20px; }
  .showcase-copy h3 { font-size: 28px; }
  .showcase-gallery { padding: 11px; }
  .showcase-thumb img { width: 52px; }
  .showcase-creator > summary { padding: 18px 20px; }
  .showcase-creator-body { grid-template-columns: 1fr; padding: 20px; }
  .showcase-estimate { margin-top: 20px; padding: 15px; }
  .sample-basket:has(.showcase-grid) .sample-basket-head { flex-wrap: wrap; }
  .sample-basket:has(.showcase-grid) .sample-basket-count { padding-left: 25px; flex-basis: 100%; font-size: 11px; }
}
/* ------------------------------------------------ motion showcase end */

/* 影视二创：选类型，系统配场。 */
.skit-group + .skit-group { margin-top: 24px; }
.skit-group h5 { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
.skit-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.skit-type { min-height: 106px; padding: 18px; }
.skit-type b { font-size: 16px; }
.skit-type span { font-size: 12px; line-height: 1.6; margin-top: 8px; }
.auto-match-note { margin: -6px 0 20px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.auto-match-list { border-top: 1px solid var(--line); }
.auto-match { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.auto-match-order { font-family: var(--num); font-size: 20px; color: var(--muted); }
.auto-match > div { flex: 1; min-width: 0; }
.auto-match b { display: block; font-size: 15px; font-weight: 600; }
.auto-match b i { color: var(--muted); font-size: 12px; font-style: normal; padding: 0 5px; }
.auto-match div > span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.auto-match .jc { margin: 0; font-size: 11px; white-space: nowrap; }
.auto-match-tag { font-size: 11px; font-style: normal; color: var(--muted); white-space: nowrap; }
.auto-match-loading { padding: 24px 0; color: var(--muted); font-size: 14px; }
@media (max-width: 680px) {
  .skit-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skit-type { padding: 14px; }
  .auto-match { gap: 10px; }
  .auto-match b { font-size: 13px; }
}
