:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #25242b;
  --muted: #88878d;
  --panel: #ffffff;
  --panel-soft: #f7f5ef;
  --border-soft: #d8d1c4;
  --topbar-line: #ece9e2;
  --line: #3d3d3d;
  --gold: #a67a34;
  --slider-track: rgba(255, 255, 255, 0.46);
  --slider-fill: #37c56f;
  --slider-border: rgba(255, 255, 255, 0.68);
  --slider-shadow: rgba(31, 25, 18, 0.22);
}

body.is-night-theme {
  color-scheme: dark;
  --page: #0d0f16;
  --ink: #f6f7fb;
  --muted: #aeb3bf;
  --panel: #181b24;
  --panel-soft: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.18);
  --topbar-line: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.34);
  --gold: #d4a650;
  --slider-track: rgba(255, 255, 255, 0.18);
  --slider-fill: #37c56f;
  --slider-border: rgba(255, 255, 255, 0.32);
  --slider-shadow: rgba(0, 0, 0, 0.55);
}

body.is-night-theme .topbar {
  background:
    radial-gradient(circle at 20% 0%, rgba(212, 166, 80, 0.10), transparent 32%),
    var(--page);
}

body.is-night-theme .day-title {
  background: rgba(13, 15, 22, 0.94);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  transition: background 180ms ease, color 180ms ease;
}

body.app-loading .topbar,
body.app-loading main {
  opacity: 0;
  transform: translateY(10px);
}

body.app-ready .topbar,
body.app-ready main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 320ms ease;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 6vw, 72px);
  background: var(--page);
  color: var(--ink);
  transition: opacity 260ms ease, visibility 260ms ease;
}

body.app-ready .app-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-copy {
  display: grid;
  gap: 6px;
  width: min(100%, 720px);
  margin-inline: auto;
}

.loader-mark {
  display: inline-grid;
  place-items: center;
  width: clamp(92px, 9vw, 128px);
  height: clamp(92px, 9vw, 128px);
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-family: "Arial Black", "Impact", system-ui, sans-serif;
  font-size: clamp(66px, 7.5vw, 100px);
  font-weight: 1000;
  line-height: 0.9;
  letter-spacing: -0.1em;
  text-shadow: 0 0 0 currentColor;
  transition: box-shadow 180ms ease;
}

.loader-mark:hover {
  box-shadow: 0 14px 34px rgba(37, 36, 43, 0.18);
}

.loader-copy strong {
  font-size: clamp(28px, 6vw, 72px);
  font-weight: 1000;
  line-height: 0.95;
  text-transform: uppercase;
}

#loaderStatus {
  color: var(--slider-fill);
  font-size: 14px;
  font-weight: 900;
}

.loader-track {
  position: relative;
  width: 100vw;
  height: 6px;
  margin-inline: calc(50% - 50vw);
  overflow: visible;
  background: var(--topbar-line);
  border-radius: 999px;
}

#loaderBar {
  display: block;
  width: var(--loader-progress, 0%);
  height: 100%;
  background: var(--slider-fill);
  border-radius: 999px;
  transition: none;
}

.loader-ball {
  position: absolute;
  top: 50%;
  left: clamp(20px, var(--loader-progress, 0%), calc(100% - 20px));
  z-index: 3;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: none;
  object-fit: contain;
  animation: none;
  transition: none;
}

.topbar {
  border-bottom: 1px solid var(--topbar-line);
}

.topbar-inner {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(100%, 800px);
  margin-inline: auto;
  padding: 22px clamp(16px, 4vw, 44px);
}

.language-toggle {
  position: absolute;
  top: 18px;
  right: clamp(16px, 4vw, 44px);
  z-index: 2;
  display: inline-flex;
  height: 38px;
  padding: 0;
  border: 2px solid var(--border-soft);
  border-radius: 999px;
  background: var(--panel-soft);
  overflow: hidden;
}

.language-select {
  appearance: none;
  height: 100%;
  min-height: 0;
  min-width: 132px;
  padding: 0 34px 0 14px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 18px) 14px / 7px 7px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 12px) 14px / 7px 7px no-repeat,
    transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
}

.language-select:focus-visible {
  outline: 2px solid var(--slider-fill);
  outline-offset: 2px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-zone {
  position: relative;
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

h1 {
  width: 100%;
  margin: 0;
  max-width: none;
  font-size: clamp(42px, 8.2vw, 78px);
  line-height: 0.9;
  font-weight: 1000;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0;
  transform: scaleX(0.93);
  transform-origin: left center;
  white-space: nowrap;
  text-transform: uppercase;
  padding-right: 0.16em;
}

h1::after {
  content: none;
}

.timezone-control {
  position: absolute;
  right: 0.52em;
  bottom: 0.03em;
  display: block;
  width: 0.34em;
  height: 0.78em;
  padding: 0;
  border: 0;
  flex: none;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 8.2vw, 78px);
  line-height: 1;
  font-weight: 1000;
  text-transform: none;
  margin-top: 0;
  align-self: auto;
  z-index: 5;
}

.timezone-heading {
  display: none;
}

.timezone-control.is-label-hidden:not(:hover):not(:focus-within) .timezone-heading {
  opacity: 1;
}

.timezone-control::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.31em;
  width: 0.17em;
  height: 0.17em;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  pointer-events: none;
  transform: rotate(45deg);
}

.timezone-label {
  display: inline;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: inherit;
  text-transform: none;
  box-shadow: none;
}

.timezone-select {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: -0.18em -0.08em -0.15em -0.45em;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 800 16px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  outline: none;
  opacity: 0;
}

.timezone-select option {
  font: 800 16px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.timezone-select:focus-visible {
  box-shadow:
    0 0 0 3px rgba(11,112,216,0.28);
}

.timezone-slider,
.timezone-ball-visual {
  display: none;
}

.timezone-scale {
  display: none;
}

.timezone-scale::before {
  display: none;
}

.timezone-scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.timezone-scale .is-min {
  transform: translateX(0);
}

.timezone-scale .is-max {
  transform: translateX(-100%);
}

.timezone-scale span::before {
  display: none;
}

.timezone-scale .is-zero {
  color: var(--gold);
}

.timezone-scale .is-current {
  color: var(--ink);
}

.timezone-scale .is-current::before {
  display: none;
}

.team-filter {
  --filter-dot-size: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.group-filter-list {
  display: contents;
}

.team-filter-list {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 6px;
  order: 10;
}

.team-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px 1px 1px;
  border-radius: 999px;
}

.team-filter-group-label {
  appearance: none;
  box-sizing: border-box;
  border: 2px solid var(--filter-group-color);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--page);
  color: var(--filter-group-color);
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
}

.team-filter-button,
.group-filter-button,
.daypart-filter,
.venue-filter,
.calendar-export,
.clear-filter {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.language-select,
.team-filter-button,
.group-filter-button,
.daypart-filter,
.venue-filter,
.venue-clear,
.calendar-export,
.clear-filter,
.match-card:not(.match-card-placeholders) .kickoff,
.match-card .team,
.team-filter-group-label {
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.language-select:hover,
.team-filter-button:not(:disabled):hover,
.group-filter-button:not(:disabled):hover,
.daypart-filter:not(:disabled):hover,
.venue-filter:hover,
.venue-clear:hover,
.calendar-export:hover,
.clear-filter:hover,
.match-card:not(.match-card-placeholders) .kickoff:hover,
.team-filter-group-label:hover {
  transform: translateY(-2px);
}

.team-filter-button:disabled,
.group-filter-button:disabled,
.daypart-filter:disabled,
.calendar-export:disabled {
  cursor: not-allowed;
  filter: grayscale(0.9);
  opacity: 0.28;
}

.group-filter-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 17px;
  height: 17px;
  min-height: 17px;
  padding: 0;
  box-sizing: border-box;
  border: 2px solid var(--filter-group-color);
  border-radius: 50%;
  background: var(--page);
  color: var(--filter-group-color);
  box-shadow: none;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.group-filter-button.is-active {
  border-width: 2px;
  border-color: transparent;
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 5px #0b70d8;
}

.daypart-filter {
  display: grid;
  place-items: center;
  width: var(--filter-dot-size);
  height: var(--filter-dot-size);
  min-height: var(--filter-dot-size);
  padding: 0;
  border: 2px solid var(--border-soft);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

body.is-night-theme .daypart-filter,
body.is-night-theme .venue-filter {
  background-color: var(--panel);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

body.is-night-theme .team-filter-button {
  background-color: transparent;
  color: var(--ink);
  box-shadow: none;
}

body.is-night-theme .group-filter-button {
  background: var(--page);
  color: var(--filter-group-color);
  box-shadow: none;
}

body.is-night-theme .venue-filter {
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 16px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 10px) 50% / 7px 7px no-repeat,
    var(--panel);
}

body.is-night-theme .venue-clear {
  background: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}

body.is-night-theme .calendar-export {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.daypart-filter.is-active {
  border-width: 2px;
  border-color: transparent;
  background: #0b70d8;
  color: #fff;
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 5px #0b70d8;
}

.venue-filter {
  width: 100%;
  flex: 0 1 170px;
  min-width: 132px;
  min-height: 30px;
  padding: 0 28px 0 10px;
  border: 2px solid var(--border-soft);
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 15px) 12px / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 10px) 12px / 6px 6px no-repeat,
    var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.venue-filter-wrap.has-value .venue-filter {
  color: var(--ink);
}

.venue-filter-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 1 158px;
  min-width: 128px;
}

.venue-filter-wrap.has-value .venue-filter {
  padding-right: 48px;
}

.venue-clear {
  position: absolute;
  top: 50%;
  right: 24px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.venue-clear[hidden] {
  display: none;
}

.venue-clear:hover {
  background: #0b70d8;
  color: #fff;
}

.venue-filter:focus {
  outline: 2px solid #0b70d8;
  outline-offset: 2px;
}

.team-filter-button {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: var(--team-flag-size, var(--filter-dot-size));
  height: var(--team-flag-size, var(--filter-dot-size));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.team-filter-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.team-filter-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.team-filter-button strong {
  position: absolute;
  right: -3px;
  top: -4px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 0 0 1px var(--page);
}

.team-filter-button strong[data-points-breakdown]::after,
.group-table-team strong[data-points-breakdown]::after {
  content: attr(data-points-breakdown);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 50;
  padding: 4px 7px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.team-filter-button strong[data-points-breakdown]::before,
.group-table-team strong[data-points-breakdown]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1px);
  z-index: 51;
  border: 5px solid transparent;
  border-top-color: #111;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.team-filter-button strong[data-points-breakdown]:hover::after,
.team-filter-button strong[data-points-breakdown]:hover::before,
.group-table-team strong[data-points-breakdown]:hover::after,
.group-table-team strong[data-points-breakdown]:hover::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.team-filter-button[data-fifa-rank]::after {
  content: attr(data-fifa-rank);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 60;
  padding: 5px 8px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.team-filter-button[data-fifa-rank]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  z-index: 61;
  border: 5px solid transparent;
  border-top-color: #111;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.team-filter-button[data-fifa-rank]:hover::after,
.team-filter-button[data-fifa-rank]:hover::before,
.team-filter-button[data-fifa-rank]:focus-visible::after,
.team-filter-button[data-fifa-rank]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.team-filter-button.is-active {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 5px #0b70d8;
}

.team-filter-button.is-active img {
  width: 100%;
  height: 100%;
}

body.is-night-theme .group-filter-button.is-active,
body.is-night-theme .daypart-filter.is-active,
body.is-night-theme .team-filter-button.is-active {
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 5px #0b70d8;
}

.calendar-export {
  position: absolute;
  top: 58px;
  right: clamp(16px, 4vw, 44px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 38px;
  min-width: 128px;
  padding: 0 10px;
  border: 2px solid var(--border-soft);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.calendar-export::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  background: currentColor;
  clip-path: path("M6 0h2v6l2.2-2.2 1.4 1.4L7 9.8 2.4 5.2l1.4-1.4L6 6V0Zm-4 11h10v2H2v-2Z");
}

.clear-filter {
  order: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 30px;
  min-width: 126px;
  margin-left: 2px;
  padding: 0 10px;
  border: 2px solid var(--slider-fill);
  border-radius: 999px;
  background: var(--slider-fill);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.clear-filter[hidden] {
  display: inline-flex;
  visibility: hidden;
  pointer-events: none;
}

main {
  width: min(100%, 800px);
  margin-inline: auto;
  padding: 34px clamp(16px, 4vw, 44px) 64px;
}

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

.day {
  display: grid;
  gap: 18px;
}

.day-empty {
  display: none;
}

.day-empty .day-title .date {
  color: #8d8d8d;
}

.day-title {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 16px;
  margin: 0;
  padding: 12px 0 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  font-size: clamp(34px, 7vw, 58px);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.day-title .group-summary {
  color: var(--gold);
  font-size: 0.62em;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.day-title .date {
  min-width: 0;
  font-size: 0.62em;
  white-space: nowrap;
}

.day-number,
.day-month {
  display: inline;
}

.matches {
  display: grid;
  align-content: start;
  gap: 0;
}

.groups-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.group-table {
  display: grid;
  grid-template-columns: 40px auto;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.group-table-heading {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--group-color);
  color: var(--group-text);
  font-size: 18px;
  font-weight: 1000;
  cursor: pointer;
}

.match-card-placeholders .kickoff {
  cursor: default;
}

.group-table-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.group-table-team {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 0;
  border-radius: 50%;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.group-table-heading:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 5px #0b70d8;
}

.group-table-team:focus-visible {
  outline: 0;
}

.group-table-team:focus-visible img {
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 5px #0b70d8;
}

.group-table-heading.is-filter-active {
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 5px #0b70d8;
}

.group-table-team img {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.group-table-team.is-filter-active img {
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 5px #0b70d8;
}

.group-table-team strong {
  position: absolute;
  right: -7px;
  top: -6px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 0 1px #fff;
}

.group-table.is-dimmed,
.group-table-team.is-dimmed {
  opacity: 0.22;
}

.match-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--group-color);
}

.match-card.is-dimmed {
  opacity: 0.24;
}

.teams {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) clamp(96px, 14vw, 140px) minmax(92px, 1fr);
  align-items: center;
  gap: clamp(18px, 5vw, 64px);
  min-height: 118px;
  padding: 24px clamp(16px, 4vw, 36px) 12px;
}

.match-card-placeholders .teams {
  align-items: center;
  min-height: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  row-gap: 8px;
}

.match-card-placeholders {
  border-radius: 12px;
}

.match-card-placeholders .team-name,
.match-card-placeholders .source-date,
.match-card-placeholders .source-title {
  color: #050505;
}

.match-card-placeholders .team-placeholder .team-name {
  border-color: #777;
  background: #777;
  color: #fff;
}

.match-card-placeholders .source-date,
.match-card-placeholders .source-title {
  color: #fff;
}

.match-card-placeholders .team,
.match-card-placeholders .kickoff {
  align-self: center;
  cursor: default;
}

.match-card-placeholders .team {
  align-content: center;
}

.match-card-placeholders .flag-ring-empty {
  display: none;
}

.match-card-placeholders .meta {
  margin-top: -2px;
}

.match-card-third-place .team-name,
.match-card-third-place .source-date,
.match-card-third-place .source-title {
  color: #050505;
}

.match-card-placeholders.match-card-third-place .team-name,
.match-card-placeholders.match-card-third-place .source-date,
.match-card-placeholders.match-card-third-place .source-title {
  color: #fff;
}

.day-third-place .day-title .group-summary {
  color: #050505;
}

.team {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
  cursor: pointer;
}

.team-name {
  display: -webkit-box;
  max-width: 220px;
  min-height: 1.8em;
  max-height: 1.8em;
  overflow: hidden;
  color: var(--card-text, var(--ink));
  font-size: clamp(26px, 5vw, 54px);
  font-weight: 900;
  line-height: 0.9;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.team-placeholder .team-name {
  display: grid;
  place-items: center;
  gap: 4px;
  max-width: 190px;
  min-width: clamp(112px, 18vw, 178px);
  min-height: clamp(70px, 11vw, 110px);
  padding: 12px 14px;
  border-radius: 22px;
  background: #fff;
  color: var(--group-color);
  font-size: clamp(22px, 3.8vw, 36px);
  line-height: 1.02;
  transition: transform 140ms ease;
}

.team-placeholder.is-source-hover .team-name {
  transform: translateY(-2px);
}

.team-placeholder[data-source-match] {
  cursor: default;
}

.team-placeholder[data-source-match]:hover .team-name,
.team-placeholder[data-source-match]:focus-within .team-name {
  transform: translateY(-2px);
}

.team-source-date-only .team-name {
  align-content: center;
}

.team-seed .team-name {
  display: inline-grid;
  place-items: center;
  min-width: clamp(82px, 13vw, 130px);
  min-height: clamp(84px, 12vw, 124px);
  padding: 12px 14px;
  border-radius: 22px;
  background: #fff;
  color: #050505;
  font-size: clamp(25px, 4.6vw, 48px);
  line-height: 0.95;
}

.team-seed[data-source-group] .team-name {
  transition: transform 140ms ease;
}

.team-seed[data-source-group].is-source-hover .team-name {
  transform: translateY(-2px);
}

.team-seed[style*="--seed-color: #"] .team-name {
  background: var(--seed-color);
  color: var(--seed-text, #fff);
}

.team-third-seed .team-name,
.team-third-seed[style*="--seed-color: #"] .team-name {
  border-color: #777;
  background: #777;
  color: #fff;
}

.source-date {
  color: var(--group-color);
  font-size: 1.04em;
  white-space: nowrap;
}

.source-title {
  color: var(--group-color);
  font-size: 1.04em;
  white-space: nowrap;
}

.flag-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(58px, 11vw, 110px);
  height: clamp(58px, 11vw, 110px);
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.flag-ring.is-filter-active {
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 6px #0b70d8;
}

.flag-ring::before,
.host::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0.55), rgba(255,255,255,0.22));
  background-size: 220% 100%;
  content: "";
  opacity: 0.55;
  animation: flag-skeleton 1.05s ease-in-out infinite;
}

.flag-ring.is-loaded::before,
.flag-ring-empty::before,
.host.is-loaded::before {
  display: none;
}

.team-flag {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  opacity: 1;
}

.team-flag.is-loaded {
  opacity: 1;
}

.flag-ring-empty .team-flag {
  display: none;
}

.kickoff {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  width: clamp(68px, 10vw, 96px);
  height: clamp(68px, 10vw, 96px);
  aspect-ratio: 1;
  padding: 7px;
  border-radius: 50%;
  background: transparent;
  color: #050505;
  text-align: center;
  justify-self: center;
  cursor: pointer;
}

.kickoff.is-filter-active {
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 6px #0b70d8;
}

.kickoff::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  border: 2px solid var(--kickoff-bg, var(--group-color));
  border-radius: inherit;
  background: #fff;
  content: "";
}

.group-code,
.match-time {
  position: relative;
  z-index: 2;
  display: block;
  color: #050505;
  line-height: 0.95;
}

.group-code {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
}

.kickoff .group-code {
  display: none;
}

.match-time {
  margin-top: 0;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
  text-align: center;
}

.kickoff-score .group-code {
  display: none;
}

.kickoff-score {
  width: clamp(68px, 9.5vw, 92px);
  height: clamp(68px, 9.5vw, 92px);
  padding: 8px;
  border-radius: 8px;
}

.kickoff-score.is-filter-active {
  box-shadow:
    0 0 0 1px var(--page),
    0 0 0 6px #0b70d8;
}

.kickoff-score::before {
  border-color: var(--kickoff-bg, var(--group-color));
  border-radius: 8px;
  background: var(--kickoff-bg, var(--group-color));
}

.kickoff-score .match-time {
  color: var(--kickoff-text, #fff);
  font-size: clamp(29px, 4.9vw, 50px);
  line-height: 1;
}

.match-score-main,
.match-score-penalties {
  display: block;
}

.match-score-penalties {
  margin-top: 2px;
  color: #fff;
  font-size: 0.62em;
  line-height: 0.9;
  white-space: nowrap;
}

.score-side.is-loser {
  opacity: 0.5;
}

.team.is-winner .team-name {
  font-weight: 1000;
}

.match-card:has(.team-home.is-winner) .team-away,
.match-card:has(.team-away.is-winner) .team-home {
  opacity: 0.5;
}

.match-card:has(.team-home.is-winner) .team-away .team-name,
.match-card:has(.team-away.is-winner) .team-home .team-name {
  color: #050505;
}

.match-time-hour,
.match-time-minutes {
  display: block;
  min-width: 2ch;
  text-align: center;
}

.match-time-minutes {
  margin-top: 0.04em;
  font-size: 0.62em;
  line-height: 0.8;
}

.meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: center;
  grid-column: 1 / -1;
  width: fit-content;
  margin-inline: auto;
  margin-top: -14px;
  color: var(--card-text, var(--ink));
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 500;
  text-align: center;
}

.host {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  overflow: hidden;
  margin-top: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.host-flag {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
}

.host-flag.is-loaded {
  opacity: 1;
}

.match-host {
  display: none;
}

.match-tooltip {
  display: none;
}

.match-host-flag,
.match-host-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.match-host-flag {
  border-radius: 50%;
  object-fit: cover;
}

.match-host-fallback {
  display: grid;
  place-items: center;
  font-size: 0.9em;
  line-height: 1;
}

.host::after {
  display: none;
  color: currentColor;
  content: "🏟";
  font-size: 16px;
  line-height: 1;
}

.meta:hover .host-flag,
.meta:focus-within .host-flag {
  display: none;
}

.meta:hover .host::after,
.meta:focus-within .host::after {
  display: block;
}

@keyframes flag-skeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.venue-text {
  display: inline;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}

.meta:hover .venue-text,
.meta:focus-within .venue-text {
  font-size: inherit;
}

.meta:hover .venue-text::after,
.meta:focus-within .venue-text::after {
  display: none;
}

.meta::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: block;
  width: max-content;
  max-width: min(280px, 70vw);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  content: attr(aria-label);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
}

.meta:hover::after,
.meta:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 1440px) {
  body.is-night-theme .schedule {
    border-color: rgba(255, 255, 255, 0.28);
  }

  body.is-night-theme .day {
    border-color: rgba(255, 255, 255, 0.28);
    background: #0f121a;
  }

  body.is-night-theme .day-empty {
    background: #0f121a;
  }

  body.is-night-theme .day-title {
    background: transparent;
  }

  body.is-night-theme .team-name,
  body.is-night-theme .source-date,
  body.is-night-theme .source-title {
    color: #f6f7fb;
  }

  body.is-night-theme .match-card-placeholders,
  body.is-night-theme .match-card-third-place {
    border-color: rgba(255, 255, 255, 0.78);
  }

  body.is-night-theme .match-card-placeholders .team-name,
  body.is-night-theme .match-card-placeholders .source-date,
  body.is-night-theme .match-card-placeholders .source-title,
  body.is-night-theme .match-card-third-place .team-name,
  body.is-night-theme .match-card-third-place .source-date,
  body.is-night-theme .match-card-third-place .source-title {
    color: #050505;
  }

  .topbar-inner,
  main {
    width: min(100%, 1760px);
  }

  .topbar-inner {
    grid-template-columns: max-content minmax(300px, 400px) minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 14px;
    padding-inline: clamp(24px, 3vw, 52px);
  }

  .title-zone {
    min-width: 0;
  }

  .language-toggle {
    grid-column: 4;
    position: static;
    justify-self: end;
    align-self: start;
  }

  .calendar-export {
    position: static;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
  }

  .timezone-control {
    font-size: clamp(42px, 3.6vw, 56px);
  }

  .team-filter {
    grid-column: 1 / -1;
    align-items: center;
    gap: 5px;
  }

  .team-filter-list {
    flex-basis: 100%;
    width: 100%;
  }

  .venue-filter-wrap + .venue-filter-wrap {
    margin-left: 0;
  }

  main {
    padding-inline: clamp(24px, 3vw, 52px);
  }

  h1 {
    font-size: clamp(42px, 3.6vw, 56px);
    width: max-content;
    max-width: 100%;
    transform: scaleX(0.92);
  }

  .schedule {
    position: relative;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
    grid-auto-rows: minmax(248px, auto);
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
  }

  .schedule::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    border: 1px solid #8d8d8d;
    border-radius: inherit;
  }

  .day {
    min-width: 0;
    min-height: 248px;
    height: 100%;
    gap: 6px;
    padding: 6px 5px 8px;
    border-right: 1px solid #8d8d8d;
    border-bottom: 1px solid #8d8d8d;
    box-shadow: none;
    background: #fff;
  }

  .day:nth-child(7n) {
    border-right: 0;
  }

  .day:nth-last-child(-n + 7) {
    border-bottom: 0;
  }

  .day-empty {
    background: #fff;
  }

  .day-empty .day-title .date {
    color: #8d8d8d;
  }

  body.is-night-theme .day-empty .day-title .date {
    color: rgba(246, 247, 251, 0.45);
  }

  .day-empty {
    display: grid;
    min-height: 248px;
  }

  .day-empty .matches {
    display: none;
  }

  .day-groups-day {
    background: #fff;
  }

  .day-groups-day .matches {
    display: grid;
  }

  .day-groups-day .day-title {
    visibility: hidden;
    min-height: 30px;
  }

  .day-groups-day .groups-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-self: start;
    padding: 4px 10px 0;
  }

  .day-groups-day .group-table {
    grid-template-columns: 32px auto;
    gap: 8px;
  }

  .day-groups-day .group-table-heading {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .day-groups-day .group-table-team {
    font-size: 10px;
  }

  .day-groups-day .group-table-team img {
    width: 32px;
    height: 32px;
  }

  .day-groups-day .group-table-team strong {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .day:first-child {
    grid-column-start: 1;
  }

  .day-title {
    position: static;
    z-index: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px;
    min-height: 22px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    font-size: 19px;
    line-height: 1;
  }

  .day-title .date,
  .day-title .group-summary {
    font-size: 1em;
    text-align: left;
    justify-self: start;
  }

  .day-title .day-weekday {
    display: none;
  }

  .day:not(.day-month-start) .day-month {
    display: none;
  }

  .day-weekend .day-title .date {
    color: #d71920;
  }

  .day-title .group-summary {
    color: var(--gold);
    text-align: right;
    justify-self: end;
  }

  .matches {
    gap: 0;
  }

  .teams {
    transition: transform 140ms ease;
  }

  .match-card.is-source-hover .teams {
    transform: translateY(-6px);
  }

  .match-card.is-group-source-hover .teams {
    transform: translateY(-6px);
  }

  .match-card.is-source-hover .kickoff {
    color: #050505;
  }

  .match-card.is-source-hover .kickoff::before {
    border-color: #050505;
    background: #fff;
  }

  .match-card:not(.match-card-placeholders) .team {
    transition: transform 140ms ease;
  }

  .match-card:not(.match-card-placeholders) .team:hover,
  .match-card:not(.match-card-placeholders) .team:focus-within {
    transform: translateY(-2px);
  }

  .match-card-placeholders .team:hover,
  .match-card-placeholders .team:focus-within {
    transform: none;
  }

  .match-card {
    position: relative;
    width: 100%;
    height: 58px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  .match-card:hover,
  .match-card:focus-within {
    z-index: 100;
  }

  .match-card-placeholders {
    border-radius: 8px;
    background: #fff;
    height: 72px;
  }

  .match-card-placeholders .teams {
    grid-template-columns: 58px 34px 58px;
    column-gap: 5px;
    justify-content: center;
    align-items: center;
  }

  .match-card-placeholders .team {
    grid-template-rows: 1fr;
    width: 58px;
    max-width: 58px;
    align-self: center;
  }

  .match-card-placeholders .kickoff {
    width: 34px;
    height: 34px;
    padding: 3px;
    align-self: center;
    transform: none;
  }

  .match-card-placeholders .kickoff:hover,
  .match-card-placeholders .kickoff:focus-within {
    transform: translateY(-2px);
  }

  .match-card-third-place {
    border: 0;
    border-radius: 0;
  }

  .match-card-placeholders .kickoff::before {
    box-sizing: border-box;
    border: 2px solid #777;
    background: #fff;
  }

  .match-card-placeholders .group-code,
  .match-card-placeholders .match-time {
    color: #050505;
  }

  .match-host {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: -12px;
    z-index: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: help;
    font-size: 10px;
    line-height: 1;
    transform: translateX(-50%);
    transition: none;
  }

  .match-host:not(.is-host-flag-visible) {
    width: 1px;
    height: 1px;
  }

  .match-host-flag,
  .match-host-fallback {
    position: relative;
    z-index: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease;
  }

  .match-card:not(.match-card-placeholders) .kickoff:hover,
  .match-card:not(.match-card-placeholders) .kickoff:focus-within {
    z-index: 50;
  }

  .match-card:not(.match-card-placeholders) .kickoff:hover .match-host,
  .match-card:not(.match-card-placeholders) .kickoff:focus-within .match-host {
    z-index: 0;
  }

  .match-card:not(.match-card-placeholders) .kickoff:hover .match-host-flag,
  .match-card:not(.match-card-placeholders) .kickoff:focus-within .match-host-flag,
  .match-card:not(.match-card-placeholders) .kickoff:hover .match-host-fallback,
  .match-card:not(.match-card-placeholders) .kickoff:focus-within .match-host-fallback {
    transform: translateY(0);
  }

  .match-tooltip {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: calc(100% + 10px);
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 220px;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, 4px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .match-tooltip::after {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.92);
    content: "";
    transform: translateX(-50%);
  }

  .match-tooltip-flag {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 18px;
    height: 18px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
  }

  .match-tooltip-flag .match-host-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .match-tooltip-flag .match-host-fallback {
    font-size: 12px;
    line-height: 1;
  }

  .match-tooltip-text {
    min-width: 0;
  }

  .match-card:not(.match-card-placeholders) .kickoff:hover .match-tooltip,
  .match-card:not(.match-card-placeholders) .kickoff:focus-within .match-tooltip,
  .match-card-placeholders .kickoff:hover .match-tooltip,
  .match-card-placeholders .kickoff:focus-within .match-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .teams {
    grid-template-columns: 58px 32px 58px;
    justify-content: center;
    justify-items: center;
    align-items: center;
    column-gap: 3px;
    min-height: 0;
    height: 100%;
    padding: 0;
  }

  .team {
    grid-template-rows: 34px minmax(18px, auto);
    gap: 2px;
    width: 58px;
    max-width: 58px;
    min-width: 0;
    align-content: center;
  }

  .team-home {
    order: 1;
    justify-self: end;
  }

  .kickoff {
    order: 2;
    z-index: 1;
    isolation: isolate;
    align-self: center;
    transform: translateY(-10px);
    width: 28px;
    height: 28px;
    padding: 3px;
    border-radius: 50%;
    background: transparent;
    color: #050505;
  }

  .match-card:not(.match-card-placeholders) .kickoff:hover,
  .match-card:not(.match-card-placeholders) .kickoff:focus-within {
    transform: translateY(-12px);
  }

  .match-card-placeholders .kickoff:hover,
  .match-card-placeholders .kickoff:focus-within {
    transform: translateY(-2px);
  }

  .kickoff::before {
    border: 2px solid var(--group-color);
    background: #fff;
  }

  .kickoff-score {
    width: 38px;
    height: 38px;
    padding: 5px;
    border-radius: 8px;
  }

  .kickoff-score::before {
    border-color: var(--group-color);
    border-radius: 8px;
    background: var(--group-color);
  }

  .group-code,
  .match-time {
    position: relative;
    z-index: 2;
  }

  .match-card-third-place .kickoff,
  .match-card-third-place .group-code,
  .match-card-third-place .match-time {
    color: #050505;
  }

  .team-away {
    order: 3;
    justify-self: start;
  }

  .meta {
    display: none;
    order: 4;
    grid-column: 1 / -1;
    margin-top: 0;
    max-width: 100%;
    font-size: 10px;
  }

  .venue-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .flag-ring {
    width: 34px;
    height: 34px;
  }

  .flag-ring::before {
    display: none;
  }

  .team-name {
    display: -webkit-box;
    max-width: 78px;
    min-height: 2em;
    max-height: 2em;
    overflow: hidden;
    color: #202027;
    font-size: 10px;
    line-height: 1;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
    justify-self: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .group-code,
  .match-time {
    color: #050505;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .kickoff-score .match-time {
    color: var(--kickoff-text, #fff);
    font-size: 16px;
    line-height: 1;
  }

  .match-time-hour,
  .match-time-minutes {
    display: block;
    min-width: 2.2ch;
    text-align: center;
  }

  .match-time-minutes {
    margin-top: 1px;
    font-size: 0.68em;
    line-height: 0.9;
    transform: none;
  }

  .team-placeholder .team-name,
  .team-seed .team-name {
    min-width: 46px;
    min-height: 46px;
    max-width: 100%;
    padding: 5px 7px;
    border-radius: 12px;
    font-size: 14px;
  }

  .source-date,
  .source-title {
    color: #202027;
    font-size: 0.78em;
    line-height: 0.95;
  }

  .match-card-placeholders .team-placeholder .team-name {
    border-color: #777;
    background: #777;
    color: #fff;
  }

  .match-card-placeholders .source-date,
  .match-card-placeholders .source-title {
    color: #fff;
  }

  .team-placeholder .team-name {
    border: 1px solid #050505;
  }

  .team-source-date-only .team-name {
    min-width: 46px;
  }

  .team-seed .team-name {
    width: fit-content;
    margin-inline: auto;
  }

  .team-placeholder .team-name {
    width: fit-content;
    margin-inline: auto;
  }
}

@media (max-width: 1439px) {
  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 24px 12px 22px;
    overflow: visible;
  }

  .title-zone {
    min-width: 0;
    padding-top: 14px;
    padding-right: 0;
  }

  .language-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    justify-self: end;
    align-self: start;
  }

  .eyebrow {
    padding-right: 112px;
    font-size: 12px;
  }

  h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(26px, 9.1vw, 38px);
    line-height: 0.95;
    transform: scaleX(0.76);
    transform-origin: left center;
  }

  .timezone-control {
    font-size: clamp(26px, 9.1vw, 38px);
    right: 0.34em;
  }

  .timezone-label {
    min-height: 18px;
    font-size: 11px;
  }

  .calendar-export {
    top: 12px;
    right: 152px;
  }

  .team-filter {
    grid-column: 1 / -1;
    --filter-dot-size: 34px;
    --team-flag-size: 34px;
    --team-filter-label-size: 24px;
    --team-filter-item-gap: clamp(18px, 3.8vw, 34px);
    --team-filter-center-gap: max(
      calc(var(--team-filter-item-gap) + 28px),
      clamp(58px, 9vw, 96px)
    );
    display: grid;
    grid-template-columns: 34px 34px minmax(132px, 170px) minmax(132px, 170px);
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .team-filter-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    align-items: start;
    gap: 8px var(--team-filter-center-gap);
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    margin-top: 10px;
    transform-origin: left top;
    will-change: zoom;
    zoom: var(--team-filter-scale, 1);
  }

  .venue-filter-wrap {
    width: 100%;
    min-width: 0;
  }

  .venue-filter {
    min-width: 0;
  }

  .team-filter-group {
    display: grid;
    grid-template-columns: var(--team-filter-label-size) repeat(4, var(--team-flag-size));
    width: max-content;
    min-width: 0;
    align-items: center;
    gap: var(--team-filter-item-gap);
    padding: 0;
  }

  .team-filter-group:nth-child(even) {
    grid-template-columns: repeat(4, var(--team-flag-size)) var(--team-filter-label-size);
  }

  .team-filter-group:nth-child(even) .team-filter-group-label {
    order: 2;
  }

  .team-filter-group-label,
  .group-filter-button {
    width: var(--team-filter-label-size);
    height: var(--team-filter-label-size);
    min-height: var(--team-filter-label-size);
    font-size: 13px;
  }

  .schedule {
    gap: 34px;
  }

  .day:not(.day-empty):not(.day-first-visible) {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .matches {
    gap: 24px;
  }

  .match-card {
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  .teams {
    grid-template-columns: minmax(76px, 1fr) 82px minmax(76px, 1fr);
    align-items: center;
    min-height: 96px;
    gap: 14px;
  }

  .team {
    position: relative;
    display: grid;
    place-items: center;
    height: 54px;
    align-content: center;
    gap: 0;
    transform: none;
  }

  .team-name {
    position: absolute;
    top: 58px;
    left: 50%;
    width: min(128px, 31vw);
    transform: translateX(-50%);
    color: var(--ink);
    font-size: clamp(14px, 4.7vw, 23px);
    line-height: 0.86;
  }

  .team-placeholder .team-name {
    max-width: 120px;
    min-width: 96px;
    min-height: 64px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .team-seed .team-name {
    min-width: 70px;
    min-height: 64px;
    padding: 10px 12px;
    font-size: 28px;
  }

  .flag-ring {
    width: 54px;
    height: 54px;
  }

  .kickoff {
    width: 54px;
    height: 54px;
    padding: 5px;
    border-radius: 50%;
    background: transparent;
    color: #050505;
  }

  .kickoff::before {
    border: 2px solid var(--group-color);
    background: #fff;
  }

  .kickoff-score {
    width: 56px;
    height: 56px;
    padding: 6px;
    border-radius: 8px;
  }

  .kickoff-score::before {
    border-color: var(--group-color);
    border-radius: 8px;
    background: var(--group-color);
  }

  .group-code,
  .match-time {
    color: #050505;
  }

  .match-card-placeholders .kickoff::before {
    border: 2px solid #777;
    background: #fff;
  }

  .match-card-placeholders .group-code,
  .match-card-placeholders .match-time {
    color: #050505;
  }

  .match-card-placeholders .teams {
    grid-template-columns: minmax(74px, 1fr) 54px minmax(74px, 1fr);
    min-height: 78px;
    padding: 0;
    align-items: center;
    gap: 10px;
  }

  .match-card-placeholders .team {
    position: static;
    width: auto;
    height: auto;
    min-height: 54px;
    align-self: center;
    justify-self: center;
  }

  .match-card-placeholders .team-name {
    position: static;
    width: auto;
    min-width: 54px;
    min-height: 54px;
    max-width: 118px;
    padding: 8px 10px;
    transform: none;
    font-size: 18px;
    line-height: 1;
  }

  .match-card-placeholders .team-placeholder .team-name {
    min-width: 76px;
    min-height: 54px;
    font-size: 13px;
    line-height: 1.05;
  }

  .match-card-placeholders .kickoff {
    align-self: center;
    justify-self: center;
  }

  .match-host,
  .match-tooltip {
    display: none !important;
  }

  .group-code {
    font-size: 20px;
  }

  .match-time {
    font-size: 20px;
  }

  .meta {
    display: none;
    gap: 4px;
    font-size: 13px;
    width: fit-content;
  }

  .host {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 374px) {
  .topbar-inner {
    padding-inline: 10px;
  }

  .language-toggle {
    right: 10px;
  }

  .language-select {
    min-width: 116px;
    padding-inline: 11px 28px;
    font-size: 11px;
  }

  h1,
  .timezone-control {
    font-size: clamp(25px, 8.9vw, 34px);
  }

  h1 {
    transform: scaleX(0.74);
  }

  .calendar-export {
    right: 138px;
  }

  .team-filter {
    --filter-dot-size: 30px;
    --team-flag-size: 25px;
    --team-filter-label-size: 20px;
    --team-filter-item-gap: 7px;
    --team-filter-center-gap: max(
      calc(var(--team-filter-item-gap) + 18px),
      36px
    );
    grid-template-columns: 30px 30px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  .daypart-filter {
    width: 30px;
    height: 30px;
  }

  .venue-filter-wrap {
    width: 100%;
    min-width: 0;
  }

  .venue-filter {
    min-width: 0;
    min-height: 30px;
    padding-inline: 9px 24px;
    font-size: 11px;
  }

  .team-filter-list {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 8px var(--team-filter-center-gap);
  }

  .team-filter-group {
    gap: var(--team-filter-item-gap);
  }

  .team-filter-group-label,
  .group-filter-button {
    width: var(--team-filter-label-size);
    height: var(--team-filter-label-size);
    min-height: var(--team-filter-label-size);
    font-size: 12px;
  }

  .team-filter-button {
    width: var(--team-flag-size);
    height: var(--team-flag-size);
  }
}

/* Final outline pass for filter/group chips and playoff placeholders. */
.team-filter-group-label,
.group-filter-button {
  box-sizing: border-box;
  border: 2px solid var(--filter-group-color);
  background: var(--page);
  color: var(--ink);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.group-filter-button.is-active {
  border-color: var(--filter-group-color);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--page), 0 0 0 5px #0b70d8;
}

.group-table-heading {
  box-sizing: border-box;
  border: 2px solid var(--group-color);
  background: var(--page);
  color: var(--group-color);
  box-shadow: none;
}

.group-table-heading.is-filter-active {
  border-color: var(--group-color);
  box-shadow: 0 0 0 1px var(--page), 0 0 0 5px #0b70d8;
}

body.is-night-theme .team-filter-group-label,
body.is-night-theme .group-filter-button {
  color: var(--ink);
}

body.is-night-theme .team-filter-group-label,
body.is-night-theme .group-filter-button,
body.is-night-theme .group-table-heading {
  background: var(--page);
  box-shadow: none;
}

body.is-night-theme .group-filter-button.is-active,
body.is-night-theme .group-table-heading.is-filter-active {
  box-shadow: 0 0 0 1px var(--page), 0 0 0 5px #0b70d8;
}

.match-card-placeholders .team-placeholder .team-name,
.match-card-placeholders .team-seed .team-name,
.match-card-placeholders .team-seed[style*="--seed-color: #"] .team-name,
.match-card-placeholders .team-third-seed .team-name,
.match-card-placeholders .team-third-seed[style*="--seed-color: #"] .team-name {
  box-sizing: border-box;
  border: 2px solid var(--seed-color, #777);
  background: var(--page);
  color: var(--ink);
}

.match-card-placeholders .team-placeholder .team-name,
.match-card-placeholders .team-third-seed .team-name,
.match-card-placeholders .team-third-seed[style*="--seed-color: #"] .team-name {
  border-color: #777;
}

.match-card-placeholders .source-date,
.match-card-placeholders .source-title,
.match-card-placeholders.match-card-third-place .source-date,
.match-card-placeholders.match-card-third-place .source-title {
  color: inherit;
}

@media (min-width: 768px) and (max-width: 1439px) {
  .team-filter {
    --team-flag-size: var(--filter-dot-size);
  }

  .team-filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
    zoom: 1;
  }

  .team-filter-group {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 3px;
    padding: 1px 5px 1px 1px;
  }

  .team-filter-group:nth-child(even) {
    grid-template-columns: none;
  }

  .team-filter-group:nth-child(even) .team-filter-group-label {
    order: 0;
  }

  .team-filter-group-label,
  .group-filter-button {
    width: 17px;
    height: 17px;
    min-height: 17px;
    font-size: 9px;
  }
}

@media (min-width: 1440px) {
  .schedule {
    overflow: visible;
  }

  .day {
    position: relative;
  }

  .day:has(.kickoff:hover),
  .day:has(.kickoff:focus-within) {
    z-index: 500;
  }

  .match-tooltip {
    z-index: 99999;
    max-width: min(300px, calc(100vw - 24px));
    overflow-wrap: anywhere;
  }
}
