:root {
  /* BIFFTOPIA brand: royal blue + gold */
  --blue: #0030a0;
  --blue-deep: #001a5c;
  --blue-mid: #0a3ab5;
  --blue-soft: #1a4fd0;
  --gold: #d4b24a;
  --gold-bright: #e8c96a;
  --gold-soft: #f0d99a;
  --gold-dim: #a88f3a;

  --bg: #020814;
  --bg-elevated: rgba(0, 32, 110, 0.42);
  --bg-card: rgba(0, 48, 160, 0.18);
  --bg-card-hover: rgba(0, 48, 160, 0.32);
  --border: rgba(212, 178, 74, 0.14);
  --border-strong: rgba(212, 178, 74, 0.32);
  --text: #f7f3e6;
  --text-dim: rgba(247, 243, 230, 0.68);
  --text-faint: rgba(247, 243, 230, 0.4);
  --accent: var(--gold);
  --accent-2: var(--gold-bright);
  --accent-3: #7eb6ff;
  --together: linear-gradient(135deg, #d4b24a 0%, #f0d99a 45%, #e8c96a 100%);
  --shadow: 0 20px 50px rgba(0, 10, 40, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --max: 820px;
}


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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--gold-bright);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 15% -15%, rgba(0, 48, 160, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(212, 178, 74, 0.16), transparent 50%),
    radial-gradient(ellipse 55% 50% at 50% 110%, rgba(0, 48, 160, 0.35), transparent 55%);
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 178, 74, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 178, 74, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  z-index: 0;
}

.top,
.stats,
.account-panel,
.controls,
.main {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}


/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 0 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.logo-img {
  width: clamp(72px, 14vw, 112px);
  height: auto;
  aspect-ratio: 1280 / 903;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(212, 178, 74, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 48, 160, 0.5),
    0 8px 22px rgba(0, 20, 80, 0.55),
    0 0 28px rgba(212, 178, 74, 0.1);
  flex-shrink: 0;
  background: var(--blue);
}


.brand-text {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
}

.top h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #fff8e0 0%, var(--gold-bright) 40%, var(--gold) 75%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.festival-label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  backdrop-filter: blur(16px);
}

.stat-card .n {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stat-card .l {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.stat-card.accent .n {
  background: var(--together);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Account panel (+ plan drawer) */
.account-panel {
  margin-bottom: 1.25rem;
  max-width: min(420px, calc(100% - 2rem));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem 1.15rem;
}

.panel-head {
  margin-bottom: 0.95rem;
}

.panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
}

.panel-sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.auth-form,
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.upload-help {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.field-pin {
  max-width: 100%;
}

.pin-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 12rem;
}

.pin-row #authPin {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="file"] {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 10, 40, 0.45);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  outline: none;
  width: 100%;
}

#authPin {
  font-family: var(--mono);
  font-size: max(1.15rem, 16px);
  letter-spacing: 0.28em;
  text-align: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.field input[type="file"] {
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 178, 74, 0.15);
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-faint);
  line-height: 1.35;
}

.auth-actions,
.upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  appearance: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.62rem 1.1rem;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s, border-color 0.15s;
}

.btn-primary {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(212, 178, 74, 0.35), rgba(0, 48, 160, 0.55));
  color: var(--gold-soft);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 22px rgba(212, 178, 74, 0.2);
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: rgba(0, 26, 92, 0.45);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  border-color: rgba(212, 178, 74, 0.45);
}

.btn-ghost {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  padding: 0.4rem 0.7rem;
  font-weight: 600;
  font-size: 0.82rem;
}

.btn-ghost:hover {
  color: var(--gold-soft);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-dim);
  flex: 1;
  min-width: 10rem;
}

.form-status.ok {
  color: var(--gold-bright);
}

.form-status.err {
  color: #fca5a5;
}

.auth-session {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.session-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.session-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.session-info strong {
  font-size: 1.1rem;
  color: var(--gold-soft);
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

/* Match day-tab / view-btn chip language (navy + gold) */
.btn-plan,
.btn-logout {
  appearance: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: rgba(0, 26, 92, 0.45);
  color: var(--text);
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.12s,
    color 0.15s;
}

.btn-plan:hover,
.btn-logout:hover {
  background: rgba(0, 48, 160, 0.55);
  border-color: rgba(212, 178, 74, 0.45);
}

.btn-plan:active,
.btn-logout:active {
  transform: scale(0.97);
}

/* Primary action in the session bar — same emphasis as active day-tab */
.btn-plan {
  background: linear-gradient(135deg, rgba(0, 48, 160, 0.85), rgba(10, 58, 181, 0.75));
  border-color: var(--gold);
  color: var(--gold-soft);
  box-shadow: 0 0 0 1px rgba(212, 178, 74, 0.25), 0 0 18px rgba(212, 178, 74, 0.1);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-plan:hover {
  background: linear-gradient(135deg, rgba(0, 58, 180, 0.95), rgba(20, 70, 200, 0.85));
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(232, 201, 106, 0.35), 0 0 22px rgba(212, 178, 74, 0.18);
  color: #fff8e0;
}

.btn-plan[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(212, 178, 74, 0.28), rgba(0, 48, 160, 0.65));
  border-color: var(--gold-bright);
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(212, 178, 74, 0.2), 0 0 16px rgba(212, 178, 74, 0.12);
}

/* Secondary — quiet navy chip, not red */
.btn-logout {
  font-weight: 500;
  color: var(--text-dim);
  border-color: rgba(212, 178, 74, 0.22);
  background: rgba(0, 16, 60, 0.4);
}

.btn-logout:hover {
  color: var(--gold-soft);
  border-color: rgba(212, 178, 74, 0.4);
  background: rgba(0, 32, 100, 0.55);
}

/* Logged in: form gone, session bar (+ optional plan drawer) */
.account-panel.is-logged-in {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.account-panel.is-logged-in .auth-form,
.account-panel.is-logged-in #authHead {
  display: none !important;
}

.account-panel.is-logged-in .auth-session {
  display: flex;
}

.plan-drawer {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-drawer[hidden] {
  display: none !important;
}

/* Mein Plan list */
.plan-summary {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.my-picks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 14rem;
  overflow-y: auto;
}

.my-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(0, 20, 70, 0.45);
  border: 1px solid var(--border);
}

.my-pick-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.my-pick-info strong {
  font-size: 0.88rem;
  color: var(--text);
}

.my-pick-info span {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

.program-intro {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.program-intro.program-fallback {
  color: var(--gold-soft);
  border-left: 3px solid var(--gold);
  padding: 0.45rem 0.75rem;
  background: rgba(212, 178, 74, 0.08);
  border-radius: 0 8px 8px 0;
}

.slot-actions {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-biff {
  appearance: none;
  border: 1px solid rgba(212, 178, 74, 0.55);
  background: linear-gradient(180deg, rgba(212, 178, 74, 0.22), rgba(212, 178, 74, 0.08));
  color: var(--gold-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.btn-biff:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 178, 74, 0.28);
}

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

.btn-biff:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-biff.in {
  border-color: rgba(126, 182, 255, 0.45);
  background: rgba(126, 182, 255, 0.12);
  color: #a8d0ff;
}

.btn-biff.in:hover {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.btn-biff.mini {
  padding: 0.28rem 0.55rem;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.biff-hint {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.no-crew {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-style: italic;
}

.slot-card.mine {
  border-color: rgba(212, 178, 74, 0.35);
  box-shadow: 0 0 0 1px rgba(212, 178, 74, 0.12);
}

.badge-crew {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sky, #7eb6ff);
  background: rgba(126, 182, 255, 0.12);
  border: 1px solid rgba(126, 182, 255, 0.28);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.control-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
}

.day-tabs,
.people-filter,
.view-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.day-tab,
.person-chip,
.view-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(0, 26, 92, 0.45);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.day-tab:hover,
.person-chip:hover,
.view-btn:hover {
  background: rgba(0, 48, 160, 0.55);
  border-color: rgba(212, 178, 74, 0.45);
}

.day-tab:active,
.person-chip:active,
.view-btn:active {
  transform: scale(0.97);
}

.day-tab.active {
  background: linear-gradient(135deg, rgba(0, 48, 160, 0.85), rgba(10, 58, 181, 0.75));
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 178, 74, 0.25), 0 0 20px rgba(212, 178, 74, 0.12);
  color: var(--gold-soft);
}

.day-tab .sub {
  display: block;
  font-size: 0.68rem;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 0.05rem;
}

.day-tab.active .sub {
  color: rgba(240, 217, 154, 0.75);
}

/* Search spans all days — day tabs stay selectable but not “current filter” */
.day-tabs.search-all-days .day-tab {
  opacity: 0.55;
}

.day-tabs.search-all-days .day-tab:hover {
  opacity: 0.85;
}

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.45;
}

.person-chip.on {
  opacity: 1;
  border-color: color-mix(in srgb, var(--pc) 55%, transparent);
  background: color-mix(in srgb, var(--pc) 18%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--pc) 22%, transparent);
}

.person-chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 8px var(--pc);
}

.person-chip .count {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.view-btn.active {
  background: linear-gradient(135deg, rgba(212, 178, 74, 0.28), rgba(0, 48, 160, 0.45));
  border-color: var(--gold);
  color: var(--gold-soft);
}

#searchInput {
  width: 100%;
  max-width: 360px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 10, 40, 0.45);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#searchInput::placeholder {
  color: var(--text-faint);
}

#searchInput:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 178, 74, 0.15);
}

/* Main content */
.main {
  padding-bottom: calc(2.5rem + var(--safe-b));
  min-height: 40vh;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
}

.section-head .meta {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-dim);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.time-group {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem 1rem;
  padding: 0.35rem 0;
}

.time-group + .time-group {
  border-top: 1px solid rgba(212, 178, 74, 0.06);
}

.time-label {
  padding-top: 1.05rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dim);
  text-align: right;
  position: sticky;
  top: 0.5rem;
  align-self: start;
}

.time-label .end {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-top: 0.15rem;
}

.time-label .day-prefix {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.2rem;
}

.slot-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.45rem 0;
  min-width: 0;
}

.slot-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.9rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  overflow: hidden;
}

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

.slot-card.together {
  border-color: rgba(212, 178, 74, 0.5);
  background:
    linear-gradient(135deg, rgba(212, 178, 74, 0.12), rgba(0, 48, 160, 0.22)),
    var(--bg-card);
  box-shadow: 0 0 28px rgba(212, 178, 74, 0.1);
}

.slot-card.together::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--together);
}

.slot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.slot-artist {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.slot-stage {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.slot-stage .pin {
  opacity: 0.7;
}

.slot-stage .slot-day {
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 0.78rem;
}

.badge-together {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--together);
  color: #1a1400;
  white-space: nowrap;
}

.people-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.avatar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem 0.28rem 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent);
  color: var(--text);
}

.avatar .initial {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--pc);
  color: #0a0a12;
}

/* Stage view */
.stage-board {
  display: grid;
  gap: 1rem;
}

.stage-col {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
}

.stage-col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-soft);
}

.stage-col h3 .n {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
}

.stage-col .slot-card {
  margin-bottom: 0.55rem;
}

.stage-col .slot-card:last-child {
  margin-bottom: 0;
}

/* People view */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.person-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  border-top: 3px solid var(--pc);
  backdrop-filter: blur(12px);
}

.person-panel h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.person-panel h3 .initial {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--pc);
  color: #0a0a12;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.person-panel .pmeta {
  margin: 0.35rem 0 0.9rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.mini-slot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(212, 178, 74, 0.08);
  font-size: 0.86rem;
}

.mini-slot .t {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold-dim);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.mini-slot .a {
  font-weight: 600;
}

.mini-slot .s {
  grid-column: 2;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.mini-slot.shared .a::after {
  content: " · mit Crew";
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--gold-bright);
}

/* Together view */
.together-hero {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(0, 48, 160, 0.45), rgba(212, 178, 74, 0.12));
  border: 1px solid rgba(212, 178, 74, 0.28);
}

.together-hero h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--gold-soft);
}

.together-hero p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.pair-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.pair-chip {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 10, 40, 0.4);
  border: 1px solid var(--border-strong);
}

.pair-chip strong {
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

/* Now indicator */
.now-line {
  position: relative;
  height: 0;
  margin: 0.4rem 0;
}

.now-line::before {
  content: "";
  position: absolute;
  left: 72px;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.now-line span {
  position: absolute;
  left: 0;
  top: -0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--mono);
}

/* Responsive */
@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .festival-label {
    text-align: left;
  }

  .logo-img {
    width: 100px;
  }

  .time-group {
    grid-template-columns: 58px 1fr;
    gap: 0.5rem;
  }

  .time-label {
    font-size: 0.7rem;
  }

  .slot-artist {
    font-size: 0.98rem;
  }

  .controls {
    padding: 0.95rem;
  }
}

@media (min-width: 900px) {
  .stage-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-board.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
