:root {
  --navy: #0f1b2d; --orange: #c2410c; --orange-300: #fdba74; --orange-100: #ffedd5;
  --bg: #f6f5f1; --card: #ffffff; --line: #e2e0d8; --line-2: #eeece6;
  --muted: #57534e; --green: #15803d; --green-bg: #dcfce7;
  --head: "Space Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--navy); }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }
p { margin: 0; line-height: 1.45; }
.page { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.loading { padding: 40px 20px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.pad { padding: 20px; }
.pad-x { padding: 0 20px; }
.pad-top { padding-top: 16px; }
.pad-sm { padding: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.stack-xs { display: flex; flex-direction: column; gap: 3px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row-gap { display: flex; gap: 8px; align-items: center; }

/* header */
.top { background: var(--navy); color: #fff; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.top-home { padding: 28px 20px 24px; gap: 10px; }
.back { color: var(--orange-300); font-size: 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; align-self: flex-start; }
.back:hover { color: #fff; }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-300); font-weight: 600; }
.h1 { margin: 0; font-family: var(--head); font-size: 32px; line-height: 1.05; font-weight: 700; }
.h1-xl { font-size: 34px; }
.top-sub { font-size: 13px; color: #cbd5e1; }
.h2 { margin: 0; font-size: 18px; font-weight: 700; }
.h-sm { margin: 0; font-size: 16px; font-weight: 700; }

/* sponsor slots */
.presented { font-size: 12px; color: #cbd5e1; margin-top: 4px; }
.fk .presented { color: var(--orange-100); margin-top: 6px; }
.placeholder { height: 64px; border: 2px dashed #64748b; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #e2e8f0; font-weight: 600; }
.placeholder-orange { border-color: #fed7aa; color: #fff; }
.presenter { height: 64px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 8px 14px; }
.presenter-logo { max-height: 48px; max-width: 100%; object-fit: contain; }
.sp-line { font-size: 12px; color: #cbd5e1; }
.fk .sp-line { color: var(--orange-100); }
.logo-name { font-weight: 700; font-size: 15px; text-align: center; color: var(--navy); }

/* nav cards */
.navcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.navcard-t { font-weight: 700; font-size: 15px; }
.navcard-s { font-size: 11px; color: var(--muted); }

/* friday card */
.fk { margin: 0 20px; background: var(--orange); color: #fff; border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.fk-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--orange-100); }
.fk-title { margin: 0; font-family: var(--head); font-size: 28px; line-height: 1.05; }
.fk-tag { font-size: 14px; color: var(--orange-100); }

/* cards and lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.upnext { padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.by { font-size: 12px; color: var(--orange); font-weight: 600; }
.muted, .muted-sm, .muted-xs, .sub { color: var(--muted); }
.muted { font-size: 13px; }
.muted-sm { font-size: 13px; font-weight: 500; }
.muted-xs { font-size: 11px; }
.sub { display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }
.list { padding: 0 14px; display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--line-2); }
.list-row { padding: 12px 0; font-size: 14px; font-weight: 600; min-height: 44px; display: block; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

.tile { height: 76px; background: #fff; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.tile-ph { border: 2px dashed #a8a29e; font-size: 13px; color: var(--muted); font-weight: 600; }
.tile-sm { height: 60px; font-size: 12px; }
.tile-logo { max-width: 100%; max-height: 100%; object-fit: contain; }

.banner { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 14px; font-size: 16px; }
.banner-ph { border: 2px dashed var(--orange); }
.banner-logo { width: 72px; height: 48px; flex: none; border-radius: 8px; background: var(--orange-100); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #9a3412; overflow: hidden; }
.banner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }

/* schedule rows */
.sched-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; min-height: 48px; font-size: 14px; }
#app .sched-row:not(:has(.sched-time)) { grid-template-columns: minmax(0, 1fr) auto; }
.sched-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sched-name { font-weight: 600; }

.chip { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; align-self: flex-start; }
.chip-done { color: var(--green); background: var(--green-bg); }
.chip-live { color: #9a3412; background: var(--orange-100); }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills.sticky { position: sticky; top: 0; background: var(--bg); padding: 12px 0 4px; z-index: 2; }
.pill { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.pill-done { border-color: #86efac; }

/* heat table */
.table { overflow: hidden; }
.hrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) 62px 76px; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-2); font-size: 14px; align-items: start; }
.hhead { border-top: 0; background: var(--line-2); padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ln { font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.seed { color: var(--muted); }
.res { font-weight: 700; }
.place { display: block; font-size: 11px; font-weight: 600; color: var(--orange); }
.beat { display: block; font-size: 10px; font-weight: 700; color: var(--green); }
.heat { scroll-margin-top: 64px; }

.price-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 84px; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-2); font-size: 14px; }
.price-row.hhead { border-top: 0; }

.rec-row { padding: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.rec-row .sub { grid-column: 1 / -1; }
.rec-mark { font-weight: 700; font-variant-numeric: tabular-nums; }

.btn { align-self: flex-start; background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.btn:hover { color: var(--orange-300); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--orange); }
.mini { font-size: 12px; font-weight: 600; color: var(--orange); min-height: 44px; display: inline-flex; align-items: center; }

.search { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; }
.updated { font-size: 12px; color: var(--muted); padding-top: 8px; }
.updated.warn { color: #9a3412; }
.sample { margin: 12px 20px 0; padding: 10px 12px; border-radius: 10px; background: #fef3c7; color: #78350f; font-size: 12px; font-weight: 600; }

.foot { margin-top: auto; background: var(--navy); color: #cbd5e1; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.foot-host { color: #fff; font-weight: 600; }
.fk + section, nav + section { margin-top: 0; }
