:root {
  --bg: #09090d;
  --bg-elev: #0f0f15;
  --bg-card: #14141d;
  --bg-card-hover: #1b1b26;
  --bg-subtle: #111118;
  --red: #e52b38;
  --red-hot: #ff3b49;
  --red-dim: #8c1822;
  --red-subtle: rgba(229, 43, 56, 0.12);
  --red-glow: rgba(229, 43, 56, 0.32);
  --gold: #e5a93c;
  --gold-dim: rgba(229, 169, 60, 0.16);
  --gold-glow: rgba(229, 169, 60, 0.3);
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.14);
  --text: #fdfdfd;
  --cream: #eceef2;
  --muted: #8b8e9d;
  --muted-soft: #636676;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(229, 43, 56, 0.35);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Bebas Neue", Impact, sans-serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}

/* ===== STUDIO STATUS BAR ===== */
.studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem clamp(1rem, 3vw, 1.75rem);
  background: rgba(9, 9, 13, 0.95);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.studio-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.on-air {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red-hot);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.on-air-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 8px var(--red-hot);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.studio-sep { opacity: 0.35; }

.studio-home-link {
  color: var(--text, #f4f1ea);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  flex: 0 0 auto;
  transition: border-color 0.15s, color 0.15s;
}

.studio-home-link:hover { border-color: var(--red-hot); color: var(--red-hot); }

.studio-corpus-stat {
  letter-spacing: 0.04em;
  color: var(--muted);
}

.studio-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.studio-tds-badge {
  background: rgba(229, 43, 56, 0.12);
  border: 1px solid rgba(229, 43, 56, 0.35);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.studio-tds-badge:hover {
  background: rgba(229, 43, 56, 0.25);
  border-color: var(--red-hot);
  box-shadow: 0 0 12px rgba(229, 43, 56, 0.3);
}

.tds-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 6px var(--red-hot);
}

.tds-badge-title {
  color: var(--muted);
  letter-spacing: 0.05em;
}

.tds-badge-score {
  color: var(--red-hot);
  font-weight: 700;
}

.tds-badge-band {
  color: var(--gold);
  font-weight: 700;
}

.tds-badge-arrow {
  font-size: 0.6rem;
  opacity: 0.7;
}

.studio-quick-audio {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.studio-quick-audio:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red-hot);
  box-shadow: 0 2px 10px rgba(229, 43, 56, 0.4);
}

.studio-quick-audio .nav-svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* ===== POLISHED BROADCAST HERO ===== */
.site-header {
  padding: 1.5rem clamp(1rem, 3vw, 1.75rem) 0.75rem;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

/* Slim masthead: the tab menu below is the navigation, so this is one line of
   attitude instead of a hero panel with its own CTAs competing with it. */
.archive-masthead {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.25rem 0 0.35rem;
}

.archive-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 0;
  color: #fff;
  white-space: nowrap;
}

.archive-title span { color: var(--red-hot); }

.archive-line {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-box {
  background: linear-gradient(180deg, #13131c 0%, #0d0d14 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-hot), transparent);
}

.hero-top-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.kicker-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  letter-spacing: 0.06em;
}

.kicker-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-main-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7.5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin: 0 0 0.35rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  margin: 0 0 0.45rem;
}

.hero-subtext {
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48rem;
  margin: 0 0 1.5rem;
}

.hero-cta-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.hero-cta-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  transition: all 0.18s ease;
  touch-action: manipulation;
}

.hero-cta-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--red-hot);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 43, 56, 0.3);
}

.hero-cta-btn:active {
  transform: scale(0.98);
}

.hero-cta-btn .nav-svg {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--red-hot);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.hero-cta-btn:hover .nav-svg {
  transform: scale(1.1);
}

.cta-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.cta-text span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.tds-side-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
}

.tds-kicker {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tds-score-inline {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  letter-spacing: 0.02em;
  color: var(--red-hot);
  line-height: 1;
  text-shadow: 0 0 14px rgba(229, 43, 56, 0.28);
}

.tds-gauge-vert {
  position: relative;
  width: 11px;
  height: clamp(86px, 16vw, 124px);
  background: #050505;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.tds-gauge-vert .tds-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(0deg, #4a0000 0%, var(--red-dim) 45%, var(--red) 100%);
  border-radius: 999px;
  transition: height 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.tds-gauge-vert .tds-needle {
  position: absolute;
  left: -3px;
  right: -3px;
  width: auto;
  height: 2px;
  top: auto;
  bottom: 0%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.55);
  transition: bottom 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.tds-side-cap {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  text-align: center;
  max-width: 5.5rem;
  line-height: 1.2;
}

.tds-breakdown-hint {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--red-hot);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== TDS BREAKDOWN PANEL ===== */
.tds-breakdown {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid rgba(229, 43, 56, 0.3);
  border-radius: 10px;
}

.tds-breakdown[hidden] {
  display: none !important;
}

.tds-breakdown-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.tds-breakdown-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.tds-breakdown-head p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.tds-breakdown-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  cursor: pointer;
}

.tds-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.55rem;
}

.tds-bucket-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tds-bucket-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.tds-bucket-top span:last-child {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red-hot);
}

.tds-bucket-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.tds-bucket-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dim), var(--red-hot));
  border-radius: 999px;
}

.tds-bucket-meta {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
}

/* ===== LAYOUT ===== */
.layout-with-clips {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 2rem) 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1.5rem 1.85rem;
  align-items: start;
}

.main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* ===== INSTANT SOUNDBOARD ===== */
.soundboard-section {
  background: linear-gradient(180deg, rgba(229, 43, 56, 0.06) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem 1.15rem;
}

.soundboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.soundboard-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.soundboard-sub {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.soundboard-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.reel-btn,
.reel-stop-btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.42rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(229, 43, 56, 0.45);
  background: rgba(229, 43, 56, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.reel-btn:hover,
.reel-stop-btn:hover {
  background: var(--red);
  border-color: var(--red-hot);
}

.reel-btn.is-playing {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.45rem;
}

.sb-pad {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.08s;
}

.sb-pad:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

.sb-pad:active {
  transform: scale(0.98);
}

.sb-pad.is-playing {
  border-color: var(--gold);
  background: rgba(245, 185, 66, 0.15);
  box-shadow: 0 0 12px rgba(245, 185, 66, 0.2);
}

.sb-pad-sfx {
  border-color: rgba(229, 43, 56, 0.28);
  background: rgba(229, 43, 56, 0.07);
}

.sb-pad-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--red-hot);
}

.sb-pad.is-playing .sb-pad-icon {
  background: var(--gold);
  color: #000;
}

.sb-pad-text {
  min-width: 0;
  flex: 1 1 auto;
}

.sb-pad-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-pad-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* ===== BOARD ===== */
.board-panel {
  background: transparent;
  border: none;
  padding: 0;
}

.board-head {
  padding: 0 0 0.85rem;
}

.board-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  letter-spacing: 0.04em;
  color: var(--text);
}

.board-sub {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.45;
}

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.95rem;
}

.search-wrap {
  position: relative;
  flex: 1 1 240px;
  max-width: 420px;
}

.board-search,
.dodge-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.48rem 2rem 0.48rem 0.75rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.82rem;
}

.board-search:focus,
.dodge-search:focus,
.board-sort:focus {
  outline: none;
  border-color: var(--red-hot);
}

.board-search-clear {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sort-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.board-sort {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.45rem 0.65rem;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.74rem;
  cursor: pointer;
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.45rem;
  padding: 0.25rem 0 1.25rem;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.filter-chip-count {
  font-family: var(--mono);
  font-size: 0.66rem;
  opacity: 0.75;
}

.filter-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  color: var(--text);
}

.filter-chip.active {
  background: var(--red);
  border-color: var(--red-hot);
  color: #fff;
  box-shadow: 0 2px 10px rgba(229, 43, 56, 0.45);
}

.filter-chip:active { transform: scale(0.97); }

/* ===== QUOTE BOARD ===== */
.quote-board {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.board-loading,
.board-empty {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== POLISHED BROADCAST QUOTE CARD ===== */
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 0.85rem;
  padding: 1.15rem 1.35rem;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  position: relative;
  overflow: hidden;
}

.quote-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 43, 56, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  background: var(--bg-card-hover);
}

.quote-card.is-open {
  border-color: var(--red);
  box-shadow: 0 8px 30px rgba(229, 43, 56, 0.2);
  background: #15151e;
}

.quote-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.quote-tags {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.quote-rank-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(229, 43, 56, 0.14);
  border: 1px solid rgba(229, 43, 56, 0.35);
  color: var(--red-hot);
  letter-spacing: 0.04em;
}

.quote-audio-col {
  flex-shrink: 0;
}

.phrase-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(229, 43, 56, 0.4);
  transition: all 0.16s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.phrase-audio-btn:hover {
  background: var(--red-hot);
  box-shadow: 0 4px 16px rgba(255, 59, 73, 0.65);
  transform: scale(1.03);
}

.phrase-audio-btn:active {
  transform: scale(0.97);
}

.phrase-audio-btn.is-playing {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 16px rgba(229, 169, 60, 0.7);
}

.phrase-audio-btn .audio-btn-icon {
  font-size: 0.75rem;
  line-height: 1;
}

.phrase-audio-btn.is-playing .audio-btn-icon {
  animation: pulse-dot 1s ease-in-out infinite;
}

.quote-trigger {
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: block;
}

.quote-title {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.5vw, 1.95rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
  text-wrap: balance;
}

.quote-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.quote-hits strong {
  color: var(--cream);
  font-weight: 600;
}

.quote-expand-hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red-hot);
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(229, 43, 56, 0.1);
  transition: all 0.15s ease;
}

.quote-card:hover .quote-expand-hint {
  background: rgba(229, 43, 56, 0.2);
  color: #ffffff;
}

.quote-card-compact .phrase-audio-btn {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.65rem;
}

.drawer-audio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.4rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.drawer-audio-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cream);
}

.mashup-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mashup-chip {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: rgba(229, 43, 56, 0.12);
  border: 1px solid rgba(229, 43, 56, 0.3);
  color: #ffb3b3;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mashup-chip:hover {
  background: var(--red);
  color: #fff;
}

.quote-hits,
.quote-debates,
.quote-source-badge {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.quote-debates {
  color: var(--muted);
  font-weight: 400;
}

.quote-source-badge {
  font-size: 0.66rem;
  font-weight: 400;
  padding: 0.15rem 0.42rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: #b8b8c2;
}

.quote-chevron {
  width: 10px;
  height: 10px;
  margin-top: 0.85rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.22s ease, border-color 0.15s;
  flex-shrink: 0;
}

.quote-card.is-open .quote-chevron {
  transform: rotate(-135deg);
  margin-top: 1.1rem;
  border-color: var(--red-hot);
}

.cat-pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.24rem 0.52rem;
  border-radius: 4px;
  white-space: normal;
  line-height: 1.25;
  border: 1px solid var(--border-soft);
  background: #0a0a0a;
  color: var(--muted);
}

.cat-recycled_point { color: #d0d0d0; border-color: #3a3a3a; }
.cat-obfuscation { color: #b0b8c8; border-color: #3a3a3a; }
.cat-dodge { color: #a8c0b0; border-color: #3a3a3a; }
.cat-strawman { color: #c8a8a8; border-color: #3a3a3a; }
.cat-fake_smart { color: #b8a8c8; border-color: #3a3a3a; }
.cat-polite_dodge { color: #a8b8c8; border-color: #3a3a3a; }
.cat-floor_control { color: #b0b0b0; border-color: #444; }

/* Drawer accordion (unclipped height when open) */
.quote-drawer {
  display: none;
  padding: 0 0.5rem 0 0;
}

.quote-card.is-open .quote-drawer {
  display: block;
  padding: 0 0.5rem 1.75rem 0;
}

.expand-panel {
  padding: 0.25rem 0 0.25rem calc(2.75rem + 1.25rem);
  display: grid;
  gap: 0.75rem;
}

.drawer-stats {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.drawer-samples {
  font-size: 0.85rem;
  color: var(--cream);
}

.drawer-samples strong,
.drawer-quotes-head {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9aa3b2;
  margin-bottom: 0.35rem;
}

.drawer-samples ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.drawer-members {
  margin: 0.35rem 0 0.5rem;
}

.drawer-members strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa3b2;
  margin-bottom: 0.45rem;
}

.member-line-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.35rem;
}

.member-line-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  line-height: 1.35;
}

.member-text {
  color: #e8ecf4;
  font-style: italic;
}

.member-count {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: #a8b0c0;
  font-style: normal;
}

.member-count::before {
  content: "×";
  margin-right: 0.15em;
  opacity: 0.7;
}

.expand-quote {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--red);
  background: rgba(229, 43, 56, 0.06);
  font-style: italic;
  color: var(--cream);
  font-size: 0.92rem;
  line-height: 1.5;
  border-radius: 0 6px 6px 0;
}

.expand-quote mark {
  background: rgba(255, 59, 73, 0.28);
  color: #fff;
  padding: 0.05rem 0.22rem;
  border-radius: 3px;
  font-weight: 600;
}

.expand-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.expand-meta a {
  color: var(--red-hot);
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 43, 56, 0.4);
}

.expand-meta a:hover { color: #fff; border-color: #fff; }

.more-quotes-btn {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--cream);
  cursor: pointer;
}

.more-quotes-btn:hover {
  border-color: var(--red-hot);
  color: #fff;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.about-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.18rem 0.48rem;
}

.expand-tactic {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

/* Show more */
.board-more-wrap {
  display: flex;
  justify-content: center;
  padding: 1.35rem 0 0.35rem;
}

.show-more-btn {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.show-more-btn:hover {
  border-color: var(--red);
  color: #fff;
  background: rgba(229, 43, 56, 0.12);
}

/* ===== FLOOR CONTROL ===== */
.floor-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.floor-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.floor-sub {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.45;
}

.quote-card-floor .quote-rank-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ===== SHARED SECTION HEADS (DODGE LAB & WILSON FILES) ===== */
.dodge-section,
.wilson-section {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.section-kicker {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-hot);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  letter-spacing: 0.04em;
  color: var(--text);
}

.section-sub {
  margin: 0.35rem 0 1rem;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 46rem;
  line-height: 1.48;
}

/* ===== POLITE DODGE LAB ===== */
.dodge-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.dodge-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dodge-tab {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.42rem 0.72rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dodge-tab span {
  font-family: var(--mono);
  font-size: 0.65rem;
  opacity: 0.8;
}

.dodge-tab.active {
  background: var(--red);
  border-color: var(--red-hot);
  color: #fff;
}

.dodge-search {
  max-width: 280px;
  flex: 1 1 200px;
}

.dodge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
}

.dodge-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dodge-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dodge-debate-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-transform: uppercase;
}

/* the dodge line is the whole card */
.dodge-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.42;
  color: #f2f0ea;
}

.dodge-quote mark {
  background: rgba(240, 180, 41, 0.22);
  color: #ffd479;
  padding: 0 0.12em;
  border-radius: 3px;
}

.dodge-badge {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 0.15rem 0.42rem;
  border-radius: 4px;
  text-transform: uppercase;
  background: rgba(229, 43, 56, 0.14);
  border: 1px solid rgba(229, 43, 56, 0.35);
  color: #ff9e9e;
}

.dodge-badge.is-abandon {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--muted);
}

.dodge-steps {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.dodge-step {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-card);
  border-left: 2px solid #556878;
}

.dodge-step-pivot {
  border-left-color: var(--red-hot);
  background: rgba(229, 43, 56, 0.05);
}

.dodge-step-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.dodge-step-quote {
  font-style: italic;
  color: #e6e6ec;
  line-height: 1.38;
}

.dodge-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.dodge-card-foot a {
  color: var(--red-hot);
  text-decoration: none;
}

.dodge-card-foot a:hover {
  text-decoration: underline;
}

.dodge-watch {
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* receipt material: present, folded, one tap away */
.dodge-setup {
  margin-left: auto;
  text-align: right;
}

.dodge-setup > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
  white-space: nowrap;
}

.dodge-setup > summary::-webkit-details-marker { display: none; }
.dodge-setup > summary::after { content: " ▾"; }
.dodge-setup[open] > summary::after { content: " ▴"; }
.dodge-setup > summary:hover { color: var(--cream); }

.dodge-setup-quote {
  margin: 0.5rem 0 0.3rem;
  font-size: 0.78rem;
  font-style: italic;
  color: #cfcfd8;
  text-align: left;
  line-height: 1.4;
}

.dodge-window {
  margin: 0;
  font-size: 0.62rem;
  color: var(--muted);
  text-align: left;
  letter-spacing: 0.04em;
}

/* ===== ANDREW WILSON FILES ===== */
.wilson-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.wilson-col-title {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.wilson-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wilson-bar-row {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  text-align: left;
  color: var(--cream);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.wilson-bar-row:hover {
  border-color: rgba(229, 43, 56, 0.4);
  background: var(--bg-card);
}

.wilson-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.wilson-bar-stats {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--red-hot);
  flex-shrink: 0;
}

.wilson-bar-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.wilson-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dim), var(--red-hot));
  border-radius: 999px;
}

.wilson-debate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wilson-debate-list li {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.wilson-debate-list a {
  color: var(--cream);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.wilson-debate-list a:hover {
  color: var(--red-hot);
}

.wilson-debate-list .yt-tag {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--red-hot);
  flex-shrink: 0;
}

/* ===== WATCH BRIAN (clips rail) ===== */
.clips-rail {
  position: sticky;
  top: 2.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.clips-rail[hidden],
.clips-fab[hidden],
.clips-drawer[hidden] {
  display: none !important;
}

.clips-rail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.clips-rail-head h2,
.clips-drawer-bar h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1;
}

.clips-rail-sub {
  margin: 0.2rem 0 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clips-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.clips-counter {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}

.clips-step-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--cream);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clips-step-btn:hover {
  border-color: var(--red-hot);
  color: #fff;
}

.clips-player-host {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 370px;
  border: 1px solid var(--border-soft);
  width: 100%;
}

.clips-player-host video,
.clips-player-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}

.clips-now {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}

.clips-now span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  max-height: 320px;
  overflow: auto;
}

.clips-list-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.55rem;
  align-items: center;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.38rem;
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.clips-list-btn:hover {
  background: var(--bg-card-hover);
}

.clips-list-btn.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(229, 43, 56, 0.35);
  background: rgba(229, 43, 56, 0.08);
}

.clips-list-btn img {
  width: 46px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  background: #222;
}

.clips-list-btn strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.86rem;
  line-height: 1.2;
}

.clips-list-btn em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
}

.clips-empty {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.clips-fab {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 40;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(229, 43, 56, 0.35);
  cursor: pointer;
}

.clips-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
}

.clips-drawer-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  overflow: auto;
  background: var(--bg-elev);
  border-radius: 16px 16px 0 0;
  padding: 1rem 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clips-drawer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.clips-drawer-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: #08080c;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) calc(2rem + env(safe-area-inset-bottom, 0px));
  width: 100%;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer-brand {
  max-width: 480px;
}

.footer-title {
  display: block;
  font-family: var(--font-display, var(--mono));
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.footer-note {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-meta {
    align-items: flex-end;
    text-align: right;
  }
}

.footer-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@media (min-width: 768px) {
  .footer-channels {
    justify-content: flex-end;
  }
}

.footer-channel-link {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.footer-channel-link:hover {
  border-color: var(--red-hot);
  color: #fff;
  background: rgba(229, 9, 20, 0.08);
}

.footer-stats {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #888892;
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-details {
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.footer-details summary {
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.footer-details summary:hover {
  color: var(--cream);
}

.corpus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .corpus-pills {
    justify-content: flex-end;
  }
}

.corpus-pill {
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #0d0d12;
  border: 1px solid var(--border-soft);
  color: var(--muted);
}

.corpus-pill strong {
  color: var(--cream);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 959px) {
  .layout-with-clips {
    grid-template-columns: 1fr;
  }
  .clips-rail {
    display: none !important;
  }
  .wilson-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 960px) {
  .clips-fab {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .studio-bar { padding: 0.35rem 0.85rem; font-size: 0.65rem; }
  .studio-corpus-stat { display: none; }
  .site-header { padding: 0.85rem 0.75rem 0.4rem; }
  .hero-box { padding: 1.15rem 0.95rem; border-radius: 12px; }
  .hero-main-title { font-size: 2.65rem; }
  .hero-cta-group { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-cta-btn { padding: 0.75rem 0.85rem; }
  .layout-with-clips { padding: 0.55rem 0.75rem 2rem; }
  .quote-card { padding: 0.95rem 1rem; border-radius: 12px; }
  .quote-title { font-size: 1.25rem; }
  .quote-meta-row { font-size: 0.76rem; gap: 0.45rem; }
  .phrase-audio-btn { padding: 0.3rem 0.65rem; font-size: 0.72rem; }
  .dodge-grid { grid-template-columns: 1fr; }
}


/* ===== FEUDS ===== */
.feuds-section,
.x-section {
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.feuds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.feud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}

.feud-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.feud-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.feud-count {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gold);
  white-space: nowrap;
}

.feud-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.feud-card a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.35;
}

.feud-card a:hover span { color: var(--red-hot); }

.feud-card small {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
}

/* ===== X RECEIPTS ===== */
.x-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0.75rem;
}

.x-grid {
  columns: 3 260px;
  column-gap: 0.75rem;
}

.x-card {
  break-inside: avoid;
  margin: 0 0 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.x-card p {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.x-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.x-card footer a { color: var(--muted); text-decoration: none; }
.x-card footer a:hover { color: var(--red-hot); }

.x-jump {
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font: inherit;
  cursor: pointer;
}

.x-jump:hover { border-color: var(--gold); }

.x-about h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0 0.5rem;
}

.x-card-about { border-left: 3px solid var(--gold); }


/* ===== STUDIO TAB MENU & PAGES NAVIGATION ===== */
.studio-tab-menu-wrap {
  position: sticky;
  top: 0;
  z-index: 35;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.studio-tab-menu {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.5rem clamp(1rem, 3vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.studio-tab-menu::-webkit-scrollbar {
  display: none;
}

.tab-menu-item {
  flex: 0 0 auto;
  background: var(--bg-card);
  color: var(--muted);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tab-menu-item:hover {
  background: var(--bg-card-hover);
  color: var(--cream);
  border-color: var(--border-strong);
}

.tab-menu-item.active {
  background: var(--red-subtle);
  color: #ffffff;
  border-color: var(--red-hot);
  box-shadow: 0 0 16px var(--red-glow);
}

.tab-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

.tab-menu-item:hover .tab-item-icon {
  color: var(--cream);
}

.tab-menu-item.active .tab-item-icon {
  color: var(--red-hot);
  transform: scale(1.05);
}

.nav-svg {
  display: inline-block;
  vertical-align: middle;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.tab-item-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.44rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  transition: all 0.18s ease;
}

.tab-menu-item.active .tab-item-badge {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(229, 43, 56, 0.4);
}

/* ===== SUB-VIEW SEGMENTED TOGGLE (FOR TABS WITH MULTI-MODES) ===== */
.sub-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-soft);
}

.sub-view-nav {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.sub-view-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0.38rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.sub-view-btn:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
}

.sub-view-btn.active {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(229, 43, 56, 0.45);
}

.sub-view-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.05rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

.sub-view-btn.active .sub-view-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Studio Nav Button in Top Bar */
.studio-nav-btn {
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  opacity: 0.75;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.studio-nav-btn:hover {
  opacity: 1;
  color: var(--red-hot);
}

.studio-nav-btn.active {
  opacity: 1;
  color: var(--red-hot);
  font-weight: 700;
}

.studio-nav-btn.active .nav-badge {
  background: var(--red-hot);
  color: #fff;
}

/* ===== TAB PANELS ===== */
.tab-panel {
  min-width: 0;
  animation: tabFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel[hidden] {
  display: none !important;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floor Section in its own Tab */
.tab-panel#tab-panel-floor .floor-section {
  display: block;
  background: transparent;
  border: none;
  padding: 0;
}

/* ===== VIDEO VAULT (WATCH CLIPS TAB) ===== */
.clips-tab-section {
  padding: 0.5rem 0 1.5rem;
}

.clips-tab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
  align-items: start;
}

.clips-tab-player-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.clips-tab-now-bar {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-soft);
}

.clips-tab-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1rem;
}

.clips-tab-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.clips-tab-sidebar-title {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

@media (max-width: 860px) {
  .clips-tab-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .studio-tab-menu {
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
  }
  .tab-menu-item {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}


.tab-panel .dodge-section,
.tab-panel .wilson-section,
.tab-panel .feuds-section,
.tab-panel .x-section,
.tab-panel .soundboard-section,
.tab-panel .floor-section,
.tab-panel .board-panel {
  border-top: none;
  margin-top: 0;
  padding-top: 0.25rem;
}

.layout-with-clips.clips-tab-active {
  grid-template-columns: 1fr;
}

.layout-with-clips.clips-tab-active .clips-rail {
  display: none !important;
}


/* ===== FULLY IMMERSIVE MOBILE-FIRST UX/UI ===== */

/* Base touch & safe-area resets */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* On mobile, pad bottom so fixed bottom dock never covers content */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 16px));
  }
  .studio-bar {
    padding: 0.35rem 0.75rem;
    font-size: 0.65rem;
  }

  /* The status chips are decoration; the back-to-home link has to survive.
     The quick-soundboard button duplicates the Audio tab in the bottom dock,
     so it gives up its space to the link. */
  .studio-bar-left .on-air,
  .studio-bar-left .studio-sep,
  .studio-bar-left .studio-corpus-stat,
  .studio-quick-audio {
    display: none;
  }
  .studio-bar-left {
    flex: 1 1 auto;
  }
  .studio-home-link {
    white-space: nowrap;
  }

  /* On a phone, orientation comes from the tab bar, so the masthead line, the
     kicker and the explainer are three paragraphs of chrome between the tab
     and the first result. Keep the page title, drop the rest. */
  .archive-line,
  .section-kicker,
  .section-sub,
  .board-sub {
    display: none;
  }

  /* Two stacked titles is the density problem in one picture: the section
     heading says where you are, the tab bar says what else exists. */
  .archive-masthead {
    display: none;
  }

  /* Filter rows scroll sideways instead of wrapping into a second block */
  .filters,
  .dodge-tabs,
  .x-filters,
  .sub-view-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filters::-webkit-scrollbar,
  .dodge-tabs::-webkit-scrollbar,
  .x-filters::-webkit-scrollbar,
  .sub-view-nav::-webkit-scrollbar {
    display: none;
  }

  .filters > *,
  .dodge-tabs > *,
  .x-filters > *,
  .sub-view-nav > * {
    flex: 0 0 auto;
  }

  .site-header {
    padding: 0.5rem 0.75rem 0.35rem;
  }

  /* one line of debate title; the quote below carries the card */
  .dodge-debate-title {
    -webkit-line-clamp: 1;
    font-size: 0.6rem;
  }

  .dodge-card {
    gap: 0.45rem;
    padding: 0.75rem 0.8rem;
  }

  .dodge-quote {
    font-size: 0.96rem;
  }
  .studio-nav {
    display: none; /* replaced by thumb-accessible mobile dock */
  }
  .studio-tab-menu-wrap {
    display: none; /* replaced by thumb-accessible mobile dock */
  }
  .layout-with-clips {
    padding: 0.5rem 0.75rem 2rem;
    grid-template-columns: 1fr;
  }
  .clips-rail {
    display: none !important;
  }
  .site-header {
    padding: 0.85rem 0.75rem 0.4rem;
  }
  .brand-row {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  .avatar-wrap {
    width: 64px;
    height: 64px;
  }
  .brand-text h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 0.95;
  }
  .brand-text .tagline {
    font-size: 0.85rem;
  }
  .brand-text .disclaimer {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .hero-stat-strip {
    display: flex;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .hero-stat-strip::-webkit-scrollbar {
    display: none;
  }
  .hero-stat-pill {
    flex-shrink: 0;
    font-size: 0.64rem;
    padding: 0.2rem 0.5rem;
  }
  .tds-side {
    position: fixed;
    top: 0.35rem;
    right: 0.65rem;
    z-index: 45;
    padding: 0.25rem 0.45rem;
    background: rgba(12, 12, 16, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid var(--border);
  }
  .tds-side-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .tds-side-cap,
  .tds-breakdown-hint,
  .tds-gauge {
    display: none;
  }
}

/* Tactile 2-Column Mobile Soundboard Grid */
@media (max-width: 640px) {
  .soundboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .sb-pad {
    padding: 0.7rem 0.6rem;
    min-height: 66px;
    border-radius: 10px;
    touch-action: manipulation;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
  }
  .sb-pad:active {
    transform: scale(0.95);
    background: rgba(229, 43, 56, 0.18);
    border-color: var(--red);
  }
  .sb-pad-title {
    font-size: 0.82rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Mobile Vertical Reels Video Vault */
@media (max-width: 768px) {
  .clips-tab-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .clips-tab-player-wrap {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
    border-radius: 16px;
    padding: 0.5rem;
    background: #050508;
    border: 1px solid rgba(255, 59, 73, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  }
  .clips-player-inner video {
    aspect-ratio: 9 / 16;
    max-height: 62vh;
    border-radius: 12px;
    object-fit: cover;
    background: #000;
  }
  .clips-player-inner iframe {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
  .clips-tab-sidebar {
    padding: 0.75rem;
  }
  .clips-tab-sidebar .clips-list {
    display: flex;
    overflow-x: auto;
    gap: 0.65rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .clips-tab-sidebar .clips-list::-webkit-scrollbar {
    display: none;
  }
  .clips-tab-sidebar .clips-list li {
    flex: 0 0 210px;
    scroll-snap-align: start;
  }
  .clips-list-btn {
    padding: 0.5rem;
    gap: 0.6rem;
  }
}

/* ===== LIVE AUDIO FLOATING MINI-PLAYER DOCK ===== */
.audio-dock-bar {
  position: fixed;
  bottom: calc(68px + env(safe-area-inset-bottom, 12px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 1.25rem);
  max-width: 480px;
  z-index: 90;
  animation: slideUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 769px) {
  .audio-dock-bar {
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    transform: none;
    width: 360px;
  }
}

.audio-dock-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 18, 24, 0.96);
  border: 1px solid var(--red-hot);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  box-shadow: 0 8px 32px rgba(229, 43, 56, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.audio-dock-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  flex-shrink: 0;
}

.eq-bar {
  width: 3px;
  background: var(--red-hot);
  border-radius: 2px;
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}
.eq-1 { height: 6px; animation-delay: 0.1s; }
.eq-2 { height: 14px; animation-delay: 0.35s; }
.eq-3 { height: 10px; animation-delay: 0.2s; }
.eq-4 { height: 16px; animation-delay: 0.45s; }

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 16px; }
}

.audio-dock-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.audio-dock-kicker {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--red-hot);
  font-weight: 700;
  text-transform: uppercase;
}

.audio-dock-title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-dock-stop {
  flex: 0 0 auto;
  background: var(--red-dim);
  color: #fff;
  border: 1px solid var(--red-hot);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.audio-dock-stop:hover,
.audio-dock-stop:active {
  background: var(--red);
  transform: scale(0.95);
}

/* ===== IMMERSIVE MOBILE BOTTOM APP DOCK ===== */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-dock {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: rgba(10, 10, 14, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.2rem calc(0.35rem + env(safe-area-inset-bottom, 8px));
    box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.7);
  }

  .dock-item {
    background: none;
    border: none;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.1rem;
    cursor: pointer;
    font-family: var(--sans);
    transition: transform 0.1s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .dock-item:active {
    transform: scale(0.9);
  }

  .dock-item.active {
    color: #ffffff;
  }

  .dock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--muted);
    transition: transform 0.15s ease, color 0.15s ease;
  }

  .dock-icon .nav-svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .dock-item.active .dock-icon {
    transform: translateY(-2px);
    color: var(--red-hot);
    filter: drop-shadow(0 0 8px rgba(229, 43, 56, 0.75));
  }

  .dock-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .dock-item.active .dock-label {
    color: var(--red-hot);
    font-weight: 700;
  }
}

/* ===== MOBILE BOTTOM SHEET ("MORE" DRAWER) ===== */
.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 95;
  animation: fadeIn 0.2s ease;
}

.mobile-sheet-backdrop[hidden] {
  display: none !important;
}

.mobile-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #111116;
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 0.75rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 12px));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.85);
  animation: sheetSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-sheet[hidden] {
  display: none !important;
}

.mobile-sheet-handle-bar {
  display: flex;
  justify-content: center;
  padding: 0.2rem 0 0.65rem;
}

.mobile-sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.mobile-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.mobile-sheet-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.mobile-sheet-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-soft);
  color: var(--cream);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.mobile-sheet-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.mobile-sheet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.sheet-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.sheet-tile:active {
  background: var(--red-subtle);
  border-color: var(--red);
  transform: scale(0.98);
}

.sheet-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red-hot);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.sheet-icon .nav-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.sheet-tile:active .sheet-icon {
  background: var(--red);
  color: #ffffff;
}

.sheet-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.sheet-desc {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== BRIAN PRISM: one face per section, turned by the tab bar =====
   Six planes arranged around the Y axis. The container rotates by 60deg per
   section, so switching tabs physically turns his head to a new side. */
.ls-head {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  perspective: 1800px;
  perspective-origin: 50% 42%;
  overflow: hidden;
  --ls-face: min(150vmin, 1100px);
  --ls-radius: calc(var(--ls-face) * 0.866);
}

.ls-prism {
  position: relative;
  width: var(--ls-face);
  height: var(--ls-face);
  transform-style: preserve-3d;
  transform: rotateY(var(--ls-angle, 0deg));
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.25, 1);
}

.ls-face {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.ls-face:nth-child(1) { transform: rotateY(0deg) translateZ(var(--ls-radius)); }
.ls-face:nth-child(2) { transform: rotateY(60deg) translateZ(var(--ls-radius)); }
.ls-face:nth-child(3) { transform: rotateY(120deg) translateZ(var(--ls-radius)); }
.ls-face:nth-child(4) { transform: rotateY(180deg) translateZ(var(--ls-radius)); }
.ls-face:nth-child(5) { transform: rotateY(240deg) translateZ(var(--ls-radius)); }
.ls-face:nth-child(6) { transform: rotateY(300deg) translateZ(var(--ls-radius)); }

.ls-face i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url(./brand/face-800.jpg) center/cover;
  opacity: 0.16;
  filter: blur(1.5px) saturate(0.8);
  -webkit-mask-image: radial-gradient(circle, #000 44%, transparent 68%);
  mask-image: radial-gradient(circle, #000 44%, transparent 68%);
}

/* each plane is the same head seen from a different side: slightly different
   crop and grade, so the turn reads as a new face rather than a re-render */
.ls-face:nth-child(2) i { background-position: 35% 40%; filter: blur(1.5px) saturate(0.55) hue-rotate(-12deg); }
.ls-face:nth-child(3) i { background-position: 62% 50%; opacity: 0.075; filter: blur(2px) saturate(0.7) contrast(1.1); }
.ls-face:nth-child(4) i { background-position: 50% 30%; filter: blur(1.5px) saturate(1.25) hue-rotate(8deg); }
.ls-face:nth-child(5) i { background-position: 40% 60%; opacity: 0.07; filter: blur(2.4px) saturate(0.45); }
.ls-face:nth-child(6) i { background-position: 58% 45%; filter: blur(1.8px) saturate(0.95) hue-rotate(-6deg); }

/* page content sits on top of the head */
.site-header,
#main-layout,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ===== PLANE CHANGE: sections turn in and out of the same prism ===== */
#main-column {
  /* the leaving panel is absolutely positioned for the length of the turn, so
     it has to be anchored here or it flies to the top of the page */
  position: relative;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.tab-panel.plane-in {
  /* the beat before the new plane arrives lets the old one clear out */
  animation: plane-in 0.46s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  transform-origin: 50% 30%;
  will-change: transform, opacity;
}

.tab-panel.plane-in.rev {
  animation-name: plane-in-rev;
}

.tab-panel.plane-out {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  transform-origin: 50% 30%;
  animation: plane-out 0.26s cubic-bezier(0.45, 0, 0.85, 0.3) both;
  will-change: transform, opacity;
}

.tab-panel.plane-out.rev {
  animation-name: plane-out-rev;
}

@keyframes plane-in {
  from { opacity: 0; transform: rotateY(34deg) translateZ(-150px) translateX(3%); }
  to { opacity: 1; transform: none; }
}

@keyframes plane-in-rev {
  from { opacity: 0; transform: rotateY(-34deg) translateZ(-150px) translateX(-3%); }
  to { opacity: 1; transform: none; }
}

@keyframes plane-out {
  0% { opacity: 1; transform: none; }
  55% { opacity: 0; }
  100% { opacity: 0; transform: rotateY(-30deg) translateZ(-260px) translateX(-3%); }
}

@keyframes plane-out-rev {
  0% { opacity: 1; transform: none; }
  55% { opacity: 0; }
  100% { opacity: 0; transform: rotateY(30deg) translateZ(-260px) translateX(3%); }
}

@media (prefers-reduced-motion: reduce) {
  .ls-prism { transition: none; }
  .tab-panel.plane-in,
  .tab-panel.plane-out { animation: none; }
}

/* ===== DOCK AFFORDANCE =====
   The bar has to read as navigation, not decoration: a red blade over the
   active tab, a pill behind its icon, and bigger touch targets. */
@media (max-width: 768px) {
  .mobile-bottom-dock {
    padding-top: 0.45rem;
    border-top-color: rgba(255, 255, 255, 0.16);
  }

  .dock-item {
    position: relative;
    gap: 0.25rem;
    padding: 0.3rem 0.1rem 0.35rem;
  }

  .dock-item.active::before {
    content: "";
    position: absolute;
    top: -0.45rem;
    left: 50%;
    translate: -50% 0;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--red-hot);
    box-shadow: 0 0 10px var(--red-hot);
  }

  .dock-icon {
    width: 40px;
    height: 30px;
    border-radius: 10px;
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
  }

  .dock-item.active .dock-icon {
    background: rgba(229, 43, 56, 0.16);
    transform: translateY(-1px);
  }

  .dock-icon .nav-svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .dock-label {
    font-size: 0.64rem;
    letter-spacing: 0.03em;
  }
}

/* Phones cannot afford five blurred megapixel layers in a 3D scene; the blur
   is what makes it expensive, and at this opacity it reads fine without it. */
@media (max-width: 768px) {
  .ls-face i {
    filter: saturate(0.8);
    opacity: 0.14;
  }
  .ls-face:nth-child(2) i { filter: saturate(0.55) hue-rotate(-12deg); }
  .ls-face:nth-child(3) i { filter: saturate(0.7) contrast(1.1); opacity: 0.12; }
  .ls-face:nth-child(4) i { filter: saturate(1.25) hue-rotate(8deg); }
  .ls-face:nth-child(5) i { filter: saturate(0.45); opacity: 0.11; }
  .ls-face:nth-child(6) i { filter: saturate(0.95) hue-rotate(-6deg); }
}

/* The turn has to be visible: the active plane lights up while it swings. */
.ls-face i {
  transition: opacity 0.55s ease;
}

.ls-head .ls-prism.turning .ls-face i {
  opacity: 0.28;
}

@media (max-width: 768px) {
  .ls-head .ls-prism.turning .ls-face i {
    opacity: 0.3;
  }
}

/* ===== ONE NAV, SAME PLACE EVERY TIME =====
   Identical markup on the homepage and the archive. Top bar on desktop, the
   same bar fixed to the bottom on a phone. Nothing else is navigation. */
.gnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem clamp(0.75rem, 2vw, 1.5rem);
  background: rgba(7, 7, 11, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gnav-brand {
  font-family: var(--display, Impact, "Arial Narrow", sans-serif);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.gnav-brand b { color: var(--red-hot, #e52b38); font-weight: inherit; }

.gnav-links {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.gnav-links::-webkit-scrollbar { display: none; }

.gnav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: var(--muted, #9a9aab);
  text-decoration: none;
  font: 600 0.68rem/1 var(--mono, ui-monospace, Menlo, monospace);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.gnav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.gnav-item.active {
  color: #fff;
  background: rgba(229, 43, 56, 0.16);
  box-shadow: inset 0 0 0 1px rgba(229, 43, 56, 0.4);
}

.gnav-ico { width: 14px; height: 14px; flex: 0 0 auto; display: none; }

@media (min-width: 769px) {
  body { padding-top: 54px; }
  .h-hero { min-height: calc(100svh - 54px); }
}

@media (max-width: 768px) {
  .gnav {
    top: auto;
    bottom: 0;
    border-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  }

  .gnav-brand { display: none; }

  .gnav-links {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    width: 100%;
    margin: 0;
    overflow: visible;
  }

  .gnav-item {
    position: relative;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.3rem 0 0.2rem;
    border-radius: 10px;
    font-size: 0.6rem;
    letter-spacing: 0.01em;
  }

  /* the hero used to be held down by its own top bar; the shared nav is fixed
     over it, so it needs its own breathing room */
  .h-hero {
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  }

  .gnav-ico { display: block; width: 19px; height: 19px; }

  .gnav-item.active {
    background: none;
    box-shadow: none;
    color: var(--red-hot, #e52b38);
  }

  .gnav-item.active .gnav-ico { filter: drop-shadow(0 0 7px rgba(229, 43, 56, 0.8)); }

  .gnav-item.active::before {
    content: "";
    position: absolute;
    top: -0.35rem;
    left: 50%;
    translate: -50% 0;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--red-hot, #e52b38);
    box-shadow: 0 0 8px var(--red-hot, #e52b38);
  }

  body {
    padding-top: 0 !important;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.footer-admin {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
}

.footer-admin:hover { color: var(--red-hot, #e52b38); }
