:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: #041a7a;
  color: #f6fbff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(0, 209, 255, 0.42), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(31, 125, 255, 0.48), transparent 34%),
    radial-gradient(circle at 54% 70%, rgba(0, 255, 224, 0.16), transparent 32%),
    linear-gradient(135deg, #0572ff 0%, #0630bc 42%, #06115d 100%);
  background-attachment: fixed;
  color: #f6fbff;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    linear-gradient(118deg, transparent 0 12%, rgba(59, 224, 255, 0.34) 12.2% 12.6%, transparent 12.8% 100%),
    linear-gradient(64deg, transparent 0 76%, rgba(67, 206, 255, 0.28) 76.2% 76.6%, transparent 76.8% 100%),
    linear-gradient(148deg, transparent 0 58%, rgba(135, 238, 255, 0.16) 58.2% 58.7%, transparent 58.9% 100%),
    repeating-linear-gradient(112deg, transparent 0 92px, rgba(88, 210, 255, 0.06) 94px 96px, transparent 98px 180px);
}

body::after {
  opacity: 0.46;
  background:
    radial-gradient(ellipse at 20% 62%, transparent 0 30%, rgba(79, 195, 255, 0.34) 30.4% 31%, transparent 31.4%),
    radial-gradient(ellipse at 86% 54%, transparent 0 26%, rgba(52, 188, 255, 0.28) 26.5% 27.2%, transparent 27.7%),
    radial-gradient(ellipse at 50% 8%, transparent 0 20%, rgba(255, 255, 255, 0.12) 20.4% 20.8%, transparent 21.2%);
}

a {
  color: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(43, 223, 255, 0.42);
  background:
    linear-gradient(120deg, rgba(3, 26, 127, 0.88), rgba(4, 43, 156, 0.68)),
    radial-gradient(circle at 82% 18%, rgba(72, 197, 255, 0.26), transparent 30%);
  backdrop-filter: blur(12px);
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
}

p {
  margin: 0;
  color: rgba(235, 249, 255, 0.82);
}

.actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
input,
select {
  min-height: 42px;
  border: 1px solid rgba(57, 219, 255, 0.58);
  border-radius: 8px;
  background: rgba(2, 18, 86, 0.64);
  color: #f6fbff;
  font: inherit;
  box-shadow: inset 0 0 20px rgba(28, 164, 255, 0.16);
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 560;
  text-decoration: none;
}

input::placeholder {
  color: rgba(230, 245, 255, 0.58);
}

input,
select {
  padding: 0 12px;
}

input {
  flex: 1 1 260px;
}

select {
  flex: 0 1 180px;
}

code {
  word-break: break-all;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.stat,
.day-board {
  border-radius: 24px;
}

.day-board {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(120deg, rgba(2, 29, 119, 0.92), rgba(3, 14, 80, 0.82)) padding-box,
    linear-gradient(135deg, rgba(113, 244, 255, 0.95), rgba(36, 115, 255, 0.24) 32%, rgba(10, 240, 255, 0.9) 64%, rgba(255, 255, 255, 0.72)) border-box,
    radial-gradient(circle at 20% 30%, rgba(22, 178, 255, 0.24), transparent 36%);
  box-shadow:
    0 20px 60px rgba(2, 8, 58, 0.34),
    0 0 26px rgba(29, 218, 255, 0.24),
    inset 0 0 36px rgba(14, 192, 255, 0.16);
}

.day-board::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 18% 76%, rgba(68, 233, 255, 0.18)),
    radial-gradient(circle at 8% 10%, rgba(99, 235, 255, 0.2), transparent 28%);
  content: "";
  pointer-events: none;
}

.stat {
  padding: 14px;
  border-radius: 8px;
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: rgba(224, 243, 255, 0.74);
  font-size: 14px;
}

.schedule {
  display: grid;
  gap: 28px;
}

.day-board {
  overflow: hidden;
  padding: clamp(18px, 4vw, 32px);
}

.day-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.day-head,
.match {
  position: relative;
  z-index: 1;
}

.day-count,
.day-status {
  color: rgba(226, 247, 255, 0.78);
  font-size: 14px;
}

.day-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 4vw, 25px);
  font-weight: 400;
  line-height: 1.1;
}

.day-title small {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-left: 12px;
  padding: 3px 9px;
  border: 1px solid rgba(91, 222, 255, 0.24);
  border-radius: 999px;
  background: rgba(4, 33, 119, 0.32);
  color: rgba(226, 247, 255, 0.78);
  font-size: 0.48em;
  font-weight: 520;
  white-space: nowrap;
}

.day-status {
  justify-self: end;
  padding: 4px 10px;
  border: 1px solid rgba(91, 222, 255, 0.3);
  border-radius: 999px;
  background: rgba(4, 33, 119, 0.42);
  white-space: nowrap;
}

.match {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 18px 0;
  border-top: 1px solid rgba(30, 190, 255, 0.58);
  background: linear-gradient(90deg, transparent, rgba(1, 14, 69, 0.72) 18%, rgba(1, 14, 69, 0.72) 82%, transparent);
}

.time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(46, 221, 255, 0.78);
  border-radius: 8px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 620;
  line-height: 1;
  box-shadow: inset 0 0 18px rgba(40, 177, 255, 0.24);
}

.time span {
  display: none;
}

.team {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: #ffffff;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 350;
  text-transform: uppercase;
  text-align: center;
}

.team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-center {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.match-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.flag-panel {
  display: flex;
  justify-content: center;
}

.badge {
  display: inline-grid;
  flex: 0 0 88px;
  width: 88px;
  height: 60px;
  place-items: center;
  border: 2px solid rgba(207, 244, 255, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #07309a;
  font-size: 0;
  font-weight: 620;
  line-height: 1;
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(0, 10, 70, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge.code {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

.match-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 8px;
  color: rgba(226, 247, 255, 0.74);
  font-size: 13px;
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: rgba(226, 247, 255, 0.74);
  font-size: 14px;
}

.details {
  display: contents;
}

.detail-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.venue-link,
.weather-chip,
.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgba(80, 219, 255, 0.26);
  border-radius: 999px;
  background: rgba(5, 32, 117, 0.42);
}

.venue-link {
  color: #62e4ff;
  font-weight: 560;
  text-decoration: none;
}

.venue-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.weather-chip {
  color: rgba(239, 251, 255, 0.9);
  font-weight: 560;
  white-space: nowrap;
}

.weather-icon {
  width: 18px;
  text-align: center;
}

.empty,
.loading {
  padding: 24px;
  color: #5f6d7f;
  text-align: center;
}

@media (max-width: 700px) {
  .wrap {
    padding: 18px;
  }

  .day-board {
    padding: 16px;
    border-radius: 18px;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .day-head {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .day-status {
    justify-self: start;
  }

  .day-title small {
    display: inline-flex;
    width: auto;
    max-width: max-content;
    margin: 8px 0 0;
  }

  .match {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    min-height: 0;
    padding: 18px 0;
  }

  .team {
    font-size: 14px;
  }

  .badge {
    width: 66px;
    height: 44px;
    flex-basis: 66px;
    border-radius: 8px;
    font-size: 16px;
  }

  .badge.code {
    font-size: 12px;
  }

  .time {
    min-height: 34px;
    font-size: 18px;
  }

  .match-center {
    grid-column: 1 / -1;
    grid-row: 1;
    gap: 10px;
  }

  .match-main {
    grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
    gap: 8px;
  }

  .flag-panel {
    grid-row: 2;
    justify-content: center;
  }

  .flag-panel:first-child {
    grid-column: 1;
  }

  .flag-panel:last-child {
    grid-column: 2;
  }

  .match-info {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    padding: 0;
    text-align: center;
  }

  .stage-chip,
  .venue-link,
  .weather-chip {
    max-width: 100%;
    min-height: 28px;
    justify-content: center;
  }

  .venue-link span,
  .stage-chip {
    max-width: 100%;
  }
}
