:root {
  --bg: #020101;
  --bg-deep: #000000;
  --surface: rgba(5, 5, 5, 0.92);
  --surface-strong: rgba(9, 9, 9, 0.97);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.28);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --accent: #ff2222;
  --accent-strong: #ff2222;
  --accent-soft: rgba(255, 34, 34, 0.24);
  --danger: #7a0a0a;
  --danger-soft: rgba(122, 10, 10, 0.28);
  --success: #ffffff;
  --success-soft: rgba(255, 34, 34, 0.2);
  --gold: #f5e230;
  --shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #000000;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: #000000;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

body.tutorial-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.background-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)),
    url("./assets/bg.jpg") center top / cover fixed no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top center, rgba(255, 34, 34, 0.08), transparent 34%);
  opacity: 0.85;
}

.app-shell {
  position: relative;
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 30;
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.tutorial-dialog {
  width: min(620px, 100%);
  max-height: calc(100dvh - 40px);
  display: grid;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.16), transparent 24%),
    rgba(0, 0, 0, 0.95);
  box-shadow: var(--shadow);
}

.tutorial-kicker,
.tutorial-title,
.tutorial-body,
.tutorial-note,
.tutorial-points {
  margin: 0;
}

.tutorial-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tutorial-title {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.03em;
  line-height: 0.92;
  text-transform: uppercase;
}

.tutorial-body {
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.5;
}

.tutorial-points {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.tutorial-note {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.4;
}

.tutorial-note[hidden] {
  display: none;
}

.tutorial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tutorial-progress {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  font-weight: 700;
}

.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tutorial-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.tutorial-button-secondary[hidden] {
  display: none;
}

.tutorial-button-primary {
  border-color: #000000;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px #000000;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(320px, 84vw);
  height: 100vh;
  padding: 24px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.96);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 180ms ease;
  z-index: 40;
}

.menu-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

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

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.nav-support {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.nav-link.is-active {
  border-color: transparent;
  background: var(--accent);
}

.nav-link-support {
  border-color: rgba(255, 34, 34, 0.38);
  background: rgba(255, 34, 34, 0.14);
  color: #ffffff;
}

.nav-link-support:hover,
.nav-link-support:focus-visible {
  border-color: rgba(255, 34, 34, 0.6);
  background: rgba(255, 34, 34, 0.2);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.utility-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.utility-button-primary {
  border-color: transparent;
  background: var(--accent);
}

.menu-button,
.menu-close {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
}

.menu-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 52px;
  min-height: 56px;
  gap: 6px;
  border-radius: 14px;
  padding: 6px 0 8px;
}

.menu-button-dots {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-auto-rows: 5px;
  gap: 4px;
}

.menu-button-dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.menu-button-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.menu-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
}

.hero,
.controls-panel,
.itinerary-panel {
  border: 1px solid var(--border);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  max-height: 280px;
  padding: 24px 28px;
  margin-bottom: 0;
  border-color: rgba(0, 0, 0, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.78), rgba(255, 34, 34, 0.68)),
    rgba(255, 34, 34, 0.72);
  backdrop-filter: blur(6px);
}

.hero::before,
.controls-panel::before,
.itinerary-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 244, 228, 0.08), transparent 22%);
  opacity: 0.5;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.hero-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-heading > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.hero-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.eyebrow,
.panel-kicker {
  position: relative;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero h1,
.controls-panel h2,
.itinerary-panel h2,
.itinerary-day-name,
.media-title {
  position: relative;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 0.88;
}

.hero-subhead {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  padding-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stats,
.progress-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-stats-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: fit-content;
  max-width: 100%;
}

.hero-stats-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 200px));
  width: fit-content;
  max-width: 100%;
}

.stat-chip,
.progress-chip {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 245, 232, 0.04);
  color: var(--muted);
}

.hero .stat-chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.84);
  padding: 10px 14px;
  font-size: 0.94rem;
  text-align: left;
}

.stat-chip-compact {
  display: grid;
  gap: 4px;
}

.stat-chip-value,
.stat-chip-detail {
  display: block;
}

.stat-chip-value {
  line-height: 1.05;
}

.stat-chip-detail {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.15;
}

.filter-chip {
  width: min(200px, 100%);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.filter-chip.is-active {
  border-color: #000000;
  background: var(--accent);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #000000;
}

.stat-chip-button {
  width: min(200px, 100%);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.hero-stats-summary .stat-chip-button {
  width: 100%;
}

.stat-chip-button:hover,
.stat-chip-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.stat-chip-button.is-active {
  border-color: #000000;
  background: var(--accent);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #000000;
}

.stat-chip-button.is-active .stat-chip-detail,
.stat-chip-button.is-active strong {
  color: #ffffff;
}

.filter-chip.is-active strong {
  color: #ffffff;
}

.stat-chip strong,
.progress-chip strong {
  color: var(--text);
}

.progress-chip-compact {
  display: grid;
  gap: 6px;
  width: min(100%, 520px);
}

.progress-chip-title,
.progress-chip-detail {
  display: block;
}

.progress-chip-title {
  line-height: 1.05;
}

.progress-chip-detail {
  color: var(--muted);
  line-height: 1.2;
}

.controls-panel,
.itinerary-panel {
  position: relative;
  padding: 24px;
  border-top: 0;
}

.controls-panel {
  margin-bottom: 0;
  border-color: rgba(0, 0, 0, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.05), transparent 22%),
    rgba(0, 0, 0, 0.9);
}

.itinerary-panel {
  border-color: rgba(0, 0, 0, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.05), transparent 22%),
    rgba(0, 0, 0, 0.9);
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.schedule-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px 24px;
  margin-top: 20px;
}

.control-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.control-group-view {
  justify-items: start;
}

.control-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mode-tab {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

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

.poster-panel {
  margin-top: 18px;
}

.poster-hint {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.78);
}

.poster-preview {
  width: 100%;
  height: auto;
}

.poster-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #ffffff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.poster-frame:hover .poster-nav,
.poster-frame:focus-within .poster-nav {
  opacity: 1;
}

.poster-nav-prev {
  left: 16px;
}

.poster-nav-next {
  right: 16px;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.itinerary-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.9);
}

.itinerary-table th,
.itinerary-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.itinerary-table th {
  background: rgba(255, 34, 34, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.itinerary-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-band {
  font-weight: 700;
}

.table-stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.backup-line,
.backup-none {
  display: block;
}

.backup-line + .backup-line {
  margin-top: 8px;
}

.backup-meta {
  color: rgba(255, 255, 255, 0.66);
}

.panel-header,
.itinerary-day-header,
.slot-main,
.card-heading,
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.day-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 243, 230, 0.02);
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.day-tab:hover,
.day-tab:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 245, 232, 0.08);
  color: var(--text);
}

.day-tab.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(255, 34, 34, 0.28);
}

.cards-grid,
.itinerary-days {
  display: grid;
  gap: 20px;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 24px;
}

.cards-grid-conflicts {
  grid-template-columns: minmax(0, 1fr);
}

.cards-grid-single-flow {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.cards-grid-single-flow .band-card {
  width: min(100%, 540px);
}

.conflict-group {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.06), transparent 18%),
    rgba(0, 0, 0, 0.84);
}

.conflict-guide {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.08), transparent 20%),
    rgba(0, 0, 0, 0.84);
}

.conflict-guide-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.conflict-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.conflict-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
}

.conflict-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.conflict-group-header h3,
.conflict-group-summary {
  margin: 0;
}

.conflict-group-summary {
  color: rgba(255, 255, 255, 0.72);
}

.conflict-group-hint {
  margin: -4px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  line-height: 1.3;
}

.conflict-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.conflict-role-label {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.itinerary-days {
  margin-top: 22px;
}

.band-card,
.itinerary-day,
.slot-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.05), transparent 22%),
    var(--surface-strong);
}

.band-card {
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.band-card-swipeable {
  cursor: grab;
  user-select: none;
}

.band-card-swipeable[data-dragging="true"] {
  cursor: grabbing;
}

.band-card.is-exit-left,
.band-card.is-exit-right {
  pointer-events: none;
}

.band-card.is-exit-left {
  animation: bandCardExitLeft 320ms ease forwards;
}

.band-card.is-exit-right {
  animation: bandCardExitRight 320ms ease forwards;
}

@keyframes bandCardExitLeft {
  from {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }

  to {
    opacity: 0;
    transform: translateX(-16%) rotate(-2deg);
  }
}

@keyframes bandCardExitRight {
  from {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }

  to {
    opacity: 0;
    transform: translateX(16%) rotate(2deg);
  }
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 0.88;
  overflow: hidden;
  border-bottom: 1px solid rgba(238, 220, 194, 0.12);
  background:
    linear-gradient(135deg, rgba(70, 0, 0, 0.74), rgba(5, 5, 5, 0.96)),
    radial-gradient(circle at top center, rgba(255, 34, 34, 0.18), transparent 42%);
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 3, 4, 0.08), rgba(10, 3, 4, 0.78)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 34%, transparent 66%, rgba(0, 0, 0, 0.12));
  z-index: 1;
}

.band-photo,
.band-placeholder,
.media-copy {
  position: absolute;
  inset: 0;
}

.band-photo {
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  transform: scale(1.02);
}

.band-photo.is-ready {
  opacity: 1;
}

.band-card.has-image .band-placeholder {
  display: none;
}

.band-placeholder {
  background:
    radial-gradient(circle at top center, rgba(255, 34, 34, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(70, 0, 0, 0.72), rgba(5, 5, 5, 0.96));
}

.media-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
}

.media-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.media-stage {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 5, 6, 0.52);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.media-time {
  color: rgba(255, 255, 255, 0.92);
}

.band-card .band-meta,
.band-card-undecided-view .decision-pill {
  display: none;
}

.band-card .card-body {
  gap: 12px;
}

.media-title {
  max-width: 13ch;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 0.9;
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.card-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.card-heading {
  align-items: flex-start;
}

.band-meta,
.slot-time,
.itinerary-summary,
.itinerary-kicker {
  margin: 0;
  color: var(--muted);
}

.band-meta {
  font-size: 0.98rem;
}

.conflict-note {
  margin: -4px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.35;
}

.conflict-note strong {
  color: #ffffff;
}

.slot-band {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.decision-pill,
.slot-stage,
.slot-rating,
.backup-item {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.decision-pill {
  border: 1px solid rgba(255, 245, 232, 0.08);
  background: rgba(255, 245, 232, 0.06);
  color: var(--muted);
}

.decision-pill.is-yes {
  background: var(--success-soft);
  color: #ffffff;
}

.decision-pill.is-no {
  background: var(--danger-soft);
  color: #ffffff;
}

.decision-pill-overlay {
  width: fit-content;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(14, 5, 6, 0.52);
  color: #ffffff;
}

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

.decision-row-queue {
  grid-template-columns: minmax(0, 1fr);
}

.decision-button,
.rating-reset {
  border: 1px solid rgba(238, 220, 194, 0.16);
  background: rgba(255, 245, 232, 0.02);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.decision-button {
  min-height: 46px;
  padding: 12px 16px;
  font-weight: 600;
}

.rating-reset {
  padding: 8px 12px;
  color: var(--muted);
}

.decision-button:hover,
.decision-button:focus-visible,
.rating-reset:hover,
.rating-reset:focus-visible,
.rating-control:focus-visible {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.decision-button.is-active {
  border-color: transparent;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 34, 34, 0.24);
}

.decision-button.decision-no.is-active {
  background: #2b2b2b;
  color: #ffffff;
}

.decision-button.decision-must-see {
  border-color: rgba(245, 226, 48, 0.56);
  background:
    linear-gradient(180deg, rgba(245, 226, 48, 0.96), rgba(230, 180, 22, 0.96));
  color: #111111;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.26) inset,
    0 0 22px rgba(245, 226, 48, 0.22);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.decision-button.decision-must-see:hover,
.decision-button.decision-must-see:focus-visible {
  border-color: rgba(245, 226, 48, 0.78);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3) inset,
    0 0 28px rgba(245, 226, 48, 0.28);
}

.conflict-primary-button {
  width: 100%;
  border-color: rgba(255, 34, 34, 0.32);
  background: rgba(255, 34, 34, 0.12);
}

.decision-button:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none;
}

.rating-panel {
  display: grid;
  gap: 12px;
}

.queue-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.35;
}

.queue-instruction {
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
}

.rating-label {
  color: var(--muted);
  font-size: 0.98rem;
}

.rating-control {
  width: fit-content;
  outline: none;
  cursor: pointer;
}

.rating-stars {
  display: flex;
  gap: 6px;
}

.rating-star {
  --fill: 0%;
  position: relative;
  width: 28px;
  height: 28px;
  font-size: 28px;
  line-height: 1;
}

.rating-star::before,
.rating-star::after {
  content: "★";
  position: absolute;
  inset: 0;
}

.rating-star::before {
  color: rgba(255, 245, 232, 0.16);
}

.rating-star::after {
  width: var(--fill);
  overflow: hidden;
  color: var(--gold);
  white-space: nowrap;
}

.rating-value {
  color: var(--text);
  font-weight: 700;
}

.itinerary-day {
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.12);
}

.itinerary-slots {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.slot-card {
  padding: 16px;
}

.slot-stage-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.slot-stage {
  border: 1px solid rgba(238, 220, 194, 0.08);
  background: rgba(255, 245, 232, 0.06);
  color: var(--text);
}

.slot-rating {
  background: var(--accent-soft);
  color: #ffffff;
}

.slot-backups {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(238, 220, 194, 0.1);
}

.slot-backup-label {
  margin: 0 0 10px;
  color: var(--muted);
}

.slot-backup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.backup-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(238, 220, 194, 0.08);
  background: rgba(255, 245, 232, 0.04);
  color: var(--muted);
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(238, 220, 194, 0.18);
  border-radius: var(--radius-md);
  color: var(--muted);
}

.queue-complete-card {
  display: grid;
  gap: 14px;
  width: min(100%, 540px);
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.07), transparent 20%),
    rgba(0, 0, 0, 0.88);
  text-align: center;
}

.queue-complete-title,
.queue-complete-copy {
  margin: 0;
}

.queue-complete-title {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.queue-complete-copy {
  color: var(--muted);
  line-height: 1.45;
}

.queue-complete-actions {
  display: grid;
  gap: 10px;
}

.feedback-panel {
  min-height: 500px;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.feedback-intro,
.feedback-form {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.06), transparent 18%),
    rgba(0, 0, 0, 0.84);
  padding: 20px;
}

.feedback-copy,
.feedback-list {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feedback-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 18px;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-field {
  display: grid;
  gap: 8px;
}

.feedback-field label {
  font-weight: 700;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  border-radius: 14px;
  outline: none;
}

.feedback-field select {
  color-scheme: dark;
}

.feedback-field select option {
  background: #111111;
  color: #ffffff;
}

.feedback-field textarea {
  resize: vertical;
  min-height: 180px;
}

.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.feedback-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.feedback-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  line-height: 1.45;
}

.feedback-status[data-state="error"] {
  border-color: rgba(255, 34, 34, 0.34);
  background: rgba(255, 34, 34, 0.08);
  color: #ffffff;
}

.feedback-status[data-state="info"] {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
}

.feedback-status:not([hidden]) {
  white-space: pre-wrap;
  word-break: break-word;
}

.feedback-error {
  min-height: 1.1em;
  color: #ff8e8e;
  font-size: 0.86rem;
  line-height: 1.35;
}

[data-fs-field][aria-invalid="true"] {
  border-color: rgba(255, 34, 34, 0.54);
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-turnstile {
  display: flex;
  justify-content: flex-start;
}

.thank-you-card {
  margin: 0 auto;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.05), transparent 18%),
    rgba(0, 0, 0, 0.84);
  padding: 18px 20px 20px;
}

.faq-question {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item a {
  color: var(--accent);
}

.site-footer-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 0;
  padding: 18px 24px;
  border-top: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 34, 34, 0.04), transparent 22%),
    rgba(0, 0, 0, 0.9);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.footer-mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-mini-nav a,
.footer-mini-copy {
  color: inherit;
  font-size: 0.92rem;
}

.footer-mini-nav a {
  text-decoration: none;
}

.footer-mini-nav a:hover,
.footer-mini-nav a:focus-visible {
  color: #ffffff;
}

.footer-mini-copy,
.footer-mini-copy p {
  margin: 0;
  text-align: center;
}

.footer-mini-copy {
  display: grid;
  gap: 4px;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.35;
}

.footer-support-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 34, 34, 0.38);
  border-radius: 999px;
  background: rgba(255, 34, 34, 0.14);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-support-link:hover,
.footer-support-link:focus-visible {
  border-color: rgba(255, 34, 34, 0.6);
  background: rgba(255, 34, 34, 0.22);
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 1400px);
    padding-top: 10px;
  }

  .hero,
  .controls-panel,
  .itinerary-panel {
    padding: 16px;
  }

  .panel-header,
  .itinerary-day-header,
  .slot-main,
  .card-heading,
  .rating-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    margin-left: auto;
    align-self: flex-start;
  }

  .day-tabs,
  .slot-stage-block,
  .decision-pill,
  .mode-tabs {
    width: 100%;
  }

  .decision-pill {
    text-align: center;
  }

  .band-card-queue .card-body {
    gap: 12px;
    padding: 14px;
  }

  .band-card-queue .card-heading {
    gap: 8px;
  }

  .band-card-queue .decision-pill {
    display: none;
  }

  .band-card-queue .band-meta {
    display: none;
  }

  .band-card-queue .media-copy {
    gap: 6px;
    padding: 14px;
  }

  .band-card-queue .media-stage,
  .band-card-queue .media-time,
  .band-card-queue .decision-pill-overlay {
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  .band-card-queue .rating-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px 10px;
  }

  .band-card-queue .rating-label {
    margin: 0;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .band-card-queue .rating-control {
    min-width: 0;
  }

  .band-card-queue .rating-stars {
    gap: 4px;
  }

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

  .media-title {
    max-width: 100%;
    font-size: clamp(1.7rem, 10vw, 2.3rem);
  }

  .hero {
    min-height: 0;
    max-height: none;
    padding: 14px 16px 16px;
  }

  .hero-heading {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.85rem, 9.6vw, 3rem);
    line-height: 0.9;
    white-space: nowrap;
  }

  .eyebrow,
  .panel-kicker {
    margin-bottom: 8px;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

  .hero .menu-button {
    width: 48px;
    min-height: 52px;
    border-radius: 12px;
    gap: 5px;
    padding: 6px 0 7px;
  }

  .hero .menu-button-dots {
    grid-template-columns: repeat(3, 4px);
    grid-auto-rows: 4px;
    gap: 4px;
  }

  .hero .menu-button-dots span {
    width: 4px;
    height: 4px;
  }

  .hero .menu-button-label {
    font-size: 0.56rem;
  }

  .hero-stats {
    display: grid;
    gap: 8px;
    margin-top: 14px;
  }

  .tutorial-overlay {
    place-items: center;
    padding: 12px;
  }

  .tutorial-dialog {
    gap: 14px;
    max-height: calc(100dvh - 24px);
    padding: 18px 16px;
  }

  .tutorial-title {
    font-size: clamp(0.92rem, 4.8vw, 1.35rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .tutorial-body,
  .tutorial-note,
  .tutorial-points {
    font-size: 0.94rem;
  }

  .tutorial-footer,
  .tutorial-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tutorial-actions {
    width: 100%;
  }

  .tutorial-button {
    width: 100%;
  }

  .hero-stats-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .hero .stat-chip {
    min-width: 0;
    width: 100%;
    padding: 9px 10px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .stat-chip-compact .stat-chip-value {
    font-size: 0.88rem;
  }

  .stat-chip-compact .stat-chip-detail {
    font-size: 0.66rem;
    line-height: 1.1;
  }

  .schedule-controls {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .progress-strip {
    margin-top: 10px;
  }

  .progress-chip-compact {
    width: 100%;
    gap: 4px;
    padding: 10px 12px;
  }

  .progress-chip-title {
    display: none;
  }

  .progress-chip-detail {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .control-group {
    gap: 8px;
  }

  .day-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

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

  .day-tab,
  .mode-tab {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 0.82rem;
    border-radius: 10px;
    text-align: center;
  }

  .controls-panel {
    padding: 14px 14px 16px;
  }

  .controls-panel .panel-header {
    gap: 10px;
  }

  .controls-panel h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 0.92;
  }

  .controls-panel .cards-grid {
    margin-top: 12px;
  }

  .queue-instruction {
    margin-top: -2px;
    font-size: 0.86rem;
  }

  .queue-complete-card {
    padding: 18px 14px;
  }

  .feedback-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-intro,
  .feedback-form {
    padding: 16px;
  }

  .poster-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .faq-item {
    padding: 16px;
  }

  .conflict-group {
    padding: 16px;
  }

  .conflict-group-header {
    flex-direction: column;
  }

  .conflict-group-hint {
    font-size: 0.84rem;
  }

  .conflict-group-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .conflict-group-carousel::-webkit-scrollbar {
    display: none;
  }

  .conflict-slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
  }

  .faq-question {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .faq-item p {
    font-size: 0.95rem;
  }

  .site-footer-mini {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
    padding: 16px;
  }

  .footer-mini-nav {
    justify-content: center;
    gap: 10px 14px;
  }

  .footer-mini-nav a,
  .footer-mini-copy,
  .footer-support-link {
    font-size: 0.84rem;
  }

  .footer-support-link {
    justify-self: center;
  }

  .poster-frame {
    border-radius: 16px;
  }

  .poster-nav {
    display: none;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  .itinerary-table,
  .itinerary-table thead,
  .itinerary-table tbody,
  .itinerary-table tr,
  .itinerary-table th,
  .itinerary-table td {
    display: block;
    width: 100%;
  }

  .itinerary-table thead {
    display: none;
  }

  .itinerary-table tbody {
    display: grid;
    gap: 14px;
  }

  .itinerary-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "time stage"
      "band band"
      "backups backups";
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.88);
    overflow: hidden;
  }

  .itinerary-table td {
    width: auto;
    padding: 12px 14px;
    border-bottom: 0;
  }

  .table-time {
    grid-area: time;
    padding-bottom: 10px;
  }

  .table-stage {
    grid-area: stage;
    padding-bottom: 10px;
    text-align: right;
  }

  .table-band {
    grid-area: band;
    padding-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.18rem;
    line-height: 1.2;
  }

  .table-backups {
    grid-area: backups;
    padding-top: 12px;
  }

  .itinerary-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .table-stage .table-stage-pill {
    max-width: 100%;
    justify-content: center;
  }
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .background-shell,
  .nav-overlay,
  .nav-drawer,
  .menu-button,
  .hero,
  .panel-actions {
    display: none !important;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .itinerary-panel,
  .itinerary-day,
  .table-wrap,
  .itinerary-table {
    border: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .itinerary-panel::before,
  .itinerary-day::before {
    display: none !important;
  }

  .panel-kicker,
  .itinerary-summary {
    color: #333333 !important;
  }

  .itinerary-table th,
  .itinerary-table td {
    border-color: #d0d0d0 !important;
    color: #000000 !important;
  }

  .itinerary-table th {
    background: #efefef !important;
  }

  .itinerary-day {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 0 0 24px;
  }
}
