:root {
  color-scheme: dark;
  --bg: #060611;
  --panel: rgba(18, 22, 40, 0.9);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-main: #f5f7ff;
  --text-secondary: #b3bdd6;
  --accent: #6f7cff;
  --accent-strong: #8e96ff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top, rgba(111, 124, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #0b1020 0%, var(--bg) 100%);
  color: var(--text-main);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.hero {
  padding: 12px 4px 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #8fa1ff;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.hero-desc {
  margin: 12px 0 0;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
}

.content {
  display: grid;
  gap: 18px;
}

.player-panel,
.video-list-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.player-panel {
  padding: 14px;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  aspect-ratio: 9 / 16;
  width: 100%;
}

.video-js {
  width: 100%;
  height: 100%;
}

.video-js .vjs-control-bar {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: #fff;
  background: rgba(10, 14, 30, 0.75);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.overlay-play-button.hidden {
  display: none;
}

.player-copy {
  padding: 16px 8px 6px;
}

.player-copy h2 {
  margin: 0;
  font-size: 20px;
}

.player-copy p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.video-list-panel {
  padding: 16px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h3 {
  margin: 0;
  font-size: 18px;
}

.section-head span {
  color: var(--text-secondary);
  font-size: 13px;
}

.video-list {
  display: grid;
  gap: 12px;
}

.video-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.video-card:active {
  transform: scale(0.985);
}

.video-card.active {
  border-color: rgba(111, 124, 255, 0.6);
  background: rgba(111, 124, 255, 0.12);
}

.video-card-cover {
  width: 92px;
  height: 132px;
  object-fit: cover;
  border-radius: 14px;
}

.video-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-card-title {
  margin: 0;
  font-size: 16px;
}

.video-card-desc {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.video-card-tag {
  margin-top: 10px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9e0ff;
  font-size: 12px;
}

@media (min-width: 768px) {
  .content {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
  }

  .app-shell {
    padding-top: 28px;
  }

  .player-panel {
    position: sticky;
    top: 12px;
  }
}
