:root {
  --ink: #302a2c;
  --muted: #776f72;
  --pink: #ff829d;
  --pink-deep: #ed6788;
  --pink-soft: #fff0f4;
  --yellow: #ffe45e;
  --paper: rgba(255,255,255,.86);
  --line: rgba(193,135,151,.25);
  --shadow: 0 20px 60px rgba(93,58,68,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 3% 19%, rgba(255,130,157,.12) 0 88px, transparent 89px),
    radial-gradient(circle at 96% 31%, rgba(255,228,94,.16) 0 110px, transparent 111px),
    linear-gradient(135deg, #fff8fa 0%, #fffdf5 100%);
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.page-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  font-weight: 700;
}
.back-link { text-decoration: none; color: var(--muted); }
.rules-link {
  justify-self: end;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}
.mini-brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-pink { background: var(--pink); }
.dot-yellow { background: var(--yellow); }

.hero { padding: 70px 0 46px; text-align: center; }
.eyebrow {
  margin: 0 0 15px;
  color: var(--pink-deep);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .18em;
}
h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 950;
}
.hero-copy {
  max-width: 760px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
}

.flow {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.flow span {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pink-soft);
  font-weight: 850;
}
.flow b { color: var(--pink); }

.player-card {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(255,130,157,.25);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.video-frame {
  overflow: hidden;
  border-radius: 24px;
  background: #1e1b1c;
  aspect-ratio: 16 / 9;
  box-shadow: 0 14px 40px rgba(49,32,37,.12);
}
video { display: block; width: 100%; height: 100%; object-fit: contain; background: #111; }
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 20px 0 14px;
  min-height: 28px;
  color: var(--muted);
  font-weight: 750;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(255,228,94,.18); }
.status.is-paused .status-dot { background: var(--pink); box-shadow: 0 0 0 5px rgba(255,130,157,.14); }

.status.is-loading .status-dot {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255,228,94,.18);
  animation: statusPulse 1.1s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { transform: scale(.85); opacity: .62; }
  50% { transform: scale(1.12); opacity: 1; }
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(220px, 1.4fr) minmax(0, .8fr);
  gap: 14px;
}
.control {
  min-height: 62px;
  border-radius: 20px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 900;
  font-size: 1rem;
  transition: transform .16s ease, box-shadow .16s ease;
}
.control:active { transform: scale(.985); }
.control-primary {
  color: #fff;
  border-color: transparent;
  background: var(--pink);
  box-shadow: 0 13px 28px rgba(255,130,157,.24);
}
.control-secondary { background: #fff; }
.player-tip { margin: 18px 0 0; text-align: center; color: var(--muted); line-height: 1.7; font-size: .94rem; }

.credits {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  margin: 36px 0 0;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 30px;
  border: 1px solid rgba(255,130,157,.22);
  background: linear-gradient(135deg, rgba(255,240,244,.9), rgba(255,252,221,.78));
}
.credits-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--pink), #d96b91);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}
.credits h2 { margin: 0 0 13px; font-size: clamp(1.45rem, 3vw, 2rem); }
.credit-lines p { margin: 7px 0; line-height: 1.7; }
.credit-note { margin: 16px 0 0; color: var(--muted); line-height: 1.75; font-size: .92rem; }

footer { padding: 70px 0 42px; text-align: center; }
footer a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 24px rgba(45,35,38,.07);
  font-weight: 800;
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 24px, 1160px); }
  .topbar { min-height: 68px; grid-template-columns: 1fr auto; }
  .mini-brand { display: none; }
  .hero { padding: 48px 0 32px; }
  h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .flow { gap: 9px; padding: 18px 12px; }
  .flow span { padding: 9px 12px; font-size: .88rem; }
  .flow b { font-size: .82rem; }
  .player-card { border-radius: 26px; }
  .video-frame { border-radius: 18px; }
  .controls { grid-template-columns: 1fr 1fr; }
  .control-primary { grid-column: 1 / -1; grid-row: 1; min-height: 68px; font-size: 1.08rem; }
  .control-secondary { min-height: 54px; }
  .credits { grid-template-columns: 1fr; gap: 17px; }
  .credits-mark { width: 56px; height: 56px; border-radius: 18px; }
}
