:root {
  --bg: #12141d;
  --bg-2: #1a1d29;
  --panel: #222637;
  --line: #2f3449;
  --text: #f4f1e8;
  --muted: #a3a8bd;
  --bus: #ffd23f;
  --bus-ink: #2a2105;
  --red: #ff5a5f;
  --teal: #3ecfb2;
  --display: "Bungee", "Arial Black", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(var(--bg-2) 1.5px, transparent 2px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--bus); outline-offset: 3px; }
[hidden] { display: none !important; }

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

/* ---------- Header ---------- */
.site-head { padding-top: 28px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; width: fit-content; }
.brand img { width: 48px; height: 48px; }
.brand-name {
  font-family: var(--display); font-size: clamp(26px, 6vw, 40px); line-height: 1;
  color: var(--bus); text-shadow: 0 3px 0 #000;
  letter-spacing: .5px;
}
.brand-name span { color: var(--text); }
.lede { color: var(--muted); margin: 12px 0 0; font-size: 17px; max-width: 46ch; }

/* ---------- Featured ---------- */
.featured {
  margin: 28px 0 8px;
  display: grid; grid-template-columns: 1.2fr 1fr;
  border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.featured:hover { transform: translateY(-3px); border-color: var(--bus); }
.featured .art { min-height: 280px; }
.featured .art-title { font-size: clamp(40px, 7vw, 76px); }
.featured-info { padding: 28px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.kicker {
  font-family: var(--display); font-size: 13px; letter-spacing: 1px; color: var(--bus);
  text-transform: uppercase;
}
.featured-info h2 { margin: 0; font-size: 30px; line-height: 1.1; }
.featured-info p { margin: 0; color: var(--muted); }
.play-btn {
  align-self: flex-start; margin-top: 6px;
  font-family: var(--display); font-size: 18px; letter-spacing: .5px;
  background: var(--bus); color: var(--bus-ink);
  padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 4px 0 #b38f12;
}

/* ---------- Filters ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 16px; flex-wrap: wrap; }
.bar h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .5px; }
.chips { display: flex; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--panel);
  padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted);
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--bus); }
.art {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center; padding: 16px; text-align: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 40%),
    linear-gradient(135deg, var(--from), var(--to));
  color: var(--ink);
}
.art::after {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 14px);
}
.art-title {
  position: relative; z-index: 1;
  font-size: 34px; font-weight: 900; line-height: .95; text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0,0,0,.35);
  overflow-wrap: anywhere;
}
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.badge {
  font-family: var(--display); font-size: 11px; letter-spacing: .5px;
  padding: 4px 8px; border-radius: 6px; background: var(--bus); color: var(--bus-ink);
}
.badge.soft { background: rgba(0,0,0,.55); color: #fff; }
.info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.info h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.info p { margin: 0; color: var(--muted); font-size: 15px; }
.devices { margin-top: auto; padding-top: 10px; display: flex; gap: 12px; font-size: 13px; font-weight: 800; color: var(--muted); }
.devices span { display: inline-flex; align-items: center; gap: 5px; }
.devices svg { width: 16px; height: 16px; }
.devices .warn { color: var(--bus); }

.soon {
  margin-top: 20px; padding: 20px 24px;
  border: 2px dashed var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px;
}
.soon p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot { margin: 56px 0 32px; color: var(--muted); font-size: 14px; text-align: center; }
.site-foot strong { color: var(--text); }

@media (max-width: 720px) {
  .featured { grid-template-columns: 1fr; }
  .featured .art { min-height: 0; }
  .featured-info { padding: 20px; }
  .featured-info h2 { font-size: 24px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .art-title { font-size: 24px; }
  .info { padding: 10px 12px 12px; }
  .info h3 { font-size: 16px; }
  .info p { font-size: 14px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

/* ---------- Play page ---------- */
.play-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #000; }
.play-bar {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 8px max(12px, env(safe-area-inset-left)) 8px max(12px, env(safe-area-inset-right));
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--display); font-size: 15px; color: var(--bus); }
.back svg { width: 18px; height: 18px; }
.play-title { flex: 1; margin: 0; font-size: 16px; font-weight: 800; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
.stage { flex: 1; position: relative; min-height: 0; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.notice {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px;
  background: rgba(10, 11, 16, .94); text-align: center;
}
.notice-box { max-width: 380px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.notice h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--bus); }
.notice p { margin: 0; color: var(--muted); }
.notice .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); padding: 11px 20px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.notice .play-btn { align-self: auto; margin: 0; border: 0; }
