:root {
  color-scheme: dark;
  --bg: #101111;
  --bg-deep: #070909;
  --panel: #171818;
  --panel-2: #202222;
  --grid: #242727;
  --text: #f2f5f4;
  --muted: #9aa09d;
  --green: #00d866;
  --green-dim: rgba(0, 216, 102, 0.16);
  --yellow: #ffd800;
  --yellow-dim: rgba(255, 216, 0, 0.13);
  --orange: #ff5b2d;
  --orange-dim: rgba(255, 91, 45, 0.15);
  --blue: #2497e8;
  --blue-dim: rgba(36, 151, 232, 0.16);
  --white-dim: rgba(255, 255, 255, 0.1);
  --line: #2b2f2f;
  --danger: #ff3b3b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--green);
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 1px 152px, 334px 1px, auto;
}

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 32px;
  background: #092716;
  border-bottom: 4px solid var(--green);
  box-shadow: 0 0 28px rgba(0, 216, 102, 0.24);
}

.brand {
  color: var(--green);
  text-decoration: none;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 10px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(0, 216, 102, 0.58);
}

.topbar-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 28px;
  font-weight: 800;
}

.icon-button {
  min-width: 58px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid #5a5e5e;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.center-stage {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding: 26px;
}

.neon-panel {
  background: rgba(23, 24, 24, 0.96);
  border: 2px solid var(--line);
  box-shadow: inset 0 0 0 1px #090a0a, 0 0 22px rgba(0, 0, 0, 0.42);
  padding: 22px;
}

.compact-panel,
.login-panel,
.form-panel {
  width: min(460px, 100%);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--green);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 5px;
  text-transform: uppercase;
}

h2 {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.muted {
  color: var(--muted);
  font-weight: 750;
  margin-top: 10px;
}

.stack {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 2px solid #454949;
  border-radius: 8px;
  color: var(--text);
  background: #0f1111;
  padding: 13px 14px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-dim);
}

textarea {
  resize: vertical;
}

.alert {
  margin-top: 18px;
  padding: 12px;
  border: 2px solid var(--danger);
  color: #ffd0d0;
  background: rgba(255, 59, 59, 0.09);
  font-weight: 800;
}

.primary-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 950;
  letter-spacing: 2px;
  text-decoration: none;
}

.neon-button {
  min-height: 54px;
  border-radius: 8px;
  border: 3px solid currentColor;
  background: transparent;
  color: var(--green);
  padding: 0 20px;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 0 14px color-mix(in srgb, currentColor 34%, transparent);
}

.neon-button:hover,
.neon-button:focus-visible {
  background: color-mix(in srgb, currentColor 18%, transparent);
}

.neon-button.green {
  color: var(--green);
}

.neon-button.yellow {
  color: var(--yellow);
}

.neon-button.blue {
  color: var(--blue);
}

.neon-button.red,
.neon-button.orange {
  color: var(--orange);
}

.neon-button.compact {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.portal-grid {
  width: min(1180px, calc(100vw - 32px));
  margin: 26px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-grid {
  grid-template-columns: 1.1fr 1fr 1fr;
}

.full-span {
  grid-column: 1 / -1;
}

.player-workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.player-workflow {
  border: 2px solid #343838;
  background: #111313;
  padding: 16px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form select {
  min-width: 150px;
  padding: 8px 10px;
}

.invite-meta {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.player-card {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.number {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 3px solid var(--green);
  color: var(--green);
  font-size: 26px;
  font-weight: 950;
  box-shadow: 0 0 18px var(--green-dim);
}

.name {
  font-size: 26px;
  font-weight: 950;
  text-transform: uppercase;
}

.requests-title {
  margin-top: 26px;
}

.asset-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.asset-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 2px solid #3d4141;
  background: #111313;
  padding: 12px 14px;
}

.asset-list strong,
.asset-list span {
  overflow-wrap: anywhere;
}

.asset-list span {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 850;
  font-size: 12px;
}

.dj-shell {
  position: relative;
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-rows: 92px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.watch-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-bottom: 3px solid #242828;
  background: #171818;
}

.tab {
  min-width: 96px;
  height: 66px;
  border-radius: 34px;
  border: 4px solid #55595a;
  background: transparent;
  color: #9c9f9f;
  font-weight: 950;
  font-size: 26px;
  padding: 0 28px;
}

.tab.active {
  color: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 18px var(--green-dim);
}

.tab.add {
  width: 68px;
  min-width: 68px;
  padding: 0;
  border-style: dashed;
}

.status-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 22px;
  border-bottom: 3px solid #242828;
  background: #121414;
}

.station-chip {
  border: 2px solid #565a5a;
  color: #b9bbbb;
  padding: 10px 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.station-chip.online {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 14px var(--green-dim);
}

.now-playing {
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.transport-controls.large {
  margin: 24px 0 0;
  flex-wrap: wrap;
}

.volume {
  width: 160px;
  padding: 0;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 142px;
  align-content: start;
  gap: 6px;
  padding: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #111313;
  background-size: 100% 152px, calc(100% / 6) 100%, auto;
}

.tile {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  border-radius: 8px;
  border: 4px solid currentColor;
  background: #191b1b;
  color: var(--text);
  padding: 12px;
  text-transform: uppercase;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tile span,
.tile strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.tile span {
  font-size: clamp(15px, 1.15vw, 18px);
}

.tile strong {
  font-size: clamp(24px, 1.65vw, 30px);
  line-height: 1.16;
}

.tile.yellow {
  color: var(--yellow);
  background: var(--yellow-dim);
}

.tile.orange {
  color: var(--orange);
  background: var(--orange-dim);
}

.tile.blue {
  color: #66bdff;
  background: var(--blue-dim);
}

.tile.white {
  color: #dfdfdf;
  background: var(--white-dim);
}

.tile:hover,
.tile.active {
  background: currentColor;
}

.tile:hover span,
.tile:hover strong,
.tile.active span,
.tile.active strong {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.queue-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  width: min(520px, calc(100vw - 36px));
  max-height: min(52vh, 520px);
  overflow: auto;
  border: 3px solid #2c3030;
  background: rgba(16, 18, 18, 0.94);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.48), 0 0 16px rgba(0, 216, 102, 0.08);
  padding: 14px;
  transform: translateY(calc(100% - 58px));
  transition: transform 160ms ease;
}

.queue-panel:hover,
.queue-panel:focus-within {
  transform: translateY(0);
}

.queue-panel .station-chip {
  display: inline-block;
  margin-bottom: 10px;
}

.queue-panel .now-playing {
  margin-bottom: 10px;
}

.queue-panel .transport-controls {
  margin: 0 0 16px;
  justify-content: flex-start;
}

.queue-list {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.queue-list li,
.spotify-result {
  border: 2px solid #3d4141;
  padding: 12px;
  background: #181a1a;
}

.queue-list strong,
.spotify-result strong {
  display: block;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.queue-list span,
.spotify-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spotify-results {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.spotify-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.token-line {
  display: block;
  margin: 8px 0 16px;
  padding: 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid rgba(0, 255, 102, 0.35);
  background: rgba(0, 255, 102, 0.06);
  color: var(--white);
  font-size: 14px;
}

.neon-table {
  width: 100%;
  border-collapse: collapse;
}

.neon-table th,
.neon-table td {
  border-bottom: 2px solid #303434;
  padding: 10px;
  text-align: left;
}

.neon-table th {
  color: var(--green);
  text-transform: uppercase;
  font-size: 12px;
}

.station-shell {
  width: min(1220px, calc(100vw - 28px));
  margin: 24px auto;
}

.station-grid {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.empty-grid {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  border: 2px dashed #393d3d;
}

.marketing-page {
  overflow: hidden;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.78) 64%, rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54) 42%, rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 72% 24%, rgba(0, 216, 102, 0.15), transparent 34%),
    url("/images/softball-diamond-night.png") center top / cover fixed no-repeat;
}

.marketing-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(410px, 0.74fr) minmax(500px, 0.82fr);
  align-items: center;
  justify-content: center;
  gap: clamp(72px, 8vw, 150px);
  width: min(1520px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 96px 0 92px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-copy h1 {
  max-width: 100%;
  font-size: clamp(54px, 5.6vw, 96px);
  letter-spacing: clamp(7px, 0.72vw, 13px);
  line-height: 0.95;
  text-shadow: 0 0 28px rgba(0, 216, 102, 0.5);
}

.hero-copy p {
  max-width: 760px;
  margin-top: 22px;
  color: #c9cecc;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.18;
  font-weight: 850;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.price-tag {
  display: inline-grid;
  place-items: center;
  min-height: 54px;
  padding: 0 22px;
  border: 3px solid var(--yellow);
  border-radius: 8px;
  background: rgba(255, 216, 0, 0.12);
  color: var(--yellow);
  font-size: 22px;
  font-weight: 950;
  text-shadow: 0 0 16px rgba(255, 216, 0, 0.4);
}

.price-note {
  max-width: 460px;
  color: #d8dddb;
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-actions .neon-button,
.marketing-cta .neon-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.hero-board {
  position: relative;
  z-index: 2;
  min-height: 520px;
  border: 4px solid #232828;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #101212;
  background-size: 136px 136px, 25% 100%;
  box-shadow: 0 0 38px rgba(0, 0, 0, 0.48), 0 0 18px rgba(0, 216, 102, 0.14);
}

.mini-top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 22px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
  border-bottom: 4px solid var(--green);
  background: #082413;
}

.mini-tabs {
  height: 74px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 3px solid #252929;
}

.mini-tabs span {
  display: grid;
  place-items: center;
  min-width: 88px;
  height: 48px;
  border: 3px solid #5a5e5e;
  border-radius: 28px;
  color: var(--muted);
  font-weight: 950;
}

.mini-tabs .active {
  color: var(--green);
  border-color: var(--green);
}

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

.mini-tile {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 4px solid currentColor;
  border-radius: 8px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 950;
}

.mini-tile span {
  font-size: 16px;
}

.mini-tile strong {
  font-size: 32px;
}

.mini-tile.yellow {
  color: var(--yellow);
  background: var(--yellow-dim);
}

.mini-tile.orange {
  color: var(--orange);
  background: var(--orange-dim);
}

.mini-tile.blue {
  color: #66bdff;
  background: var(--blue-dim);
}

.mini-tile.white {
  color: #ededed;
  background: var(--white-dim);
}

.marketing-band {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 104px 0;
  border-top: 2px solid rgba(0, 216, 102, 0.22);
}

.marketing-band h2,
.marketing-cta h2 {
  color: var(--green);
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: 4px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-grid article,
.system-list div {
  min-height: 172px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 3px solid rgba(64, 70, 70, 0.9);
  background: rgba(9, 12, 12, 0.82);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.28);
  padding: 22px;
}

.feature-grid strong,
.system-list strong {
  color: var(--text);
  font-size: 20px;
  text-transform: uppercase;
}

.feature-grid span,
.system-list span,
.copy-block p {
  color: var(--muted);
  font-weight: 800;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 56px;
  align-items: start;
}

.copy-block p {
  margin-top: 18px;
  font-size: 22px;
}

.system-list {
  display: grid;
  gap: 16px;
}

.watch-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
}

.marketing-cta {
  display: grid;
  place-items: center;
  gap: 24px;
  min-height: 420px;
  text-align: center;
  border-top: 2px solid rgba(0, 216, 102, 0.22);
}

@media (max-width: 980px) {
  .brand {
    font-size: 28px;
    letter-spacing: 5px;
  }

  .topbar-status {
    font-size: 16px;
  }

  .portal-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .dj-shell {
    min-height: calc(100vh - 74px);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .queue-panel {
    position: static;
    width: auto;
    max-height: none;
    transform: none;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .tile-grid,
  .station-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    grid-auto-rows: 122px;
  }

  .marketing-hero,
  .split-band,
  .watch-promo {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-board {
    min-height: 420px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile strong {
    font-size: 20px;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: auto;
    min-height: 74px;
    padding: 16px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 24px;
  }

  .watch-tabs {
    overflow-x: auto;
    padding: 10px;
  }

  .tab {
    min-width: 96px;
    height: 54px;
    font-size: 18px;
  }

  .status-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .transport-controls {
    margin-left: 0;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .tile-grid,
  .station-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    width: min(calc(100vw - 28px), 560px);
    padding-top: 38px;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-note {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 48px);
    letter-spacing: 4px;
    overflow-wrap: anywhere;
  }

  .hero-board {
    min-height: 360px;
    width: 100%;
  }

  .mini-tabs {
    gap: 6px;
    padding: 0 8px;
  }

  .mini-tabs span {
    min-width: 0;
    flex: 1 1 0;
    height: 42px;
    font-size: 14px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }
}
