:root {
  --bg: #141414;
  --bg-raised: #1f1f1f;
  --text: #f5f5f1;
  --text-dim: #b3b3b3;
  --accent: #e50914;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 3rem;
  background: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
}

.brand {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .5px;
}

.topnav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .95rem;
}

.topnav a.active, .topnav a:hover { color: var(--text); }

.hero {
  position: relative;
  height: 60vh;
  min-height: 380px;
  background: linear-gradient(120deg, #3a0d10, #1a1a1a);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-bg.visible { opacity: 1; }

.hero-dots {
  display: flex;
  gap: .5rem;
  margin-top: 1.2rem;
}

.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease;
}

.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.active { background: var(--text); }

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 55%);
}

.hero-info {
  position: relative;
  padding: 0 3rem 3rem;
  max-width: 640px;
}

.hero-info h1 { font-size: 2.6rem; margin: 0 0 .6rem; }
.hero-info p { color: var(--text-dim); margin: 0 0 1rem; line-height: 1.4; }

.btn-play {
  background: var(--text);
  color: #000;
  border: 0;
  border-radius: 4px;
  padding: .7rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-play:hover { background: #d6d6d6; }

main { padding: 1rem 0 6rem; margin-top: -4rem; position: relative; z-index: 1; }

.row { padding: 1.2rem 0 0 3rem; }
.row h2 { font-size: 1.3rem; margin: 0 0 .8rem; }

.row-track {
  display: flex;
  gap: .8rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.card {
  flex: 0 0 auto;
  width: 200px;
  cursor: pointer;
  transition: transform .15s ease;
}

.card:hover { transform: scale(1.06); }

.card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-raised);
  display: block;
}

.card.square img {
  aspect-ratio: 1 / 1;
}

.card.wide img {
  aspect-ratio: 16 / 9;
  object-position: top;
}

.row-empty {
  color: var(--text-dim);
  font-size: .9rem;
  padding: .5rem 0 1rem;
}

.card .card-title {
  font-size: .85rem;
  margin-top: .4rem;
  color: var(--text-dim);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}

.modal-content {
  position: relative;
  background: var(--bg-raised);
  border-radius: 8px;
  width: min(900px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-close {
  position: absolute;
  top: .8rem; right: .8rem;
  background: rgba(0,0,0,.6);
  color: var(--text);
  border: 0;
  border-radius: 50%;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 1rem;
}

.modal-content video { width: 100%; border-radius: 6px; background: #000; }
