:root {
  color-scheme: dark;
  --bg: #0d0708;
  --hnu-red: #800303;
  --hnu-red-accent: #a81b23;
  --hnu-red-vivid: #c1272d;
  --hnu-red-glow: rgba(168, 27, 35, 0.38);
  --gold: #dfc18b;
  --gold-muted: #9c8a6f;
  --text: #fbf8f2;
  --muted: #a3958d;
  --line: rgba(168, 27, 35, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 480px at 50% -60px, rgba(168, 27, 35, 0.28), transparent 70%),
    radial-gradient(ellipse 600px 400px at 85% 90%, rgba(128, 3, 3, 0.16), transparent 70%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, select {
  font: inherit;
  color: inherit;
}
button, a, select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}

main, footer {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
}

/* Intro Section */
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 56px 0 24px;
}
h1 {
  margin: 0;
  font: 400 clamp(26px, 3.6vw, 40px) / 1.35 "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  letter-spacing: 3px;
  color: var(--text);
}
.title-dot {
  color: var(--hnu-red-vivid);
  padding-inline: 3px;
}
.subtitle {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  letter-spacing: 0.6px;
}
.video-facts {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 6px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.fact-sep {
  color: var(--hnu-red-accent);
  opacity: 0.7;
}

/* Screen / Video Player */
.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(168, 27, 35, 0.35);
  background: #000;
  border-radius: 10px;
  box-shadow:
    0 24px 70px -15px rgba(0, 0, 0, 0.85),
    0 0 50px -10px var(--hnu-red-glow);
}
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.screen-shade {
  position: absolute;
  inset: 0 0 52px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(13, 7, 8, 0.25) 0%, rgba(13, 7, 8, 0.75) 100%);
  cursor: pointer;
  transition: opacity 0.25s ease;
  z-index: 5;
}
.start-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text);
  background: none;
  border: 0;
  padding: 16px 28px;
  cursor: pointer;
}
.play-btn-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a81b23 0%, #680103 100%);
  border: 1.5px solid rgba(223, 193, 139, 0.45);
  display: grid;
  place-items: center;
  box-shadow:
    0 10px 30px rgba(128, 3, 3, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
}
.play-btn-circle svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  transform: translateX(2px);
}
.start-button:hover .play-btn-circle {
  transform: scale(1.08);
  background: linear-gradient(135deg, #c1272d 0%, #7d0306 100%);
  box-shadow:
    0 14px 36px rgba(168, 27, 35, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.start-button:active .play-btn-circle {
  transform: scale(0.96);
}
.play-btn-label {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 9, 11, 0.85);
  border: 1px solid rgba(223, 193, 139, 0.3);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.error-message {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 64px;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  background: rgba(128, 3, 3, 0.94);
  border: 1px solid rgba(223, 193, 139, 0.3);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

/* Toolbar */
.player-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 2px;
}
.play-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
}
.state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b5558;
  transition: all 0.3s ease;
}
.state-dot.playing {
  background: #e03e45;
  box-shadow: 0 0 10px #e03e45;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quality-label {
  color: var(--muted);
  font-size: 11.5px;
}
.select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}
select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(168, 27, 35, 0.35);
  border-radius: 4px;
  background: #180d0f;
  color: #ede4de;
  font-size: 11.5px;
  padding: 6px 24px 6px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
select:hover {
  border-color: rgba(193, 39, 45, 0.6);
  background: #241215;
}
.select-chevron {
  position: absolute;
  right: 8px;
  width: 12px;
  height: 12px;
  stroke: var(--gold-muted);
  pointer-events: none;
}
.action-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
  margin-inline: 4px;
}
.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  padding: 6px 4px;
  transition: color 0.2s ease;
}
.toolbar-btn:hover {
  color: var(--text);
}
.toolbar-btn svg {
  width: 14px;
  height: 14px;
}

/* Viewing Note */
.viewing-note {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: #8c7d77;
  line-height: 1.9;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  margin-top: 56px;
  color: #7b6d68;
  font-size: 11px;
  letter-spacing: 1.2px;
}

/* Responsive Media Queries */
@media (max-width: 650px) {
  main, footer {
    width: calc(100% - 32px);
  }
  .intro {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0 18px;
    gap: 14px;
  }
  h1 {
    font-size: 24px;
    letter-spacing: 1.5px;
  }
  .subtitle {
    font-size: 12px;
    margin-top: 8px;
  }
  .video-facts {
    padding-bottom: 0;
    font-size: 11px;
  }
  .screen {
    border-radius: 6px;
  }
  .screen-shade {
    bottom: 40px;
  }
  .play-btn-circle {
    width: 56px;
    height: 56px;
  }
  .play-btn-circle svg {
    width: 20px;
    height: 20px;
  }
  .play-btn-label {
    font-size: 11px;
    padding: 4px 12px;
  }
  .player-toolbar {
    padding: 12px 0;
    gap: 8px;
  }
  .quality-label {
    display: none;
  }
  .action-divider {
    margin-inline: 2px;
  }
  .toolbar-btn {
    font-size: 11px;
    gap: 4px;
    padding: 4px 2px;
  }
  select {
    font-size: 11px;
    padding: 5px 20px 5px 8px;
  }
  .play-state {
    font-size: 11px;
  }
  .viewing-note {
    font-size: 11px;
  }
  footer {
    margin-top: 36px;
    padding: 22px 0 32px;
    font-size: 10px;
    letter-spacing: 0.8px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
