:root {
  --bg: #07090e;
  --panel: #0d111a;
  --panel-2: #111722;
  --line: rgba(255, 255, 255, 0.09);
  --muted: #929aaa;
  --text: #f7f8fb;
  --blue: #168cff;
  --blue-light: #53b6ff;
  --blue-dark: #06366f;
  --red: #ff2c39;
  --red-light: #ff626a;
  --red-dark: #6e0711;
  --gold: #f4c247;
  --green: #45d990;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 9% 12%, rgba(22, 140, 255, 0.1), transparent 26rem),
    radial-gradient(circle at 91% 13%, rgba(255, 44, 57, 0.1), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(244, 194, 71, 0.72);
  outline-offset: 3px;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(380px, 560px) minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-lockup,
.brand small {
  display: block;
}

.brand-lockup img {
  display: block;
  width: clamp(170px, 17vw, 220px);
  height: auto;
  filter: brightness(1.25) saturate(1.08) drop-shadow(0 5px 14px rgba(0, 0, 0, .4));
}

.brand small {
  margin-top: 5px;
  color: #9ba4b3;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-align: center;
}

.brand-ball {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0 48%, #f5f6fa 49% 51%, var(--red) 52% 100%);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.13);
}

.brand-ball::before,
.brand-ball::after {
  position: absolute;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.brand-ball::before {
  width: 38px;
  height: 45px;
  left: -25px;
  top: -6px;
}

.brand-ball::after {
  width: 38px;
  height: 45px;
  right: -25px;
  bottom: -6px;
}

.admin-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  color: #d7dbe4;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 180ms ease;
  justify-self: end;
}

.admin-trigger:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.admin-trigger svg,
.lock-badge svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 58px;
  text-align: center;
}

.hero::before {
  position: absolute;
  top: 130px;
  left: 50%;
  z-index: -1;
  width: 1px;
  height: 410px;
  content: "";
  background: linear-gradient(transparent, rgba(255,255,255,.18), transparent);
  box-shadow: 0 0 50px 12px rgba(255, 255, 255, 0.05);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  top: 165px;
  width: 440px;
  height: 440px;
  filter: blur(95px);
  opacity: 0.14;
  border-radius: 50%;
}

.hero-glow-blue {
  left: -170px;
  background: var(--blue);
}

.hero-glow-red {
  right: -170px;
  background: var(--red);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: #aeb5c2;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.eyebrow span {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #aeb5c2);
}

.eyebrow span:last-child {
  transform: scaleX(-1);
}

.eyebrow b {
  color: var(--gold);
}

.tribe-logo {
  position: relative;
  width: clamp(112px, 11vw, 148px);
  aspect-ratio: 1;
  margin: 12px auto -4px;
  overflow: hidden;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .42));
}

.tribe-logo img {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 298%;
  max-width: none;
  transform: translate(-50%, -50%);
}

h1 {
  margin: 12px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.1rem, 9vw, 8.3rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  text-shadow: 6px 6px 0 rgba(255,255,255,.06);
}

.hero-subtitle {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.scoreboard {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: stretch;
  margin-top: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(11, 14, 21, 0.88);
  box-shadow: var(--shadow);
}

.scoreboard::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,.07), transparent 18%, transparent 82%, rgba(255,255,255,.04));
}

.score-side {
  position: relative;
  display: grid;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  min-height: 400px;
  padding: 38px clamp(16px, 2.4vw, 34px);
}

.score-copy {
  flex: 1 1 0;
  min-width: 0;
}

.score-side-blue {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 1fr);
  text-align: left;
  background:
    linear-gradient(100deg, rgba(22, 140, 255, 0.23), transparent 74%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.016) 22px 23px);
}

.score-side-red {
  grid-template-columns: minmax(190px, 1fr) minmax(0, 1fr);
  text-align: right;
  background:
    linear-gradient(260deg, rgba(255, 44, 57, 0.22), transparent 74%),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,.016) 22px 23px);
}

.score-copy p {
  margin: 0 0 6px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.score-side-blue .score-copy p,
.blue-label {
  color: var(--blue-light);
}

.score-side-red .score-copy p,
.red-label {
  color: var(--red-light);
}

.score-copy h2 {
  max-width: 220px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.score-side-red .score-copy h2 {
  margin-left: auto;
}

.score-number {
  margin: 11px 0 0;
  max-width: 100%;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.8rem, 8vw, 7.2rem);
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.82;
  white-space: nowrap;
}

.score-number.score-compact { font-size: clamp(3.7rem, 6.2vw, 5.6rem); }
.score-number.score-extra-compact { font-size: clamp(2.8rem, 4.7vw, 4.35rem); }

.score-side-blue .score-number {
  color: #fff;
  text-shadow: 0 0 36px rgba(22, 140, 255, 0.62);
}

.score-side-red .score-number {
  color: #fff;
  text-shadow: 0 0 36px rgba(255, 44, 57, 0.62);
}

.score-copy small {
  display: block;
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: clamp(98px, 11vw, 142px);
  height: clamp(98px, 11vw, 142px);
  place-items: center;
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(0,0,0,.32), inset 0 0 40px rgba(0,0,0,.36), 0 16px 40px rgba(0,0,0,.34);
  transform: rotate(-7deg);
}

.team-mark::before,
.team-mark::after {
  position: absolute;
  width: 32%;
  height: 70%;
  content: "";
  border: 2px solid rgba(255,255,255,.45);
  border-top: 0;
  border-bottom: 0;
  border-radius: 50%;
}

.team-mark::before { left: 3%; }
.team-mark::after { right: 3%; }

.team-mark span {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.4rem, 6vw, 5.3rem);
  font-style: italic;
  text-shadow: 3px 4px 0 rgba(0,0,0,.25);
}

.team-mark i {
  position: absolute;
  width: 78%;
  height: 2px;
  background: rgba(255,255,255,.5);
  transform: rotate(-35deg);
}

.team-mark-art {
  width: min(100%, 260px);
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  overflow: visible;
  justify-self: center;
  cursor: pointer;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  border-radius: 0;
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.team-mark-art::before,
.team-mark-art::after {
  display: none;
}

.team-mark-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 220ms ease;
}

.team-mark-art.team-mark-blue {
  box-shadow: none;
  transform: none;
}

.team-mark-art.team-mark-blue img {
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(22,140,255,.28));
}

.team-mark-red {
  background: radial-gradient(circle at 35% 25%, #ff5862, #d90d1b 54%, #59030a);
  box-shadow: inset 0 0 0 7px rgba(0,0,0,.26), inset 0 0 40px rgba(0,0,0,.34), 0 0 42px rgba(255,44,57,.25);
  transform: rotate(7deg);
}

.team-mark-art.team-mark-red {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.team-mark-art.team-mark-red img {
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(255,44,57,.3));
}

.team-mark-art:hover,
.team-mark-art:focus-visible { transform: scale(1.065); }
.team-mark-art:active { transform: scale(1.025); }
.team-mark-art:focus-visible { outline: 2px solid rgba(255, 255, 255, .65); outline-offset: 4px; border-radius: 24px; }
.team-mark-art.team-mark-blue:hover img,
.team-mark-art.team-mark-blue:focus-visible img { filter: drop-shadow(0 18px 32px rgba(0,0,0,.58)) drop-shadow(0 0 27px rgba(22,140,255,.68)); }
.team-mark-art.team-mark-red:hover img,
.team-mark-art.team-mark-red:focus-visible img { filter: drop-shadow(0 18px 32px rgba(0,0,0,.58)) drop-shadow(0 0 27px rgba(255,44,57,.7)); }
.team-mark-art.is-sounding { animation: team-logo-sound 520ms cubic-bezier(.22, 1, .36, 1); }

.versus {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, transparent, #0b0e15 23%, #0b0e15 77%, transparent);
}

.versus::before,
.versus::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgba(255,255,255,.18), transparent);
}

.versus::before { left: 20px; }
.versus::after { right: 20px; }

.versus span {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.9rem;
  font-style: italic;
  transform: rotate(-8deg);
  text-shadow: 3px 3px 0 rgba(255,255,255,.1);
}

.race-card {
  position: relative;
  width: calc(100% - 104px);
  margin: -1px auto 0;
  padding: 19px 25px 22px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: #0c1018;
}

.race-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.race-labels span:first-child { text-align: left; }
.race-labels span:last-child { text-align: right; }
.race-labels b { color: #fff; }
.race-labels strong { color: #c2c7d1; font-size: 0.62rem; }

.race-track {
  position: relative;
  height: 8px;
  overflow: visible;
  border-radius: 99px;
  background: var(--red);
}

.race-blue {
  height: 100%;
  border-radius: 99px 0 0 99px;
  background: var(--blue);
  transition: width 700ms cubic-bezier(.22, 1, .36, 1);
}

.race-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: #0c1018;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.race-center span {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 50%;
}

.competition-strip {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1.25fr;
  align-items: center;
  max-width: 1050px;
  margin: 34px auto 0;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 25px;
  text-align: left;
}

.strip-item-center { justify-content: center; }

.strip-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(244,194,71,.28);
  border-radius: 50%;
  background: rgba(244,194,71,.08);
}

.strip-item small,
.strip-item strong {
  display: block;
}

.strip-item small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.strip-item strong {
  font-size: 0.75rem;
}

.strip-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

.radio-dock {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 111px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 6px 10px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(22, 140, 255, .11), transparent 34%, transparent 66%, rgba(255, 44, 57, .105)),
    #0b1018;
  box-shadow: 0 9px 28px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .035);
  isolation: isolate;
}

.radio-dock::before {
  position: absolute;
  top: -85px;
  left: 50%;
  z-index: -1;
  width: 330px;
  height: 140px;
  content: "";
  border-radius: 50%;
  background: rgba(244, 194, 71, .2);
  filter: blur(50px);
  transform: translateX(-50%);
  transition: opacity 250ms ease;
}

.radio-dock::after {
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(83, 182, 255, .8), #fff, rgba(255, 98, 106, .8), transparent);
  opacity: .6;
}

.radio-signal {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  display: flex;
  width: 56px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: .07;
  transform: skewX(-8deg);
}

.radio-signal span {
  width: 3px;
  height: var(--signal-height, 48px);
  border-radius: 99px;
  background: linear-gradient(#8dd6ff, var(--blue));
}

.radio-signal span:nth-child(1),
.radio-signal span:nth-child(5) { --signal-height: 28px; }
.radio-signal span:nth-child(2),
.radio-signal span:nth-child(4) { --signal-height: 48px; }
.radio-signal span:nth-child(3) { --signal-height: 68px; }

.radio-power {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: #9ca6b6;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: linear-gradient(145deg, #161d29, #090d14);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 10px 25px rgba(0, 0, 0, .32);
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.radio-power::after {
  position: absolute;
  inset: -3px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: inherit;
}

.radio-power:hover { color: #fff; border-color: rgba(244, 194, 71, .5); transform: translateY(-1px); }
.radio-power svg { width: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.radio-dock.is-playing .radio-power {
  color: #171108;
  border-color: #ffe08a;
  background: linear-gradient(145deg, #ffe89f, var(--gold));
  box-shadow: 0 0 0 4px rgba(244, 194, 71, .08), 0 0 20px rgba(244, 194, 71, .28);
}

.radio-dock.is-playing .radio-power::after { border-color: rgba(244, 194, 71, .34); animation: radio-power-pulse 2s ease-out infinite; }
.radio-copy { min-width: 0; }
.radio-heading-line { display: flex; align-items: center; gap: 7px; }

.radio-live-badge,
.radio-station-name {
  font-size: .46rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.radio-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 5px;
  color: #929cab;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}

.radio-live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #697383;
  transition: 180ms ease;
}

.radio-dock.is-playing .radio-live-badge { color: #b9f5d6; border-color: rgba(69, 217, 144, .23); background: rgba(69, 217, 144, .07); }
.radio-dock.is-playing .radio-live-badge i { background: var(--green); box-shadow: 0 0 10px rgba(69, 217, 144, .8); animation: pulse 1.5s infinite; }
.radio-station-name { overflow: hidden; color: #737e8e; text-overflow: ellipsis; white-space: nowrap; }

.radio-copy h2 {
  margin: 8px 0 0;
  overflow: hidden;
  font-size: clamp(.95rem, 1.8vw, 1.22rem);
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.radio-copy > p {
  margin: 2px 0 0;
  overflow: hidden;
  color: #7f8998;
  font-size: .47rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-live-signal {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 21px;
  margin-top: 8px;
  color: #596474;
  transition: color 180ms ease, opacity 180ms ease;
}

.radio-live-signal strong {
  flex: 0 0 auto;
  font-size: .47rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.radio-live-orbit {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.radio-live-orbit::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}

.radio-live-orbit i {
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .2;
}

.radio-live-orbit i:nth-child(2) { inset: 1px; }
.radio-live-orbit i:nth-child(3) { inset: -2px; }

.radio-live-ticks {
  display: flex;
  height: 18px;
  align-items: center;
  gap: 3px;
}

.radio-live-ticks i { width: 2px; height: 4px; border-radius: 99px; background: currentColor; opacity: .55; }
.radio-live-ticks i:nth-child(2), .radio-live-ticks i:nth-child(8) { height: 9px; }
.radio-live-ticks i:nth-child(3), .radio-live-ticks i:nth-child(6) { height: 14px; }
.radio-live-ticks i:nth-child(4) { height: 7px; }
.radio-live-ticks i:nth-child(5) { height: 17px; }
.radio-live-ticks i:nth-child(7) { height: 11px; }

.radio-dock.is-playing .radio-live-signal { color: #a4e9ca; }
.radio-dock.is-playing .radio-live-orbit i { animation: radio-signal-ring 2.1s ease-out infinite; }
.radio-dock.is-playing .radio-live-orbit i:nth-child(2) { animation-delay: .7s; }
.radio-dock.is-playing .radio-live-orbit i:nth-child(3) { animation-delay: 1.4s; }
.radio-dock.is-playing .radio-live-ticks i { animation: radio-live-tick .76s ease-in-out infinite alternate; }
.radio-dock.is-playing .radio-live-ticks i:nth-child(2), .radio-dock.is-playing .radio-live-ticks i:nth-child(7) { animation-delay: -.46s; }
.radio-dock.is-playing .radio-live-ticks i:nth-child(3), .radio-dock.is-playing .radio-live-ticks i:nth-child(8) { animation-delay: -.21s; }
.radio-dock.is-playing .radio-live-ticks i:nth-child(4), .radio-dock.is-playing .radio-live-ticks i:nth-child(9) { animation-delay: -.61s; }
.radio-dock.is-playing .radio-live-ticks i:nth-child(5) { animation-delay: -.34s; }

.radio-volume-control {
  display: inline-grid;
  grid-template-columns: 12px minmax(48px, 64px) 25px;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin-top: 0;
  justify-self: end;
  color: #7f8998;
}

.radio-volume-control svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.radio-volume-control input {
  width: 100%;
  height: 14px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--gold);
}

.radio-volume-control output {
  color: #8d97a7;
  font-size: .46rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: right;
}

.radio-volume-control.is-muted { color: #596271; }

.radio-on-air {
  display: none;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
  text-align: center;
}

.radio-on-air > span { color: #656f7f; font-size: .5rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.radio-wave { display: flex; height: 28px; align-items: center; justify-content: center; gap: 4px; margin-top: 5px; }
.radio-wave i { width: 3px; height: 5px; border-radius: 99px; background: #596372; }

.radio-dock.is-playing .radio-wave i {
  background: linear-gradient(var(--red-light), #fff 48%, var(--blue-light));
  box-shadow: 0 0 6px rgba(255, 255, 255, .18);
  animation: radio-wave .88s ease-in-out infinite alternate;
}

.radio-wave i:nth-child(2), .radio-wave i:nth-child(6) { animation-delay: -.55s !important; }
.radio-wave i:nth-child(3), .radio-wave i:nth-child(7) { animation-delay: -.22s !important; }
.radio-wave i:nth-child(4) { animation-delay: -.72s !important; }
.radio-wave i:nth-child(5) { animation-delay: -.38s !important; }

.radio-disclosure {
  display: none;
}

.radio-dock audio { display: none; }

/* Minimal live-radio pill */
.radio-dock {
  grid-template-columns: minmax(0, 1fr) 31px;
  gap: 3px;
  width: min(310px, 100%);
  min-height: 38px;
  justify-self: center;
  padding: 3px;
  overflow: visible;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(9, 13, 20, .9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 7px 22px rgba(0, 0, 0, .18);
}

.radio-dock::before,
.radio-dock::after,
.radio-signal,
.radio-copy,
.radio-on-air,
.radio-disclosure { display: none; }

.radio-power {
  display: grid;
  grid-template-columns: 27px auto minmax(0, 1fr) 48px;
  width: 100%;
  height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 6px 0 2px;
  overflow: hidden;
  color: #8d97a6;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.radio-power::after { display: none; }
.radio-power:hover { color: #e8ecf2; border-color: transparent; background: rgba(255, 255, 255, .035); transform: none; }
.radio-power:focus-visible { outline: 2px solid rgba(244, 194, 71, .72); outline-offset: 1px; }

.radio-power-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #8e98a7;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .035);
  transition: 180ms ease;
}

.radio-power-icon svg { width: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.radio-power > .radio-live-badge { padding: 0; color: #848e9d; border: 0; background: transparent; white-space: nowrap; }
.radio-power > .radio-live-badge b { font: inherit; }
.radio-power > .radio-station-name { min-width: 0; color: #697382; font-size: .45rem; }

.radio-waveform {
  display: flex;
  height: 18px;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  color: #4d5867;
}

.radio-waveform i {
  width: 2px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: currentColor;
  opacity: .58;
  transform: scaleY(.18);
  transition: transform 75ms linear, opacity 120ms ease, background 180ms ease;
}

.radio-dock.is-playing {
  border-color: rgba(69, 217, 144, .22);
  background: linear-gradient(90deg, rgba(69, 217, 144, .045), rgba(9, 13, 20, .94));
}

.radio-dock.is-playing .radio-power {
  color: #dce4e2;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.radio-dock.is-playing .radio-power-icon {
  color: #102018;
  border-color: #8ae8b8;
  background: #69d99a;
  box-shadow: 0 0 15px rgba(69, 217, 144, .24);
}

.radio-dock.is-playing .radio-live-badge { color: #a9ebc9; border: 0; background: transparent; }
.radio-dock.is-playing .radio-live-badge i { background: #69d99a; box-shadow: 0 0 8px rgba(69, 217, 144, .7); }
.radio-dock.is-playing .radio-station-name { color: #82918d; }
.radio-dock.is-playing .radio-waveform { color: #79d9a8; }

.radio-volume-button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: #75808f;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: 160ms ease;
}

.radio-volume-button:hover,
.radio-volume-button[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .06); }
.radio-volume-button:focus-visible { outline: 2px solid rgba(244, 194, 71, .72); outline-offset: 1px; }
.radio-volume-button svg { width: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.radio-volume-button.is-muted { color: #525c69; }

.radio-volume-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  background: #111721;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .45);
}

.radio-volume-popover[hidden] { display: none; }
.radio-volume-popover .radio-volume-control { grid-template-columns: 43px minmax(70px, 1fr) 30px; width: 100%; color: #8e98a6; }
.radio-volume-popover .radio-volume-control > span { font-size: .46rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.leaders-section {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: 74px 0 86px;
}

.leaders-section::before {
  position: absolute;
  z-index: -1;
  inset: 0 -100vw;
  content: "";
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 27px;
}

.section-heading h2,
.activity-copy h2 {
  margin: 7px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: #b9c0cc;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(69,217,144,.1), 0 0 12px rgba(69,217,144,.7);
  animation: pulse 2s infinite;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.team-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(11, 15, 23, 0.82);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.team-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
}

.team-panel-blue::before { background: linear-gradient(90deg, var(--blue), transparent 75%); }
.team-panel-red::before { background: linear-gradient(90deg, var(--red), transparent 75%); }

.team-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 102px;
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
}

.team-panel-blue .team-panel-header { background: linear-gradient(100deg, rgba(22,140,255,.15), transparent 65%); }
.team-panel-red .team-panel-header { background: linear-gradient(100deg, rgba(255,44,57,.15), transparent 65%); }

.team-panel-header p {
  margin: 0 0 4px;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.team-panel-blue .team-panel-header p { color: var(--blue-light); }
.team-panel-red .team-panel-header p { color: var(--red-light); }

.team-panel-header h3 {
  margin: 0;
  font-size: 1.18rem;
  text-transform: uppercase;
}

.team-mvp {
  min-width: 112px;
  padding: 10px 12px;
  text-align: right;
  border-left: 1px solid var(--line);
}

.team-mvp small,
.team-mvp strong {
  display: block;
}

.team-mvp small {
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-mvp strong {
  margin-top: 3px;
  font-size: 0.78rem;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px 0 0;
  list-style: none;
  background: var(--line);
}

.member-card {
  position: relative;
  display: grid;
  grid-template-columns: 27px 42px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 75px;
  padding: 10px 14px;
  overflow: hidden;
  background: #0d121b;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), inset 0 -1px rgba(0, 0, 0, .28);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.team-panel-blue .member-card { background: linear-gradient(100deg, rgba(22, 140, 255, .045), transparent 48%), #0d121b; }
.team-panel-red .member-card { background: linear-gradient(260deg, rgba(255, 44, 57, .04), transparent 48%), #0d121b; }
.member-card.is-leader { box-shadow: inset 0 0 0 1px rgba(244, 194, 71, .16), inset 3px 0 rgba(244, 194, 71, .52); }

.member-card > * {
  position: relative;
  z-index: 1;
}

.member-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.team-panel-blue .member-card.is-reordering {
  box-shadow: inset 0 0 20px rgba(22, 140, 255, .24), 0 0 18px rgba(22, 140, 255, .17);
}

.team-panel-blue .member-card.is-reordering::before {
  opacity: .7;
  background:
    radial-gradient(ellipse at 10% 112%, rgba(90, 207, 255, .95) 0 7%, rgba(22, 140, 255, .45) 8% 17%, transparent 31%),
    radial-gradient(ellipse at 34% 115%, rgba(177, 233, 255, .9) 0 5%, rgba(22, 140, 255, .5) 8% 20%, transparent 34%),
    radial-gradient(ellipse at 61% 111%, rgba(75, 190, 255, .9) 0 8%, rgba(5, 73, 190, .48) 10% 22%, transparent 36%),
    radial-gradient(ellipse at 88% 114%, rgba(170, 230, 255, .9) 0 5%, rgba(22, 140, 255, .5) 9% 20%, transparent 34%);
  filter: blur(3px) saturate(1.35);
  mix-blend-mode: screen;
  transform-origin: bottom;
  animation: blue-fire 1.15s ease-in-out infinite alternate;
}

.team-panel-red .member-card.is-reordering {
  box-shadow: inset 0 0 20px rgba(255, 44, 57, .28), 0 0 20px rgba(255, 44, 57, .2);
  animation: red-electric-border .82s steps(2, end) infinite;
}

.team-panel-red .member-card.is-reordering::before {
  opacity: .83;
  background:
    linear-gradient(116deg, transparent 0 23%, rgba(255, 255, 255, .9) 23.5% 24%, rgba(255, 44, 57, .85) 24.2% 25%, transparent 25.5% 100%),
    linear-gradient(63deg, transparent 0 51%, rgba(255, 82, 91, .85) 51.5% 52.2%, rgba(255, 255, 255, .92) 52.4% 52.8%, transparent 53.2% 100%),
    linear-gradient(125deg, transparent 0 73%, rgba(255, 255, 255, .8) 73.4% 73.8%, rgba(255, 44, 57, .8) 74% 75%, transparent 75.4% 100%);
  background-size: 160% 100%, 190% 100%, 145% 100%;
  filter: drop-shadow(0 0 4px #ff2c39) drop-shadow(0 0 7px rgba(255, 44, 57, .75));
  mix-blend-mode: screen;
  animation: red-lightning .72s steps(2, end) infinite;
}

.member-card:hover {
  background-color: #121925;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px rgba(255, 255, 255, .04);
}

.member-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  opacity: .55;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 600ms ease;
}

.team-panel-blue .member-card::after { background: var(--blue); }
.team-panel-red .member-card::after { background: var(--red); }

.member-rank {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #626b7b;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
  font-size: 0.66rem;
  font-weight: 900;
  text-align: center;
}

.member-rank.top {
  color: var(--gold);
  border-color: rgba(244, 194, 71, .3);
  background: rgba(244, 194, 71, .08);
  box-shadow: 0 0 13px rgba(244, 194, 71, .09);
}

.member-avatar {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
}

.team-panel-blue .member-avatar { color: #8bcaff; background: rgba(22,140,255,.1); }
.team-panel-red .member-avatar { color: #ff8c92; background: rgba(255,44,57,.1); }
.team-panel-blue .member-avatar.has-photo { border-color: rgba(22, 140, 255, .38); }
.team-panel-red .member-avatar.has-photo { border-color: rgba(255, 44, 57, .38); }
.team-panel-blue .member-avatar.has-photo { box-shadow: 0 0 0 2px rgba(22, 140, 255, .055), 0 5px 13px rgba(0, 0, 0, .24); }
.team-panel-red .member-avatar.has-photo { box-shadow: 0 0 0 2px rgba(255, 44, 57, .05), 0 5px 13px rgba(0, 0, 0, .24); }

.member-avatar img,
.activity-avatar img,
.selected-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.member-card > .member-affiliation-mark {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  opacity: .38;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, rgba(0, 0, 0, .35) 34%, #000 68%);
  mask-image: linear-gradient(90deg, transparent 4%, rgba(0, 0, 0, .35) 34%, #000 68%);
  transition: opacity 180ms ease;
}

.member-card-cowboy .member-affiliation-mark,
.member-card-strapcity .member-affiliation-mark {
  background-position: right 48%;
  background-size: auto 190%;
  filter: brightness(1.18) saturate(.9);
}

.member-card-cowboy .member-affiliation-mark { background-image: url("/pfp/cowboy.png"); }
.member-card-strapcity .member-affiliation-mark { background-image: url("/pfp/StrapCity.png"); }

.member-card.is-reordering .member-affiliation-mark { opacity: .15; }

.member-name {
  min-width: 0;
}

.member-name strong,
.member-name span {
  display: block;
}

.member-name strong {
  overflow: hidden;
  font-size: 0.75rem;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.member-name span {
  margin-top: 4px;
  color: #697383;
  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-name .member-ready {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #82d4aa;
}

.member-name .member-ready::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  content: "";
  border-radius: 50%;
  background: #69d99a;
  box-shadow: 0 0 7px rgba(69, 217, 144, .45);
}

.member-score {
  min-width: 67px;
  padding: 5px 7px 4px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 9px;
  background: rgba(0, 0, 0, .2);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.55rem;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  line-height: .9;
  text-align: right;
}

.team-panel-blue .member-score { border-color: rgba(22, 140, 255, .11); background: rgba(4, 42, 78, .22); }
.team-panel-red .member-score { border-color: rgba(255, 44, 57, .1); background: rgba(72, 5, 12, .2); }

.member-score small {
  margin-left: 2px;
  color: #737c8c;
  font-family: Inter, sans-serif;
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 800;
}

.activity-section {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: 65px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 105px;
}

.activity-copy p:last-child {
  max-width: 370px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.activity-feed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #0c1018;
}

.activity-item,
.empty-activity {
  display: grid;
  align-items: center;
  min-height: 78px;
  padding: 17px 20px;
}

.empty-activity {
  grid-template-columns: 46px 1fr;
  gap: 15px;
}

.empty-activity > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.empty-activity strong,
.empty-activity p {
  display: block;
  margin: 0;
}

.empty-activity strong { font-size: 0.76rem; text-transform: uppercase; }
.empty-activity p { margin-top: 4px; color: var(--muted); font-size: .69rem; }

.activity-item {
  grid-template-columns: 10px 42px 1fr auto;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.activity-item:last-child { border-bottom: 0; }
.activity-team { width: 7px; height: 34px; border-radius: 9px; }
.activity-item.blue .activity-team { background: var(--blue); box-shadow: 0 0 16px rgba(22,140,255,.35); }
.activity-item.red .activity-team { background: var(--red); box-shadow: 0 0 16px rgba(255,44,57,.35); }
.activity-avatar { position: relative; display: grid; width: 39px; height: 39px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: .68rem; font-weight: 900; background: rgba(255,255,255,.03); }
.activity-item.blue .activity-avatar.has-photo { border-color: rgba(22, 140, 255, .38); }
.activity-item.red .activity-avatar.has-photo { border-color: rgba(255, 44, 57, .38); }
.activity-message strong, .activity-message small { display: block; }
.activity-message strong { font-size: .74rem; }
.activity-message span { color: #aab1be; font-weight: 500; }
.activity-message small { margin-top: 4px; color: #646e7e; font-size: .58rem; font-weight: 700; }
.activity-value { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 1.2rem; font-style: italic; }
.activity-item.blue .activity-value { color: var(--blue-light); }
.activity-item.red .activity-value { color: var(--red-light); }

body > footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 33px;
  color: #697282;
  border-top: 1px solid var(--line);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body > footer div { display: flex; align-items: center; gap: 10px; }
body > footer p { margin: 0; }
.footer-tagline { justify-self: center; }
.footer-credit { justify-self: end; text-align: right; }
.footer-credit img { width: 34px; height: 34px; object-fit: contain; filter: brightness(1.35) drop-shadow(0 0 8px rgba(22, 140, 255, .16)); }
.footer-credit small { max-width: 170px; color: #747e8d; font-size: .5rem; font-weight: 700; letter-spacing: .04em; line-height: 1.45; text-transform: none; }
.footer-credit a { color: #a9cff3; font-weight: 900; text-decoration: none; }
.footer-credit a:hover { color: #fff; text-decoration: underline; }
.brand-ball-small { width: 25px; height: 25px; border-width: 1px; }

.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(3, 5, 9, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.modal-backdrop {
  display: grid;
  padding: 20px;
  place-items: center;
}

.modal-backdrop[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.pin-card {
  position: relative;
  width: min(100%, 400px);
  padding: 37px 42px 40px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: linear-gradient(160deg, #141a25, #090d14);
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
  animation: modal-in 240ms ease-out;
}

.pin-card::before {
  position: absolute;
  top: 0;
  right: 26%;
  left: 26%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #9ba3b1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  font-size: 1.25rem;
  line-height: 1;
}

.icon-button:hover { color: #fff; background: rgba(255,255,255,.08); }
.pin-close { position: absolute; top: 17px; right: 17px; }

.lock-badge {
  display: grid;
  width: 55px;
  height: 55px;
  margin: 0 auto 22px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(244,194,71,.3);
  border-radius: 17px;
  background: rgba(244,194,71,.09);
  box-shadow: 0 0 30px rgba(244,194,71,.08);
}

.lock-badge svg { width: 23px; }
.pin-card h2 { margin: 8px 0 0; font-size: 1.65rem; text-transform: uppercase; }
.pin-card > p:not(.section-kicker) { margin: 10px 0 23px; color: var(--muted); font-size: .76rem; }

#pin-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 9px;
}

.pin-dots i {
  width: 14px;
  height: 14px;
  border: 1px solid #4b5565;
  border-radius: 50%;
  background: #080b11;
  transition: 130ms ease;
}

.pin-dots i.filled {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 13px rgba(244,194,71,.65);
}

.form-error {
  min-height: 18px;
  margin: 0 0 5px;
  color: #ff7d84;
  font-size: .65rem;
  font-weight: 700;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 7px;
}

.keypad button {
  height: 47px;
  color: #f2f4f8;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  font-size: 1rem;
  font-weight: 800;
  transition: 130ms ease;
}

.keypad button:hover { border-color: rgba(244,194,71,.38); background: rgba(244,194,71,.09); }

.primary-button {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  color: #151109;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe08a, var(--gold));
  box-shadow: 0 10px 25px rgba(244,194,71,.14);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.primary-button:disabled { cursor: wait; opacity: .65; }

.drawer-backdrop {
  z-index: 41;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 42;
  display: flex;
  width: min(100%, 430px);
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,.12);
  background: #0c1018;
  box-shadow: -30px 0 90px rgba(0,0,0,.52);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.admin-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 26px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(244,194,71,.055), transparent);
}

.drawer-title-row { display: flex; align-items: center; gap: 11px; margin-top: 6px; }
.drawer-header h2 { margin: 0; font-size: 1.55rem; text-transform: uppercase; }
.drawer-title-row img { width: 35px; height: 35px; object-fit: contain; filter: brightness(1.4) drop-shadow(0 0 9px rgba(22, 140, 255, .2)); }
.drawer-body { flex: 1; padding: 24px 26px; overflow-y: auto; }
.field-label { display: block; margin-bottom: 8px; color: #9ba3b1; font-size: .59rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 14px;
  color: #f4f5f7;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  outline: 0;
  appearance: none;
  background: #121824;
  font-size: .76rem;
  font-weight: 700;
}
.select-wrap span { position: absolute; top: 12px; right: 15px; color: #8a93a2; pointer-events: none; }

.selected-player {
  display: grid;
  grid-template-columns: 47px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.selected-avatar { position: relative; display: grid; width: 45px; height: 45px; overflow: hidden; place-items: center; color: #9ed1ff; border: 1px solid rgba(22,140,255,.24); border-radius: 13px; background: rgba(22,140,255,.1); font-weight: 900; }
.selected-player small, .selected-player strong, .selected-player span { display: block; }
.selected-player small { color: #747e8e; font-size: .48rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.selected-player strong { margin-top: 3px; font-size: .78rem; text-transform: uppercase; }
.selected-player span { margin-top: 3px; color: #758092; font-size: .55rem; }
.selected-total { text-align: right; }
.selected-total strong { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 1.8rem; font-style: italic; line-height: 1; }
.selected-total span { margin-top: 1px; font-size: .47rem; font-weight: 900; letter-spacing: .1em; }

.admin-block { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.premium-block {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid rgba(244,194,71,.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244,194,71,.085), rgba(244,194,71,.025));
}
.block-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.block-heading strong { font-size: .72rem; text-transform: uppercase; }
.block-heading span { color: #707a89; font-size: .58rem; }
.block-heading .formula-badge { padding: 4px 7px; color: var(--gold); border: 1px solid rgba(244,194,71,.24); border-radius: 999px; background: rgba(244,194,71,.07); font-size: .5rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.premium-block .field-label { margin-bottom: 7px; }
.premium-input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.money-input { position: relative; }
.money-input span { position: absolute; top: 13px; left: 13px; color: var(--gold); font-size: .75rem; font-weight: 900; }
.money-input input { width: 100%; height: 47px; padding: 0 13px 0 29px; color: #fff; border: 1px solid rgba(244,194,71,.2); border-radius: 10px; outline: 0; background: rgba(5,7,11,.55); font-size: .82rem; font-weight: 800; }
.money-input input:focus { border-color: rgba(244,194,71,.6); box-shadow: 0 0 0 3px rgba(244,194,71,.06); }
.premium-input-row > button { padding: 0 17px; color: #151109; border: 0; border-radius: 10px; background: linear-gradient(135deg, #ffe08a, var(--gold)); font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.premium-preview { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding: 9px 10px; border-radius: 8px; background: rgba(0,0,0,.2); }
.premium-preview span { color: #8b94a3; font-size: .56rem; }
.premium-preview strong { color: var(--gold); font-size: .68rem; }
.quick-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-buttons button { height: 48px; color: #a8d7ff; border: 1px solid rgba(22,140,255,.2); border-radius: 11px; background: rgba(22,140,255,.08); font-weight: 900; transition: 150ms ease; }
.quick-buttons button:hover { color: #fff; border-color: rgba(22,140,255,.48); background: rgba(22,140,255,.16); }
.quick-buttons button.negative { color: #ff9ba0; border-color: rgba(255,44,57,.2); background: rgba(255,44,57,.07); }

.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 9px; }
.inline-form input { min-width: 0; height: 45px; padding: 0 13px; color: #f5f6f8; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #0a0e15; font-size: .72rem; }
.inline-form input:focus { border-color: rgba(244,194,71,.5); }
.inline-form button { padding: 0 15px; color: #17130b; border: 0; border-radius: 10px; background: var(--gold); font-size: .62rem; font-weight: 900; text-transform: uppercase; }

.undo-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
  padding: 14px;
  color: #e3e6eb;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}
.undo-button > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 1.2rem; }
.undo-button strong, .undo-button small { display: block; }
.undo-button strong { font-size: .68rem; text-transform: uppercase; }
.undo-button small { max-width: 250px; margin-top: 3px; overflow: hidden; color: #727c8b; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.undo-button:disabled { cursor: not-allowed; opacity: .4; }

.radio-admin { position: relative; margin-bottom: 4px; isolation: isolate; }
.radio-admin > :not(.radio-developer-wall) { transition: opacity 180ms ease, filter 180ms ease; }
.radio-admin.is-developer-locked > :not(.radio-developer-wall) { opacity: .42; filter: saturate(.55); }

.radio-developer-wall {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
  border-radius: inherit;
  background: rgba(5, 8, 13, .48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.radio-developer-wall[hidden] { display: none; }

.radio-developer-lock-card {
  position: sticky;
  top: 18px;
  width: min(100%, 330px);
  padding: 24px;
  border: 1px solid rgba(244, 194, 71, .28);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(24, 29, 39, .97), rgba(8, 12, 18, .98));
  box-shadow: 0 24px 65px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .06);
  text-align: center;
}

.radio-developer-lock-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(244, 194, 71, .3);
  border-radius: 14px;
  background: rgba(244, 194, 71, .08);
  box-shadow: 0 0 28px rgba(244, 194, 71, .09);
}

.radio-developer-lock-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.radio-developer-lock-card h4 { margin: 7px 0 0; font-size: 1rem; letter-spacing: -.01em; text-transform: uppercase; }
.radio-developer-lock-card > p { margin: 9px auto 18px; color: #8f98a6; font-size: .63rem; line-height: 1.55; }
.radio-developer-lock-card .field-label { margin-bottom: 7px; text-align: left; }
.radio-developer-pin-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.radio-developer-pin-row input {
  min-width: 0;
  height: 45px;
  padding: 0 12px;
  color: #fff;
  border: 1px solid rgba(244, 194, 71, .24);
  border-radius: 10px;
  outline: 0;
  background: #070a10;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .28em;
  text-align: center;
}
.radio-developer-pin-row input:focus { border-color: rgba(244, 194, 71, .7); box-shadow: 0 0 0 3px rgba(244, 194, 71, .07); }
.radio-developer-pin-row button { padding: 0 16px; color: #171108; border: 0; border-radius: 10px; background: linear-gradient(135deg, #ffe08a, var(--gold)); font-size: .57rem; font-weight: 900; text-transform: uppercase; }
.radio-developer-pin-row button:disabled { cursor: wait; opacity: .6; }
#radio-developer-error { display: block; min-height: 17px; margin-top: 7px; color: #ff9299; font-size: .52rem; font-weight: 800; text-align: left; }
.radio-admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.radio-admin-kicker { color: var(--gold); font-size: .5rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.radio-admin-heading h3 { margin: 4px 0 0; font-size: 1.25rem; letter-spacing: -.02em; text-transform: uppercase; }

.radio-generation-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 6px 8px;
  color: #8993a2;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.radio-generation-pill i { width: 6px; height: 6px; border-radius: 50%; background: #647080; }
.radio-generation-pill.running { color: #ffe6a6; border-color: rgba(244, 194, 71, .25); background: rgba(244, 194, 71, .07); }
.radio-generation-pill.running i { background: var(--gold); box-shadow: 0 0 9px rgba(244, 194, 71, .7); animation: pulse 1.1s infinite; }
.radio-generation-pill.error { color: #ffadb2; border-color: rgba(255, 44, 57, .25); background: rgba(255, 44, 57, .07); }
.radio-generation-pill.error i { background: var(--red); }

.provider-status { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 17px; }
.provider-status span { display: flex; align-items: center; gap: 7px; padding: 8px 10px; color: #7d8796; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .02); font-size: .55rem; font-weight: 800; }
.provider-status i { width: 7px; height: 7px; border-radius: 50%; background: #5a6372; }
.provider-status span.online { color: #a9e9c8; border-color: rgba(69, 217, 144, .17); background: rgba(69, 217, 144, .045); }
.provider-status span.online i { background: var(--green); box-shadow: 0 0 8px rgba(69, 217, 144, .55); }
.provider-status span.offline { color: #e5969c; border-color: rgba(255, 44, 57, .15); }
.provider-status span.offline i { background: var(--red); }

.radio-text-input,
.radio-textarea {
  width: 100%;
  color: #f4f6f9;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  outline: 0;
  background: #0a0e15;
  font-size: .7rem;
}

.radio-text-input { height: 44px; padding: 0 12px; }
.radio-textarea { min-height: 70px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.radio-text-input:focus, .radio-textarea:focus { border-color: rgba(244, 194, 71, .48); box-shadow: 0 0 0 3px rgba(244, 194, 71, .045); }

.radio-host-card {
  position: relative;
  margin-top: 15px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
}

.radio-host-one { border-left-color: rgba(22, 140, 255, .55); }
.radio-host-two { border-left-color: rgba(255, 44, 57, .55); }
.radio-host-card .field-label { margin-top: 12px; margin-bottom: 6px; }
.radio-host-card .radio-host-label + .field-label { margin-top: 0; }
.radio-host-card .select-wrap select { height: 43px; font-size: .69rem; }
.radio-host-card .select-wrap span { top: 9px; }
.radio-host-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.radio-host-label span { font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.radio-host-one .radio-host-label span { color: var(--blue-light); }
.radio-host-two .radio-host-label span { color: var(--red-light); }
.radio-host-label small { color: #687282; font-size: .5rem; font-weight: 800; text-transform: uppercase; }

.radio-editorial-card {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid rgba(244, 194, 71, .18);
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, rgba(244, 194, 71, .08), transparent 40%),
    rgba(255, 255, 255, .018);
}

.radio-editorial-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.radio-editorial-heading > span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; color: var(--gold); border: 1px solid rgba(244, 194, 71, .2); border-radius: 9px; background: rgba(244, 194, 71, .07); font-size: .82rem; }
.radio-editorial-heading h4 { margin: 0; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.radio-editorial-heading small { display: block; margin-top: 3px; color: #707a8a; font-size: .5rem; line-height: 1.35; }
.radio-editorial-card .field-label { margin-bottom: 6px; }
.radio-editorial-card .radio-textarea { background: rgba(4, 6, 10, .72); }
.radio-show-instructions { min-height: 128px; }
.radio-memory-library { min-height: 184px; }
.radio-field-help { margin: 7px 1px 0; color: #707a8a; font-size: .52rem; line-height: 1.55; }
.radio-memory-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; }
.radio-memory-heading .field-label { margin-bottom: 6px; }
.radio-memory-heading span { flex: 0 0 auto; margin-bottom: 6px; color: #8d7741; font-size: .46rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.radio-schedule-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding: 13px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .02);
}

.radio-schedule-toggle strong,
.radio-schedule-toggle small { display: block; }
.radio-schedule-toggle strong { font-size: .64rem; text-transform: uppercase; }
.radio-schedule-toggle small { margin-top: 3px; color: #707a8a; font-size: .52rem; line-height: 1.35; }
.radio-schedule-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.radio-schedule-toggle > i { position: relative; width: 40px; height: 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 99px; background: #080b11; transition: 180ms ease; }
.radio-schedule-toggle > i::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; content: ""; border-radius: 50%; background: #697383; transition: 180ms ease; }
.radio-schedule-toggle input:checked + i { border-color: rgba(69, 217, 144, .35); background: rgba(69, 217, 144, .12); }
.radio-schedule-toggle input:checked + i::after { background: var(--green); box-shadow: 0 0 8px rgba(69, 217, 144, .5); transform: translateX(18px); }
.radio-schedule-toggle input:focus-visible + i { outline: 3px solid rgba(244, 194, 71, .72); outline-offset: 3px; }

.radio-admin-actions { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8px; margin-top: 13px; }
.radio-admin-actions button { min-height: 44px; border-radius: 10px; font-size: .59rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.radio-save-button { color: #d7dce4; border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .045); }
.radio-generate-button { color: #151109; border: 0; background: linear-gradient(135deg, #ffe08a, var(--gold)); box-shadow: 0 9px 23px rgba(244, 194, 71, .12); }
.radio-admin-actions button:disabled { cursor: wait; opacity: .5; }

.radio-admin-status { margin-top: 11px; padding: 11px 12px; border-radius: 9px; background: rgba(0, 0, 0, .2); }
.radio-admin-status span, .radio-admin-status strong { display: block; }
.radio-admin-status span { color: #5f6978; font-size: .46rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.radio-admin-status strong { margin-top: 4px; color: #929baa; font-size: .56rem; line-height: 1.45; }
.radio-admin-status.error strong { color: #ff9ba1; }
.failed-script-download { margin-top: 9px; padding: 8px 10px; color: #ffd6d8; border: 1px solid rgba(255, 91, 101, .35); border-radius: 8px; background: rgba(255, 91, 101, .1); font-size: .5rem; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.failed-script-download:hover { color: #fff; border-color: rgba(255, 121, 129, .65); background: rgba(255, 91, 101, .18); }

.filler-studio {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.filler-studio-heading,
.filler-library-heading,
.filler-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.filler-studio-heading h4 { margin: 4px 0 0; font-size: .94rem; letter-spacing: -.01em; text-transform: uppercase; }
.filler-studio-heading small,
.filler-library-heading small { display: block; margin-top: 5px; color: #707a8a; font-size: .51rem; line-height: 1.5; }
.filler-rotation-rule { flex: 0 0 auto; padding: 5px 7px; color: #8fd9b2; border: 1px solid rgba(69, 217, 144, .2); border-radius: 999px; background: rgba(69, 217, 144, .055); font-size: .43rem; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.filler-script-form { margin-top: 15px; }
.filler-voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.filler-voice-grid > label { min-width: 0; }
.filler-source { min-height: 210px; resize: vertical; }
.filler-form-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 11px; }
.filler-form-actions button { min-height: 38px; padding: 8px 12px; border-radius: 9px; font-size: .52rem; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.filler-form-actions #filler-clear-button { color: #8f98a6; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.filler-form-actions button:disabled { cursor: wait; opacity: .5; }
.filler-format-status { min-height: 17px; margin-top: 9px; color: #778191; font-size: .5rem; font-weight: 750; line-height: 1.45; }
.filler-format-status.success { color: #7fd3a8; }
.filler-format-status.error { color: #ff9ba1; }

.filler-preview { margin-top: 13px; padding: 12px; border: 1px solid rgba(244, 194, 71, .18); border-radius: 11px; background: rgba(244, 194, 71, .025); }
.filler-preview[hidden] { display: none; }
.filler-preview-heading span,
.filler-preview-heading strong { display: block; }
.filler-preview-heading span { color: #9c8140; font-size: .43rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.filler-preview-heading strong { margin-top: 4px; font-size: .62rem; }
.filler-preview-heading small { color: #7c8593; font-size: .48rem; font-weight: 800; }
.filler-turn-list { display: grid; gap: 7px; max-height: 360px; margin-top: 11px; padding-right: 3px; overflow-y: auto; }
.filler-turn { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 8px; padding: 9px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 9px; background: rgba(0, 0, 0, .18); }
.filler-turn select { width: 100%; min-height: 30px; padding: 5px 22px 5px 7px; color: #d7dce3; border: 1px solid var(--line); border-radius: 7px; background: #111720; font-size: .48rem; font-weight: 850; }
.filler-turn p { margin: 1px 0 0; color: #adb5c0; font-size: .54rem; line-height: 1.5; }
.filler-generate-button { width: 100%; min-height: 39px; margin-top: 11px; color: #171108; border: 0; border-radius: 9px; background: linear-gradient(135deg, #ffe08a, var(--gold)); font-size: .53rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.filler-generate-button:disabled { cursor: wait; opacity: .48; }

.filler-library-heading { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.filler-library-heading h5 { margin: 4px 0 0; font-size: .78rem; text-transform: uppercase; }
.filler-library-list { display: grid; gap: 9px; margin-top: 11px; }
.filler-card .broadcast-card-copy time { text-transform: capitalize; }
.filler-card-status { color: #8fd9b2; }
.filler-card-status.failed { color: #ff9ba1; }
.filler-card-status.building { color: #f2cd73; }
.filler-card.failed .broadcast-delete-note { display: block; }
.filler-card-voices { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filler-card-actions { grid-template-columns: .7fr .9fr 1.1fr .7fr; }
.filler-card-toggle { color: #9ed1ff; border: 1px solid rgba(22, 140, 255, .2); background: rgba(22, 140, 255, .045); }
.filler-card-toggle.is-active { color: #9ce2bd; border-color: rgba(69, 217, 144, .26); background: rgba(69, 217, 144, .065); }

.broadcast-library {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.broadcast-library-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.broadcast-library-heading h4 { margin: 4px 0 0; font-size: .94rem; letter-spacing: -.01em; text-transform: uppercase; }
.broadcast-library-heading small { display: block; margin-top: 5px; color: #707a8a; font-size: .51rem; line-height: 1.45; }

.broadcast-refresh {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: #9099a8;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
  font-size: .92rem;
  transition: 160ms ease;
}

.broadcast-refresh:hover { color: #fff; border-color: rgba(244, 194, 71, .3); background: rgba(244, 194, 71, .055); }
.broadcast-refresh.loading { animation: broadcast-refresh-spin .8s linear infinite; }

.broadcast-player {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(244, 194, 71, .2);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(244, 194, 71, .075), rgba(255, 255, 255, .018));
}

.broadcast-player[hidden] { display: none; }
.broadcast-player-copy span, .broadcast-player-copy strong { display: block; }
.broadcast-player-copy span { color: #9c8140; font-size: .43rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.broadcast-player-copy strong { margin-top: 4px; overflow: hidden; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-volume-control { margin-top: 9px; }

.broadcast-player-timeline {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #8791a0;
  font-size: .47rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.broadcast-player-timeline > span:last-child { text-align: right; }
.broadcast-player-timeline input { width: 100%; height: 14px; margin: 0; cursor: pointer; accent-color: var(--gold); }
.broadcast-player-timeline input:disabled { cursor: default; opacity: .45; }
.broadcast-player audio { display: none; }

.broadcast-library-list { display: grid; gap: 9px; margin-top: 12px; }

.broadcast-library-state {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px;
  color: #737d8c;
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: 11px;
  text-align: center;
}

.broadcast-library-state i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #667080; }
.broadcast-library-state strong { font-size: .54rem; line-height: 1.45; }
.broadcast-library-state.loading i { background: var(--gold); animation: pulse 1s infinite; }
.broadcast-library-state.error { color: #ff9ba1; border-color: rgba(255, 44, 57, .2); background: rgba(255, 44, 57, .035); }
.broadcast-library-state.error i { background: var(--red); }

.broadcast-card {
  position: relative;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .018);
  transition: border-color 160ms ease, background 160ms ease;
}

.broadcast-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  background: #626b79;
  opacity: .34;
}

.broadcast-card.active { border-color: rgba(244, 194, 71, .24); background: rgba(244, 194, 71, .035); }
.broadcast-card.active::before { background: var(--gold); box-shadow: 0 0 12px rgba(244, 194, 71, .55); opacity: 1; }
.broadcast-card.confirming-delete { border-color: rgba(255, 44, 57, .28); background: rgba(255, 44, 57, .035); }
.broadcast-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.broadcast-card-copy { min-width: 0; }
.broadcast-card-copy strong { display: block; overflow: hidden; font-size: .62rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-card-copy time { display: block; margin-top: 5px; color: #737d8d; font-size: .49rem; line-height: 1.35; }
.broadcast-card-duration { flex: 0 0 auto; padding: 4px 6px; color: #aeb5c0; border: 1px solid var(--line); border-radius: 999px; font-size: .46rem; font-variant-numeric: tabular-nums; font-weight: 900; }
.broadcast-card-meta { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: #657080; font-size: .47rem; font-weight: 700; }
.broadcast-card-meta span + span::before { margin-right: 7px; content: "·"; color: #454e5b; }

.broadcast-card-actions { display: grid; grid-template-columns: .8fr 1.35fr .8fr; gap: 6px; margin-top: 11px; }
.broadcast-card-actions button { min-width: 0; min-height: 34px; padding: 7px 6px; border-radius: 8px; font-size: .49rem; font-weight: 900; letter-spacing: .025em; text-transform: uppercase; }
.broadcast-card-play { color: #171108; border: 0; background: linear-gradient(135deg, #ffe08a, var(--gold)); }
.broadcast-card-script { color: #cbd1da; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .035); }
.broadcast-card-delete { color: #d28b90; border: 1px solid rgba(255, 44, 57, .16); background: rgba(255, 44, 57, .025); }
.broadcast-card-delete[data-confirming="true"] { color: #fff; border-color: rgba(255, 44, 57, .52); background: var(--red); }
.broadcast-card-actions button:disabled { cursor: not-allowed; opacity: .45; }
.broadcast-delete-note { display: none; margin: 9px 0 0; color: #ec9fa5; font-size: .49rem; font-weight: 750; line-height: 1.45; }
.broadcast-card.confirming-delete .broadcast-delete-note { display: block; }

.drawer-footer { display: flex; align-items: center; justify-content: space-between; padding: 17px 26px; color: #778191; border-top: 1px solid var(--line); background: #090d13; font-size: .55rem; font-weight: 700; }
.drawer-footer span { display: flex; align-items: center; gap: 7px; }
.drawer-footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(69,217,144,.5); }
.drawer-footer button { padding: 6px 0; color: #b7bdc7; border: 0; background: transparent; font-size: .58rem; font-weight: 900; text-transform: uppercase; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  max-width: calc(100% - 40px);
  padding: 12px 17px;
  color: #f7f8fa;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: #161c26;
  box-shadow: 0 15px 40px rgba(0,0,0,.4);
  font-size: .69rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: 180ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { color: #ffd0d3; border-color: rgba(255,44,57,.28); background: #311218; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes blue-fire {
  0% {
    opacity: .4;
    transform: translateY(9px) scaleY(.68) scaleX(1.04);
  }
  55% {
    opacity: .82;
    transform: translateY(-3px) scaleY(1.14) scaleX(.98);
  }
  100% {
    opacity: .58;
    transform: translateY(-8px) scaleY(1.35) scaleX(1.03);
  }
}

@keyframes red-lightning {
  0% { opacity: .18; background-position: -80% 0, 130% 0, -50% 0; }
  18% { opacity: .95; }
  35% { opacity: .28; background-position: 10% 0, 75% 0, 15% 0; }
  52% { opacity: .88; }
  70% { opacity: .12; }
  100% { opacity: .8; background-position: 125% 0, -65% 0, 130% 0; }
}

@keyframes red-electric-border {
  0%, 100% { border-color: rgba(255, 44, 57, .3); }
  38% { border-color: rgba(255, 255, 255, .45); }
  55% { border-color: rgba(255, 44, 57, .75); }
}

@keyframes radio-power-pulse {
  0% { opacity: .75; transform: scale(.85); }
  75%, 100% { opacity: 0; transform: scale(1.35); }
}

@keyframes radio-wave {
  0% { height: 4px; opacity: .45; }
  100% { height: 26px; opacity: 1; }
}

@keyframes radio-signal-ring {
  0% { opacity: .7; transform: scale(.35); }
  85%, 100% { opacity: 0; transform: scale(1.8); }
}

@keyframes radio-live-tick {
  0% { opacity: .45; transform: scaleY(.35); }
  100% { opacity: 1; transform: scaleY(1); }
}

@keyframes team-logo-sound {
  0% { transform: scale(1.025); }
  46% { transform: scale(1.095); }
  100% { transform: scale(1.065); }
}

@keyframes broadcast-refresh-spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .scoreboard { grid-template-columns: 1fr 72px 1fr; }
  .score-side { gap: 20px; padding: 38px 25px; }
  .member-list { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .topbar,
  .hero,
  .leaders-section,
  .activity-section,
  body > footer { width: min(100% - 28px, 680px); }
  .topbar { grid-template-columns: 150px minmax(0, 1fr) 39px; gap: 12px; padding: 17px 0; }
  .brand-lockup img { width: 150px; }
  .brand small { margin-top: 3px; font-size: .48rem; letter-spacing: .15em; }
  .admin-trigger { width: 39px; height: 39px; justify-content: center; padding: 0; }
  .admin-trigger span { display: none; }
  .hero { padding-top: 22px; }
  h1 { font-size: clamp(3.7rem, 17vw, 6rem); }
  .hero-subtitle { font-size: .65rem; line-height: 1.6; }
  .scoreboard { grid-template-columns: 1fr 54px 1fr; margin-top: 38px; border-radius: 19px; }
  .score-side { min-height: 260px; padding: 30px 13px; }
  .score-side-blue,
  .score-side-red { grid-template-columns: 1fr; grid-template-rows: auto auto; text-align: center; }
  .score-side-red .team-mark-art { grid-row: 1; }
  .score-side-red .score-copy { grid-row: 2; }
  .score-side-red .score-copy h2 { margin-left: 0; }
  .team-mark { width: 82px; height: 82px; }
  .team-mark-art { width: min(210px, 34vw); height: min(210px, 34vw); }
  .team-mark span { font-size: 3.3rem; }
  .score-copy h2 { min-height: 32px; font-size: .82rem; }
  .score-number { font-size: 4.3rem; }
  .score-number.score-compact { font-size: 3.45rem; }
  .score-number.score-extra-compact { font-size: 2.7rem; }
  .score-copy small { margin-top: 10px; font-size: .47rem; }
  .versus::before, .versus::after { display: none; }
  .versus span { font-size: 2rem; }
  .race-card { width: calc(100% - 24px); padding-right: 15px; padding-left: 15px; }
  .race-labels strong { display: none; }
  .race-labels { grid-template-columns: 1fr 1fr; }
  .competition-strip { grid-template-columns: 1fr 1fr; gap: 0; }
  .strip-item { justify-content: flex-start; padding: 8px 10px; }
  .strip-item-reward { grid-column: 1 / -1; justify-content: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .strip-divider { display: none; }
  .radio-dock { grid-template-columns: minmax(0, 1fr) 31px; padding: 3px; }
  .leaders-section { padding-top: 56px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 2rem; }
  .live-pill { margin-top: 8px; font-size: .5rem; }
  .team-grid { grid-template-columns: 1fr; }
  .member-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-section { grid-template-columns: 1fr; gap: 28px; padding: 65px 0 76px; }
  body > footer { grid-template-columns: 1fr auto; }
  body > footer .footer-tagline { display: none; }
}

@media (max-width: 560px) {
  .topbar { grid-template-columns: 116px minmax(0, 1fr) 39px; gap: 8px; }
  .brand-lockup img { width: 116px; }
  .brand small { font-size: .4rem; letter-spacing: .11em; }
  .eyebrow { font-size: .58rem; }
  .tribe-logo { width: 104px; margin-top: 10px; }
  .scoreboard { grid-template-columns: 1fr 38px 1fr; }
  .score-side { gap: 13px; min-width: 0; padding-right: 7px; padding-left: 7px; }
  .team-mark { width: 68px; height: 68px; border-width: 1px; }
  .team-mark-art { width: min(124px, 35vw); height: min(124px, 35vw); border: 0; }
  .team-mark span { font-size: 2.7rem; }
  .score-copy h2 { max-width: 120px; font-size: .67rem; }
  .score-number { font-size: 3.8rem; }
  .score-number.score-compact { font-size: 2.8rem; }
  .score-number.score-extra-compact { font-size: 2.2rem; }
  .score-copy small { max-width: 100px; font-size: .42rem; line-height: 1.4; }
  .race-card { padding-top: 16px; }
  .competition-strip { margin-top: 28px; }
  .strip-item { flex-direction: column; gap: 7px; text-align: center; }
  .strip-item strong { font-size: .65rem; }
  .strip-item-reward { flex-direction: row; text-align: left; }
  .radio-dock { grid-template-columns: minmax(0, 1fr) 29px; gap: 2px; min-height: 36px; padding: 3px; }
  .radio-power { grid-template-columns: 25px auto 32px; width: 100%; height: 28px; gap: 5px; padding: 0 3px 0 1px; }
  .radio-power-icon { width: 25px; height: 25px; }
  .radio-power-icon svg { width: 12px; }
  .radio-live-badge { font-size: .46rem; }
  .radio-station-name { display: none; }
  .radio-waveform { height: 16px; gap: 1px; }
  .radio-waveform i { width: 2px; height: 14px; }
  .radio-volume-button { width: 28px; height: 28px; }
  .section-heading { display: block; }
  .live-pill { margin-top: 14px; }
  .member-list { grid-template-columns: 1fr; }
  .team-panel-header { padding: 20px; }
  .pin-card { padding: 33px 23px 28px; }
  .drawer-body { padding: 21px 18px; }
  .drawer-header, .drawer-footer { padding-right: 18px; padding-left: 18px; }
  .broadcast-card-actions { grid-template-columns: .72fr 1.38fr .9fr; }
  .filler-voice-grid { grid-template-columns: 1fr; }
  .filler-turn { grid-template-columns: 78px minmax(0, 1fr); }
  .filler-card-actions { grid-template-columns: 1fr 1fr; }
  body > footer { grid-template-columns: 1fr; gap: 17px; justify-items: center; text-align: center; }
  .footer-credit { justify-self: center; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
