:root {
  color-scheme: dark;
  --bg: #050713;
  --panel: #09122a;
  --panel-strong: #0d1c38;
  --line: #1d5b78;
  --text: #f7f5eb;
  --muted: #b8c4df;
  --accent: #f1ff33;
  --cyan: #31c7df;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(49, 199, 223, 0.08) 0 18px, transparent 18px 56px),
    radial-gradient(circle at 20% 0%, rgba(28, 92, 128, 0.42), transparent 34rem),
    linear-gradient(180deg, #07152b 0%, #050713 58%, #02030a 100%);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1880px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.shell-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.hub-link {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(49, 199, 223, 0.46);
  background: rgba(4, 8, 23, 0.72);
  color: rgba(247, 245, 235, 0.76);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.hub-link:hover,
.hub-link:focus-visible {
  border-color: rgba(241, 255, 51, 0.78);
  color: var(--accent);
}

.kicker,
.card__meta,
.status {
  color: var(--muted);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 18px 0 24px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2.8rem, 12vw, 6.5rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(49, 199, 223, 0.38);
  background: rgba(4, 8, 23, 0.78);
  color: var(--muted);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats b {
  color: var(--accent);
  font-size: 1.35rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  display: grid;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(13, 28, 56, 0.96), rgba(5, 7, 19, 0.98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.card--live {
  border-color: rgba(241, 255, 51, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(241, 255, 51, 0.14),
    0 18px 40px rgba(0, 0, 0, 0.34);
}

.card h2 {
  margin: 8px 0 10px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 2.1rem;
  line-height: 0.92;
  text-transform: uppercase;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.card-facts span {
  padding: 3px 8px;
  border: 1px solid rgba(49, 199, 223, 0.4);
  background: rgba(49, 199, 223, 0.08);
  color: rgba(247, 245, 235, 0.84);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--cyan);
  background: linear-gradient(180deg, #18245a, #0b1533);
  color: var(--text);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transform: skew(-8deg);
}

.button span {
  transform: skew(8deg);
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #050713;
}

.status {
  display: inline-block;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(49, 199, 223, 0.55);
  background: rgba(49, 199, 223, 0.08);
}

.status--live {
  border-color: rgba(241, 255, 51, 0.86);
  background: rgba(241, 255, 51, 0.12);
  color: var(--accent);
}

.footnote {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(49, 199, 223, 0.28);
  color: var(--muted);
  font-size: 0.92rem;
}

.seo-summary {
  width: min(1120px, calc(100% - 28px));
  margin: 10px auto 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(49, 199, 223, 0.24);
  color: rgba(184, 196, 223, 0.78);
  font-size: 0.94rem;
  line-height: 1.55;
}

.seo-summary h2 {
  margin: 0 0 8px;
  color: rgba(247, 245, 235, 0.9);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}

.seo-summary p {
  margin: 0 0 8px;
}

.hero--compact h1 {
  font-size: clamp(2.4rem, 9vw, 5.2rem);
}

.lineup-topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 10px;
}

.lineup-topbar h1 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.lineup-topbar .kicker {
  margin: 0 0 4px;
}

.lineup-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.lineup-topbar__actions p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.lineup-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: end;
  margin: 10px 0 12px;
  padding: 9px;
  border: 1px solid var(--line);
  background: rgba(4, 7, 19, 0.84);
}

.lineup-filter-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 2fr);
  gap: 14px 18px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(49, 199, 223, 0.3);
}

.lineup-filter-panel[hidden] {
  display: none;
}

.lineup-day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.day-tab,
.lineup-filter-button,
.lineup-clear-button,
.lineup-plan-button {
  min-height: 48px;
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.day-tab {
  min-width: 92px;
  border: 1px solid rgba(49, 199, 223, 0.5);
  background: linear-gradient(180deg, #18265c, #09142f);
  color: var(--text);
}

.day-tab span,
.day-tab small {
  display: block;
  line-height: 1;
}

.day-tab span {
  font-size: 1.25rem;
}

.day-tab small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.day-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.day-tab.is-active small {
  color: rgba(5, 7, 19, 0.72);
}

.lineup-filter-button.is-open,
.lineup-clear-button.is-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.lineup-clear-button {
  display: none;
}

.lineup-clear-button.is-visible {
  display: inline-flex;
}

.lineup-search {
  display: grid;
  gap: 8px;
}

.lineup-search span,
.lineup-filter-group > span {
  color: var(--muted);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lineup-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(49, 199, 223, 0.48);
  border-radius: 0;
  background: #040817;
  color: var(--text);
  font: 800 1rem Manrope, sans-serif;
  padding: 0 12px;
}

.lineup-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lineup-filter-group > span {
  width: 100%;
}

.chip {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(49, 199, 223, 0.58);
  background: linear-gradient(180deg, #16265d, #0a1533);
  color: var(--text);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: skew(-8deg);
}

.chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #050713;
}

.lineup-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
}

.lineup-summary p {
  margin: 0;
}

.lineup-summary div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.stage-board {
  border: 1px solid var(--line);
  background: rgba(3, 6, 16, 0.72);
}

.stage-board__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(49, 199, 223, 0.42);
}

.stage-board__title div {
  display: grid;
  gap: 2px;
}

.stage-board__title span,
.stage-board__rail span {
  color: var(--muted);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-board__title strong,
.stage-board__rail strong {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 2rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.stage-board__scroll {
  display: grid;
  grid-template-columns: 92px 1fr;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.stage-board__rail {
  position: sticky;
  left: 0;
  z-index: 3;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 620px;
  padding: 18px 10px;
  border-right: 1px solid rgba(49, 199, 223, 0.4);
  background: #050713;
}

.stage-board__rail strong {
  color: var(--accent);
}

.stage-board__columns {
  display: grid;
  grid-template-columns: repeat(var(--stage-count), minmax(176px, 1fr));
  min-width: max(100%, calc(var(--stage-count) * 176px));
}

.stage-column {
  min-width: 176px;
  border-right: 1px solid rgba(49, 199, 223, 0.24);
}

.stage-column header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: color-mix(in srgb, var(--stage-color) 76%, #050713);
  color: #050713;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.stage-column__list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
}

.lineup-set-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  min-height: 96px;
  padding: 10px 34px 10px 10px;
  border: 1px solid color-mix(in srgb, var(--stage-color) 70%, #050713);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.18)),
    color-mix(in srgb, var(--stage-color) 76%, #ffffff);
  color: #050713;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.lineup-set-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.lineup-set-card.is-planned {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(241, 255, 51, 0.28);
}

.lineup-set-card__image {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: rgba(5, 7, 19, 0.62);
  overflow: hidden;
}

.lineup-set-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lineup-set-card__image span {
  color: var(--text);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.lineup-set-card h3 {
  align-self: center;
  margin: 0;
  color: #050713;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.35rem;
  line-height: 0.94;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.lineup-set-card p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: rgba(5, 7, 19, 0.7);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lineup-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  min-height: 148px;
  padding: 12px 46px 12px 12px;
  border: 1px solid rgba(49, 199, 223, 0.5);
  background: linear-gradient(145deg, rgba(15, 29, 59, 0.98), rgba(5, 7, 19, 0.98));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.lineup-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.lineup-card.is-planned {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(241, 255, 51, 0.25), 0 14px 32px rgba(0, 0, 0, 0.28);
}

.lineup-card__image {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(49, 199, 223, 0.7);
  background: #10254a;
  overflow: hidden;
}

.lineup-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lineup-card__image span {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
}

.lineup-card__topline {
  color: var(--muted);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lineup-card h2 {
  margin: 3px 0 6px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 2rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.lineup-card p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.lineup-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.lineup-card__tags span {
  padding: 3px 7px;
  border: 1px solid rgba(49, 199, 223, 0.52);
  color: var(--muted);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(241, 255, 51, 0.7);
  background: rgba(5, 7, 19, 0.82);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
}

.plan-toggle.is-active {
  background: var(--accent);
  color: #050713;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.lineup-dialog {
  width: min(900px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0c2444, #050713 42%);
  color: var(--text);
  padding: 24px;
  overflow: auto;
}

.lineup-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(49, 199, 223, 0.5);
  background: #071126;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 800;
}

.lineup-dialog__head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  clear: both;
}

.lineup-dialog__image {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--cyan);
}

.lineup-dialog h2 {
  margin: 8px 0 18px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2.4rem, 8vw, 5.3rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.lineup-dialog__copy,
.lineup-dialog__note {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.lineup-dialog__links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.lineup-dialog__linkrow {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(49, 199, 223, 0.42);
}

.lineup-dialog__linkrow strong {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.lineup-dialog__linkrow div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lineup-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--cyan);
  background: #0f1e48;
  color: var(--text);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.lineup-link--spotify {
  border-color: #1ed760;
}

.lineup-link--apple {
  border-color: #ff5b9e;
}

.lineup-link--youtube {
  border-color: #ff3158;
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 16px, 1880px);
    padding-top: 16px;
  }

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

  .card {
    min-height: 190px;
  }

  .lineup-topbar {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .lineup-topbar h1 {
    font-size: 1.65rem;
  }

  .lineup-topbar__actions {
    width: 100%;
    justify-content: space-between;
  }

  .lineup-controls {
    position: sticky;
    top: 0;
    z-index: 20;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 4px;
    padding: 7px;
  }

  .lineup-day-tabs {
    gap: 5px;
  }

  .day-tab {
    min-width: 64px;
    min-height: 42px;
  }

  .day-tab span {
    font-size: 0.92rem;
  }

  .day-tab small {
    font-size: 0.58rem;
  }

  .lineup-filter-button,
  .lineup-clear-button,
  .lineup-plan-button {
    min-height: 42px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .lineup-filter-panel {
    grid-template-columns: 1fr;
    max-height: 58vh;
    overflow: auto;
    gap: 12px;
  }

  .lineup-filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .lineup-filter-group > span {
    position: sticky;
    left: 0;
    z-index: 1;
    width: auto;
    padding-right: 8px;
    background: #040817;
  }

  .lineup-summary {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .stage-board__title {
    gap: 8px;
    padding: 10px;
  }

  .stage-board__scroll {
    grid-template-columns: 68px 1fr;
  }

  .stage-board__rail {
    min-height: 560px;
    padding: 14px 7px;
  }

  .stage-board__rail strong {
    font-size: 1.45rem;
  }

  .stage-board__columns {
    grid-template-columns: repeat(var(--stage-count), minmax(148px, 1fr));
    min-width: max(100%, calc(var(--stage-count) * 148px));
  }

  .stage-column {
    min-width: 148px;
  }

  .stage-column header {
    min-height: 46px;
    font-size: 0.98rem;
  }

  .stage-column__list {
    gap: 7px;
    padding: 7px;
  }

  .lineup-set-card {
    grid-template-columns: 34px 1fr;
    gap: 7px;
    min-height: 86px;
    padding: 8px 30px 8px 8px;
  }

  .lineup-set-card__image {
    width: 34px;
    height: 34px;
  }

  .lineup-set-card h3 {
    font-size: 1.18rem;
  }

  .lineup-dialog {
    width: calc(100vw - 16px);
    padding: 18px;
  }

  .lineup-dialog__head {
    grid-template-columns: 112px 1fr;
    gap: 14px;
  }

  .lineup-dialog__image {
    width: 112px;
  }

  .lineup-dialog__linkrow {
    grid-template-columns: 1fr;
  }

  .lineup-dialog__linkrow div {
    justify-content: flex-start;
  }
}
