:root {
  --bg: #0b0b0f;
  --bg-elev: #14141b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f3ee;
  --muted: #9a9488;
  --rose: #e11d48;
  --gold: #e8c27a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

body {
  background-image:
    radial-gradient(1200px 500px at 10% -10%, rgba(225, 29, 72, 0.16), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(232, 194, 122, 0.1), transparent 50%);
}

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 18px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.hero {
  padding: 8px 0 28px;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hero p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px 16px;
  padding-bottom: 72px;
}

.card {
  display: block;
  color: inherit;
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover .poster {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.poster-bg {
  position: absolute;
  inset: 0;
  background-color: #1a1a22;
  background-position: center;
  background-size: cover;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
}

.poster-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 11px;
}

.poster-title {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  font-size: 16px;
  line-height: 1.35;
}

.play-page {
  padding-bottom: 64px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.back:hover {
  color: var(--text);
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

.player-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(78vh, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #000;
  box-shadow: var(--shadow);
}

video {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  background: #000;
  object-fit: contain;
}

.play-copy h2 {
  margin-top: 18px;
  font-size: 26px;
}

.play-copy .sub {
  margin-top: 8px;
  color: var(--gold);
  font-size: 14px;
}

.play-copy p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.side h3 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.eps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ep {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.ep:hover {
  border-color: rgba(232, 194, 122, 0.45);
}

.ep.active {
  border-color: transparent;
  background: linear-gradient(145deg, var(--rose), #fb7185);
}

.empty {
  padding: 80px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .stage {
    grid-template-columns: 1fr;
  }

  .eps {
    grid-template-columns: repeat(6, 1fr);
  }
}
