﻿:root {
  --matches-gradient: linear-gradient(180deg, rgba(19, 32, 53, 0.88) 0%, rgba(5, 8, 17, 0.82) 100%);
  --matches-panel: rgba(15, 23, 34, 0.85);
  --matches-border: rgba(78, 129, 196, 0.4);
  --matches-highlight: #4ea0ff;
  --matches-muted: rgba(255, 255, 255, 0.65);
}

.matches-page {
  color: #f5f5f9;
  min-height: 100vh;
}

.matches-page .site-header {
  position: static;
}

.matches-hero {
  background: var(--matches-gradient);
  padding: 96px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: start;
}

.hero-primary .eyebrow {
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--matches-muted);
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Lilita One', system-ui;
  font-size: clamp(42px, 5vw, 64px);
  color: var(--matches-highlight);
  margin: 0;
}

.hero-subtitle {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-match-primary,
.btn-match-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-match-primary {
  background: var(--matches-highlight);
  color: #04070f;
  box-shadow: 0 14px 28px rgba(78, 160, 255, 0.35);
}

.btn-match-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(78, 160, 255, 0.45);
}

.btn-match-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.btn-match-secondary:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: var(--matches-highlight);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.hero-summary-card {
  padding: 28px 32px;
  border-radius: 22px;
  background: rgba(8, 16, 28, 0.78);
  border: 1px solid rgba(78, 129, 196, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 18px;
}

.hero-summary-title {
  margin: 0;
  font-family: 'Lilita One', system-ui;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #fff;
}

.hero-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero-stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(12, 20, 34, 0.65);
  border: 1px solid rgba(78, 129, 196, 0.25);
}

.hero-stat-list .label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-stat-list strong {
  font-size: 24px;
  font-family: 'Inter', system-ui;
  color: #fff;
}

.hero-note {
  margin: 0;
  font-size: 14px;
  color: var(--matches-muted);
}

.hero-note code {
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: var(--matches-highlight);
}

.matches-filters {
  padding: 56px 0;
  background: linear-gradient(180deg, #081322 0%, #04070f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.match-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 32px;
  border-radius: 20px;
  background: var(--matches-panel);
  border: 1px solid var(--matches-border);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--matches-muted);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-field span {
  font-weight: 600;
}

.filter-field input,
.filter-field select {
  background: rgba(10, 18, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--matches-highlight);
  box-shadow: 0 0 0 3px rgba(78, 160, 255, 0.25);
  outline: none;
}

.date-range-field {
  grid-column: span 2;
}

.date-range-field .date-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-range-field input[type="date"] {
  flex: 1;
  min-width: 0;
}

.date-separator {
  font-size: 13px;
  color: var(--matches-muted);
  text-transform: lowercase;
}

.search-field {
  grid-column: span 2;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-top: 24px;
  gap: 12px;
}

/* --- Neon match archive redesign --- */
.matches-section {
  padding: 72px 0 110px;
  background:
    radial-gradient(1100px at 20% -10%, rgba(255, 160, 90, 0.18), transparent 55%),
    radial-gradient(900px at 90% 0%, rgba(108, 74, 184, 0.2), transparent 60%),
    linear-gradient(180deg, #050718 0%, #070422 100%);
}

.match-list {
  display: grid;
  gap: 32px;
}

.match-card {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(25, 17, 45, 0.95), rgba(12, 19, 46, 0.95));
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.match-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 56px 90px rgba(0, 0, 0, 0.55);
}

.match-card summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(135deg, rgba(84, 64, 190, 0.85), rgba(32, 56, 144, 0.78));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.match-card summary::-webkit-details-marker {
  display: none;
}

.match-card summary::after {
  content: '\25BE';
  position: absolute;
  top: 30px;
  right: 32px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease;
}

.match-card[open] summary::after {
  transform: rotate(-180deg);
}

.summary-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(9, 7, 29, 0.35);
  color: rgba(255, 255, 255, 0.8);
}

.badge-stage {
  border-color: rgba(255, 219, 141, 0.75);
  background: rgba(255, 219, 141, 0.18);
  color: #ffe7b4;
}

.badge-tier {
  border-color: rgba(120, 206, 255, 0.75);
  background: rgba(120, 206, 255, 0.18);
  color: #c3ecff;
}

.badge-status {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.18);
}

.badge-status.is-finished {
  border-color: rgba(93, 255, 184, 0.65);
  background: rgba(93, 255, 184, 0.22);
  color: #8affd4;
}

.badge-status.is-upcoming {
  border-color: rgba(255, 150, 200, 0.6);
  background: rgba(255, 150, 200, 0.2);
  color: #ffc2dd;
}

.match-date {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.76);
}

.summary-scoreboard {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.team-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(8, 10, 33, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.team-name {
  font-family: 'Lilita One', system-ui;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
}

.team-players {
  font-size: 13px;
  color: rgba(226, 232, 255, 0.75);
  line-height: 1.4;
}

.score-block {
  min-width: 160px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(74, 161, 255, 0.25));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.24);
}

.score-values {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-value {
  font-family: 'Lilita One', system-ui;
  font-size: 44px;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.score-value.score-win {
  color: #7dffb3;
  text-shadow: 0 0 22px rgba(125, 255, 179, 0.6);
}

.score-value.score-loss {
  color: #ff7f96;
  text-shadow: 0 0 22px rgba(255, 127, 150, 0.55);
}

.score-divider {
  font-size: 30px;
  color: rgba(255, 255, 255, 0.65);
}

.score-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.summary-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  color: rgba(252, 255, 255, 0.82);
}

.tournament-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.region-tag {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.winner-tag {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.winner-tag.has-winner {
  background: rgba(119, 255, 179, 0.16);
  border-color: rgba(119, 255, 179, 0.5);
  color: #9affa6;
}

.match-id {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.match-body {
  padding: 32px 34px 36px;
  display: grid;
  gap: 26px;
  background: linear-gradient(135deg, rgba(10, 13, 32, 0.92), rgba(10, 21, 38, 0.88));
}

.match-info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.info-chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8, 12, 32, 0.75);
  border: 1px solid rgba(120, 206, 255, 0.18);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.35);
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(147, 195, 255, 0.7);
}

.info-value {
  font-size: 15px;
  font-weight: 700;
  color: #f8fbff;
}

.team-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.team-panel {
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(140deg, rgba(18, 21, 44, 0.9), rgba(29, 18, 52, 0.9));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-panel.is-winner {
  border-color: rgba(119, 255, 179, 0.65);
  box-shadow: inset 0 0 30px rgba(119, 255, 179, 0.18);
}

.team-panel h3 {
  margin: 0;
  font-family: 'Lilita One', system-ui;
  font-size: 19px;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.player-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 600;
  color: rgba(240, 244, 255, 0.88);
}

.player-pill.is-placeholder {
  opacity: 0.65;
  font-style: italic;
}

.team-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(17, 27, 53, 0.65);
  border: 1px solid rgba(147, 195, 255, 0.26);
  color: rgba(214, 225, 255, 0.85);
}

.meta-label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(147, 195, 255, 0.7);
}

.meta-value {
  font-weight: 700;
  color: #ffffff;
}

.maps-section {
  padding: 26px 24px 28px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, rgba(30, 16, 58, 0.9), rgba(15, 28, 58, 0.88));
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.35);
}

.maps-section h4 {
  margin: 0 0 18px;
  font-family: 'Lilita One', system-ui;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7f9ff;
}

.maps-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.map-card {
  padding: 18px 20px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, rgba(26, 22, 62, 0.85), rgba(26, 44, 73, 0.88));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.map-title {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.map-mode {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(168, 210, 255, 0.8);
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pick-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(147, 195, 255, 0.75);
}

.pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pick-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(16, 18, 32, 0.9);
  background: linear-gradient(135deg, #fef2ff, #ffccf5);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pick-row.team-one .pick-chip {
  background: linear-gradient(135deg, #dff8ff, #a8e6ff);
}

.pick-row.team-two .pick-chip {
  background: linear-gradient(135deg, #ffe1f2, #ffc6dc);
}

.streams-panel {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, rgba(12, 20, 48, 0.9), rgba(16, 28, 58, 0.9));
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.32);
}

.streams-section {
  padding: 0;
  background: transparent;
  border: none;
}

.streams-panel h4 {
  margin: 0 0 14px;
  font-family: 'Lilita One', system-ui;
  letter-spacing: 0.12em;
  color: #f6f8ff;
}

.streams-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.streams-list a {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #050812;
  background: linear-gradient(135deg, #80f6ff, #41d4ff);
  box-shadow: 0 10px 20px rgba(65, 212, 255, 0.35);
}

.streams-list a:hover {
  transform: translateY(-2px);
}

.stream-placeholder {
  color: rgba(214, 225, 255, 0.7);
  font-size: 13px;
}

.tournament-link {
  display: inline-flex;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9fd3ff;
  text-decoration: none;
}

.tournament-link:hover {
  color: #c8e6ff;
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-match-primary,
  .btn-match-secondary {
    width: 100%;
    text-align: center;
  }

  .match-filter-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .search-field,
  .date-range-field {
    grid-column: 1;
  }

  .filter-actions {
    justify-content: flex-start;
    padding-top: 0;
  }

  .summary-scoreboard {
    flex-direction: column;
  }

  .team-pill,
  .score-block {
    width: 100%;
  }

  .match-card summary {
    padding: 22px;
  }

  .match-body {
    padding: 26px;
  }
}

@media (max-width: 520px) {
  .summary-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .match-list {
    gap: 24px;
  }
}
