html { -webkit-text-size-adjust: 100%; }
body {
  --ink: #f6efe4;
  --muted: #cbbba6;
  --line: #3c3028;
  --paper: #110e0c;
  --card: #1b1613;
  --navy: #d4b483;
  --gold: #d4b483;
  --focus: #e7c98a;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(212, 180, 131, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(143, 45, 45, 0.2), transparent 50%),
    var(--paper);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
header.mast {
  padding: calc(16px + env(safe-area-inset-top)) 0 14px;
  background:
    radial-gradient(480px 200px at 88% 0%, rgba(212, 180, 131, 0.28), transparent 60%),
    linear-gradient(160deg, #1a120e 0%, #3a241c 55%, #6b3030 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
main { padding: 0 0 calc(28px + env(safe-area-inset-bottom)); }
.frame-width { width: min(1680px, calc(100% - 32px)); margin: 0 auto; }
.mast-inner, .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px;
  align-items: end;
}
.shell { align-items: start; margin-top: 16px; }
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.logo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
header .kicker { color: #e7c98a; }
header h1 { margin: 2px 0 4px; }
header .sub { color: #f0e2d0; max-width: none; }
a { color: #e7c98a; }
.official-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.official-card, .network-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  background: #110e0c;
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 8px 10px;
  touch-action: manipulation;
}
.official-card strong { color: #fffdf8; font-size: 15px; font-weight: 600; }
.official-card .handle, .network-card span { color: #e7c98a; font-size: 13px; }
.network-name { color: #cbbba6; font: 11px/1.2 "Avenir Next", "Segoe UI", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.network { display: flex; gap: 8px; margin-top: 8px; }
.network-card { flex: 1; min-height: 44px; }
.channels, .gather { display: flex; flex-wrap: wrap; gap: 8px; }
.shelves { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.channels { margin: 8px 0 12px; }
.channel, .shelf, .card, .more, .watch, .views button, .continents button, #all-live {
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 999px;
}
.channel, .shelf {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  padding: 8px 12px;
  min-height: 44px;
}
.shelf { align-items: flex-start; border-radius: 16px; }
.shelf-name { font-weight: 650; }
.shelf-count { color: var(--muted); font: 12px/1.2 "Avenir Next", "Segoe UI", sans-serif; }
.library { display: grid; gap: 18px; }
.library-grid, .band-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.band-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 8px; }
.band-head h2 { margin: 0; color: #fffdf8; font-size: 22px; }
.shelf-more { margin-left: auto; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: #e7c98a; }
.channel strong, .card h2 { display: block; font-weight: 500; }
.channel span, .meta, .place p { color: var(--muted); font: 13px/1.4 "Avenir Next", "Segoe UI", sans-serif; }
.shelf[aria-selected="true"], .card.on, .continents button[aria-selected="true"], .views button[aria-selected="true"] {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  color: #fffdf8;
}
.stage { margin: 0 0 12px; }
.frame {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.frame iframe { width: 100%; height: 100%; border: 0; }
.now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.now h2 { margin: 2px 0 0; font-size: 22px; color: var(--ink); flex: 1; }
.watch { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.live-head h2, .rail h2, .gatherings h2 { margin: 0; color: #fffdf8; font-size: 20px; }
#all-live { min-height: 44px; padding: 8px 14px; background: #e7c98a; color: #1a120e; border: 0; }
.live-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 4px;
}
.live-card { margin: 0; }
.live-card h2 { font-size: 13px; }
.card {
  margin: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
  border-radius: 16px;
  padding: 8px;
}
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #2a211c; }
.card h2 { margin: 8px 0 2px; font-size: 15px; }
.more { grid-column: 1 / -1; min-height: 44px; }
.kind {
  color: #e7c98a;
  font: 11px/1.3 "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}
.find { display: grid; gap: 12px; margin: 8px 0; }
.find input { max-width: 420px; }
.find input, .rail input { background: #110e0c; color: var(--ink); border-color: var(--line); border-radius: 12px; }
label { color: var(--muted); }
.note { color: var(--muted); margin: 8px 0; }
.gatherings { margin-top: 22px; }
.views { display: none; gap: 8px; margin-top: 12px; }
.views button { min-height: 44px; padding: 8px 14px; }
.rail {
  position: sticky;
  top: 12px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(212, 180, 131, 0.16), transparent 70%),
    #1a1410;
}
.rail .eyebrow {
  margin: 0;
  color: #e7c98a;
  font: 12px/1.3 "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.featured, #place-list { display: grid; gap: 8px; }
.place {
  background: #110e0c;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.place.pin { border-color: var(--gold); background: #241812; }
.place h3 { margin: 2px 0 4px; color: #fffdf8; font-size: 18px; font-weight: 600; }
.place .address { margin: 4px 0 0; }
.continent {
  margin: 12px 0 0;
  color: #e7c98a;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.continents { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.continents button { min-height: 36px; padding: 6px 10px; font-size: 13px; }
@media (max-width: 1100px) {
  .mast-inner, .shell { grid-template-columns: 1fr; }
  .rail { position: static; max-height: none; }
  .live-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .views { display: flex; }
  body[data-view="watch"] .rail { display: none; }
  body[data-view="places"] .watch-col { display: none; }
  .official-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .frame-width { width: min(1680px, calc(100% - 20px)); }
  header .sub { font-size: 15px; }
  .find { grid-template-columns: 1fr; position: sticky; top: env(safe-area-inset-top); z-index: 5; background: rgba(17, 14, 12, 0.94); padding: 8px 0; }
  .now { flex-direction: column; align-items: flex-start; padding: 12px; }
  .now h2 { font-size: 20px; }
  .live-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mast-side { overflow: hidden; }
  .official-grid, .network {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .official-card, .network-card { flex: 0 0 168px; }
  .channels, .shelves {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .channel, .shelf { scroll-snap-align: start; flex: 0 0 auto; }
}
