/* Kurve: fan-stand match tracker. Warm orange on restrained black. */

:root {
  --ink: #0F0E0B;
  --ink-2: #171511;
  --ink-3: #1F1B15;
  --ink-4: #27221B;
  --line: rgba(243, 238, 228, 0.10);
  --line-strong: rgba(243, 238, 228, 0.20);
  --paper: #F3EEE4;
  --muted: #A69B89;
  --muted-2: #6F665A;
  --orange: #F2811D;
  --orange-ink: #1A1004;
  --orange-dim: rgba(242, 129, 29, 0.14);
  --live: #E5484D;
  --yellow: #E5A823;
  --red: #E5484D;
  --r: 8px;
  --r-sm: 4px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pad: 16px;
  --gap: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100dvh;
  background: var(--ink);
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: var(--r-sm); }

.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--orange); color: var(--orange-ink);
  padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; z-index: 50;
}
.skip-link:focus { top: 8px; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.92em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--gap);
  height: 56px; padding: 0 var(--pad);
  background: rgba(15, 14, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); padding: 6px 8px; margin-left: -8px; border-radius: var(--r-sm); }
.back:hover { color: var(--paper); }
.brand { margin-left: auto; font-weight: 700; letter-spacing: 0.02em; display: inline-flex; align-items: baseline; gap: 10px; }
.brand-sub { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.demo-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--muted); }

.shell { max-width: 1240px; margin: 0 auto; padding: var(--gap) var(--pad) 0; display: grid; gap: var(--gap); }

/* ---------- Stage: photo beside score ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
  min-height: 300px;
}
.stage-photo { position: relative; overflow: hidden; min-height: 220px; }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 55%; filter: saturate(0.85) contrast(1.05); }
.stage-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,14,11,0) 60%, rgba(15,14,11,0.55)); }
.stage-board { padding: 22px 24px 18px; display: grid; gap: 16px; align-content: center; }

.stage-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stage-day { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.match-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-sm);
  color: var(--paper); background: var(--ink-4);
}
.match-status-badge.is-live { background: var(--live); color: #fff; }
.match-status-badge.is-ft { background: var(--ink-4); color: var(--muted); }
.match-status-badge.is-upcoming { background: var(--orange-dim); color: var(--orange); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }

.scoreboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px; align-items: center;
}
.team-col { display: grid; grid-template-columns: 44px 1fr; gap: 10px 12px; align-items: center; }
.team-col-away { grid-template-columns: 1fr 44px; }
.team-col-away .team-meta { text-align: right; grid-column: 1; }
.team-col-away .team-crest { grid-column: 2; grid-row: 1; }
.team-crest { width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r); }
.team-crest svg { width: 30px; height: 30px; }
.team-meta { display: grid; gap: 2px; min-width: 0; }
.team-code { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--orange); letter-spacing: 0.04em; }
.team-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.team-formation { font-size: 12px; color: var(--muted); }
.scorer-list { grid-column: 1 / -1; display: grid; gap: 2px; min-height: 18px; min-width: 0; }

.scorer-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.scorer-player { overflow: hidden; text-overflow: ellipsis; }
.team-col-away .scorer-list { justify-items: end; min-width: 0; }
.team-col-away .scorer-item { flex-direction: row-reverse; text-align: right; min-width: 0; max-width: 100%; }
.scorer-item svg { flex-shrink: 0; }
.scorer-icon-goal svg circle { stroke: var(--orange); }
.scorer-icon-goal svg polygon { fill: var(--orange); stroke: var(--orange); }
.scorer-min { font-family: var(--mono); color: var(--paper); }
.scorer-player { color: var(--paper); font-weight: 600; flex-shrink: 0; }
.scorer-note { color: var(--muted); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.scorer-note { color: var(--muted); }

.score-center { display: grid; justify-items: center; gap: 4px; padding: 0 8px; min-width: 150px; }
.score { display: inline-flex; align-items: baseline; gap: 10px; }
.score-num { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-sep { font-size: 36px; color: var(--muted-2); font-weight: 500; }
.score.is-upcoming-vs { font-size: 22px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.clock { font-size: 18px; font-weight: 600; color: var(--orange); }
.subclock { font-size: 12px; color: var(--muted); }
.venue { font-size: 13px; color: var(--muted); }

/* ---------- Match switcher ---------- */
.switcher-dock { overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.switcher-dock::-webkit-scrollbar { display: none; }
.match-switcher { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: var(--gap); }
.match-tab {
  text-align: left; padding: 12px 14px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  display: grid; gap: 8px; transition: border-color 0.15s, background 0.15s;
}
.match-tab:hover { border-color: var(--line-strong); background: var(--ink-3); }
.match-tab.is-active { border-color: var(--orange); background: var(--ink-3); }
.match-tab-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.match-tab-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.match-tab-state.is-live { color: var(--live); }
.match-tab-state.is-ft { color: var(--muted); }
.match-tab-state.is-upcoming { color: var(--orange); }
.match-tab-venue { color: var(--muted-2); font-weight: 500; letter-spacing: 0; text-transform: none; }
.match-tab-teams { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.match-tab-vs { color: var(--muted-2); }
.match-tab-score { color: var(--orange); }

/* ---------- Layout ---------- */
.match-center { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.col-primary, .col-secondary { display: grid; gap: var(--gap); }

.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- View tabs ---------- */
.view-tabs { display: inline-flex; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; }
.view-tab { padding: 6px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--muted); }
.view-tab:hover { color: var(--paper); }
.view-tab.is-active { background: var(--orange); color: var(--orange-ink); }

/* ---------- Timeline: orange minute spine ---------- */
.timeline-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--muted-2); }
.legend-swatch.is-goal { background: var(--orange); }
.legend-swatch.is-yellow { background: var(--yellow); }
.legend-swatch.is-red { background: var(--red); }
.legend-swatch.is-info { background: var(--muted); }
.legend-note { margin-left: auto; color: var(--muted-2); }

.timeline-labels {
  display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.timeline-labels span:nth-child(2) { text-align: center; }
.timeline-labels span:last-child { text-align: right; }
.timeline-spine-label { color: var(--orange); }

.dual-timeline { position: relative; }
.timeline-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: stretch;
}
.timeline-row::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, var(--orange) 0%, rgba(242,129,29,0.55) 100%);
}
.timeline-row:first-of-type::before { top: 50%; }
.timeline-row:last-of-type::before { bottom: 50%; }
.timeline-cell-home, .timeline-cell-away { padding: 10px 18px 10px 0; display: flex; align-items: center; }
.timeline-cell-away { padding: 10px 0 10px 18px; justify-content: flex-end; }
.timeline-spine-node { position: relative; display: grid; place-items: center; }
.minute-pill {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  padding: 4px 8px; border-radius: var(--r-sm);
  background: var(--ink-4); color: var(--paper);
  border: 1px solid var(--line-strong);
}
.minute-pill.is-goal { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.minute-pill.is-red { background: var(--red); color: #fff; border-color: var(--red); }

.event-card {
  display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px;
  padding: 10px 12px; border-radius: var(--r);
  background: var(--ink-3); border: 1px solid var(--line);
  width: 100%; max-width: 440px;
}
.timeline-cell-away .event-card { text-align: right; grid-template-columns: 1fr 24px; }
.timeline-cell-away .event-icon-wrap { grid-column: 2; grid-row: 1; }
.timeline-cell-away .event-text { grid-column: 1; grid-row: 1; }
.event-card.is-goal { border-color: rgba(242, 129, 29, 0.5); background: linear-gradient(180deg, rgba(242,129,29,0.12), var(--ink-3) 70%); }
.event-card.is-red { border-color: rgba(229, 72, 77, 0.5); }
.event-icon-wrap { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--ink-4); }
.event-icon-wrap.is-goal { background: var(--orange); }
.event-icon-wrap.is-goal .icon-stroke { stroke: var(--orange-ink); fill: var(--orange-ink); }
.event-icon-wrap.is-yellow { background: rgba(229, 168, 35, 0.18); }
.event-icon-wrap.is-red { background: rgba(229, 72, 77, 0.2); }
.event-icon-wrap.is-info { background: var(--ink-4); }
.icon-stroke { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.event-text { display: grid; gap: 1px; }
.event-player { font-size: 14px; font-weight: 600; }
.event-detail { font-size: 12px; color: var(--muted); }
.event-line { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.5; color: var(--paper); margin-top: 6px; padding-left: 34px; text-indent: -12px; font-style: italic; }
.timeline-cell-away .event-line { padding-left: 0; padding-right: 34px; }
.event-line::before { content: '„'; color: var(--orange); font-style: normal; }
.event-line::after { content: '“'; color: var(--orange); font-style: normal; }

.timeline-divider {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  margin: 4px 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.timeline-divider::before, .timeline-divider::after { content: ''; height: 1px; background: var(--line); }
.timeline-divider::after { grid-column: 3; }
.timeline-divider { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); white-space: nowrap; padding: 0 4px; }
.timeline-divider::before { grid-column: 1; }

/* ---------- Pitch ---------- */
.pitch-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pitch-filter-group { display: inline-flex; gap: 4px; padding: 3px; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r); }
.filter-btn { padding: 5px 11px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--muted); }
.filter-btn:hover { color: var(--paper); }
.filter-btn.is-active { background: var(--ink-4); color: var(--paper); box-shadow: inset 0 0 0 1px var(--orange); }
.pitch-forms { display: inline-flex; gap: 12px; font-size: 12px; color: var(--muted); }
.pitch { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink); }
.pitch-player-node { cursor: pointer; }
.pitch-player-node:focus-visible { outline: none; }
.pitch-player-node:focus-visible .node-ring { stroke: var(--paper); stroke-dasharray: none; }
.pitch-player-node.is-selected .node-ring { stroke: var(--orange); stroke-dasharray: none; }
.pitch-player-node:hover .node-circle { stroke-width: 2.4; }

.player-inspector { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ink-3); border: 1px solid var(--line); min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inspector-hint { font-size: 13px; color: var(--muted); }
.inspector-main { display: inline-flex; align-items: baseline; gap: 10px; }
.inspector-num { font-family: var(--mono); font-weight: 600; color: var(--muted); }
.inspector-num.is-home { color: var(--orange); }
.inspector-name { font-weight: 600; }
.inspector-meta { font-size: 12px; color: var(--muted); }
.inspector-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.inspector-badge { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: var(--r-sm); background: var(--ink-4); }
.inspector-badge.is-goal { background: var(--orange-dim); color: var(--orange); }
.inspector-badge.is-yellow { background: rgba(229,168,35,0.16); color: var(--yellow); }
.inspector-badge.is-red { background: rgba(229,72,77,0.16); color: var(--red); }

.lineups-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 14px; }
.lineup-box { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.lineup-box-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.lineup-box-title { font-size: 13px; font-weight: 700; }
.lineup-box-form { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.roster-list { display: grid; gap: 2px; }
.roster-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: var(--r-sm); text-align: left;
}
.roster-item:hover { background: var(--ink-4); }
.roster-item.is-selected { background: var(--orange-dim); box-shadow: inset 0 0 0 1px var(--orange); }
.roster-left { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.roster-num { font-family: var(--mono); font-size: 12px; color: var(--orange); width: 20px; }
.roster-pos { font-size: 11px; color: var(--muted); width: 30px; }
.roster-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster-tags { display: inline-flex; gap: 4px; }
.micro-tag { font-size: 10.5px; font-weight: 600; padding: 2px 5px; border-radius: 3px; background: var(--ink-4); color: var(--muted); }
.micro-tag.is-goal { background: var(--orange-dim); color: var(--orange); }
.micro-tag.is-yellow { background: rgba(229,168,35,0.16); color: var(--yellow); }
.micro-tag.is-red { background: rgba(229,72,77,0.16); color: var(--red); }

/* ---------- Telemetry ---------- */
.tel-codes { display: inline-flex; gap: 8px; font-size: 12px; font-weight: 600; }
.tel-vs { color: var(--muted-2); }
.tel-bars { display: grid; gap: 12px; }
.tel-row { display: grid; gap: 6px; }
.tel-values { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 13px; align-items: baseline; }
.tel-num { font-family: var(--mono); font-weight: 600; }
.tel-num.is-away { text-align: right; }
.tel-label { color: var(--muted); font-size: 12px; }
.tel-track { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--ink-4); gap: 2px; }
.tel-fill-home { background: var(--orange); }
.tel-fill-away { background: var(--muted-2); }

/* ---------- Standings ---------- */
.table-scroll { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 6px 6px; border-bottom: 1px solid var(--line); }
.standings td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.standings tr:last-child td { border-bottom: 0; }
.standings tr.is-match-team td { background: rgba(242, 129, 29, 0.06); }
.standings tr.is-leader .col-rank { color: var(--orange); font-weight: 700; }
.col-rank { font-family: var(--mono); color: var(--muted); width: 28px; }
.col-num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; width: 36px; }
.col-pts { font-weight: 700; color: var(--paper); }
.team-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.table-crest { width: 22px; height: 22px; display: grid; place-items: center; }
.table-crest svg { width: 22px; height: 22px; }
.table-team-name { font-weight: 600; }
.table-team-short { color: var(--muted); font-size: 11px; }
.col-form { width: 56px; }
.standings td, .standings th { padding-left: 4px; padding-right: 4px; }
.table-team-short { display: none; }
.col-num { width: 30px; }
.form-bars { display: inline-flex; gap: 3px; }
.form-bar { width: 8px; height: 14px; border-radius: 2px; background: var(--ink-4); }
.form-bar.is-w { background: var(--orange); }
.form-bar.is-d { background: var(--muted-2); }
.form-bar.is-l { background: var(--red); }

/* ---------- Fonds ---------- */
.fonds { padding-top: 0; overflow: hidden; }
.fonds-photo { width: calc(100% + 40px); margin: 0 -20px 16px; aspect-ratio: 1200 / 300; object-fit: cover; object-position: 50% 60%; filter: saturate(0.8); }
.fonds-figures { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fonds-amount { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--paper); }
.fonds-goal { font-size: 12px; color: var(--muted); }
.fonds-percent { margin-left: auto; color: var(--orange); font-weight: 600; }
.fonds-segments { display: flex; gap: 3px; margin: 12px 0 6px; }
.progress-seg { flex: 1; height: 8px; border-radius: 2px; background: var(--ink-4); }
.progress-seg.is-filled { background: var(--orange); }
.progress-seg.is-partial { background: linear-gradient(90deg, var(--orange) 50%, var(--ink-4) 50%); }
.fonds-meta { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.fonds-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fonds-feedback { font-size: 13px; color: var(--orange); margin-top: 10px; min-height: 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--r); font-size: 13.5px; font-weight: 600; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; }
.btn-primary { background: var(--orange); color: var(--orange-ink); }
.btn-primary:hover { background: #FF9232; }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

/* ---------- Ads (fictional, labelled) ---------- */
.ad { background: var(--ink-2); border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 14px 16px; }
.ad-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ad-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--muted); }
.ad-brand { font-size: 13px; font-weight: 700; }
.ad-copy { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.ad-wide .ad-copy { margin-bottom: 0; }
.ad-confirm { font-size: 12.5px; color: var(--orange); margin-top: 8px; }

.foot { max-width: 1240px; margin: 0 auto; padding: 20px var(--pad) 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.foot a:hover { color: var(--paper); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.6fr); }
  .team-name { font-size: 17px; }
  .scorer-note { display: none; }
}

@media (max-width: 1000px) {
  .match-center { grid-template-columns: 1fr; }
  .standings { font-size: 12px; }
}

@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; }
  .stage-photo { aspect-ratio: 16 / 9; min-height: 0; }
  .stage-photo::after { background: linear-gradient(180deg, rgba(15,14,11,0) 50%, rgba(15,14,11,0.6)); }
  .stage-board { padding: 18px 16px 16px; }
  .score-num { font-size: 44px; }
  .team-name { font-size: 16px; }
  .team-col { grid-template-columns: 36px 1fr; }
  .team-col-away { grid-template-columns: 1fr 36px; }
  .team-crest { width: 36px; height: 36px; }
  .team-crest svg { width: 24px; height: 24px; }
  .match-switcher { grid-auto-columns: minmax(190px, 78vw); }
  .lineups-grid { grid-template-columns: 1fr; }
  .timeline-cell-home, .timeline-cell-away { padding-left: 0; padding-right: 0; }
  .event-line { padding-left: 0; text-indent: 0; }
  .timeline-cell-away .event-line { padding-right: 0; }
  .panel { padding: 14px 14px 16px; }
  .fonds-photo { width: calc(100% + 28px); margin: 0 -14px 14px; }
}

@media (max-width: 480px) {
  .scoreboard-grid { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .team-col, .team-col-away { grid-template-columns: 36px 1fr; text-align: left; justify-content: center; }
  .team-col-away .team-meta { text-align: left; grid-column: 2; }
  .team-col-away .team-crest { grid-column: 1; grid-row: 1; }
  .team-meta { justify-items: start; }
  .score-center { order: -1; }
  .timeline-row, .timeline-labels, .timeline-divider { grid-template-columns: 1fr; }
  .timeline-row::before { display: none; }
  .timeline-spine-node { justify-items: start; padding: 6px 0 2px; }
  .timeline-cell-home, .timeline-cell-away { padding: 4px 0 10px; justify-content: stretch; }
  .timeline-cell-away .event-card { grid-template-columns: 24px 1fr; text-align: left; }
  .timeline-cell-away .event-icon-wrap { grid-column: 1; grid-row: 1; }
  .timeline-cell-away .event-text { grid-column: 2; grid-row: 1; }
  .timeline-cell-away .event-line { padding-left: 34px; text-indent: -12px; }
  .timeline-labels { display: none; }
  .timeline-divider { grid-template-columns: 1fr; }
  .timeline-divider::before { display: none; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Spieltagsredaktion */
.radio .event-card,.radio .event-card.is-goal,.radio .event-card.is-red{background:none;border:0;box-shadow:none}.radio .event-line{font:normal clamp(16px,1.6vw,22px)/1.4 Georgia,serif}.radio .panel-head h2{font:normal clamp(24px,3vw,38px)/1.1 Georgia,serif}.radio .event-icon-wrap{border-radius:50%}
