:root {
  --ink: #07060a;
  --panel: #161018;
  --line: #342433;
  --mist: #c2aeb8;
  --paper: #fff4f8;
  --bulb: #ff5c93;
  --bulb-ink: #2a1020;
  --max: 1320px;
  --gutter: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

body::before {
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 92, 147, 0.2), transparent 68%);
  animation: glow-drift 16s ease-in-out infinite alternate;
}

body::after {
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(90, 122, 186, 0.16), transparent 70%);
  animation: glow-drift 18s ease-in-out infinite alternate-reverse;
}

main,
.footer,
.player { position: relative; z-index: 1; }

button, input { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--bulb);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--bulb);
  color: var(--bulb-ink);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip:focus { top: 12px; }

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(20, 22, 30, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner,
main,
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.header-inner {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-main,
.header-sub {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-main { flex: 1 1 auto; gap: 12px; }

.header-sub { flex: none; gap: 18px; }

.header .search {
  flex: 1 1 0;
  width: auto;
  max-width: 360px;
  margin: 0;
  padding: 7px 12px;
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.account .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }

.account-name {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  gap: 10px;
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255, 92, 147, 0.35);
}

.age {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--bulb);
  color: var(--bulb-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.adult {
  color: var(--bulb);
  font-size: 13px;
  font-weight: 700;
}

.nav { display: flex; gap: 28px; height: 100%; align-items: center; }

.nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  color: var(--mist);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.nav a.is-on { color: var(--paper); border-bottom-color: var(--bulb); }

.nav a:hover { color: var(--paper); }

main { padding-top: 18px; padding-bottom: 12px; }

.board {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.bulbs {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.bulbs i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3e4c;
}

.bulbs i:nth-child(4n + 1) { background: var(--bulb); }

.board-copy { padding: 56px 40px 64px; max-width: 720px; }

.board-copy h1,
.hero-copy h2,
.shelf-top h2,
.detail-copy h2 {
  font-family: Bahnschrift, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.board-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(52px, 7vw, 88px);
}

.board-copy p,
.hero-copy p,
.shelf-top p,
.detail-copy p,
.empty p,
.footer p {
  margin: 0;
  color: var(--mist);
}

.board-copy p { max-width: 38em; font-size: 16px; }

code {
  font-family: Consolas, "Cascadia Mono", monospace;
  color: var(--paper);
  font-size: 0.92em;
}

.reel {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.reel-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 520px;
}

.reel-side button {
  flex: 1;
  min-height: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #100c12;
}

.reel-side button.is-on { border-color: var(--bulb); }

.reel-side img,
.reel-side .plate { width: 100%; height: 100%; object-fit: cover; display: block; }

.reel-frame {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 12px;
  background: #101218;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.reel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.7s ease;
}

.reel-slide.is-on { opacity: 1; z-index: 1; }

.reel-step,
.reel-dots button {
  font: inherit;
  color: var(--paper);
  cursor: pointer;
  border: 0;
}

.reel-step {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(231, 168, 74, 0.55);
  background: rgba(12, 14, 20, 0.55);
  backdrop-filter: blur(8px);
}

.reel-step.prev { left: 14px; }
.reel-step.next { right: 14px; }
.reel-step:hover { background: var(--bulb); color: var(--bulb-ink); }

.reel-dots {
  position: absolute;
  z-index: 2;
  left: 32px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.reel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 99px;
  background: rgba(243, 241, 234, 0.45);
}

.reel-dots button.is-on {
  width: 22px;
  background: var(--bulb);
}

.reel-progress {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--bulb);
}

.reel-frame.is-playing .reel-progress {
  animation: reel-progress 5.6s linear;
}

.hero {
  position: relative;
  display: block;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--panel);
}

.hero-plain { grid-template-columns: 1fr; background: var(--plate); }

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  height: 100%;
  min-height: 100%;
  padding: 28px 88px 32px;
  background: linear-gradient(transparent 70%, rgba(8, 9, 14, 0.38));
}

.hero-kind {
  margin: 0;
  color: var(--bulb);
  font-size: 13px;
  font-weight: 650;
}

.hero-copy h2 {
  margin: 0;
  max-width: 14em;
  font-size: clamp(28px, 3vw, 42px);
}

.hero-copy p {
  max-width: 28em;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-plain .hero-copy p { color: rgba(244, 242, 236, 0.82); }

.hero-art { position: absolute; inset: 0; }

.hero-media,
.side-media,
.detail-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-art .hero-media,
.side-art .side-media {
  position: absolute;
  inset: 0;
}

.side,
.card-face,
.card-name,
.mark,
.chip,
.btn,
.icon-btn {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

.side {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #12141b;
  text-align: left;
}

.side-art { position: absolute; inset: 0; }

.side-plain {
  display: flex;
  align-items: flex-end;
  background: var(--plate);
  min-height: 160px;
}

.side-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(8, 9, 14, 0.92));
}

.side-plain .side-copy { padding: 18px; }

.side-copy strong {
  display: block;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.side-copy span,
.card-meta,
.detail-meta,
.count {
  color: var(--mist);
  font-size: 12px;
}

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-fill { fill: currentColor; stroke: none; }

.nav .ico { width: 16px; height: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: #2a3040;
  font-weight: 700;
  font-size: 14px;
}

.btn .ico { width: 16px; height: 16px; }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--bulb);
  color: var(--bulb-ink);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 68%);
  transform: translateX(-130%);
}

.reel-slide.is-on .btn-primary::after { animation: sheen 1.1s 0.35s ease; }

.reel-slide.is-on .hero-media { animation: reel-drift 7s ease-out both; }

.reel-slide.is-on .hero-copy > * { animation: reel-rise 0.7s ease both; }

.reel-slide.is-on .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.reel-slide.is-on .hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
.reel-slide.is-on .hero-copy > *:nth-child(4) { animation-delay: 0.2s; }

.btn-primary:hover { background: #ff7aa8; }

.btn:disabled { background: #2a2e3c; color: #8d93a6; cursor: default; }

.shelf { margin-top: 28px; }

.shelf-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.shelf-top h2 { margin: 0; color: var(--bulb); font-size: 28px; }

.shelf-top p { display: block; margin-top: 4px; color: var(--paper); font-size: 14px; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mist);
}

.search svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 14px;
}

.search input::placeholder { color: #8b91a4; }

.search kbd {
  border: 1px solid #4a4e60;
  border-radius: 4px;
  min-width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  font-family: inherit;
  font-size: 12px;
  color: #9aa1b4;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 14px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #3a4052;
  border-radius: 999px;
  color: var(--mist);
  font-size: 13px;
  font-weight: 650;
}

.chip .ico { width: 14px; height: 14px; }

.chip.is-on {
  border-color: transparent;
  background: var(--bulb);
  color: var(--bulb-ink);
}

.chip:hover { color: var(--paper); }

.chip.is-on:hover { color: var(--bulb-ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.card { position: relative; }

.card-face {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}

.card-face { transition: transform 180ms ease, box-shadow 180ms ease; }

.card-face:hover { transform: translateY(-4px); }

.card-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.2) 50%, transparent 66%);
  transform: translateX(-130%);
  pointer-events: none;
}

.card-face:hover .card-reel { box-shadow: 0 0 0 1px rgba(255, 92, 147, 0.75); }

.card-face:hover .card-reel::after { animation: sheen 0.85s ease; }

.card-reel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #100c12;
  transition: transform 180ms ease;
}

.card-face:hover .card-media { transform: scale(1.06); }

.card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.65s ease, transform 180ms ease;
}

.card-media.is-on,
.card-media.plate { opacity: 1; }

.card-face > .card-media.plate {
  position: relative;
  aspect-ratio: 16 / 9;
}

.plate { background: var(--plate); color: var(--paper); }

.card-media.plate {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-family: Bahnschrift, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 2px 0;
  pointer-events: none;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.card-tags span {
  padding: 1px 8px;
  border: 1px solid #5c3146;
  border-radius: 999px;
  color: #ffb3cc;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.card-kind {
  color: var(--bulb);
  font-size: 11px;
  font-weight: 700;
}

.card-name {
  width: 100%;
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 9, 14, 0.62);
  color: #d5d8e2;
}

.mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.mark.is-on { color: var(--bulb); }

.mark.is-on svg { fill: rgba(231, 168, 74, 0.28); stroke: var(--bulb); }

.empty {
  grid-column: 1 / -1;
  padding: 36px 8px 12px;
}

.empty h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }

.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 22px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: #8b91a4;
  font-size: 13px;
}

.footer-brand { font-size: 20px; color: var(--paper); }

.footer-year { margin-left: auto; }

.detail-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 8px;
}

.detail-page[hidden] { display: none; }

.detail-back { grid-column: 1 / -1; justify-self: start; }

body.is-playing {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.is-playing .header { flex: none; }

.player {
  min-height: 0;
  flex-direction: column;
  background: #000;
}

body.is-playing .player { display: flex; flex: 1; }

.player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  min-width: 0;
  padding: 0 18px;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.player-bar .btn { flex: none; }

.player-bar h2 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.player iframe {
  position: absolute;
  border: 0;
  background: #000;
}

.player[data-rail="left"] iframe {
  top: 0;
  left: calc(var(--rail) * -1);
  width: calc(100% + var(--rail));
  height: 100%;
}

.player[data-rail="top"] iframe {
  top: calc(var(--rail) * -1);
  left: 0;
  width: 100%;
  height: calc(100% + var(--rail));
}

.detail-stage {
  position: relative;
  background: #101218;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.detail-frame { position: relative; aspect-ratio: 16 / 9; background: #101218; }

.detail-slide,
.detail-frame .detail-media { width: 100%; height: 100%; }

.detail-slide { position: absolute; inset: 0; }

.detail-frame .detail-media { object-fit: cover; background: #101218; }

.detail-media.is-live { animation: detail-fade 0.45s ease, reel-drift 5.2s ease-out both; }

.detail-step {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  border-radius: 50%;
  background: rgba(20, 22, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--paper);
}

.detail-step .ico { width: 16px; height: 16px; }

.detail-step.prev { left: 12px; }

.detail-step.next { right: 12px; }

.detail-step:hover { background: var(--bulb); color: var(--bulb-ink); }

.detail-count {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 12px;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 22, 30, 0.72);
  font-size: 12px;
}

.detail-progress {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--bulb);
}

.detail-stage.is-playing .detail-progress { animation: reel-progress 4.8s linear; }

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
  padding: 10px;
}

.detail-thumbs button {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.72;
  background: #1c1f2a;
}

.detail-thumbs button { transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }

.detail-thumbs button.is-on { opacity: 1; border-color: var(--bulb); transform: translateY(-2px); }

.detail-thumbs img,
.thumb-video { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font-size: 12px; }

.thumb-video { display: flex; gap: 4px; font-size: 11px; }

.thumb-video .ico { width: 12px; height: 12px; }

.detail-art { height: 240px; background: var(--plate, var(--panel)); }

.detail-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 0;
}

.detail-copy > * { animation: reel-rise 0.55s ease both; }

.detail-copy > *:nth-child(2) { animation-delay: 0.06s; }
.detail-copy > *:nth-child(3) { animation-delay: 0.12s; }
.detail-copy > *:nth-child(4) { animation-delay: 0.18s; }
.detail-copy > *:nth-child(5) { animation-delay: 0.24s; }

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--mist);
  font-size: 12px;
  font-weight: 650;
}

.detail-facts .ico { width: 14px; height: 14px; color: var(--bulb); }

.detail-story { margin: 0; white-space: pre-line; line-height: 1.75; color: var(--mist); }

.detail-lead {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 2px solid var(--bulb);
  color: var(--paper);
}

.detail-meta { display: flex; gap: 14px; margin: 0 0 8px; }

.detail-copy h2 { flex: 1 1 220px; margin: 0; font-size: 28px; }

.detail-note { margin: 0 0 14px; }

.detail-actions { display: flex; gap: 10px; margin: 0; flex: 1 1 280px; }

.detail-actions .btn-primary {
  flex: 1 1 auto;
  width: auto;
  min-height: 52px;
  box-shadow: 0 10px 28px rgba(231, 168, 74, 0.22);
}

.detail-save { flex: none; width: auto; }

.detail-actions .btn-primary::after { animation: sheen 1.2s 0.35s ease; }

.detail-save.is-on { color: var(--bulb); border: 1px solid rgba(231, 168, 74, 0.55); }

.related { grid-column: 1 / -1; margin-top: 8px; }

.related h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.related h3 .ico { width: 16px; height: 16px; color: var(--bulb); }

.related-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-row .card { animation: reel-rise 0.6s ease both; }

.related-row .card:nth-child(2) { animation-delay: 0.06s; }
.related-row .card:nth-child(3) { animation-delay: 0.12s; }
.related-row .card:nth-child(4) { animation-delay: 0.18s; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reel-frame,
  .reel-side { height: 380px; }
}

.auth {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 6, 10, 0.72);
}

.auth[hidden] { display: none; }

.auth-card {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.auth-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.auth-head h2 {
  margin: 0;
  color: var(--bulb);
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.auth-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mist);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.auth-x:hover { color: var(--paper); }

.field { display: flex; flex-direction: column; gap: 6px; color: var(--mist); font-size: 13px; font-weight: 650; }

.field input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0a10;
  color: var(--paper);
}

.auth-error { margin: 0; color: #ff8aa8; font-size: 13px; }

.auth-submit { width: 100%; }

.auth-switch {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--bulb);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .header-inner {
    height: auto;
    min-height: 0;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 8px;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px 0;
  }
  .header-main,
  .header-sub { flex: 1 1 100%; }
  .header .search { max-width: none; }
  .header-sub { flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
  .nav { flex: 1 1 100%; height: 36px; gap: 16px; }
  .account .btn { padding: 0 10px; }
  .chip { min-height: 40px; padding: 8px 14px; }
  .mark { width: 40px; height: 40px; }
  .search input { font-size: 16px; }
  .card-name { overflow-wrap: anywhere; }
  .filters { flex-wrap: nowrap; overflow-x: auto; }
  .chip { flex: none; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; flex: none; }
  body.is-detail { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.is-detail .detail-actions { animation: none; transform: none; }
  body.is-detail .detail-play {
    position: fixed;
    z-index: 6;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    min-height: 50px;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(255, 92, 147, 0.4);
  }
  .footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  body.is-playing .header { display: none; }
  .board { min-height: 0; }
  .board-copy { padding: 32px 20px 36px; }
  .board-copy h1 { font-size: 48px; }
  .reel { grid-template-columns: 1fr; }
  .reel-side { display: none; }
  .reel-frame { height: 340px; }
  .reel-step { width: 36px; height: 36px; margin-top: -18px; }
  .hero-copy {
    padding: 20px 56px 28px;
    background: linear-gradient(transparent 68%, rgba(8, 9, 14, 0.42));
  }
  .detail-page { grid-template-columns: 1fr; }
  .shelf { margin-top: 32px; }
  .shelf-top { flex-direction: column; align-items: stretch; }
  .search kbd { display: none; }
  .count { display: none; }
  .grid { grid-template-columns: 1fr; gap: 22px; }
  .grid .card-name { font-size: 17px; }
  .footer { flex-wrap: wrap; }
  .detail-copy h2 { font-size: 24px; }
  .detail-art { height: 180px; }
  .related-row { grid-template-columns: 1fr 1fr; }
  .player-bar { height: 48px; padding-right: max(12px, env(safe-area-inset-right)); padding-left: max(12px, env(safe-area-inset-left)); }
}

@media (max-width: 760px) and (orientation: portrait) {
  body.is-playing .player {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 100vw;
    left: 100dvw;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    height: 100dvw;
    transform: rotate(90deg);
    transform-origin: top left;
    flex: none;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  body.is-playing .header { display: none; }
  body.is-playing .player {
    position: fixed;
    z-index: 40;
    inset: 0;
    width: 100%;
    height: 100%;
    flex: none;
  }
  .player-bar { height: 44px; }
}

@keyframes reel-progress { to { width: 100%; } }

@keyframes reel-drift {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes reel-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes sheen { to { transform: translateX(130%); } }

@keyframes bulb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 168, 74, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(231, 168, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 168, 74, 0); }
}

@keyframes detail-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 24px, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-media,
  .card-face,
  .card-reel,
  .reel-slide { transition: none; }
  .brand i,
  .reel-slide.is-on .hero-media,
  .reel-slide.is-on .hero-copy > *,
  .reel-slide.is-on .btn-primary::after,
  .reel-frame.is-playing .reel-progress,
  .detail-media.is-live,
  .detail-copy > *,
  .detail-actions .btn-primary::after,
  .detail-stage.is-playing .detail-progress,
  .related-row .card,
  .card-face::after,
  body::before,
  body::after { animation: none; }
}
