/* Mama Tried Radio — standalone now-playing app
   Layout matches the Grok Page at a 430px phone column. */

:root {
  --bg: #f3f3f3;
  --card: #e3e3e3;
  --nav: #ededed;
  --nav-border: #d3d3d3;
  --text: #010101;
  --artist-now: #414141;
  --secondary: #5e5e5e;
  --muted: #666666;
  --track: #cdcdcd;
  --time: #606060;
  --icon: #111111;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Helvetica, Arial, sans-serif;
  --up-next-font: "DejaVu Sans", Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: #e6e6e6;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

body {
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  color: var(--text);
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.08);
}

@media (max-width: 430px) {
  body { background: var(--bg); }
  .phone { box-shadow: none; }
}

/* ---------- Home ---------- */

.view-home {
  padding: 20px 26px 24px;
  box-sizing: border-box;
  overflow: visible;
  flex: 1 0 auto;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.logo {
  width: 117px;
  height: auto;
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

/* ---------- Now playing ---------- */

.now-playing {
  margin-top: 0;
}

.now-line {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--artist-now);
}

.now-title {
  font-weight: 700;
  color: var(--text);
}

.now-artist {
  font-weight: 400;
  color: var(--artist-now);
}

.now-artist a.artist-link {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
}

/* ---------- Progress ---------- */

.progress {
  margin-top: 18px;
  outline: none;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.progress-track {
  position: relative;
  height: 4.5px;
  background: var(--track);
  border-radius: 99px;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #000;
  border-radius: 99px;
  pointer-events: none;
}

.progress-knob {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  left: 0%;
  pointer-events: none;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1;
  color: var(--time);
  font-weight: 400;
}

/* ---------- Controls ---------- */

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 22px;
  min-height: 62px;
}

.mute-btn,
.tab {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.mute-btn:focus-visible,
.tab:focus-visible,
.festival-link:focus-visible,
.festival-poster:focus-visible,
.channel-row--live:focus-visible,
.show-card:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
  border-radius: 6px;
}

.mute-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 0;
}

/* Visible black disc is a span (host-safe). Icons are spans, not SVG/button fill. */
.mute-face {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: #000;
  box-shadow: inset 0 0 0 31px #000;
  overflow: hidden;
}

/* Pre-tap / muted: solid play triangle, optically centered, left: 23px. */
.icon-play {
  position: absolute;
  left: 23px;
  top: 16.5px;
  width: 0;
  height: 0;
  border-top: 14.5px solid transparent;
  border-bottom: 14.5px solid transparent;
  border-left: 23px solid #fff;
}

/* Playing (unmuted): solid white stop square, 22px, slightly rounded, centered. */
.icon-stop {
  display: none;
  position: absolute;
  left: 20px;
  top: 20px;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background-color: #fff;
  box-shadow: inset 0 0 0 12px #fff;
}

/* After start, unmuted: show stop. Muted (or pre-tap): show play triangle. */
.mute-btn.is-started:not(.is-muted) .icon-play { display: none; }
.mute-btn.is-started:not(.is-muted) .icon-stop { display: block; }

.listen-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
}

.listen-hint[hidden] { display: none !important; }

/* ---------- Up Next ---------- */

.up-next {
  margin-top: 0;
}

.up-next-heading {
  margin: 26px 0 16px;
  font-size: 15.5px;
  font-weight: 700;
  color: #000;
  font-family: var(--up-next-font);
  line-height: 1.15;
}

.queue {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  background-color: #e3e3e3;
  box-shadow: inset 0 0 0 200px #e3e3e3;
  border: 0;
  border-radius: 14px;
  padding: 13px 15px 12px;
  min-height: 60px;
  cursor: default;
  font-family: var(--up-next-font);
  color: #000;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.card-title {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  font-family: var(--up-next-font);
}

.card-artist {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  line-height: 1.2;
  font-family: var(--up-next-font);
}

/* ---------- Festival ---------- */

/* Full-width rule: cancel the 26px home side padding so the
   2px #d3d3d3 line runs edge to edge across the phone. */
.section-divider {
  border: 0;
  border-top: 2px solid #d3d3d3;
  margin: 18px -26px;
  height: 0;
  display: block;
}

.festival {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.festival-poster {
  display: block;
  width: 54%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
}

.festival-img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
}

.festival-label {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.festival-link {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1.5px solid #5e5e5e;
  line-height: 1.2;
  padding-bottom: 1px;
}

.festival-link:visited { color: var(--secondary); }


/* ---------- Channels ---------- */

.view-channels,
.view-merch,
.view-shows {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 26px 24px;
  box-sizing: border-box;
  background: var(--bg);
}

.channels-heading,
.merch-heading,
.shows-heading {
  margin: 18px 0 16px;
  font-size: 15.5px;
  font-weight: 700;
  color: #000;
  font-family: var(--up-next-font);
  line-height: 1.15;
}

.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  background-color: #e3e3e3;
  box-shadow: inset 0 0 0 200px #e3e3e3;
  border: 0;
  border-radius: 14px;
  padding: 13px 15px 12px;
  min-height: 63.1875px;
  font-family: var(--up-next-font);
  color: #000;
  -webkit-tap-highlight-color: transparent;
}

.channel-row--live {
  cursor: pointer;
  appearance: none;
  font: inherit;
  border: 0;
}

.channel-row--live:active,
.channel-row--live.is-pressed {
  background-color: #d6d6d6;
  box-shadow: inset 0 0 0 200px #d6d6d6;
}

.channel-row--soon {
  cursor: default;
  pointer-events: none;
}

.channel-row-text {
  min-width: 0;
}

.channel-name {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  font-family: var(--up-next-font);
}

.channel-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  line-height: 1.2;
  font-family: var(--up-next-font);
}

.channel-affordance {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.channel-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #010101;
  line-height: 1;
}

.channel-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #010101;
  flex-shrink: 0;
}

.channel-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #010101;
  border-top: 1.5px solid #010101;
  transform: rotate(45deg);
  margin-right: 1px;
}

.coming-soon-pill {
  flex-shrink: 0;
  display: inline-block;
  box-sizing: border-box;
  height: 22px;
  padding: 1.5px 9px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  border: 1px solid #000;
  border-radius: 99px;
  line-height: 1;
  font-family: var(--up-next-font);
  text-align: center;
  text-box: trim-both cap alphabetic;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  align-content: center;
}


/* ---------- Merch ---------- */

.merch-card {
  margin: 0;
  background-color: #e3e3e3;
  border-radius: 14px;
  overflow: hidden;
  cursor: default;
  pointer-events: none;
}

.merch-soon-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 15px 10px;
}

.merch-photo-wrap {
  background: #fff;
  margin: 0 10px;
  border-radius: 10px;
  overflow: hidden;
}

.merch-photo {
  display: block;
  width: 100%;
  height: auto;
}

.merch-price {
  margin: 0;
  padding: 14px 15px 16px;
  font-size: 15.5px;
  font-weight: 700;
  color: #000;
  font-family: var(--up-next-font);
  line-height: 1.2;
  text-align: center;
}


/* ---------- Shows ---------- */

.show-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.show-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  background-color: #e3e3e3;
  box-shadow: inset 0 0 0 200px #e3e3e3;
  border: 0;
  border-radius: 14px;
  padding: 13px 15px 12px;
  min-height: 63.1875px;
  font-family: var(--up-next-font);
  color: #000;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.show-card:visited {
  color: #000;
}

.show-card:active,
.show-card.is-pressed {
  background-color: #d6d6d6;
  box-shadow: inset 0 0 0 200px #d6d6d6;
}

.show-card-text {
  min-width: 0;
}

.show-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.show-name {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  font-family: var(--up-next-font);
}

.show-place {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  line-height: 1.2;
  font-family: var(--up-next-font);
}

.show-countdown {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  font-family: var(--up-next-font);
  line-height: 1.2;
  text-align: right;
}

/* ---------- Placeholder tabs ---------- */

.view-placeholder {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 26px 48px;
  background: var(--bg);
  text-align: center;
}

.placeholder h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.placeholder p {
  margin: 8px 0 0;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Bottom nav (in document flow, sticky) ---------- */

.tabbar {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  width: 100%;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--nav);
  border-top: 1px solid var(--nav-border);
  position: sticky;
  bottom: 0;
  z-index: 20;
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
  padding: 0;
  background: none;
}

.tab.is-active {
  font-weight: 700;
  color: var(--text);
}

/* Real player: keep in the document, off-screen */
audio#player {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}


/* ---------- Privacy / Support pages ---------- */

.view-doc {
  flex: 1 0 auto;
  padding: 20px 26px 40px;
  box-sizing: border-box;
  background: var(--bg);
  font-size: 15.5px;
  line-height: 1.4;
  color: #000;
}

.view-doc p { margin: 0 0 12px; }

.view-doc a { color: #000; text-decoration: underline; text-underline-offset: 3px; }

.doc-title,
.view-doc h2 {
  font-family: var(--up-next-font);
  font-weight: 700;
  color: #000;
  line-height: 1.15;
}

.doc-title { margin: 18px 0 8px; font-size: 20px; }
.view-doc h2 { margin: 22px 0 8px; font-size: 15.5px; }
.doc-date { font-size: 13px; }
.doc-todo { font-weight: 700; background: #fff3a8; padding: 6px 8px; border-radius: 6px; }
.doc-back { margin-top: 28px; }
