:root {
  --bg-0: #05070d;
  --bg-1: #0a1020;
  --surface-0: rgba(17, 24, 39, 0.86);
  --surface-1: #1f2937;
  --surface-2: #111827;
  --line: rgba(255, 255, 255, 0.11);
  --text-0: #f3f4f6;
  --text-1: #d1d5db;
  --text-2: #9ca3af;
  --accent-gold: #f59e0b;
  --accent-cyan: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius-xl: 22px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--text-0);
  background:
    radial-gradient(1200px 700px at 85% -20%, rgba(245, 158, 11, 0.2), transparent 60%),
    radial-gradient(900px 550px at 10% 0%, rgba(34, 211, 238, 0.18), transparent 62%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 100%);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
}

.bg-glow-a {
  width: 360px;
  height: 360px;
  background: var(--accent-gold);
  top: 10%;
  left: -120px;
}

.bg-glow-b {
  width: 420px;
  height: 420px;
  background: var(--accent-cyan);
  bottom: -150px;
  right: -120px;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.95fr);
  gap: 0.8rem;
  max-width: 1460px;
  margin: 0 auto;
  padding: 2.2rem 0.55rem 0.72rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
}

h1 {
  margin: 0.3rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.subtitle {
  margin: 0.2rem 0 0;
  color: var(--text-1);
  font-size: 0.95rem;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 0.7rem;
  align-self: end;
  width: 100%;
  background: rgba(17, 24, 39, 0.68);
  border: 1px solid var(--line);
  padding: 0.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.control-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-2);
}

input,
select,
.btn-accent {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(4, 7, 15, 0.8);
  color: var(--text-0);
  font-family: inherit;
  min-height: 42px;
}

input,
select {
  padding: 0.65rem 0.8rem;
}

.btn-accent {
  cursor: pointer;
  grid-column: span 2;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.25), rgba(34, 211, 238, 0.22));
  transition: transform 160ms ease, border-color 160ms ease;
}

.btn-accent:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.8);
}

main {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 0.55rem 2rem;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.btn-accent--finale-toggle {
  grid-column: auto;
  min-height: 36px;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.55rem;
}

.btn-accent--finale-toggle[aria-pressed="true"] {
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35) inset;
}

h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.03em;
}

.meta {
  margin: 0;
  color: var(--text-2);
  font-size: 0.8rem;
}

.highlights {
  margin-top: 0.5rem;
}

.highlights-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.highlight-card {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.8rem;
  box-shadow: var(--shadow-soft);
}

.highlight-card .teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
}

.vs-badge {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
}

.tiny {
  color: var(--text-2);
  font-size: 0.75rem;
}

.highlight-score-row {
  color: var(--text-0);
  font-weight: 600;
}

.highlight-score-row--live {
  font-size: 2.25rem;
  line-height: 1;
  color: var(--warn);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.highlight-goals {
  list-style: none;
  margin: 0.35rem 0;
  padding: 0;
  display: grid;
  gap: 0.18rem;
}

.highlight-goals__item {
  display: flex;
  align-items: baseline;
  gap: 0.38rem;
  font-size: 0.74rem;
  color: var(--text-1);
}

.highlight-goals__item.is-home {
  justify-content: flex-start;
  text-align: left;
}

.highlight-goals__item.is-away {
  justify-content: flex-end;
  text-align: right;
}

.highlight-goals__item.is-neutral {
  justify-content: center;
  text-align: center;
}

.highlight-goals__minute {
  color: var(--accent-gold);
  font-weight: 700;
}

.highlight-goals__text {
  color: var(--text-0);
}

.board {
  overflow: visible;
  padding: 0.7rem 0.45rem 1.45rem;
  scrollbar-color: rgba(255, 255, 255, 0.26) transparent;
}

.board-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 0.9rem;
  min-width: max-content;
}

.round {
  background: rgba(12, 18, 32, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0.85rem;
  animation: slideIn 420ms ease both;
}

.round h3 {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-1);
}

.match {
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.58rem;
  margin-bottom: 0.62rem;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.match:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

.match.is-live {
  border-color: rgba(251, 191, 36, 0.95);
}

.match.is-finished {
  border-color: rgba(52, 211, 153, 0.7);
}

.match.is-hidden {
  display: none;
}

.match-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.4rem;
  align-items: center;
}

.team {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.team.right {
  justify-content: flex-end;
}

.flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.team-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.match-mid {
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent-gold);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.match-meta {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--text-2);
  font-size: 0.72rem;
}

.status-chip {
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.status-chip.scheduled {
  color: var(--accent-cyan);
}

.status-chip.live {
  color: var(--warn);
}

.status-chip.finished {
  color: var(--ok);
}

.site-footer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.3rem 1.2rem 2rem;
  color: var(--text-2);
  font-size: 0.78rem;
}

.imprint-note {
  margin: 0.15rem 0 0;
  color: rgba(209, 213, 219, 0.78);
  font-size: 0.72rem;
}

.footer-actions {
  margin-top: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.live-log-lines {
  flex: 1 1 420px;
  display: grid;
  gap: 0.25rem;
}

.live-log-line {
  min-height: 34px;
  display: flex;
  align-items: flex-start;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 7, 15, 0.8);
  color: rgba(209, 213, 219, 0.88);
  font-size: 0.69rem;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.footer-actions #refreshStatus,
.footer-actions #nextUpdateInfo {
  flex: 1 1 420px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .highlights-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-standings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .highlights-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .highlights-list {
    grid-template-columns: 1fr;
  }

  .group-standings-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================================================
   ALLE SPIELE – Kachel-Wrapper (Vorlage-Stil)
   ==================================================================== */

.alle-spiele {
  margin-top: 1.2rem;
}

.gruppenstand-block {
  margin-top: 1.2rem;
}

.gruppenstand-tile {
  background: rgba(7, 9, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: 0.9rem 0.75rem 0.95rem;
}

.gruppenstand-controls {
  display: flex;
  align-items: end;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.gruppenstand-controls .control-block {
  min-width: 180px;
}

.btn-accent--group {
  grid-column: auto;
  min-height: 42px;
  padding: 0 0.85rem;
}

.group-standings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.group-table-card {
  background: linear-gradient(170deg, rgba(19, 27, 44, 0.94), rgba(12, 20, 35, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 0.6rem;
}

.group-table-card.is-live {
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35) inset;
}

.group-table-card--query-hit {
  border-color: rgba(34, 211, 238, 0.95);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45) inset, 0 0 18px rgba(34, 211, 238, 0.22);
}

.group-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.group-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.group-table-wrap {
  overflow-x: auto;
}

.group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.group-table th,
.group-table td {
  padding: 0.26rem 0.24rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
  white-space: nowrap;
}

.group-table th {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.group-table td {
  color: #e5e7eb;
}

.group-table .team-col {
  text-align: left;
}

.group-table .team-col .flag {
  width: 18px;
  height: 12px;
  margin-right: 5px;
}

.group-team-link {
  vertical-align: middle;
}

.finale-block {
  margin-top: 1.2rem;
}

.section-title-wrap--finale {
  justify-content: flex-start;
  align-items: flex-start;
}

.finale-title-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.finale-block .alle-spiele-tile {
  background: rgba(7, 9, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: 0.9rem 0.75rem 0.95rem;
  overflow: visible;
}

.finale-block .alle-spiele-tile .btn-accent--finale-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.finale-block #finalBoard {
  position: relative;
  z-index: 1;
}

.alle-spiele-tile {
  background: rgba(7, 9, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: 1rem 0.45rem 1.05rem;
  overflow: visible;
}

/* Engere Spaltenbreite für das kompakte Vorlage-Layout */
.board-track {
  grid-auto-columns: minmax(190px, 1fr);
  gap: 0.65rem;
}

.alle-spiele-controls {
  display: flex;
  align-items: end;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.alle-spiele-controls .control-block {
  min-width: 180px;
}

.btn-accent--group {
  grid-column: auto;
  min-height: 42px;
  padding: 0 0.85rem;
}

.alle-spiele-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(80px, 1fr));
  column-gap: 0.7rem;
  row-gap: 0;
  width: 100%;
  min-width: 0;
}

.spiele-spalte {
  display: grid;
  grid-template-rows: repeat(12, 58px);
  gap: 0.42rem;
}

.spiel-slot {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  min-height: 58px;
  position: relative;
  overflow: visible;
}

.spiel-slot.has-mini-heading {
  padding-top: 0;
}

.spiel-slot.has-mini-heading .match-compact {
  margin-top: 10px;
  height: calc(100% - 10px);
}

.spiel-slot.has-round-heading .match-compact {
  margin-top: 22px;
  height: calc(100% - 22px);
}

.slot-mini-heading {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: #0b1324;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}

.slot-mini-heading--round {
  top: -9px;
}

.slot-mini-heading--datetime {
  top: 9px;
}

.spiel-slot.is-empty {
  background: rgba(255, 255, 255, 0.02);
}

.final-board {
  width: 100%;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0.35rem 0.2rem;
}

.final-bracket {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 640px;
  overflow: visible;
}

.final-bracket-wrap {
  position: relative;
  width: 100%;
  min-height: 624px;
  display: block;
}

.final-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: 0.7rem;
  row-gap: 0;
  width: 100%;
  min-height: 624px;
}

.final-columns--prediction {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.final-bands {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
  pointer-events: none;
}

.final-band {
  fill: none;
  stroke: rgba(253, 224, 71, 0.72);
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.24));
}

.final-round-col {
  position: relative;
  min-height: 624px;
  height: 624px;
  z-index: 1;
  padding-bottom: 2rem;
}

.final-round-col--center {
  height: 624px;
}

.final-round-heading {
  position: absolute;
  top: 0.25rem;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(7, 9, 15, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  z-index: 2;
  white-space: nowrap;
}

.final-slot {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.final-slot:hover {
  z-index: 25;
}

.final-slot--query-hit {
  z-index: 18;
}

.final-slot .match-compact {
  height: 100%;
}

.final-slot.is-empty {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.final-slot--center .match-compact {
  border-color: rgba(245, 158, 11, 0.65);
}

.match-compact--grand-final {
  border: 5px solid rgba(253, 224, 71, 0.98);
  box-shadow: 0 0 0 2px rgba(254, 240, 138, 0.72), 0 0 26px rgba(245, 158, 11, 0.75);
}

.match-compact--query-hit {
  border-color: rgba(34, 211, 238, 0.96) !important;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.55) inset, 0 0 20px rgba(34, 211, 238, 0.28);
}

.match-compact {
  height: 100%;
  width: 100%;
  border-radius: 8px;
  background: #131b2c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.match-compact.round-r32 {
  background: linear-gradient(145deg, #1c2438, #15263f);
  border-color: rgba(56, 189, 248, 0.48);
}

.match-compact.round-r16 {
  background: linear-gradient(145deg, #23233a, #2a1e44);
  border-color: rgba(167, 139, 250, 0.5);
}

.match-compact.round-qf {
  background: linear-gradient(145deg, #2a1f2f, #3a1f28);
  border-color: rgba(244, 114, 182, 0.52);
}

.match-compact.round-sf {
  background: linear-gradient(145deg, #332318, #3b2915);
  border-color: rgba(251, 191, 36, 0.58);
}

.match-compact:hover {
  transform: scale(1.15);
  z-index: 20;
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
}

.match-compact--finale {
  min-height: 44px;
}

.compact-visible {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 0.14rem;
  gap: 4px;
}

.compact-teamline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.compact-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compact-result {
  width: 18px;
  min-width: 18px;
  height: 17px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.compact-visible--no-result .compact-result {
  color: transparent;
  border-color: transparent;
  background: transparent;
}

.compact-side--right {
  justify-content: center;
}

.compact-side .flag {
  width: 30px;
  height: 20px;
  border-radius: 2px;
}

.compact-vs {
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent-gold);
  font-size: 0.8rem;
  line-height: 1;
  padding: 0 2px;
}

.token-chip {
  min-width: 30px;
  max-width: 30px;
  height: 20px;
  max-height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.17);
}

.compact-details {
  position: absolute;
  left: 50%;
  right: auto;
  top: calc(100% + 6px);
  background: linear-gradient(165deg, rgba(4, 10, 28, 0.98), rgba(10, 19, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 12px;
  padding: 0.62rem 0.72rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 120ms ease, transform 120ms ease;
  min-width: 310px;
  max-width: 380px;
  z-index: 1200;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48);
}

.match-compact:hover .compact-details {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* In den linken Spalten darf das Tooltip nicht aus dem Viewport nach links laufen. */
.alle-spiele-grid > .spiele-spalte:nth-child(-n+2) .compact-details {
  left: 0;
  transform: translate(0, -4px);
}

.alle-spiele-grid > .spiele-spalte:nth-child(-n+2) .match-compact:hover .compact-details {
  transform: translate(0, 0);
}

/* Gleicher Rand-Fix fuer die Final-Box: links nach rechts, rechts nach links aufklappen. */
.final-columns > .final-round-col:nth-child(-n+2) .compact-details {
  left: 0;
  transform: translate(0, -4px);
}

.final-columns > .final-round-col:nth-child(-n+2) .match-compact:hover .compact-details {
  transform: translate(0, 0);
}

.final-columns > .final-round-col:nth-last-child(-n+2) .compact-details {
  left: auto;
  right: 0;
  transform: translate(0, -4px);
}

.final-columns > .final-round-col:nth-last-child(-n+2) .match-compact:hover .compact-details {
  transform: translate(0, 0);
}

.compact-details p {
  margin: 0;
  color: var(--text-1);
  font-size: 0.72rem;
  line-height: 1.3;
}

.compact-details__teams {
  color: var(--text-0);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.22rem;
}

.compact-details__score {
  color: var(--accent-gold);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  line-height: 1;
  margin-bottom: 0.32rem;
}

.compact-details__meta {
  color: var(--text-1);
  margin-top: 0.06rem;
}

.compact-details__context {
  margin-top: 0.32rem;
  color: rgba(203, 213, 225, 0.9);
}

.compact-details__status {
  margin-top: 0.3rem;
  padding-top: 0.24rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  color: rgba(203, 213, 225, 0.85);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.compact-details .highlight-goals {
  margin: 0.4rem 0 0;
  gap: 0.22rem;
}

.compact-details .highlight-goals__item {
  font-size: 0.72rem;
  gap: 0.44rem;
}

.compact-details .highlight-goals__item.is-home,
.compact-details .highlight-goals__item.is-neutral {
  justify-content: flex-start;
  text-align: left;
}

.compact-details .highlight-goals__item.is-away {
  justify-content: flex-end;
  text-align: right;
}

/* ====================================================================
   MATCH – kompaktes Pill-Design (Override)
   ==================================================================== */

.match {
  background: #131b2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 0.28rem 0.45rem;
  margin-bottom: 0.3rem;
  transition: border-color 140ms ease;
}

.match:hover {
  transform: none;
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.match--final {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #1a150a, #0f1a2e);
}

.match--final .pill-vs {
  font-size: 1rem;
}

.match--final .pill-name {
  max-width: 90px;
  font-size: 0.78rem;
}

.match--third {
  border-color: rgba(34, 211, 238, 0.3);
}

/* ====================================================================
   MATCH-PILL – inneres Layout
   ==================================================================== */

.match-pill {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pill-home,
.pill-away {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.pill-away {
  justify-content: flex-end;
}

/* flagImg() generates class="flag" – override size inside pills */
.match-pill .flag,
.pill-flag {
  width: 20px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.pill-name {
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
  color: var(--text-0);
}

.pill-vs {
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent-gold);
  font-size: 0.82rem;
  flex-shrink: 0;
  padding: 0 3px;
  letter-spacing: 0.05em;
}

.pill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  color: var(--text-2);
  margin-top: 2px;
  gap: 4px;
  line-height: 1.2;
}

/* ====================================================================
   HIGHLIGHTS – Flags ergänzen
   ==================================================================== */

.hl-team {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hl-team-link {
  display: inline-flex;
  align-items: center;
}

.hl-team .flag,
.hl-team .pill-flag {
  width: 40px;
  height: 26px;
  border-radius: 3px;
}

/* ====================================================================
   MATCH DETAIL PANEL (KLICK AUF SPIELBOX)
   ==================================================================== */

.match-detail-panel {
  margin-top: 1.2rem;
}

.team-detail-panel {
  margin-top: 1.2rem;
}

.match-detail-panel.is-hidden {
  display: none;
}

.team-detail-panel.is-hidden {
  display: none;
}

.match-detail-card {
  position: relative;
  background: rgba(10, 14, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

.match-detail-close {
  position: absolute;
  right: 0.9rem;
  top: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-0);
  padding: 0.24rem 0.6rem;
  cursor: pointer;
}

.team-detail-close {
  position: absolute;
  right: 0.9rem;
  top: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-0);
  padding: 0.24rem 0.6rem;
  cursor: pointer;
}

.match-detail-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.match-detail-headline h3 {
  margin: 0 0 0.4rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.match-detail-headline p {
  margin: 0.2rem 0;
  color: var(--text-1);
}

.match-detail-flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem;
}

.team-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-link,
.team-flag-trigger {
  cursor: pointer;
}

.team-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.14em;
  transition: color 140ms ease, text-decoration-color 140ms ease, background 140ms ease;
}

.team-link:hover,
.team-link:focus-visible,
.team-flag-trigger:hover,
.team-flag-trigger:focus-visible {
  color: var(--accent-cyan);
  text-decoration-color: currentColor;
  outline: none;
}

.team-link--pill {
  display: inline-flex;
  align-items: center;
}

.team-link--inline {
  display: inline;
}

.team-inline-sep {
  color: var(--accent-gold);
}

.team-chip--left {
  justify-content: flex-end;
}

.team-chip--right {
  justify-content: flex-start;
}

.team-chip--solo {
  width: 100%;
  justify-content: center;
}

.team-chip-name {
  color: var(--text-0);
  font-weight: 600;
  font-size: 1rem;
}

.team-detail-hero {
  min-height: 120px;
}

.team-sep {
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent-gold);
  font-size: 2rem;
  line-height: 1;
}

.match-detail-flags .flag {
  width: 120px;
  height: 80px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.match-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.detail-block {
  background: rgba(17, 24, 39, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem;
}

.detail-block h4,
.detail-block h5 {
  margin: 0 0 0.55rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
}

.detail-muted {
  color: var(--text-2);
  margin: 0;
}

.detail-stadium-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 0.6rem;
}

.detail-stadium-meta p {
  margin: 0.28rem 0;
  color: var(--text-1);
}

.detail-stream-list {
  margin: 0;
  padding-left: 1.1rem;
}

.detail-stream-list li {
  margin: 0 0 0.7rem;
  color: var(--text-1);
}

.detail-stream-list a {
  color: var(--accent-cyan);
}

.coach-grid,
.squad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.coach-card {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.6rem;
}

.coach-photo {
  height: 120px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-squad-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-1);
  max-height: 280px;
  overflow: auto;
}

.detail-squad-list li {
  margin: 0.16rem 0;
}

.squad-team-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.squad-team-heading .flag {
  width: 22px;
  height: 15px;
}

.detail-pos-group {
  margin-bottom: 0.55rem;
}

.detail-pos-group h6 {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
}

.detail-pos-group .detail-squad-list {
  max-height: none;
  overflow: visible;
}

.detail-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.team-detail-card {
  padding-bottom: 1.1rem;
}

.team-detail-summary-grid {
  grid-template-columns: 1.2fr 1fr;
}

.team-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.team-stat-card {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-stat-card span {
  font-size: 0.74rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-stat-card strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--text-0);
}

.team-note-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-1);
}

.team-detail-groups {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.germany-player-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.germany-player-card {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 0.85rem;
  min-height: 228px;
}

.germany-player-main {
  min-width: 0;
}

.germany-player-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.germany-player-name {
  margin: 0;
  color: var(--text-0);
  font-weight: 700;
  font-size: 1.18rem;
}

.germany-player-number {
  min-width: 84px;
  height: 84px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.45rem;
  line-height: 1;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, var(--accent-gold));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.germany-player-role {
  margin: 0;
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.germany-player-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.germany-player-meta .is-wide {
  grid-column: 1 / -1;
}

.germany-player-meta div {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 8px;
  padding: 0.45rem;
}

.germany-player-meta dt {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-2);
  text-transform: uppercase;
}

.germany-player-meta dd {
  margin: 0.18rem 0 0;
  color: var(--text-0);
  font-size: 0.84rem;
}

.germany-player-titles-wrap {
  margin-top: 0.6rem;
}

.germany-player-titles-title {
  margin: 0 0 0.3rem;
  font-size: 0.77rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.germany-player-titles {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-1);
}

.germany-player-titles li {
  margin: 0.14rem 0;
}

.germany-player-side {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.germany-player-portrait {
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.65);
  display: grid;
  place-items: center;
  color: var(--text-2);
  text-align: center;
  padding: 0.5rem;
}

.germany-player-portrait img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 220px;
  object-fit: cover;
}

.germany-player-links {
  margin-top: auto;
}

.germany-player-links a {
  color: var(--accent-cyan);
}

@media (max-width: 980px) {
  .match-detail-top {
    grid-template-columns: 1fr;
  }

  .match-detail-grid,
  .coach-grid,
  .squad-grid {
    grid-template-columns: 1fr;
  }

  .team-stat-grid,
  .germany-player-grid,
  .germany-player-meta {
    grid-template-columns: 1fr;
  }

  .germany-player-card {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .germany-player-portrait,
  .germany-player-portrait img {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }

  .alle-spiele-grid {
    grid-template-columns: repeat(9, minmax(78px, 1fr));
    column-gap: 0.6rem;
    width: max-content;
    min-width: max-content;
  }

  .spiele-spalte {
    grid-template-rows: repeat(12, 54px);
    gap: 0.38rem;
  }
}

/* ====================================================================
   RESPONSIVE MOBILE – Phase 1: Headers & Basis Fonts
   ==================================================================== */

h1 {
  font-size: clamp(1.8rem, 4vw, 4.1rem);
}

h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
}

/* ====================================================================
   RESPONSIVE MOBILE – Phase 2: Tablet & Smartphone (1023px)
   ==================================================================== */

@media (max-width: 1023px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1.5rem 0.5rem 0.5rem;
  }

  .controls {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.7rem;
  }

  .btn-accent {
    grid-column: span 2;
  }

  .alle-spiele-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 0.6rem;
  }

  .spiele-spalte {
    grid-template-rows: repeat(10, 50px);
  }

  .spiel-slot {
    min-height: 50px;
  }

  .group-standings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .final-columns {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .final-columns--prediction {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .final-round-col {
    height: 560px;
    min-height: 560px;
  }

  .final-bracket-wrap {
    min-height: 560px;
  }

  .final-bracket {
    min-height: 560px;
  }
}

/* ====================================================================
   RESPONSIVE MOBILE – Phase 3: Smartphone Landscape (767px)
   ==================================================================== */

@media (max-width: 767px) {
  .site-header {
    padding: 1rem 0.5rem 0.4rem;
  }

  .controls {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .control-block {
    font-size: 0.75rem;
  }

  .btn-accent {
    grid-column: auto;
    font-size: 0.75rem;
    min-height: 38px;
  }

  h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .subtitle {
    font-size: 0.85rem;
  }

  /* Highlights */
  .highlights-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .highlight-card {
    padding: 0.6rem;
  }

  .highlight-score-row--live {
    font-size: 1.8rem;
  }

  .vs-badge {
    font-size: 0.95rem;
  }

  /* Alle Spiele Grid: 4 Spalten mit besserer Nutzung */
  .alle-spiele-controls {
    display: flex;
    align-items: end;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
  }

  .alle-spiele-controls .control-block {
    min-width: 0;
  }

  .alle-spiele-grid {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    column-gap: 0.5rem;
    width: 100%;
    min-width: 0;
  }

  .spiele-spalte {
    grid-template-rows: none;
    grid-auto-rows: 42px;
    gap: 0.3rem;
  }

  .spiel-slot {
    min-height: 42px;
  }

  .round {
    padding: 0.5rem;
  }

  .round h3 {
    font-size: 0.7rem;
  }

  .match-top {
    gap: 0.25rem;
  }

  .team-name {
    max-width: 65px;
    font-size: 0.7rem;
  }

  .match-mid {
    font-size: 0.85rem;
  }

  .match-meta {
    font-size: 0.65rem;
  }

  /* Gruppenstand: 1 Spalte */
  .group-standings-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .group-table-card {
    padding: 0.5rem;
  }

  .group-card-head {
    margin-bottom: 0.35rem;
  }

  .group-card-head h3 {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
  }

  .group-table {
    font-size: 0.65rem;
  }

  .group-table th,
  .group-table td {
    padding: 0.18rem 0.15rem;
  }

  .group-table th {
    font-size: 0.62rem;
  }

  /* Final Bracket: Navigation Buttons */
  .final-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
  }

  .btn-bracket-nav {
    flex: 1 1 calc(50% - 0.3rem);
    min-width: 0;
    font-size: 0.75rem;
    min-height: 38px;
    padding: 0 0.6rem;
    white-space: normal;
    text-align: center;
  }

  .btn-bracket-nav--prev {
    order: 1;
  }

  .btn-bracket-nav--next {
    order: 2;
  }

  .btn-accent--finale-toggle {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 80px;
  }

  .final-bracket {
    overflow: hidden;
    width: 100%;
  }

  .final-columns {
    grid-template-columns: repeat(9, minmax(112px, 112px));
    position: relative;
    scroll-behavior: smooth;
    will-change: scroll-position;
    width: max-content;
    min-width: max-content;
    column-gap: 0.5rem;
  }

  .final-columns--prediction {
    grid-template-columns: repeat(7, minmax(112px, 112px));
  }

  .final-bracket {
    min-height: 340px;
    overflow: hidden;
    width: 100%;
  }

  .final-bracket-wrap {
    min-height: 340px;
    width: 100%;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .final-round-col {
    height: 340px;
    min-height: 340px;
    padding-bottom: 1rem;
    scroll-snap-align: start;
  }

  .final-round-col--center {
    height: 340px;
  }

  .final-round-heading {
    font-size: 0.75rem;
    top: 0.15rem;
    padding: 0.04rem 0.3rem;
  }

  .match-compact:hover {
    transform: scale(1.08);
  }

  .compact-visible {
    gap: 2px;
    padding: 0;
  }

  .compact-teamline {
    gap: 1px;
  }

  .compact-side .flag {
    width: 32px;
    height: 22px;
  }

  .group-table .team-col .flag {
    width: 32px;
    height: 22px;
  }

  .compact-result {
    width: 13px;
    height: 12px;
    font-size: 0.75rem;
  }

  .compact-vs {
    font-size: 0.7rem;
  }

  .compact-details {
    min-width: 220px;
    max-width: 280px;
    font-size: 0.7rem;
    padding: 0.45rem 0.55rem;
  }

  .final-bands {
    display: block;
    opacity: 0.78;
  }

  .final-band {
    filter: drop-shadow(0 0 5px rgba(253, 224, 71, 0.2));
  }

  .site-footer {
    padding: 0.25rem 0.5rem 1.5rem;
    font-size: 0.7rem;
  }

  .footer-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .live-log-lines {
    flex: 1 1 100%;
  }

  .footer-actions #refreshStatus,
  .footer-actions #nextUpdateInfo {
    flex: 1 1 100%;
  }

  .live-log-line {
    min-height: 30px;
    padding: 0.15rem 0.4rem;
    font-size: 0.64rem;
  }
}

/* ====================================================================
   RESPONSIVE MOBILE – Phase 4: Smartphone Portrait (479px)
   ==================================================================== */

@media (max-width: 479px) {
  html,
  body {
    overflow-x: hidden;
  }

  .controls {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .btn-accent {
    grid-column: auto;
  }

  h2 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
  }

  /* Alle Spiele: 2 Spalten mit maximaler Breite */
  .alle-spiele-controls {
    display: flex;
    align-items: end;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }

  .alle-spiele-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.55rem;
    width: 100%;
    min-width: 0;
  }

  .spiele-spalte {
    grid-template-rows: none;
    grid-auto-rows: 38px;
    gap: 0.25rem;
  }

  .alle-spiele .alle-spiele-tile {
    padding: 0.75rem 0.3rem 0.55rem;
  }

  .alle-spiele .board {
    padding: 0.45rem 0.1rem 0.5rem;
  }

  .spiel-slot {
    min-height: 38px;
  }

  .round {
    padding: 0.4rem;
  }

  .round h3 {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }

  .team-name {
    max-width: 48px;
    font-size: 0.65rem;
  }

  .flag {
    width: 29px;
    height: 20px;
  }

  .match-mid {
    font-size: 0.8rem;
  }

  /* Gruppenstand */
  .group-table {
    font-size: 0.62rem;
  }

  .group-card-head h3 {
    font-size: 0.85rem;
  }

  .group-table th,
  .group-table td {
    padding: 0.14rem 0.12rem;
  }

  /* Final Bracket: 3 Spalten mit Navigation */
  .final-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
  }

  .btn-bracket-nav {
    flex: 1 1 calc(50% - 0.2rem);
    font-size: 0.7rem;
    min-height: 36px;
    padding: 0 0.4rem;
  }

  .btn-bracket-nav--prev {
    order: 1;
  }

  .btn-bracket-nav--next {
    order: 2;
  }

  .btn-accent--finale-toggle {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 70px;
    font-size: 0.7rem;
  }

  .final-bracket {
    overflow: hidden;
    width: 100%;
  }

  .final-columns {
    grid-template-columns: repeat(9, minmax(98px, 98px));
    position: relative;
    scroll-behavior: smooth;
    width: max-content;
    min-width: max-content;
    column-gap: 0.4rem;
  }

  .final-columns--prediction {
    grid-template-columns: repeat(7, minmax(98px, 98px));
  }

  .final-bracket {
    min-height: 280px;
    overflow: hidden;
    width: 100%;
  }

  .final-bracket-wrap {
    min-height: 280px;
    width: 100%;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .final-round-col {
    height: 280px;
    min-height: 280px;
    padding-bottom: 0.8rem;
    scroll-snap-align: start;
  }

  .final-round-col--center {
    height: 280px;
  }

  .final-round-heading {
    font-size: 0.7rem;
    top: 0.1rem;
    padding: 0.02rem 0.25rem;
  }

  .match-compact:hover {
    transform: scale(1.05);
  }

  .compact-visible {
    gap: 2px;
    padding: 0;
  }

  .compact-teamline {
    gap: 1px;
  }

  .compact-side .flag {
    width: 25px;
    height: 16px;
  }

  .group-table .team-col .flag {
    width: 32px;
    height: 22px;
  }

  .compact-result {
    width: 11px;
    height: 10px;
    font-size: 0.65rem;
  }

  .compact-vs {
    font-size: 0.6rem;
    padding: 0 1px;
  }

  .compact-details {
    min-width: 200px;
    max-width: 260px;
    font-size: 0.65rem;
    padding: 0.35rem 0.45rem;
  }

  .final-bands {
    display: block;
    opacity: 0.7;
  }

  .final-band {
    filter: drop-shadow(0 0 4px rgba(253, 224, 71, 0.18));
  }
}

/* ====================================================================
   BRACKET NAVIGATION BUTTONS – Styling
   ==================================================================== */

.btn-bracket-nav {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(4, 7, 15, 0.8);
  color: var(--text-0);
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.25), rgba(34, 211, 238, 0.22));
  transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.btn-bracket-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.8);
}

.btn-bracket-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Desktop: Navigation Buttons versteckt */
@media (min-width: 1024px) {
  .final-controls {
    display: none !important;
  }
}
