:root {
  --bg: #141414;
  --ink: #fff;
  --muted: #b3b3b3;
  --red: #e50914;
  --card: 168px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; font: 16px/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

.top {
  position: fixed; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; gap: 22px;
  padding: 16px 4vw;
  background: linear-gradient(#000, transparent);
}
.top.solid { background: #141414; }
.logo { color: var(--red); font-weight: 800; font-size: 28px; letter-spacing: -0.04em; }
nav { display: flex; gap: 8px; }
nav button, .ghost, .play, .x {
  border: 0; background: transparent;
}
nav button { color: #e5e5e5; padding: 6px 10px; border-radius: 4px; }
nav button.on { color: #fff; font-weight: 700; }
.search { margin-left: auto; }
.search input {
  width: 220px; background: rgba(0,0,0,.6); border: 1px solid #444; border-radius: 4px;
  padding: 8px 12px; outline: none;
}
.search input:focus { border-color: #fff; }

.hero {
  min-height: 78vh; display: flex; align-items: flex-end;
  padding: 0 4vw 8vh;
  background: #111 center/cover no-repeat;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,20,20,.95) 0%, rgba(20,20,20,.45) 45%, transparent 70%),
    linear-gradient(transparent 50%, #141414);
}
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.kicker { letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: #ddd; }
.hero h1 { margin: 8px 0 12px; font-size: clamp(40px, 6vw, 72px); line-height: .95; letter-spacing: -0.03em; }
.hero p { color: #e5e5e5; max-width: 46ch; }
.hero-actions, .sheet-copy .play { display: flex; gap: 10px; margin-top: 18px; }
.play, .ghost {
  border-radius: 4px; padding: 10px 22px; font-weight: 700;
}
.play { background: #fff; color: #000; }
.ghost { background: rgba(109,109,110,.7); }
.play:hover { background: #e6e6e6; }

.row { padding: 8px 0 18px; }
.row h2 { margin: 0 0 10px; padding: 0 4vw; font-size: 20px; }
.scroller {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 4vw 16px;
  scroll-snap-type: x mandatory;
}
.scroller::-webkit-scrollbar { height: 0; }
.card {
  flex: 0 0 var(--card); scroll-snap-align: start;
  background: #222; border: 0; padding: 0; text-align: left; border-radius: 4px; overflow: hidden;
  transition: transform .18s ease;
}
.card:hover { transform: scale(1.06); z-index: 2; }
.poster { aspect-ratio: 2/3; background: linear-gradient(160deg, #333, #111); display: grid; place-items: end start; }
.poster span { padding: 10px; font-weight: 700; }
.card b { display: block; padding: 8px 8px 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank { position: relative; }
.rank em {
  position: absolute; left: -6px; bottom: -8px; font-style: normal; font-weight: 800;
  font-size: 92px; line-height: .8; color: #141414; -webkit-text-stroke: 2px #aaa;
}

.status { padding: 24px 4vw 80px; color: var(--muted); }

.sheet, .player {
  position: fixed; inset: 0; z-index: 8; background: rgba(0,0,0,.72);
  display: grid; place-items: center; padding: 24px;
}
.sheet { align-items: end; }
.sheet[hidden], .player[hidden], .hero[hidden] { display: none; }
.sheet-art, .sheet-copy {
  width: min(920px, 100%);
}
.sheet-art { height: 280px; background: #111 center/cover no-repeat; border-radius: 8px 8px 0 0; }
.sheet-copy { background: #181818; padding: 22px 24px 28px; border-radius: 0 0 8px 8px; margin-top: -1px; }
.sheet-copy h2 { margin: 0 0 8px; font-size: 32px; }
.meta { color: #46d369; font-size: 14px; }
#sheet-text { color: #ddd; max-width: 70ch; }
.x {
  position: absolute; top: 16px; right: 18px; z-index: 9;
  width: 40px; height: 40px; border-radius: 50%; background: #181818; font-size: 26px;
}
.player { background: #000; }
.player iframe { width: min(1100px, 100%); aspect-ratio: 16/9; border: 0; background: #000; }
#player-msg { color: #aaa; }

@media (max-width: 720px) {
  .top { gap: 10px; }
  nav { display: none; }
  .search input { width: 140px; }
  .hero { min-height: 70vh; }
  .sheet-art { height: 180px; }
}
