:root {
  --bg: #141824;
  --bg-2: #1c2233;
  --card: #222a3f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #a3acc4;
  --accent: #ffd84d;
  --accent-2: #ff7ad9;
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Rubik, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Шапка ---------- */
.hero {
  padding: 28px 0 56px;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(255, 122, 217, 0.18), transparent 70%),
    radial-gradient(700px 360px at 10% 0%, rgba(110, 198, 255, 0.18), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.logo { font-weight: 800; font-size: 20px; margin-bottom: 48px; }

h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 span { color: var(--accent); }

.lead { margin: 0; max-width: 520px; color: var(--muted); font-size: 18px; }

/* ---------- Каталог ---------- */
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 40px 0 20px; }
.section-head h2 { margin: 0; font-size: 26px; font-weight: 800; }
.count { color: var(--muted); font-size: 15px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  outline: none;
}

.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.card:hover .cover img { transform: scale(1.05); }

.play {
  position: absolute; right: 14px; bottom: 14px;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c, var(--accent)); color: #1b1b28;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: scale(0.85); opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.play svg { width: 22px; height: 22px; margin-left: 3px; }
.card:hover .play, .card:focus-visible .play { transform: scale(1); opacity: 1; }

.info { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.info h3 { margin: 0; font-size: 20px; font-weight: 800; }
.info p { margin: 0; color: var(--muted); font-size: 15px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag {
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: var(--muted);
  font-size: 13px; font-weight: 600;
}

/* Заглушка «скоро» */
.card.soon {
  align-items: center; justify-content: center; gap: 8px;
  min-height: 260px; padding: 24px; text-align: center;
  background: transparent; border: 2px dashed var(--line); color: var(--muted);
}
.card.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card.soon .big { font-size: 40px; }
.card.soon strong { color: var(--text); font-size: 18px; }

.empty { color: var(--muted); }

/* ---------- Подвал ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 64px; padding-top: 24px; padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}

@media (max-width: 600px) {
  .hero { padding-bottom: 40px; }
  .logo { margin-bottom: 32px; }
  .lead { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .play { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
