:root {
  --red: #ce2c19;
  --blue: #195da9;
  --ink: #071525;
  --ink-soft: #12263f;
  --paper: #f6f3ee;
  --card: #ffffff;
  --line: #e5dfd6;
  --muted: #5e6874;
  --gold: #ffc425;
  --shadow: 0 16px 40px rgba(7, 21, 37, 0.08);
  --header: 92px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

a { color: inherit; }

button, input, select, textarea { font: inherit; }

.topbar {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
}

.header {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 32px 18px;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.brand img {
  height: 74px;
  width: auto;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  min-width: 0;
}

.brand-kicker {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 15px;
  text-transform: uppercase;
}

.brand-script {
  font-family: "Great Vibes", cursive;
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pill select {
  appearance: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2px;
  padding: 8px 30px 8px 12px;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pill select option { color: var(--ink); }

.pill::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  transform: translateY(-20%);
  pointer-events: none;
}

.toolbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
}

.filter {
  border: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  padding: 10px 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.filter.active {
  background: var(--ink);
  color: #fff;
}

.season-note {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.catalog { display: grid; gap: 36px; }

.container-block h2 {
  margin: 0 0 14px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid #ece7e0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(7, 21, 37, 0.12);
}

.band {
  height: 148px;
  position: relative;
  background: repeating-linear-gradient(
    90deg,
    var(--blue) 0 16px,
    var(--red) 16px 32px
  );
}

.band.event {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(135deg, var(--blue), #0d3f78 58%, var(--ink));
}

.band.event::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 8px;
  background: var(--red);
}

.date-badge {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: #fff;
  color: var(--ink);
  min-width: 74px;
  padding: 8px 10px 7px;
  text-align: center;
  line-height: 1;
}

.date-badge strong {
  display: block;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.date-badge span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

.card-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.kicker {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker em {
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.prices {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}

.prices strong {
  font-size: 18px;
  font-weight: 600;
}

.prices span {
  color: var(--muted);
  font-size: 14px;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.card-foot b {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.detail {
  background: #fff;
  border: 1px solid #ece7e0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-hero {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
  background: repeating-linear-gradient(
    90deg,
    var(--blue) 0 22px,
    var(--red) 22px 44px
  );
}

.detail-hero.event {
  background: linear-gradient(120deg, var(--blue), var(--ink) 70%);
  border-bottom: 8px solid var(--red);
}

.detail-hero p {
  margin: 0 0 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}

.detail-hero h1 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  padding: 28px;
}

.detail-grid h2 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 26px;
}

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

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.facts span { color: var(--muted); }

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

.ticket-table th,
.ticket-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ticket-table th {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.ticket-table td:last-child,
.ticket-table th:last-child { text-align: right; }

.buy {
  display: inline-flex;
  margin-top: 18px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}

.buy[aria-disabled="true"] {
  background: #c8c2b8;
  cursor: default;
}

.back {
  display: inline-flex;
  margin: 0 0 16px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.shop-embed {
  margin-top: 36px;
}

.notice, .empty {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
  color: var(--muted);
}

.legal {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px 36px;
  max-width: 760px;
}

.legal h1 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 42px;
  margin: 0 0 12px;
}

.legal h2 {
  font-size: 18px;
  margin: 22px 0 6px;
}

.legal p { margin: 0 0 10px; }

.site-footer {
  background: var(--ink);
  color: #d5dbe3;
  padding: 36px 32px 28px;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover { color: var(--gold); }

.copy {
  margin: 0;
  font-size: 13px;
  color: #9aa6b4;
}

.designed {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: 14px;
}

.designed a { display: flex; }

.designed img {
  height: 42px;
  width: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.admin-body { background: #eef2f6; }

.admin-bar {
  background: var(--ink);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
}

.admin-bar a { color: #fff; }

.admin-wrap {
  width: min(980px, calc(100% - 28px));
  margin: 22px auto 48px;
}

.panel {
  background: #fff;
  border: 1px solid #e1e6ec;
  padding: 18px;
  margin-bottom: 16px;
}

.panel h2 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 26px;
}

.login-box {
  width: min(420px, calc(100% - 28px));
  margin: 10vh auto;
  background: #fff;
  padding: 28px 24px;
  border-top: 6px solid var(--red);
  box-shadow: var(--shadow);
}

.login-box h1 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
  margin: 8px 0 16px;
}

.field { display: grid; gap: 4px; margin-bottom: 10px; }

.field span, .check span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #d5dbe3;
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
}

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.row-actions, .toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.btn.red { background: var(--red); }
.btn.ghost { background: #e7ebf0; color: var(--ink); }
.btn.small { padding: 7px 10px; font-size: 13px; }

.event-card {
  border: 1px solid var(--line);
  padding: 12px;
  margin-top: 10px;
  background: #fbfaf8;
}

.hint { color: var(--muted); font-size: 14px; }
.error { color: var(--red); font-weight: 600; }
.ok { color: #0d7a3f; font-weight: 600; }

@media (max-width: 980px) {
  .grid, .detail-grid, .cols { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header, .toolbar, .site-footer { padding-left: 16px; padding-right: 16px; }
  .header { align-items: flex-start; flex-wrap: wrap; }
  .brand img { height: 58px; }
  .brand-script { font-size: 34px; }
  .brand-kicker { font-size: 13px; }
  .grid, .cols { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .season-note { display: none; }
  main { width: min(1180px, calc(100% - 28px)); }
}
