:root {
  --bg: #0f0f12;
  --fg: #eaeaea;
  --muted: #b3b3b3;
  --accent: #e50914;
  --card: #1a1a1f;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg); color: var(--fg);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid #222;
  position: sticky; top: 0; background: rgba(15,15,18,0.9); backdrop-filter: blur(8px);
}
.brand { font-weight: 700; letter-spacing: 0.5px; }
.controls { display: flex; gap: 0.5rem; }
.controls input, .controls select {
  background: #121216; color: var(--fg); border: 1px solid #2a2a33;
  padding: 0.5rem 0.75rem; border-radius: 8px; min-width: 220px;
}

.hero {
  padding: 2rem 1.25rem; background: linear-gradient(180deg, #141418, #0f0f12);
}
.hero h1 { margin: 0 0 0.5rem; }
.hero p { color: var(--muted); margin: 0; }

section { padding: 1rem 1.25rem; }
h2 { margin: 0 0 0.75rem; }

.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.card {
  background: var(--card); border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25); transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.card .info { padding: 0.75rem; }
.card .title { font-weight: 600; margin-bottom: 0.25rem; }
.card .sub { color: var(--muted); font-size: 0.9rem; }

.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; }
.backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6);
}
.modal-content {
  position: relative; z-index: 1001; margin: 4vh auto; max-width: 980px;
  background: #121216; border: 1px solid #222; border-radius: 16px; overflow: hidden;
}
.close {
  position: absolute; top: 10px; right: 10px; background: #1f1f24; color: var(--fg);
  border: none; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 18px;
}
video {
  width: 100%; max-height: 65vh; background: black; display: block;
}
.meta { padding: 1rem; }
.meta h3 { margin: 0 0 0.5rem; }
.meta p { margin: 0; color: var(--muted); }

footer {
  padding: 1rem 1.25rem; color: var(--muted); border-top: 1px solid #222;
}
