:root {
  --bg: #070b14;
  --surface: #111a2e;
  --surface-2: #16213a;
  --line: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #fbbf24;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.top {
  position: sticky; top: 0; z-index: 5;
  padding: calc(env(safe-area-inset-top) + 14px) 0 14px;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.brand b { color: var(--accent); font-weight: 700; }

.hero { padding: 48px 0 32px; max-width: 640px; }
.hero h1 { margin: 0; font-size: clamp(30px, 6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.hero p { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }

.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--muted); }
.count { font-size: 12px; font-weight: 600; color: var(--text); background: var(--surface); border-radius: 999px; padding: 2px 9px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid transparent; border-radius: 20px; overflow: hidden;
  text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { border-color: rgba(251, 191, 36, 0.45); transform: translateY(-2px); }
.card:active { transform: scale(0.99); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.cover { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.meta { display: flex; gap: 8px; align-items: center; }
.genre { font-size: 12px; font-weight: 600; color: var(--muted); }
.new { font-size: 11px; font-weight: 700; color: #0b0f19; background: var(--accent); border-radius: 6px; padding: 1px 6px; }
.title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.tagline { font-size: 14px; line-height: 1.5; color: var(--muted); }
.play {
  margin-top: auto; padding-top: 12px;
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 15px; font-weight: 600; color: var(--accent);
}

.soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  min-height: 280px; padding: 24px; border-radius: 20px; border: 1.5px dashed var(--line); color: var(--muted);
}
.soon-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; margin-bottom: 6px; }
.soon-title { font-size: 15px; font-weight: 600; color: var(--text); }
.soon-text { font-size: 13px; line-height: 1.5; max-width: 220px; }

.foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 48px; padding-bottom: calc(env(safe-area-inset-bottom) + 28px);
  font-size: 13px; color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

.empty { padding-top: 20vh; text-align: center; }
.empty p { color: var(--muted); }
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; margin-top: 12px; border-radius: 12px; background: var(--accent); color: #0b0f19; font-weight: 600; text-decoration: none; }

@media (max-width: 520px) {
  .hero { padding: 32px 0 24px; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
