html, body {
  margin: 0;
  padding: 0;
  background: #FAF7F1;
  color: #201D18;
  font-family: 'Manrope', sans-serif;
}
a { color: #9A7208; text-decoration: none; }
a:hover { color: #201D18; text-decoration: underline; }

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(217,45,32,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(217,45,32,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,45,32,0); }
}

.page { min-height: 100vh; background: #FAF7F1; }
.wrap { max-width: 928px; margin: 0 auto; padding: 0 32px 80px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 28px 0; border-bottom: 1px solid #E7E1D5; flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand-mark { font-size: 23px; letter-spacing: -0.045em; display: flex; align-items: baseline; }
.brand-bold { font-weight: 800; }
.brand-outline { font-weight: 500; color: transparent; -webkit-text-stroke: 1.3px #C9930A; letter-spacing: 0; padding: 0 2px; }
.brand-handle { font-family: 'Fira Code', monospace; font-size: 12px; color: #6E675C; }
.site-nav { display: flex; gap: 18px; font-size: 13px; font-weight: 600; }

.live-badge {
  display: flex; align-items: center; gap: 8px; border-radius: 999px;
  padding: 7px 16px 7px 12px; font-family: 'Fira Code', monospace; font-size: 12px; font-weight: 600;
}
.live-badge--offline { border: 1px solid #E7E1D5; color: #6E675C; }
.live-badge--live { background: #D92D20; color: #fff; }
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.live-badge--offline .dot { background: #B9B2A4; }
.live-badge--live .dot { background: #fff; animation: livePulse 1.6s infinite; }

/* Platform strip */
.platform-strip { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 0; border-bottom: 1px solid #E7E1D5; align-items: center; }
.platform-chip {
  display: flex; align-items: center; gap: 8px; border: 1px solid #E7E1D5; background: #fff;
  border-radius: 10px; padding: 9px 14px; font-family: 'Fira Code', monospace; font-size: 12px;
  color: #201D18; text-decoration: none;
}
.platform-chip:hover { border-color: #C9930A; text-decoration: none; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.chip-name { font-weight: 600; }
.chip-status { color: #B9B2A4; }
.platform-chip--live .chip-dot { background: #D92D20 !important; animation: livePulse 1.6s infinite; }
.platform-chip--live .chip-status { color: #D92D20; }

/* Hero grid — shared by offline (picture+countdown / latest content) and
   live (video / transcript) states, evenly split main+360px sidebar. */
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 20px; padding: 28px 0; }
.hero-grid[hidden] { display: none; }

.hero-card {
  border-radius: 14px; overflow: hidden; min-height: 480px; display: flex; flex-direction: column;
  justify-content: flex-start; gap: 20px; padding: 40px; box-sizing: border-box;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-top { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.hero-eyebrow { font-family: 'Fira Code', monospace; font-size: 11px; color: #D9CFB8; }
.hero-title { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: #fff; }
.hero-sub { margin: 0; font-size: 14px; line-height: 1.6; color: #D9CFB8; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.countdown-row { display: flex; gap: 22px; }
.countdown-val { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; }
.countdown-lbl { font-family: 'Fira Code', monospace; font-size: 11px; color: #D9CFB8; }

/* Side panel — shared shell for "Latest content" (offline) and the live
   transcript. Offline items are their own cards; transcript gets one card. */
.side-panel { display: flex; flex-direction: column; gap: 12px; min-height: 480px; }
.side-panel-label { padding: 4px 2px 0; }
.side-loading { color: #6E675C; font-size: 13px; padding: 4px 2px; }

.latest-content-list { display: flex; flex-direction: column; gap: 12px; }
.content-item {
  display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #E7E1D5;
  border-radius: 12px; padding: 12px; text-decoration: none; color: #201D18;
}
.content-item:hover { border-color: #C9930A; text-decoration: none; }
.content-thumb { width: 72px; height: 44px; border-radius: 8px; background: #141210; color: #C9930A; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.content-body { min-width: 0; }
.content-title { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content-meta { font-family: 'Fira Code', monospace; font-size: 10px; color: #6E675C; margin-top: 3px; }

.transcript-panel { background: #fff; border: 1px solid #E7E1D5; border-radius: 14px; overflow: hidden; }
.transcript-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #E7E1D5; }
.captions-list { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; max-height: 480px; }
.caption-line { animation: capIn 0.3s ease; }
.caption-time { font-family: 'Fira Code', monospace; font-size: 10px; color: #B9B2A4; }
.caption-text { font-size: 14px; line-height: 1.5; color: #201D18; }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.btn { font-weight: 700; font-size: 13px; border-radius: 8px; padding: 11px 18px; text-decoration: none; display: inline-block; border: none; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-gold { background: #C9930A; color: #141210; }
.btn-gold:hover { background: #E0A80F; color: #141210; }
.btn-outline { border: 1px solid rgba(255,255,255,0.35); color: #fff; background: rgba(16,14,12,0.4); font-weight: 600; }
.btn-outline:hover { border-color: #C9930A; color: #fff; }
.btn-dark { background: #201D18; color: #fff; }
.btn-dark:hover { background: #3A362F; }

/* Live hero */
.live-player { background: #141210; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-height: 480px; }
.live-player-top { display: flex; gap: 8px; align-items: center; padding: 16px; }
.live-tag { background: #D92D20; color: #fff; font-family: 'Fira Code', monospace; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 4px 8px; }
.viewers-tag { background: rgba(255,255,255,0.12); color: #fff; font-family: 'Fira Code', monospace; font-size: 11px; border-radius: 6px; padding: 4px 8px; }
.live-player-mid { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; color: #8A8378; padding: 20px; }
.play-ring { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #3A362F; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: #C9930A; font-size: 22px; }
.live-player-copy { font-family: 'Fira Code', monospace; font-size: 12px; }
.live-player-sub { font-size: 12px; margin-top: 4px; color: #6E675C; }
.live-player-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid #262320; }
.live-show-title { color: #fff; font-weight: 700; font-size: 15px; }
.live-show-meta { color: #8A8378; font-size: 12px; margin-top: 2px; }

/* Sections */
.section { padding: 36px 0; border-top: 1px solid #E7E1D5; }
.section h2 { margin: 0 0 22px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.section-head h2 { margin: 0; }
.section-lede { margin: 0 0 22px; color: #6E675C; font-size: 14px; max-width: 520px; }
.mono-tag { font-family: 'Fira Code', monospace; font-size: 11px; color: #6E675C; }

.schedule-card { background: #fff; border: 1px solid #E7E1D5; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.schedule-card p { margin: 0; color: #3A362F; font-size: 14px; line-height: 1.6; max-width: 560px; }

/* Notify */
.notify-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; margin: 0; }
.notify-card { background: #fff; border: 1px solid #E7E1D5; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
fieldset.notify-card { min-width: 0; }
.notify-card--disabled { opacity: 0.6; }
.notify-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notify-card-name { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.badge { font-family: 'Fira Code', monospace; font-size: 10px; color: #9A7208; border: 1px solid #E9D9AC; border-radius: 6px; padding: 2px 6px; font-weight: 400; }
.notify-card-desc { font-size: 12.5px; color: #6E675C; line-height: 1.6; display: block; }
.notify-input { font-family: 'Manrope', sans-serif; font-size: 14px; border: 1px solid #E7E1D5; border-radius: 8px; padding: 10px 12px; background: #FAF7F1; color: #201D18; outline: none; margin-top: auto; }
.notify-input:focus { border-color: #C9930A; }
.notify-input:disabled { opacity: 0.5; }

.toggle { width: 40px; height: 22px; position: relative; display: inline-block; flex-shrink: 0; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; border-radius: 999px; border: 1px solid #E7E1D5; background: #F2EDE2; transition: background 0.15s, border-color 0.15s; }
.toggle-knob { position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: left 0.15s; }
.toggle input:checked + .toggle-track { background: #C9930A; border-color: #C9930A; }
.toggle input:checked + .toggle-track .toggle-knob { left: 19px; }
.toggle--disabled { cursor: not-allowed; }

/* A literal checkbox, not a toggle switch — Twilio's A2P review flags
   toggle switches as ambiguous for SMS opt-in consent (2026-08-20). */
.sms-consent { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #3A362F; }
.sms-checkbox { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: #C9930A; cursor: pointer; }

.notify-submit-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.notify-status { font-size: 12px; color: #6E675C; }
.notify-status.is-ok { color: #2E7D32; }
.notify-status.is-err { color: #D92D20; }

/* About */
.about-section { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; }
.about-section p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #3A362F; max-width: 560px; }
.about-card { background: #fff; border: 1px solid #E7E1D5; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; height: fit-content; }
.about-email { font-weight: 700; font-size: 15px; }
.about-note { font-size: 12px; color: #6E675C; }

/* Footer */
.site-footer { padding: 26px 0 0; border-top: 1px solid #E7E1D5; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; font-family: 'Fira Code', monospace; font-size: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .notify-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .site-nav { order: 3; width: 100%; }

  /* Offline hero: on the narrow card the desktop's "cluster at top, pin
     actions to bottom" layout crowds the photo. Spread the three blocks
     (text / countdown / actions) evenly instead, and shrink the buttons. */
  .hero-card { justify-content: space-between; padding: 24px 20px; min-height: 420px; gap: 12px; }
  .hero-actions { margin-top: 0; gap: 8px; }
  .hero-actions .btn { padding: 8px 12px; font-size: 12px; }
  .hero-title { font-size: 20px; }
  .hero-sub { font-size: 13px; }
  .countdown-row { gap: 14px; }
  .countdown-val { font-size: 26px; }
}
