/* ── World Cup 2026 page ── */

:root {
  --wc-host-color:   #e8903a;
  --wc-host-bg:      rgba(232,144,58,0.12);
  --wc-qual-color:   #2aaa8e;
  --wc-qual-bg:      rgba(42,170,142,0.11);
  --wc-blue:         #4a7fe8;
  --wc-blue-bg:      rgba(74,127,232,0.10);
}

/* ── Left panel body: flex column so attribution sticks to bottom ── */
[data-panel="left"] [data-panel-body] { display: flex; flex-direction: column; }
[data-panel="left"] .wc-attribution   { margin-top: auto; }

/* ── Map edge fades ── */
.wc-fade { position: absolute; pointer-events: none; z-index: 5; }
.wc-fade-top    { top: 0; left: 0; right: 0; height: 52px; background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%); }
.wc-fade-bottom { bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, var(--bg) 0%, transparent 100%); }

/* ── Stadium marker dot (MapLibre DOM marker) ── */
.wc-stad-dot-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wc-host-color);
  border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s;
}
.wc-stad-dot-marker:hover { transform: scale(1.5); }

/* ── Stadium list item (right panel) ── */
.wc-stad-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.13s;
}
.wc-stad-list-item:hover { background: var(--bg-warm); }
.wc-stad-list-flag { flex-shrink: 0; display: flex; align-items: center; }
.wc-stad-list-info { flex: 1; min-width: 0; }
.wc-stad-list-name { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.wc-stad-list-city { font-size: 11px; color: var(--ink-soft); margin-top: 1px; }

/* ════════════════════════════════════════════
   LEFT SIDEBAR
════════════════════════════════════════════ */
.wc-sidebar {
  width: var(--wc-sidebar-w);
  flex-shrink: 0;
  background: var(--wc-sidebar-bg);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  z-index: 10;
}
.wc-sidebar::-webkit-scrollbar { display: none; }

/* brand strip */
.wc-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  background: var(--paper);
  border-bottom: 3px solid var(--accent);
  flex-shrink: 0;
}
.wc-sidebar-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.wc-sidebar-brand-title {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}

/* nav list */
.wc-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--rule);
  gap: 2px;
}
.wc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
  user-select: none;
  letter-spacing: -0.01em;
}
.wc-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-faint);
  transition: color 0.13s;
}
.wc-nav-item:hover {
  background: var(--bg-warm);
  color: var(--ink);
}
.wc-nav-item:hover svg { color: var(--ink-soft); }
.wc-nav-item--active {
  background: rgba(74,127,232,0.09);
  color: #4070d8;
  font-weight: 700;
}
html[data-theme="dark"] .wc-nav-item--active { color: #7eb4f8; background: rgba(74,127,232,0.16); }
.wc-nav-item--active svg { color: #4070d8; }
html[data-theme="dark"] .wc-nav-item--active svg { color: #7eb4f8; }
.wc-nav-item--dim {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}
.wc-soon {
  margin-left: auto;
  font-size: 8.5px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 400;
}

/* sidebar sections (Filters, Quick Links) */
.wc-sidebar-section {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--rule);
}
.wc-sidebar-section:last-of-type { border-bottom: none; }
.wc-sidebar-section-label {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

/* filter dropdowns */
.wc-select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 30px 9px 11px;
  appearance: none;
  cursor: pointer;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 5L10 1' stroke='%237ca5c0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s;
}
.wc-select:hover  { border-color: var(--ink-faint); }
.wc-select:focus  { outline: none; border-color: var(--wc-blue); box-shadow: 0 0 0 3px rgba(74,127,232,0.1); }

/* quick links */
.wc-quicklink {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 2px;
  transition: color 0.13s;
  border-radius: 5px;
}
.wc-quicklink:hover { color: var(--ink); }
.wc-quicklink svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--ink-faint);
}
.wc-quicklink-ext {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.45;
  margin-left: auto;
}
.wc-quicklink--dim {
  opacity: 0.45;
  pointer-events: none;
}

/* attribution */
.wc-attribution {
  margin-top: auto;
  padding: 12px 16px;
  font-size: 10px;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
}
.wc-attribution a { color: var(--wc-qual-color); text-decoration: none; }
.wc-attribution a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════ */
.wc-main {
  flex: 1;
  min-width: 0;
  padding: 0 24px 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* section header */
.wc-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.wc-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.05;
}
.wc-subtitle {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.wc-edition-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
}
.wc-edition-pill svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }

/* stats bar */
.wc-stats-bar {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.wc-stat {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-right: 1px solid var(--rule);
  gap: 6px;
}
.wc-stat:last-child { border-right: none; }
.wc-stat-icon {
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.wc-stat-n {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.wc-stat-l {
  font-size: 11px;
  color: var(--ink-faint);
}

/* map legend overlay — sits inside .wc-map-wrap top-right */
.wc-map-meta {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wc-map-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 4px 10px;
  flex-wrap: wrap;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.wc-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wc-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wc-legend-dot--qualified { background: var(--wc-qual-color); }
.wc-legend-dot--host      { background: var(--wc-host-color); }
.wc-legend-dot--none      { background: #c8d8e4; }

.wc-data-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-faint);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 3px 8px;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.wc-data-badge--live { color: var(--wc-qual-color); border-color: var(--wc-qual-bg); }
.wc-data-badge-dot   { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* title + stats overlaid on map */
.wc-map-title-overlay {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.wc-map-title-overlay .wc-title {
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--ink);
  text-shadow: none;
}
.wc-map-title-overlay .wc-edition-pill {
  pointer-events: auto;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border-color: var(--rule);
  color: var(--ink-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-self: flex-start;
}
.wc-map-title-overlay .wc-edition-pill svg { width: 13px; height: 13px; color: var(--accent); }

.wc-map-stats-overlay .wc-mstat { color: var(--ink-soft); text-shadow: none; }
.wc-map-stats-overlay .wc-mstat b { color: var(--ink); }
.wc-map-stats-overlay .wc-mstat-sep { color: var(--rule); }

.wc-map-stats-overlay {
  position: absolute;
  bottom: 14px;
  left: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}
.wc-mstat {
  font-size: 11.5px;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.wc-mstat b { font-weight: 800; color: #fff; }
.wc-mstat-sep { color: rgba(255,255,255,0.35); font-size: 10px; }

/* shared cursor for both maps */
.wc-map-wrap > div,
.wc-stadium-map-wrap > div { cursor: grab; }
.wc-map-wrap > div:active,
.wc-stadium-map-wrap > div:active { cursor: grabbing; }

/* map — fills the viewport below the header */
.wc-map-wrap {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  height: calc(100vh - 72px);
  margin: 0 -24px 0;
  flex-shrink: 0;
}
.wc-map-wrap > div > svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wc-map-wrap svg path {
  fill: var(--map-base, #8ec4d8);
  stroke: var(--paper);
  stroke-width: 0.5;
  transition: fill 0.22s, opacity 0.3s;
  cursor: default;
  opacity: 0.55;
}
html[data-theme="dark"] .wc-map-wrap svg path { opacity: 0.4; }
.wc-map-wrap svg path.wc-qualified,
.wc-map-wrap svg g.wc-qualified path {
  fill: var(--wc-qual-color);
  opacity: 1;
  cursor: pointer;
}
.wc-map-wrap svg path.wc-host,
.wc-map-wrap svg g.wc-host path {
  fill: var(--wc-host-color);
  opacity: 1;
  cursor: pointer;
}
.wc-map-wrap svg path.wc-qualified:hover,
.wc-map-wrap svg g.wc-qualified:hover path { fill: #2da88d; }
.wc-map-wrap svg path.wc-host:hover,
.wc-map-wrap svg g.wc-host:hover path      { fill: #e09318; }
.wc-map-wrap svg path.wc-country-selected,
.wc-map-wrap svg g.wc-country-selected path {
  fill: var(--accent);
  opacity: 1;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent));
}

.wc-map-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wc-map-btn {
  width: 28px;
  height: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.wc-map-btn:hover { background: var(--bg-warm); color: var(--ink); }
.wc-map-btn svg   { width: 13px; height: 13px; }

/* tooltip */
.wc-tooltip {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.16), 0 2px 8px -2px rgba(0,0,0,0.08);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.14s, transform 0.14s;
  min-width: 172px;
  z-index: 20;
}
.wc-tooltip.visible  { opacity: 1; transform: translateY(0); }
.wc-tooltip-flag     { display: block; margin-bottom: 6px; line-height: 1; }
.wc-tooltip-flag .hej-flag { border-radius: 3px; }
.wc-tooltip-name     { font-size: 13.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.wc-tooltip-meta     { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.55; }
.wc-tooltip-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 7px;
}
.wc-tooltip-badge--host  { background: var(--wc-host-bg);  color: var(--wc-host-color); }
.wc-tooltip-badge--group { background: var(--wc-qual-bg);  color: var(--wc-qual-color); }

/* bottom row */
.wc-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}
.wc-bottom-row--single { grid-template-columns: 1fr; }

/* shared card */
.wc-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.wc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 11px;
  border-bottom: 1px solid var(--rule);
}
.wc-card-head h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.wc-card-action {
  font-size: 11.5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.wc-card-action:hover { opacity: 0.75; }
.wc-card-action--dim {
  opacity: 0.35;
  pointer-events: none;
}

/* groups map */
.wc-groups-map-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--rule);
  background: var(--paper);
}
.wc-groups-map-wrap {
  position: relative;
  height: 320px;
  background: var(--bg);
  overflow: hidden;
  cursor: grab;
}
.wc-groups-map-wrap > div { position: absolute; inset: 0; }
.wc-groups-map-wrap svg path { opacity: 0.55; }
.wc-groups-map-wrap svg path.wc-host,
.wc-groups-map-wrap svg g.wc-host path { opacity: 0.9; }
/* group-colored paths override via inline style from JS */
.wc-groups-map-wrap svg [data-grp-active] {
  filter: brightness(1.25) drop-shadow(0 0 4px currentColor);
}
.wc-grp-map-title {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  pointer-events: none;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.wc-groups-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.wc-grp-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  cursor: pointer;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.13s;
}
.wc-grp-legend-item:hover { background: var(--bg-warm); }
.wc-grp-legend-item:nth-child(4n) { border-right: none; }
.wc-grp-legend-item:nth-last-child(-n+4) { border-bottom: none; }
.wc-grp-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wc-grp-legend-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 28px;
}
.wc-grp-legend-flags {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}
.wc-grp-legend-flags .wc-flag { width: 16px; height: 12px; border-radius: 1px; }
/* flag in group row */
.wc-group-flags .wc-flag      { width: 28px; height: 21px; border-radius: 2px; }

/* stadiums */
.wc-stadiums-body {
  padding: 12px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.wc-stadium-card {
  flex-shrink: 0;
  width: 155px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.wc-stadium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
}
.wc-stadium-img-wrap {
  position: relative;
  width: 100%;
  height: 95px;
  background: linear-gradient(145deg, #112d45 0%, #1c4b6e 100%);
  overflow: hidden;
}
.wc-stadium-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wc-stadium-img[src=""] { display: none; }
.wc-stadium-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-size: 28px;
}
.wc-stadium-final-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: #f5c842;
  color: #0d1b2a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
}
.wc-stadium-info { padding: 7px 9px 9px; }
.wc-stadium-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 2px;
}
.wc-stadium-city {
  font-size: 10.5px;
  color: var(--ink-soft);
}
.wc-stadium-cap {
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* news strip */
.wc-news-strip {
  background: var(--wc-sidebar-bg);
  border-radius: 14px;
  margin: 14px 0 24px;
  padding: 18px 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.wc-news-label {
  flex-shrink: 0;
  width: 120px;
}
.wc-news-label-title {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.wc-news-label-link {
  font-size: 12px;
  color: var(--wc-qual-color);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wc-news-label-link:hover { opacity: 0.8; }
.wc-news-items {
  display: flex;
  gap: 14px;
  flex: 1;
  overflow: hidden;
}
.wc-news-item {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.wc-news-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1c3d58, #0f2640);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.wc-news-text { flex: 1; min-width: 0; }
.wc-news-headline {
  font-size: 12.5px;
  font-weight: 700;
  color: #d4e8f5;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wc-news-age {
  font-size: 10.5px;
  color: var(--wc-sidebar-soft);
}

/* ════════════════════════════════════════════
   RIGHT ASIDE
════════════════════════════════════════════ */
.wc-aside {
  width: var(--wc-aside-w);
  flex-shrink: 0;
  background: var(--bg);
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.wc-aside-block {
  border-bottom: 1px solid var(--rule);
  padding: 16px;
}
.wc-aside-block:last-child { border-bottom: none; }
.wc-aside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.wc-aside-header h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* date tabs */
.wc-date-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
  align-items: center;
}
.wc-date-tabs::-webkit-scrollbar { display: none; }
.wc-date-tab {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.wc-date-tab:hover { border-color: var(--wc-blue); color: var(--wc-blue); }
.wc-date-tab--active {
  background: var(--wc-blue);
  color: #fff;
  border-color: var(--wc-blue);
}

/* matches coming-soon placeholder */
.wc-matches-soon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  color: var(--ink-soft);
  font-size: 13px;
}
.wc-matches-soon svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.6; }

/* match rows */
.wc-match { margin-bottom: 0; }
.wc-match-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.wc-match-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wc-qual-color);
  flex-shrink: 0;
}
.wc-match-row {
  display: flex;
  align-items: center;
  padding: 6px 0 10px;
  gap: 6px;
  border-bottom: 1px solid var(--rule);
}
.wc-match:last-child .wc-match-row { border-bottom: none; }
.wc-match-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.wc-match-team--away { flex-direction: row-reverse; text-align: right; }
.wc-match-team-flag  { flex-shrink: 0; line-height: 1; }
.wc-match-team-name  {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-match-score {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  flex-shrink: 0;
  width: 26px;
  text-align: center;
}
.wc-schedule-link {
  display: block;
  font-size: 12.5px;
  color: var(--wc-blue);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 12px 0 2px;
  transition: opacity 0.15s;
}
.wc-schedule-link:hover { opacity: 0.75; }

/* aside header with icon */
.wc-aside-header-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
}
.wc-aside-header-label h3 { margin: 0; }

/* official song video embed */
.wc-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
.wc-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* top teams */
.wc-team-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--rule);
  border-radius: 5px;
  transition: background 0.12s;
  width: 100%;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.wc-team-row:hover { background: var(--bg-warm); }
.wc-team-row:last-child { border-bottom: none; }
.wc-ranking-source {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--ink-faint);
  padding: 6px 4px 2px;
  opacity: 0.75;
}
.wc-ranking-source a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.wc-ranking-source a:hover { color: var(--ink-soft); }
.wc-team-rank {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-faint);
  width: 16px;
  flex-shrink: 0;
  text-align: right;
}
.wc-team-flag { flex-shrink: 0; display: flex; align-items: center; }
.wc-team-name {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-team-ranking {
  font-size: 10.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

/* flag images */
.wc-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  vertical-align: middle;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.wc-flag-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 15px;
  background: var(--rule);
  border-radius: 2px;
  font-size: 9px;
  color: var(--ink-faint);
}
/* larger flag in match rows */
.wc-match-team-flag .wc-flag { width: 24px; height: 18px; }
/* flag in team list */
.wc-team-flag .wc-flag        { width: 22px; height: 16px; }

/* dim utility */
.wc-dim {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

/* ════════════════════════════════════════════
   STADIUMS SECTION
════════════════════════════════════════════ */
.wc-stadium-map-wrap {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  height: 420px;
  margin: 0 -24px 16px;
  flex-shrink: 0;
}
.wc-stadium-map-wrap > div > svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wc-stadium-map-wrap svg path {
  fill: var(--map-base, #8ec4d8);
  stroke: var(--paper);
  stroke-width: 0.5;
  transition: fill 0.22s;
  opacity: 0.55;
}
html[data-theme="dark"] .wc-stadium-map-wrap svg path { opacity: 0.4; }
.wc-stadium-map-wrap svg path.wc-host,
.wc-stadium-map-wrap svg g.wc-host path { fill: var(--wc-host-color); opacity: 1; }

/* stadium dot layer */
.wc-stad-dot { cursor: pointer; }
.wc-stad-circle {
  transition: r 0.15s, fill 0.15s;
}
.wc-stad-dot:hover .wc-stad-circle { opacity: 0.85; }
.wc-stad-ring {
  pointer-events: none;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.wc-stad-dot--active .wc-stad-ring {
  opacity: 1;
  animation: wc-stad-pulse 1.8s ease-out infinite;
}
@keyframes wc-stad-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* selected stadium detail panel */
.wc-stadium-detail-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  animation: wc-fadein 0.2s ease;
}
@keyframes wc-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.wc-stad-detail-img-wrap {
  width: 110px;
  height: 74px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.wc-stad-detail-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-stad-detail-info { flex: 1; min-width: 0; }
.wc-stad-detail-name {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.wc-stad-detail-city {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wc-stad-detail-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wc-stad-detail-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-warm);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.wc-stad-detail-pill--final {
  background: var(--wc-host-bg);
  color: var(--wc-host-color);
  border-color: transparent;
}
.wc-stadiums-reel-card { margin-bottom: 20px; }

/* ════════════════════════════════════════════
   GROUPS SECTION + COUNTRY PANEL
════════════════════════════════════════════ */
.wc-groups-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
  transition: grid-template-columns 0.25s ease;
}
.wc-groups-section--with-panel {
  grid-template-columns: 1fr 1fr;
}

.wc-country-panel {
  position: absolute;
  bottom: 56px;
  left: 16px;
  width: 272px;
  max-height: calc(100% - 80px);
  z-index: 20;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  animation: wc-fadein 0.22s ease;
}
.wc-cp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.wc-cp-flag {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.wc-cp-flag .wc-flag { width: 48px; height: 34px; border-radius: 4px; }
.wc-cp-name {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.wc-cp-meta {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.wc-cp-close {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.wc-cp-close:hover { background: var(--bg-warm); color: var(--ink); }

.wc-cp-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  overscroll-behavior: contain;
}
.wc-cp-section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.wc-cp-match {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.wc-cp-match:last-child { border-bottom: none; }
.wc-cp-match-teams {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}
.wc-cp-match-vs { color: var(--ink-faint); font-weight: 400; font-size: 11px; }
.wc-cp-match-date { font-size: 10.5px; color: var(--ink-faint); white-space: nowrap; }
.wc-cp-match-group { font-size: 10px; color: var(--ink-faint); }

.wc-cp-squad-placeholder {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wc-cp-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}
.wc-cp-player-row:last-child { border-bottom: none; }
.wc-cp-player-num {
  width: 20px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.wc-cp-player-name { flex: 1; font-weight: 600; color: var(--ink); }
.wc-cp-player-pos {
  font-size: 10px;
  color: var(--ink-faint);
  background: var(--bg-warm);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.wc-cp-coming-soon {
  font-size: 11.5px;
  color: var(--ink-faint);
  font-style: italic;
  padding: 4px 0;
}

/* ════════════════════════════════════════════
   GOAL PHRASE OVERLAY
════════════════════════════════════════════ */
#wcGoalOverlay {
  position: absolute;
  bottom: 90px;
  left: 24px;
  z-index: 30;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#wcGoalOverlay.visible { opacity: 1; pointer-events: auto; }

.wc-goal-card {
  position: relative;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--rule) 65%, transparent);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  padding: 18px 22px 16px;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  animation: wc-card-in 0.3s cubic-bezier(0.22,1,0.36,1) backwards;
}
html[data-theme="dark"] .wc-goal-card { box-shadow: 0 8px 40px rgba(0,0,0,0.5); }

.wc-goal-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wc-goal-card-flag .hej-flag,
.wc-goal-card-flag img { width: 36px; height: 27px; border-radius: 3px; box-shadow: 0 1px 6px rgba(0,0,0,0.18); flex-shrink: 0; }
.wc-goal-card-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.wc-goal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.wc-goal-close:hover { background: var(--paper); color: var(--ink); }

.wc-goal-phrase {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  word-break: break-word;
}
.wc-goal-char {
  display: inline-block;
  animation: wc-char-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes wc-char-up {
  from { opacity: 0; transform: translateY(0.28em); }
  to   { opacity: 1; transform: none; }
}
.wc-goal-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-goal-note {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ── Goal speak button (adapted from app.html speak-btn) ── */
.wc-goal-speak-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  animation: wc-fadein 0.35s ease 0.35s backwards;
}
.wc-goal-speak-btn:active .wc-goal-speak-disc { transform: scale(0.93); }

.wc-goal-speak-disc {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.22s, transform 0.12s;
}
.wc-goal-speak-disc svg { width: 20px; height: 20px; position: relative; z-index: 1; transition: opacity 0.2s; }

.wc-goal-speak-btn:hover .wc-goal-speak-disc { background: var(--accent); }

/* ring pulse while speaking */
.wc-goal-speak-disc::before,
.wc-goal-speak-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
}
.wc-goal-speak-btn.speaking .wc-goal-speak-disc { background: var(--accent); }
.wc-goal-speak-btn.speaking .wc-goal-speak-disc::before { animation: wc-goal-ring 1.4s ease-out infinite; }
.wc-goal-speak-btn.speaking .wc-goal-speak-disc::after  { animation: wc-goal-ring 1.4s ease-out 0.5s infinite; }
@keyframes wc-goal-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.75); opacity: 0; }
}

.wc-goal-speak-waves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  z-index: 1;
}
.wc-goal-speak-btn.speaking .wc-goal-speak-disc svg { opacity: 0; }
.wc-goal-speak-btn.speaking .wc-goal-speak-waves { display: flex; }
.wc-goal-speak-waves span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--paper);
  animation: wc-goal-wave 0.9s ease-in-out infinite;
}
.wc-goal-speak-waves span:nth-child(1) { height: 9px;  animation-delay: 0s; }
.wc-goal-speak-waves span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.wc-goal-speak-waves span:nth-child(3) { height: 9px;  animation-delay: 0.3s; }
@keyframes wc-goal-wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

.wc-goal-speak-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  border-radius: 20px;
  padding: 0 14px;
  height: 32px;
  display: flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.wc-goal-speak-btn:hover .wc-goal-speak-hint  { color: var(--accent); border-color: var(--accent); }
.wc-goal-speak-btn.speaking .wc-goal-speak-hint { color: var(--accent); border-color: var(--accent); }

/* ════════════════════════════════════════════
   GROUPS PANEL (RIGHT PANEL)
════════════════════════════════════════════ */
.wc-groups-panel-header { padding-bottom: 12px; }

.wc-group-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.wc-group-search-icon {
  position: absolute;
  left: 10px;
  width: 13px;
  height: 13px;
  color: var(--ink-faint);
  pointer-events: none;
  flex-shrink: 0;
}
.wc-group-search-input {
  width: 100%;
  background: var(--bg-warm);
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px 8px 30px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wc-group-search-input:focus {
  outline: none;
  border-color: var(--wc-blue);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(74,127,232,0.1);
}
.wc-group-search-input::-webkit-search-cancel-button { display: none; }

.wc-groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 0 12px 16px;
  overflow-y: auto;
}

/* Card: letter accent column on the left, 2×2 team grid on the right */
.wc-group-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}
.wc-group-card:hover {
  border-color: var(--wc-blue);
  box-shadow: 0 2px 10px rgba(74,127,232,0.12);
}
.wc-group-card--active {
  border-color: var(--wc-blue);
  box-shadow: 0 2px 12px rgba(74,127,232,0.16);
}
.wc-group-card--dim {
  opacity: 0.25;
  pointer-events: none;
}

/* Left accent: group letter */
.wc-group-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex-shrink: 0;
  background: var(--bg-warm);
  border-right: 1px solid var(--rule);
  gap: 1px;
  padding: 0;
  border-bottom: none;
  transition: background 0.15s;
}
.wc-group-card--active .wc-group-card-head {
  background: rgba(74,127,232,0.1);
}
html[data-theme="dark"] .wc-group-card--active .wc-group-card-head {
  background: rgba(74,127,232,0.16);
}
.wc-group-card-letter {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.wc-group-card--active .wc-group-card-letter { color: var(--wc-blue); }
html[data-theme="dark"] .wc-group-card--active .wc-group-card-letter { color: #7eb4f8; }
.wc-group-card-label {
  font-size: 7.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* Teams: vertical list */
.wc-group-card-teams {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wc-group-team-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.1s;
  min-width: 0;
}
.wc-group-team-row:last-child { border-bottom: none; }

.wc-group-card:hover .wc-group-team-row { background: rgba(74,127,232,0.03); }
.wc-group-team-row--match               { background: rgba(74,127,232,0.07); }
.wc-group-card--active .wc-group-team-row--match { background: rgba(74,127,232,0.1); }

.wc-group-team-flag { flex-shrink: 0; display: flex; align-items: center; line-height: 1; }
.wc-group-team-flag .wc-flag { width: 18px; height: 13px; border-radius: 2px; }
.wc-group-team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.wc-group-team-name mark {
  background: rgba(255,200,50,0.45);
  border-radius: 2px;
  padding: 0 1px;
  color: inherit;
}
html[data-theme="dark"] .wc-group-team-name mark { background: rgba(255,200,50,0.25); }

/* ════════════════════════════════════════════
   WINNERS PANEL (RIGHT PANEL)
════════════════════════════════════════════ */
.wc-winners-header { padding-bottom: 4px; }

.wc-winners-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.wc-winner-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.13s;
}
.wc-winner-row:last-child { border-bottom: none; }
.wc-winner-row:hover { background: var(--bg-warm); }
.wc-winner-row--active {
  background: rgba(74,127,232,0.06);
}
html[data-theme="dark"] .wc-winner-row--active { background: rgba(74,127,232,0.12); }
.wc-winner-row--active:hover { background: rgba(74,127,232,0.1); }

.wc-winner-year {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
  border-right: 1px solid var(--rule);
  padding: 12px 0;
  background: var(--bg-warm);
  transition: background 0.13s, color 0.13s;
}
.wc-winner-row--active .wc-winner-year {
  background: rgba(74,127,232,0.1);
  color: var(--wc-blue);
}
html[data-theme="dark"] .wc-winner-row--active .wc-winner-year {
  background: rgba(74,127,232,0.18);
  color: #7eb4f8;
}

.wc-winner-body {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wc-winner-host {
  display: flex;
  align-items: center;
  gap: 4px;
}
.wc-winner-host .wc-flag { width: 16px; height: 12px; border-radius: 1px; }
.wc-winner-teams {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wc-winner-first,
.wc-winner-second {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.wc-winner-medal {
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}
.wc-winner-medal--silver { opacity: 0.7; }
.wc-winner-first .wc-flag  { width: 18px; height: 13px; border-radius: 2px; }
.wc-winner-second .wc-flag { width: 16px; height: 12px; border-radius: 1px; }
.wc-winner-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  letter-spacing: -0.01em;
}
.wc-winner-count {
  font-size: 9.5px;
  font-weight: 800;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--wc-qual-color);
  background: var(--wc-qual-bg);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.wc-winner-score {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  margin-left: 0;
  padding-top: 2px;
}

/* ════════════════════════════════════════════
   WINNER CARD OVERLAY
════════════════════════════════════════════ */
#wcWinnerOverlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 40px;
  z-index: 30;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#wcWinnerOverlay.visible { opacity: 1; pointer-events: auto; }

.wc-winner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.wc-winner-card-year {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(52px, 8vw, 90px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 2px 20px color-mix(in srgb, var(--paper) 55%, transparent),
               0 0  40px color-mix(in srgb, var(--paper) 35%, transparent);
}
.wc-winner-card-year .wc-goal-char {
  display: inline-block;
  animation: wc-char-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.wc-winner-card-flag {
  animation: wc-fadein 0.35s ease 0.15s backwards;
  line-height: 1;
}
.wc-winner-card-flag .wc-flag,
.wc-winner-card-flag .hej-flag {
  width: 54px;
  height: 38px;
  border-radius: 5px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.wc-winner-card-name {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  animation: wc-fadein 0.35s ease 0.22s backwards;
}

.wc-winner-card-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--rule) 45%, transparent);
  animation: wc-fadein 0.35s ease 0.30s backwards;
}

.wc-winner-card-runner {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  background: color-mix(in srgb, var(--paper) 52%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--rule) 40%, transparent);
  animation: wc-fadein 0.35s ease 0.38s backwards;
}
.wc-winner-card-runner .wc-flag,
.wc-winner-card-runner .hej-flag { width: 18px; height: 13px; border-radius: 2px; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1140px) {
  :root { --wc-aside-w: 270px; }
}
@media (max-width: 960px) {
  .wc-aside { display: none; }
  .wc-bottom-row { grid-template-columns: 1fr; }
  .wc-groups-section--with-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wc-sidebar { display: none; }
  .wc-main { padding: 0 14px 0; }
  .wc-map-wrap { height: calc(100vh - 56px); margin-left: -14px; margin-right: -14px; }
  .wc-stadium-map-wrap { height: 250px; margin-left: -14px; margin-right: -14px; }
  .wc-news-strip { flex-direction: column; gap: 12px; }
  .wc-news-items { flex-direction: column; }
}

/* ════════════════════════════════════════════
   SCHEDULE SECTION
════════════════════════════════════════════ */

.wc-sched-header { padding-bottom: 0 !important; }

/* Filter tabs */
.wc-sched-filter-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--rule);
}
.wc-sched-tab {
  flex: 1;
  padding: 6px 4px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  font: 600 11px/1.3 'Nunito', system-ui, sans-serif;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: center;
  transition: background 0.13s, border-color 0.13s, color 0.13s;
}
.wc-sched-tab:hover { background: var(--bg-warm); border-color: var(--ink-faint); }
.wc-sched-tab--active {
  background: var(--wc-qual-bg);
  border-color: var(--wc-qual-color);
  color: var(--wc-qual-color);
}
.wc-sched-tab-count {
  display: inline-block;
  background: var(--bg-warm);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 2px;
  color: var(--ink-faint);
}
.wc-sched-tab--active .wc-sched-tab-count {
  background: rgba(42,170,142,0.15);
  color: var(--wc-qual-color);
}

/* Timezone toggle */
.wc-tz-toggle {
  display: flex;
  gap: 4px;
  padding: 0 16px 12px;
}
.wc-tz-btn {
  flex: 1;
  padding: 6px 8px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  font: 600 11px/1.3 'Nunito', system-ui, sans-serif;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: center;
  transition: background 0.13s, border-color 0.13s, color 0.13s;
  white-space: nowrap;
}
.wc-tz-btn:hover { background: var(--bg-warm); border-color: var(--ink-faint); }
.wc-tz-btn--active {
  background: var(--bg-warm);
  border-color: var(--ink);
  color: var(--ink);
}

/* Scrollable list */
.wc-sched-list {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  padding-bottom: 24px;
}

/* Day block */
.wc-sched-day { border-bottom: 1px solid var(--rule); }
.wc-sched-day:last-child { border-bottom: none; }

/* Date header */
.wc-sched-date-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 8px;
  background: var(--bg-warm);
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.wc-sched-date-header--next { background: rgba(42,170,142,0.10); border-bottom-color: var(--wc-qual-color); }
.wc-sched-date-header--final { background: rgba(232,99,74,0.10); border-bottom-color: var(--accent); }
.wc-sched-date-label { font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.wc-sched-match-count { font-size: 10px; color: var(--ink-faint); margin-left: auto; font-weight: 600; }

.wc-sched-next-pill {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--wc-qual-color);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.wc-sched-final-pill {
  font-size: 10px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Match row */
.wc-sched-match {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.1s;
}
.wc-sched-match:last-child { border-bottom: none; }
.wc-sched-match:hover { background: var(--bg-warm); }
.wc-sched-match--ko { background: rgba(42,170,142,0.04); }
.wc-sched-match--ko:hover { background: rgba(42,170,142,0.09); }

/* Time column */
.wc-sched-time {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}
.wc-sched-tz {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wc-qual-color);
  text-transform: uppercase;
}
.wc-sched-utc-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* Teams row */
.wc-sched-teams {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.wc-sched-team {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.wc-sched-team--away { flex-direction: row-reverse; }
.wc-sched-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-sched-vs {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-faint);
  flex-shrink: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.wc-sched-tbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 15px;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 8px;
  font-weight: 800;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Meta row (round badge + city) */
.wc-sched-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.wc-sched-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-warm);
  color: var(--ink-soft);
  flex-shrink: 0;
}
.wc-sched-badge--ko      { background: rgba(42,170,142,0.12); color: var(--wc-qual-color); }
.wc-sched-badge--quarter { background: rgba(74,127,232,0.13); color: var(--wc-blue); }
.wc-sched-badge--semi    { background: rgba(232,144,58,0.14); color: var(--wc-host-color); }
.wc-sched-badge--third   { background: rgba(124,165,192,0.16); color: var(--ink-soft); }
.wc-sched-badge--final   { background: rgba(232,99,74,0.14);  color: var(--accent); }
html[data-theme="dark"] .wc-sched-badge--ko      { background: rgba(44,185,155,0.18); }
html[data-theme="dark"] .wc-sched-badge--quarter { background: rgba(74,127,232,0.20); }
html[data-theme="dark"] .wc-sched-badge--semi    { background: rgba(232,144,58,0.20); }
html[data-theme="dark"] .wc-sched-badge--final   { background: rgba(240,116,96,0.20); }

.wc-sched-city {
  font-size: 10px;
  color: var(--ink-faint);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Selected match (after click) */
.wc-sched-match { cursor: pointer; }
.wc-sched-match--selected {
  background: rgba(42,170,142,0.12) !important;
  border-left: 3px solid var(--wc-qual-color);
  padding-left: 13px;
}

/* ── Country schedule overlay (overview click) ── */
#wcCountrySchedOverlay {
  position: absolute;
  bottom: 90px;
  left: 24px;
  z-index: 30;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
#wcCountrySchedOverlay.visible { opacity: 1; pointer-events: auto; }

.wc-cso-card {
  position: relative;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--rule) 65%, transparent);
  border-top: 3px solid var(--wc-qual-color);
  border-radius: 16px;
  padding: 18px 20px 16px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  animation: wc-card-in 0.3s cubic-bezier(0.22,1,0.36,1) backwards;
}
html[data-theme="dark"] .wc-cso-card { box-shadow: 0 8px 40px rgba(0,0,0,0.5); }

.wc-cso-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wc-cso-flag img,
.wc-cso-flag .hej-flag { width: 40px; height: 30px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); flex-shrink: 0; }
.wc-cso-title { display: flex; flex-direction: column; gap: 3px; }
.wc-cso-name  { font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.wc-cso-group {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--wc-qual-color);
}

/* Nation tabs — shown when one map territory hosts two teams (UK → England/Scotland) */
.wc-cso-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.wc-cso-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--ink); font-family: inherit;
}
.wc-cso-tab .hej-flag { width: 18px; height: auto; border-radius: 3px; }
.wc-cso-tab:hover { border-color: var(--wc-qual-color); }
.wc-cso-tab--active { background: var(--wc-qual-color); border-color: var(--wc-qual-color); color: #fff; }
.wc-cso-tab-grp {
  font-size: 10px; font-weight: 800; opacity: 0.7;
  padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, currentColor 16%, transparent);
}

.wc-cso-matches { display: flex; flex-direction: column; gap: 0; }

.wc-cso-match {
  padding: 11px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.1s;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 6px;
  padding-right: 6px;
}
.wc-cso-match:last-child { border-bottom: none; }
.wc-cso-match:hover { background: color-mix(in srgb, var(--bg-warm) 70%, transparent); }

.wc-cso-match--past { opacity: 0.5; }
.wc-cso-match--past:hover { opacity: 0.75; }

.wc-cso-match-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wc-cso-match-main {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wc-cso-vs {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.wc-cso-opp {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.wc-cso-opp-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-cso-match-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wc-cso-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.wc-cso-utc {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
}
.wc-cso-city {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Tooltip phrase (goals section hover) ── */
.wc-tooltip-phrase {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-top: 3px;
  line-height: 1.2;
}

/* ── Goals panel list ── */
.wc-goals-hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 4px 0 14px;
  line-height: 1.5;
}
.wc-goal-list { display: flex; flex-direction: column; padding-bottom: 16px; }

.wc-goal-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.1s;
}
.wc-goal-row:last-child { border-bottom: none; }
.wc-goal-row:hover { background: var(--bg-warm); }
.wc-goal-row-flag { flex-shrink: 0; }
.wc-goal-row-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.wc-goal-row-country { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-goal-row-lang    { font-size: 10px; font-weight: 600; color: var(--ink-faint); }
.wc-goal-row-phrase  { font-size: 14px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; flex-shrink: 0; }
.wc-goal-row-play {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.wc-goal-row-play:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Group schedule floating map overlay ── */
#wcGroupSchedOverlay {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#wcGroupSchedOverlay.visible { opacity: 1; pointer-events: auto; }

.wc-gso-card {
  position: relative;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--rule) 65%, transparent);
  border-top: 3px solid var(--wc-qual-color);
  border-radius: 16px;
  padding: 18px 20px 16px;
  width: 310px;
  max-height: 65vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  animation: wc-card-in 0.32s cubic-bezier(0.22,1,0.36,1) backwards;
}
html[data-theme="dark"] .wc-gso-card {
  box-shadow: 0 8px 40px rgba(0,0,0,0.50), 0 2px 8px rgba(0,0,0,0.30);
}

.wc-gso-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.wc-gso-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.wc-gso-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wc-gso-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--wc-qual-color);
  text-decoration: none;
  white-space: nowrap;
}
.wc-gso-link:hover { text-decoration: underline; }

.wc-gso-body {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  flex: 1;
  min-height: 0;
}

.wc-gso-matchday { margin-bottom: 10px; }
.wc-gso-matchday:last-child { margin-bottom: 0; }

.wc-gso-md-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 4px 0 7px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3px;
}
.wc-gso-md-date { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-faint); }

.wc-gso-match {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 50%, transparent);
}
.wc-gso-match:last-child { border-bottom: none; }
.wc-gso-match:hover { background: color-mix(in srgb, var(--bg-warm) 80%, transparent); }

.wc-gso-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  min-width: 46px;
  flex-shrink: 0;
  line-height: 1.15;
}
.wc-gso-teams {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.wc-gso-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}
.wc-gso-vs {
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Overview upcoming match cards ── */
.wc-upcoming-match {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.1s;
}
.wc-upcoming-match:last-child { border-bottom: none; }
.wc-upcoming-match:hover { background: var(--bg-warm); }

.wc-upcoming-time {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wc-upcoming-teams {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.wc-upcoming-team {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.wc-upcoming-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-upcoming-vs {
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.wc-upcoming-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 10px;
  color: var(--ink-faint);
  font-weight: 600;
}

.wc-upcoming-empty {
  margin: 0;
  padding: 14px 12px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ── Stadium popup (MapLibre) ── */
.wc-stad-popup .maplibregl-popup-content {
  padding: 10px 13px !important;
  border-radius: 10px !important;
  border: 1px solid var(--accent) !important;
}
.wc-stad-popup-inner {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wc-stad-popup-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wc-qual-color);
  margin-bottom: 2px;
}
.wc-stad-popup-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.wc-stad-popup-city {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 1px;
}

/* Rich stadium card (Stadiums view) */
.wc-stad-popup--rich .maplibregl-popup-content { padding: 12px 14px !important; }
.wc-stad-popup--rich .wc-stad-popup-inner { align-items: flex-start; }
.wc-stad-popup-body { min-width: 0; }
.wc-stad-popup-final {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #f5c842;
  color: #0d1b2a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.wc-stad-popup-cap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}
.wc-stad-popup-cap svg { color: var(--ink-faint); flex-shrink: 0; }
.wc-stad-popup-link {
  display: inline-block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.wc-stad-popup-link:hover { text-decoration: underline; }

/* ── Match info overlay ───────────────────────────────────────────────────── */
#wcMatchOverlay {
  position: absolute;
  bottom: 90px;
  left: 24px;
  z-index: 30;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, left 0.3s cubic-bezier(0.4,0,0.2,1);
}
#wcMatchOverlay.visible { opacity: 1; pointer-events: auto; }

.wc-match-card {
  position: relative;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  border-radius: 16px;
  padding: 18px 22px 16px;
  min-width: 240px;
  max-width: 310px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: wc-card-in 0.32s cubic-bezier(0.22,1,0.36,1) backwards;
}
@keyframes wc-card-in {
  from { opacity:0; transform: translateY(12px) scale(0.97); }
  to   { opacity:1; transform: none; }
}

.wc-match-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wc-match-card-round {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--wc-qual-bg);
  color: var(--wc-qual-color);
  padding: 3px 9px;
  border-radius: 20px;
}
.wc-match-card-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}

.wc-match-card-teams {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wc-match-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.wc-match-card-flag-img {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  width: 48px;
  height: 36px;
  object-fit: cover;
}
.wc-match-card-tbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 36px;
  background: var(--bg-warm);
  border: 1px dashed var(--rule);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.wc-match-card-teamname {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.wc-match-card-vs {
  font-size: 11px;
  font-weight: 900;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.wc-match-card-time,
.wc-match-card-venue {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.wc-match-card-time svg,
.wc-match-card-venue svg { flex-shrink: 0; color: var(--ink-faint); }
.wc-match-card-tz {
  font-size: 10px;
  font-weight: 700;
  color: var(--wc-qual-color);
}
.wc-match-card-utc {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-left: 2px;
}
.wc-match-card-venue-city {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}

html[data-theme="dark"] .wc-match-card {
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.30);
}

/* Highlighted stadium dot */
.wc-stad-dot-marker--hl {
  width: 14px !important;
  height: 14px !important;
  border-width: 2.5px !important;
  animation: wc-stad-pulse 1.8s infinite;
}
@keyframes wc-stad-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,99,74,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(232,99,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,99,74,0); }
}
