:root {
  --ink: #0b0a08;
  --surface: #17140f;
  --surface-raised: #201b13;
  --gold: #c9a227;
  --gold-bright: #e8c14d;
  --paper: #f3efe4;
  --dim: #8a8272;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", sans-serif;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 44px;
  background: linear-gradient(to bottom, rgba(11,10,8,0.85) 0%, transparent 100%);
}

.nav-mark {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-mark-accent {
  color: var(--gold);
}

.nav-search {
  width: 220px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243,239,228,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--paper);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, width 0.2s ease;
}

.nav-search:focus {
  border-color: var(--gold);
  width: 280px;
}

.nav-search::placeholder {
  color: var(--dim);
}

.state-message {
  padding: 160px 44px 40px;
  color: var(--dim);
  font-size: 15px;
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 25%;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(18px) brightness(0.55) saturate(1.1);
  transform: scale(1.08);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 2%, rgba(11,10,8,0.35) 45%, rgba(11,10,8,0.15) 100%);
  z-index: -1;
}

.hero-body {
  padding: 0 44px 56px;
  max-width: 640px;
}

.hero-title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  margin: 0 0 10px;
}

.hero-meta {
  color: var(--dim);
  font-size: 15px;
  margin: 0 0 22px;
}

.hero-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hero-play:hover {
  background: var(--gold-bright);
}

.hero-play svg {
  width: 16px;
  height: 16px;
}

.rows {
  padding: 8px 0 60px;
}

.row {
  margin-bottom: 38px;
}

.row-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 14px;
  padding: 0 44px;
}

.row-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 44px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-raised) transparent;
}

.row-track::-webkit-scrollbar {
  height: 6px;
}

.row-track::-webkit-scrollbar-thumb {
  background: var(--surface-raised);
  border-radius: 999px;
}

.card {
  position: relative;
  flex: 0 0 280px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-raised) 100%);
  background-size: cover;
  background-position: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: scale(1.045);
  box-shadow: 0 18px 34px rgba(0,0,0,0.5);
  z-index: 2;
}

.card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,10,8,0.92) 0%, rgba(11,10,8,0.05) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.player {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6,5,4,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.player[hidden] {
  display: none;
}

.player-frame {
  width: 100%;
  max-width: 1100px;
}

.player-frame video {
  width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  background: #000;
  display: block;
}

.player-title {
  font-family: "Fraunces", serif;
  font-size: 19px;
  margin: 16px 2px 0;
  color: var(--paper);
}

.player-close {
  position: absolute;
  top: 26px;
  right: 34px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(243,239,228,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.player-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .nav-search { width: 140px; }
  .nav-search:focus { width: 170px; }
  .hero-body { padding: 0 20px 40px; }
  .row-title { padding: 0 20px; }
  .row-track { padding: 4px 20px 14px; }
  .card { flex-basis: 220px; }
}
