/* Page layouts shared by the three sites. */

[data-site="radio"] main, [data-site="status"] main, .page { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 0; }
[data-site="status"] main { max-width: 860px; }
.section { margin-top: 40px; }
.section-s { margin-top: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; }
.page-head [data-switch] { margin-left: auto; }

.grid-sets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 899.98px) { .cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 719.98px) {
  .grid-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .cols-2 { grid-template-columns: 1fr; }
}

/* Now playing / set hero */
.now { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; }
.now-art { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-md); }
.now-body .display { margin: 4px 0 0; }
.now-meta { margin: 12px 0 10px; }
.now-track { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 18px; background: var(--surface-2); border-radius: var(--r-md); }
.now-track .icon { width: 18px; height: 18px; }
.now-track .pixel { display: block; font-size: 9px; }
.onair-line { margin-bottom: 12px; }
.back-link { display: flex; width: fit-content; align-items: center; gap: 6px; min-height: 32px; margin-bottom: 8px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--text); text-decoration: underline; }
.set-hero .lead { margin: 0 0 18px; }
@media (max-width: 719.98px) {
  .now { grid-template-columns: 1fr; gap: 18px; }
  .now-art { max-width: 320px; }
}

.mini-row { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; }
.mini-time { flex: none; width: 46px; font-size: 12px; color: var(--muted); }
.mini-row a { font-weight: 500; text-decoration: none; }
.mini-row a:hover { text-decoration: underline; }
.row-tag { margin-left: auto; font-size: 12px; white-space: nowrap; }
.row-tag.warm { color: var(--warm-text); }
.row-tag.muted { color: var(--muted); }
.card .btn { margin-top: 12px; }
.card .actions .btn { margin-top: 0; }
.card p.small { margin-top: 4px; }

/* Schedule */
.slots { display: grid; gap: 6px; }
.slot { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px; padding: 10px 12px 10px 14px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--r-md); }
.slot.is-now { background: var(--accent-soft); border-color: var(--accent); }
.slot-time { font-size: 13px; font-weight: 500; color: var(--muted); }
.slot.is-now .slot-time { color: var(--accent-text); }
.slot-name { font-weight: 500; text-decoration: none; }
.slot-name:hover { text-decoration: underline; }
.slot-kind { display: block; font-size: 12px; color: var(--muted); }
.slot-kind.warm { color: var(--warm-text); }
.slot-kind.accent { color: var(--accent-text); }
.slot-act { display: flex; justify-content: flex-end; min-width: 40px; }
@media (max-width: 719.98px) { .page-head [data-switch] { margin-left: 0; } }

/* Archive */
.search { margin-bottom: 22px; }
.search-status { min-height: 22px; margin: 8px 2px 6px; font-size: 13px; }
.search-status strong { color: var(--text); font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.empty .btn { margin-top: 0; }

/* Artists */
.artist { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; border-radius: var(--r-md); }
.artist-art { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.artist-name { margin-top: 10px; font-weight: 500; }
.artist:hover .artist-name { text-decoration: underline; }

/* Listen */
.field-group { margin-top: 14px; }
.app-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.app-row:last-child { border-bottom: 0; }
.app-row .icon { width: 18px; height: 18px; }
.app-name { flex: 1; min-width: 0; }
.app-name .small { display: block; }

/* stanzaclub.com */
.hero { background: #8fbef0; }
.hero-picture img { width: 100%; height: auto; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end; max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 32px; }
.intro .display { margin: 8px 0 12px; }
@media (max-width: 899.98px) { .intro { grid-template-columns: 1fr; } }

.onair-strip { background: var(--strip-bg); color: var(--strip-text); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter); }
.strip-art { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: var(--r-sm); }
.strip-body { flex: 1; min-width: 200px; }
.strip-body .display { margin: 6px 0 4px; color: var(--strip-text); }
.strip-accent { color: var(--strip-accent); }
.strip-muted { color: var(--strip-muted); }
.strip-sample { margin-top: 6px; }
.onair-strip .tag { color: var(--strip-text); border-color: #3a3a41; }
.onair-strip :focus-visible { outline-color: var(--strip-accent); }

.nights { border-bottom: 2px solid var(--heading); }
.night { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 18px 0; border-top: 2px solid var(--heading); }
.night-date { display: flex; flex-direction: column; gap: 6px; }
.night-day { font-size: 44px; line-height: .8; }
.night-day.night-year { font-size: 30px; }
.nowrap { white-space: nowrap; }
.night-body p { margin-top: 6px; }
@media (max-width: 719.98px) {
  .night { grid-template-columns: 76px minmax(0, 1fr); }
  .night .btn { grid-column: 2; justify-self: start; }
  .night-day { font-size: 36px; }
  .night-day.night-year { font-size: 24px; }
}
.note .icon { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; }
#about .display-m { margin: 2px 0 6px; }
#about .actions { margin-top: 14px; }

/* status.stanzaclub.com */
.status-banner { display: flex; align-items: center; gap: 12px; background: var(--ok-soft); border-color: var(--ok); }
.status-banner .icon { width: 26px; height: 26px; }
.status-ok { font-weight: 500; }
.status-sub { color: var(--ok-soft-text); }
.uptime { padding: 0; }
.uptime-row { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.uptime-row:last-child { border-bottom: 0; }
.uptime-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.uptime-name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: break-word; }
@media (max-width: 719.98px) { .uptime-head .small { flex-basis: 100%; padding-left: 18px; } }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot.ok { background: var(--ok); }
.dot.idle { background: var(--muted); }
.uptime-bars { display: flex; gap: 2px; margin-top: 8px; }
.uptime-bars i { flex: 1; height: 22px; border-radius: 2px; background: var(--ok); }
.uptime-bars i.warn { background: var(--warm); }
.incident-title { font-size: 15px; font-weight: 500; }
