:root {
  color-scheme: only light;
  --ink: #16130f;
  --paper: #f2f0ec;
  --red: #c8321e;
  --line-dark: #2b2621;
  --line-dark-2: #3a342d;
  --muted-dark: #8c857a;
  --muted: #6b665e;
  --faint: #9a948b;
  --hair: #d8d4cc;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Archivo, Helvetica, sans-serif;
  --mono: 'JetBrains Mono', Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink); }
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--red); text-decoration: none; }
::selection { background: var(--red); color: var(--paper); }
input::placeholder { color: var(--faint); }
button { font-family: inherit; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  42% { opacity: .93; }
  47% { opacity: 1; }
  71% { opacity: .88; }
  74% { opacity: 1; }
}
@keyframes dust {
  0% { transform: translate3d(0,0,0); }
  25% { transform: translate3d(-14px,9px,0); }
  50% { transform: translate3d(11px,-7px,0); }
  75% { transform: translate3d(-6px,-12px,0); }
  100% { transform: translate3d(0,0,0); }
}
@keyframes gateWeave {
  0% { transform: translate3d(0,0,0); }
  33% { transform: translate3d(1.5px,-1px,0); }
  66% { transform: translate3d(-1px,1.5px,0); }
  100% { transform: translate3d(0,0,0); }
}
@keyframes beam {
  0%, 100% { opacity: .55; }
  50% { opacity: .78; }
}
@keyframes scan {
  from { background-position: 0 0; }
  to { background-position: 0 6px; }
}

/* ============ COVER ============ */
.cover {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: riseIn .5s ease both;
}
.cover-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.cover-bar .brand { color: var(--paper); }
.cover-bar .brand a { color: var(--red); }
.cover-bar .brand a:hover { color: var(--paper); }
.cover-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 40px 72px;
}

.leader {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  animation: flicker 5.5s steps(1, end) infinite;
}
.leader .reel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}
.leader .beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(96vh, 96vw);
  height: min(96vh, 96vw);
  margin: calc(min(96vh, 96vw) / -2) 0 0 calc(min(96vh, 96vw) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,240,236,.055) 0%, rgba(242,240,236,.012) 45%, rgba(242,240,236,0) 70%);
  animation: beam 7s ease-in-out infinite;
}
.leader .gate {
  position: absolute;
  inset: 0;
  animation: gateWeave 3.2s steps(2, end) infinite;
}
.leader .gate .h { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-dark-2); }
.leader .gate .v { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line-dark-2); }
.leader .gate .ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.leader .gate .r1 { width: min(86vh, 86vw); height: min(86vh, 86vw); border: 2px solid #35302a; }
.leader .gate .r2 { width: min(78vh, 78vw); height: min(78vh, 78vw); border: 1px solid var(--line-dark); }
.leader .gate .r3 { width: min(52vh, 52vw); height: min(52vh, 52vw); border: 1px solid #241f1b; }
.leader .sprocket {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  background: repeating-linear-gradient(180deg, transparent 0 14px, #201c18 14px 30px);
}
.leader .sprocket.l { left: 0; border-right: 1px solid #221e1a; }
.leader .sprocket.r { right: 0; border-left: 1px solid #221e1a; }
.leader .scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  animation: scan 1.6s linear infinite;
}
.leader .dust {
  position: absolute;
  inset: -20px;
  opacity: .5;
  animation: dust .55s steps(1, end) infinite;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(242,240,236,.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 61%, rgba(242,240,236,.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 41% 82%, rgba(242,240,236,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 17%, rgba(242,240,236,.3) 0 1px, transparent 1.5px);
}
.leader .vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(22,19,15,0) 38%, rgba(22,19,15,.82) 100%);
}

.rail {
  position: absolute;
  top: 50%;
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .25em;
  color: #8c857a;
}
.rail.l { left: 48px; transform: translateY(-50%) rotate(180deg); }
.rail.r { right: 48px; transform: translateY(-50%); }
.tick { position: absolute; width: 26px; height: 26px; pointer-events: none; }
.tick.tl { left: 48px; top: 28px; border-left: 1px solid var(--line-dark-2); border-top: 1px solid var(--line-dark-2); }
.tick.tr { right: 48px; top: 28px; border-right: 1px solid var(--line-dark-2); border-top: 1px solid var(--line-dark-2); }
.tick.bl { left: 48px; bottom: 28px; border-left: 1px solid var(--line-dark-2); border-bottom: 1px solid var(--line-dark-2); }
.tick.br { right: 48px; bottom: 28px; border-right: 1px solid var(--line-dark-2); border-bottom: 1px solid var(--line-dark-2); }
.cover-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7a7267;
  pointer-events: none;
}

.cover-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.cover-content::before {
  content: '';
  position: absolute;
  inset: -70px -110px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(22,19,15,.88) 0%, rgba(22,19,15,.6) 48%, rgba(22,19,15,0) 74%);
}
.kicker, .rule-row, .cover-desc, .cover-stats .n, .cover-stats .l {
  text-shadow: 0 1px 2px rgba(22,19,15,.9), 0 2px 18px rgba(22,19,15,.75);
}
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 40px;
}
.cover-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 16vw, 240px);
  line-height: .82;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.cover-title em, .logo em { font-style: italic; color: var(--red); }
.rule-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(880px, 82vw);
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a89f92;
}
.rule-row .rule { flex: 1; height: 1px; background: var(--line-dark-2); }
.cover-desc {
  font-size: 16px;
  line-height: 1.65;
  color: #ded9d0;
  max-width: 62ch;
  margin: 26px 0 0;
  text-wrap: pretty;
  font-weight: 300;
}
.enter-btn {
  cursor: pointer;
  margin-top: 38px;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  padding: 18px 46px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  transition: background .18s, color .18s, border-color .18s, transform .15s;
}
.enter-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
  transform: translateY(-2px);
}
.cover-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 42px;
  border-top: 1px solid var(--line-dark-2);
  border-bottom: 1px solid var(--line-dark-2);
  background: rgba(22,19,15,.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cover-stats .cell { padding: 16px 38px; border-right: 1px solid var(--line-dark-2); }
.cover-stats .cell:last-child { border-right: 0; }
.cover-stats .n { font-family: var(--serif); font-size: 38px; line-height: 1; }
.cover-stats .l {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: #a89f92;
  margin-top: 6px;
}

/* ============ APP ============ */
.app {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  animation: riseIn .45s ease both;
}
.side {
  border-right: 1px solid var(--ink);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.logo-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  display: block;
}
.logo-btn:hover { color: var(--red); }
.logo { font-family: var(--serif); font-size: 40px; line-height: .9; letter-spacing: -.02em; }
.logo-btn:hover .logo em { color: inherit; }
.side-head {
  padding-bottom: 20px;
}
.side-sub {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1.2;
}
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  cursor: pointer;
  padding: 9px 10px;
  font-family: var(--sans);
  font-size: 13.5px;
  background: transparent;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.nav-item:hover, .nav-item.active { background: var(--ink); color: var(--paper); }
.nav-item .count { font-family: var(--mono); font-size: 10px; opacity: .65; }
.build-btn {
  width: 100%;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: background .15s, border-color .15s;
}
.build-btn:hover { background: var(--red); border-color: var(--red); }
.side-stats {
  margin-top: auto;
  border-top: 1px solid var(--hair);
  padding-top: 14px;
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.side-stats .row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.side-stats .row b { font-weight: 500; color: var(--ink); }
.side-stats .row b.red { color: var(--red); }
.side-stats .fine {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--faint);
  margin-top: 8px;
}

.main { min-width: 0; display: flex; flex-direction: column; }
.head {
  padding: 56px 56px 36px;
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.head .kicker2 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: .9;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.head h1 em { font-style: italic; color: var(--red); }
.head p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.filters {
  padding: 20px 56px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 5;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}
.search svg { flex: none; }
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  width: 100%;
}
.chip-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--faint); }
.chip {
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .04em;
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--ink);
  transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--red); border-color: var(--red); color: var(--paper); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 24px 24px 26px;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .18s, color .18s;
  cursor: pointer;
}
.card:hover { background: var(--ink); color: var(--paper); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-num { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; opacity: .6; }
.card-cat { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--red); }
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 22px 0 0;
}
.card .card-en {
  font-family: var(--mono);
  font-size: 11.5px;
  opacity: .55;
  margin-top: 4px;
}
.card p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 12px 0 0;
  opacity: .75;
  text-wrap: pretty;
}
.card-foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bars { display: flex; gap: 4px; align-items: center; }
.bar { width: 14px; height: 2px; background: currentColor; opacity: .22; }
.bar.on { background: var(--red); opacity: 1; }
.card-diff { font-family: var(--sans); font-size: 10.5px; opacity: .7; margin-left: 6px; }
.card-mood { font-family: var(--sans); font-size: 10.5px; opacity: .7; }
.reel-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  vertical-align: 1px;
}
.reel-dot.img-dot {
  background: #71717a;
  border-radius: 1px;
}

.empty { padding: 120px 56px; text-align: center; }
.empty .big { font-family: var(--serif); font-style: italic; font-size: 56px; letter-spacing: -.02em; }
.empty p { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-top: 16px; }

.foot {
  border-top: 1px solid var(--ink);
  padding: 40px 56px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ============ DETAIL OVERLAY ============ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}
.overlay-backdrop { position: absolute; inset: 0; background: rgba(22,19,15,.66); }
.sheet {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  width: min(960px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  animation: riseIn .3s ease both;
}
.sheet-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  transition: background .15s, color .15s, border-color .15s;
}
.sheet-nav:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.sheet-nav.prev { left: 16px; }
.sheet-nav.next { right: 16px; }
@media (max-width: 760px) {
  .sheet-nav { top: auto; bottom: 14px; transform: none; width: 54px; height: 46px; }
  .sheet-nav.prev { left: 14px; }
  .sheet-nav.next { right: 14px; }
}
.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.sheet-bar .crumb {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--red);
}
.sheet-bar .crumb .num { color: var(--muted); margin-right: 12px; font-family: var(--mono); }
.close-btn {
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  font-family: var(--sans);
  transition: background .15s, color .15s;
}
.close-btn:hover { background: var(--ink); color: var(--paper); }
.sheet-body { padding: 34px 28px 40px; }
.sheet h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -.02em;
}
.sheet .sheet-en {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}
.sheet-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
}
.sheet-def {
  font-size: 16px;
  line-height: 1.7;
  color: #3d3831;
  margin-top: 24px;
  max-width: 74ch;
  text-wrap: pretty;
}
.sheet-def-en {
  font-size: 13.5px;
  line-height: 1.6;
  color: #7a7267;
  margin-top: 12px;
  max-width: 74ch;
}
.sheet-h {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 34px 0 12px;
}
.prompt-box {
  border: 1px solid var(--ink);
  background: #ece9e2;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  user-select: text;
}
.prompt-box-cn {
  border: 1px dashed var(--muted-dark);
  background: #f7f5f0;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: #4a433a;
  margin-top: 8px;
}
.sheet-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.btn {
  cursor: pointer;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  transition: background .15s, color .15s, border-color .15s;
}
.btn.solid { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

.build-sheet { width: min(560px, 96vw); }
.build-sheet h2 em { font-style: italic; color: var(--red); }
.build-plate {
  margin-top: 28px;
  border: 1px solid var(--ink);
  background: repeating-linear-gradient(135deg, #e6e2da 0 6px, var(--paper) 6px 12px);
  padding: 36px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--ink);
}
.build-note {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 16px;
  max-width: 48ch;
  text-wrap: pretty;
}
.reel video,
.reel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--ink);
  object-fit: contain;
}
.reel-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink);
  background: repeating-linear-gradient(135deg, #e6e2da 0 6px, var(--paper) 6px 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}
.reel-placeholder .t {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--ink);
}
.reel-placeholder .s {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.6;
}
.reel-note {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 10px;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line-dark-2);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  padding: 13px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .head { grid-template-columns: 1fr; }
  .head, .filters, .foot { padding-left: 28px; padding-right: 28px; }
  .empty { padding: 90px 28px; }
}
@media (max-width: 860px) {
  .app { display: block; }
  .side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    padding: 20px 24px;
    gap: 16px;
  }
  .side-stats { display: none; }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-label { display: none; }
  .nav-item { flex: none; border: 1px solid var(--hair); padding: 7px 12px; }
  .logo { font-size: 32px; }
  .side-sub { margin-top: 6px; }
  .head { padding-top: 40px; }
  .rail, .tick { display: none; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .cover-stats .cell { padding: 12px 20px; }
  .cover-stats .n { font-size: 28px; }
  .cover-bar { padding: 14px 18px; letter-spacing: .12em; }
  .cover-stage { padding: 40px 18px 64px; }
  .sheet-bar { padding: 14px 18px; }
  .sheet-body { padding: 24px 18px 30px; }
  .filters { gap: 14px; }
}

/* ============ 媒体防盗链与禁止下载保护 ============ */
video, img, .reel, .reel-bg {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

video::-internal-media-controls-download-button {
  display: none !important;
}

video::-webkit-media-controls-enclosure {
  overflow: hidden;
}
