:root {
  --bg: #fff8ef;
  --surface: #ffffff;
  --text: #2d2a32;
  --muted: #6b6573;
  --border: #eadfce;
  --hero-a: #ff7a59;
  --hero-b: #ffb347;
  --shadow: 0 2px 0 rgba(45, 42, 50, .08), 0 8px 24px rgba(45, 42, 50, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151c;
    --surface: #221f29;
    --text: #f3eff8;
    --muted: #a59fb0;
    --border: #35303f;
    --hero-a: #c2410c;
    --hero-b: #b45309;
    --shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Fredoka', system-ui, -apple-system, sans-serif;
  line-height: 1.4;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.hero {
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
  color: #fff;
  text-align: center;
  padding: 48px 0 64px;
  border-radius: 0 0 32px 32px;
}
.logo { font-size: 56px; line-height: 1; display: inline-block; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .logo { animation: none; } }
.hero h1 { font-size: clamp(32px, 6vw, 52px); margin: 8px 0 4px; font-weight: 700; letter-spacing: -.5px; }
.tagline { margin: 0; font-size: 18px; opacity: .95; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: -28px 0 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
}
.search {
  flex: 1 1 220px; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 14px; padding: 0 12px;
}
.search input {
  flex: 1; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 16px; padding: 10px 0; outline: none; min-width: 0;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: inherit; font-weight: 500; text-transform: capitalize;
  border: 2px solid var(--border); background: transparent; color: var(--text);
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--surface); color: inherit; text-decoration: none;
  border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-4px) rotate(-.5deg); outline: none; box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.thumb {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.25) 0 18%, transparent 19%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,.18) 0 22%, transparent 23%),
    var(--accent);
}
.thumb span { font-size: 64px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); transition: transform .2s; }
.card:hover .thumb span { transform: scale(1.12) rotate(6deg); }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.body h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.desc { margin: 0 0 14px; color: var(--muted); font-size: 15px; flex: 1; }
.meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.by { color: var(--muted); }
.by strong { color: var(--text); text-transform: capitalize; font-weight: 600; }
.play {
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}

.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.footer { text-align: center; color: var(--muted); padding: 48px 16px 32px; font-size: 14px; }
