:root {
  color-scheme: dark;
  --ao-blue: #0091d2;
  --ao-electric: #0078ff;
  --ao-deep: #003d5b;
  --ink: #041722;
  --panel: #0a2636;
  --panel-light: #103548;
  --line: rgba(181, 226, 247, 0.2);
  --text: #f7fbfd;
  --muted: #9db9c7;
  --lime: #d8ff42;
  --pink: #ff4ba8;
  --focus: #f3ff9b;
  font-family: "Sharp Sans No2", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 7% 12%, rgba(0, 145, 210, 0.22), transparent 25rem),
    linear-gradient(135deg, #02111b 0%, #04283b 100%);
  color: var(--text);
}

button,
select,
input {
  font: inherit;
}

button,
select {
  min-height: 42px;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 80px;
  padding: 0 clamp(18px, 3vw, 48px);
  background: #fff;
  color: #050505;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.ao-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ao-blue);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.ao-brand svg {
  width: 78px;
  fill: currentColor;
}

.ao-brand span {
  padding-left: 10px;
  border-left: 1px solid #c9d6dc;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);
}

.main-nav a {
  position: relative;
  color: #101010;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.main-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -13px;
  left: 0;
  height: 3px;
  background: var(--ao-blue);
  content: "";
}

.tickets-button {
  border: 0;
  border-radius: 2px;
  padding: 0 22px;
  background: var(--ao-blue);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  max-width: 1800px;
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 24px;
}

.watch-surface {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.surface-heading,
.section-title-row,
.court-sound-row,
.range-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.surface-heading {
  min-height: 74px;
  margin-bottom: 16px;
}

.eyebrow,
.section-kicker,
.field-label {
  margin: 0 0 7px;
  color: #78cef5;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ff5263;
  box-shadow: 0 0 0 5px rgba(255, 82, 99, 0.12);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.1;
}

.view-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.latency-chip {
  border: 1px solid rgba(216, 255, 66, 0.55);
  border-radius: 99px;
  padding: 7px 10px;
  color: var(--lime);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.player-grid {
  display: grid;
  gap: 10px;
  min-height: calc(100vh - 210px);
}

.player-grid.layout-1 {
  grid-template: 1fr / 1fr;
}

.player-grid.layout-2 {
  grid-template: 1fr / repeat(2, minmax(0, 1fr));
}

.player-grid.layout-3 {
  grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
}

.player-grid.layout-3 .player-card:first-child {
  grid-column: 1 / -1;
}

.player-grid.layout-4 {
  grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
}

.player-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 250px;
  overflow: hidden;
  flex-direction: column;
  isolation: isolate;
  border: 1px solid rgba(115, 194, 230, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 145, 210, 0.09), transparent 46%),
    #061b28;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.25);
}

.player-card.is-listening {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime), 0 18px 52px rgba(0, 0, 0, 0.3);
}

.player-topbar {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(rgba(2, 12, 18, 0.82), transparent);
}

.court-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.court-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--ao-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.court-label strong {
  display: block;
  font-size: 0.96rem;
}

.court-label span:last-child {
  display: block;
  margin-top: 2px;
  color: #a7c0cc;
  font-size: 0.72rem;
}

.close-player,
.icon-button,
.listen-button,
.fullscreen-button {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.close-player,
.fullscreen-button,
.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(3, 16, 24, 0.6);
}

.close-player,
.fullscreen-button {
  width: 38px;
  min-height: 38px;
}

.shape-stage {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 145, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 145, 210, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.shape-stage::after {
  position: absolute;
  width: min(42vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 145, 210, 0.12);
  border-radius: 50%;
  content: "";
}

.shape {
  position: relative;
  z-index: 2;
  width: clamp(74px, 10vw, 150px);
  aspect-ratio: 1;
  animation: rotate-shape 7s linear infinite;
  filter: drop-shadow(0 0 30px rgba(0, 145, 210, 0.34));
}

.shape-square {
  border: 9px solid #39c4ff;
  background: rgba(57, 196, 255, 0.08);
}

.shape-circle {
  border: 9px solid var(--pink);
  border-radius: 50%;
  background: rgba(255, 75, 168, 0.08);
}

.shape-triangle {
  background: var(--lime);
  clip-path: polygon(50% 2%, 98% 96%, 2% 96%);
}

.shape-triangle::after {
  position: absolute;
  inset: 18%;
  background: #061b28;
  clip-path: inherit;
  content: "";
}

.shape-hexagon {
  background: #8159ff;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
}

.shape-hexagon::after {
  position: absolute;
  inset: 13%;
  background: #061b28;
  clip-path: inherit;
  content: "";
}

@keyframes rotate-shape {
  to { transform: rotate(360deg); }
}

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

.player-controls {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(90px, 0.7fr) minmax(110px, 0.55fr) auto 42px;
  align-items: end;
  gap: 10px;
  padding: 12px;
  background: rgba(2, 14, 21, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.player-grid:not(.layout-1) .player-controls {
  grid-template-columns: minmax(120px, 1fr) 88px;
}

.player-grid:not(.layout-1) .player-controls .volume-field {
  grid-column: 1 / -1;
}

.player-grid:not(.layout-1) .listen-button {
  grid-column: 1;
}

.player-grid:not(.layout-1) .fullscreen-button {
  grid-column: 2;
  width: 100%;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field label,
.field > span {
  color: #86a6b6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 0 30px 0 10px;
  background: #133141;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.player-volume {
  width: 100%;
  accent-color: var(--ao-blue);
}

.listen-button {
  min-height: 42px;
  border-radius: 4px;
  padding: 0 14px;
  background: var(--ao-blue);
  font-size: 0.76rem;
  font-weight: 900;
}

.is-listening .listen-button {
  background: var(--lime);
  color: #0b1a08;
}

.fullscreen-button {
  border-radius: 4px;
  background: #17394a;
  font-size: 0.95rem;
}

.control-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.control-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(8, 35, 50, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

#selection-limit {
  display: grid;
  width: 48px;
  height: 34px;
  place-items: center;
  border-radius: 99px;
  background: #123d52;
  color: #9bdcf9;
  font-size: 0.78rem;
  font-weight: 800;
}

.court-options {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.court-option {
  display: grid;
  grid-template-columns: 40px 1fr 26px;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 10px;
  background: #0c2b3c;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.court-option:hover {
  border-color: rgba(64, 195, 255, 0.55);
  background: #10384d;
}

.court-option[aria-pressed="true"] {
  border-color: var(--ao-blue);
  background: linear-gradient(90deg, rgba(0, 145, 210, 0.24), rgba(0, 145, 210, 0.06));
}

.court-option:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.court-option .mini-shape {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 4px;
  background: #061b28;
  color: #70d6ff;
  font-size: 0.75rem;
  font-weight: 900;
}

.court-option strong,
.court-option small {
  display: block;
}

.court-option strong {
  font-size: 0.87rem;
}

.court-option small {
  margin-top: 3px;
  color: #91adba;
  font-size: 0.7rem;
}

.check-box {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: transparent;
}

[aria-pressed="true"] .check-box {
  border-color: var(--ao-blue);
  background: var(--ao-blue);
  color: #fff;
}

.icon-button {
  width: 42px;
  min-height: 42px;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 900;
}

.icon-button[aria-pressed="true"] {
  border-color: #ff7886;
  background: #672b34;
}

.now-listening {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid rgba(216, 255, 66, 0.22);
  border-radius: 5px;
  padding: 12px;
  background: rgba(216, 255, 66, 0.07);
}

.headphone-icon {
  color: var(--lime);
  font-size: 1.3rem;
  letter-spacing: -0.32em;
}

.now-listening strong,
.now-listening span {
  display: block;
}

.now-listening strong {
  font-size: 0.86rem;
}

.range-control {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
}

.range-control output,
.range-control span span {
  color: var(--muted);
  font-size: 0.75rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--ao-blue);
}

.channel-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.court-sound-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
}

.toggle {
  position: relative;
  width: 46px;
  min-height: 26px;
  border: 0;
  border-radius: 99px;
  padding: 0;
  background: #47606b;
  cursor: pointer;
}

.toggle span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.toggle[aria-checked="true"] {
  background: var(--ao-blue);
}

.toggle[aria-checked="true"] span {
  transform: translateX(20px);
}

.secondary-button {
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: #13384a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.timing-note,
.project-note p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.timing-note {
  margin: 9px 0 0;
}

.project-note {
  background:
    linear-gradient(135deg, rgba(0, 145, 210, 0.2), transparent),
    var(--panel);
}

.project-note p:last-child {
  margin: 13px 0 0;
}

.empty-state {
  display: grid;
  min-height: calc(100vh - 210px);
  place-content: center;
  justify-items: center;
  border: 1px dashed rgba(113, 195, 233, 0.35);
  border-radius: 8px;
  background: rgba(4, 26, 38, 0.8);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-mark {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--ao-blue);
  font-size: 1.45rem;
  font-weight: 900;
}

.empty-state p {
  color: var(--muted);
}

.empty-state button {
  border: 0;
  border-radius: 4px;
  padding: 0 18px;
  background: var(--ao-blue);
  color: #fff;
  font-weight: 800;
}

.audio-notice {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: 310px;
  transform: translateY(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 12px 16px;
  background: #fff;
  color: #081923;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  font-size: 0.82rem;
  font-weight: 700;
}

.audio-notice.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .main-nav { display: none; }
  .page-shell { grid-template-columns: minmax(0, 1fr) 320px; }
  .player-controls { grid-template-columns: minmax(120px, 1fr) 86px; }
  .player-controls .volume-field { grid-column: 1 / -1; }
  .listen-button { grid-column: 1; }
  .fullscreen-button { grid-column: 2; width: 100%; }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  .page-shell { grid-template-columns: 1fr; }
  .court-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-grid { min-height: 64vh; }
}

@media (max-width: 620px) {
  .site-header { height: 68px; padding: 0 16px; }
  .ao-brand svg { width: 62px; }
  .ao-brand span { display: none; }
  .tickets-button { min-height: 40px; padding: 0 16px; }
  .page-shell { min-height: calc(100vh - 68px); padding: 14px; }
  .surface-heading { align-items: flex-start; flex-direction: column; }
  .court-options { grid-template-columns: 1fr; }
  .player-grid.layout-2,
  .player-grid.layout-3,
  .player-grid.layout-4 { grid-template: none / 1fr; }
  .player-grid.layout-3 .player-card:first-child { grid-column: auto; }
  .player-card { min-height: 360px; }
  .player-controls { grid-template-columns: 1fr 90px; }
  .player-controls .volume-field { grid-column: 1 / -1; }
  .listen-button, .fullscreen-button { width: 100%; }
  .audio-notice { right: 14px; bottom: 14px; left: 14px; max-width: none; }
}
