:root {
  --bg: #1b5454;
  --bg-deep: #144444;
  --sidebar-bg: #0c2238;
  --sidebar-border: rgba(255, 255, 255, 0.35);
  --card: #0f3a3a;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f7f7;
  --text-muted: rgba(244, 247, 247, 0.65);
  --accent: #5ec4c4;
  --row-hover: rgba(255, 255, 255, 0.04);
  --nav-hover: rgba(255, 255, 255, 0.06);
  --nav-active: rgba(255, 255, 255, 0.12);
  --font-display: "Barlow Condensed", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --sidebar-width: 200px;
  --sidebar-width-collapsed: 56px;
  --ad-sidebar-width: 232px;
  --ad-sidebar-bg: #6b7280;
  --ad-sidebar-border: rgba(0, 0, 0, 0.2);
  --table-visible-rows: 10;
  --table-head-height: 2.25rem;
  --table-row-height: 2.5rem;
  --decade-col-width: 4.5rem;
  --filter-year-col-width: 4.75rem;
  --history-min-cup: 36rem;
  --history-min-league: 30rem;
  --league-alltime-min: 36rem;
  --league-stats-min: 40rem;
  --history-min-europe-finals: 42rem;
  --history-min-intl: 52rem;
  --history-min-intl-ko: 22rem;
  --history-min-derby: 44rem;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

body {
  background: var(--sidebar-bg);
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

/* —— Site brand (header + footer) —— */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.site-brand__logo-wrap {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.site-brand__logo {
  display: block;
  height: 50px;
  width: auto;
  object-fit: contain;
}

.site-footer__brand .site-brand__logo {
  height: 52px;
}

.site-brand__name {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.site-brand__club {
  color: #fff;
}

.site-brand__ranks {
  color: var(--accent);
}

/* —— Site header —— */
.site-header {
  flex-shrink: 0;
  width: 100%;
  background: var(--sidebar-bg);
  border-bottom: 1px solid rgba(94, 196, 196, 0.22);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 12px 20px;
}

.site-header__discord {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  height: 42px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(94, 196, 196, 0.35);
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}

.site-header__discord:hover {
  color: #fff;
  background: #5865f2;
  border-color: rgba(255, 255, 255, 0.12);
}

.site-header__discord:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header__discord-icon {
  display: block;
  flex-shrink: 0;
}

.site-header__discord-label {
  white-space: nowrap;
}

.site-brand:hover .site-brand__club,
.site-brand:hover .site-brand__ranks {
  color: #fff;
}

/* —— Site footer —— */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  background: var(--sidebar-bg);
  border-top: 1px solid rgba(94, 196, 196, 0.22);
  color: rgba(244, 247, 247, 0.72);
  font-size: 0.88rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 22px;
}

.site-footer__brand {
  display: flex;
}

.site-footer__tagline {
  margin: 0;
  line-height: 1.45;
  color: rgba(244, 247, 247, 0.62);
}

.site-footer__nav-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.site-footer__links a {
  color: rgba(244, 247, 247, 0.78);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 0.78rem;
  color: rgba(244, 247, 247, 0.55);
}

.site-footer__bar-sep {
  opacity: 0.45;
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 18px 18px;
  }
}

.content-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.top-tabs {
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
}

.top-tabs__inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
}

.top-tabs__btn {
  flex: 1 1 auto;
  min-width: max-content;
  padding: 14px 18px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.top-tabs__btn:last-child {
  border-right: none;
}

.top-tabs__btn:hover {
  background: var(--nav-hover);
  color: #fff;
}

.top-tabs__btn--active {
  background: var(--nav-active);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* —— Sidebar (ClubRanks) —— */
.sidebar {
  position: relative;
  isolation: isolate;
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  min-height: 0;
  align-self: stretch;
  padding: 10px 0 24px;
  overflow: hidden;
  transition: width 0.22s ease, flex-basis 0.22s ease;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0%, transparent 40%),
    linear-gradient(180deg, rgba(94, 196, 196, 0.05) 0%, transparent 28%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(94, 196, 196, 0.12) 0%, transparent 52%),
    var(--sidebar-bg);
  border-right: 1px solid rgba(94, 196, 196, 0.2);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.04),
    6px 0 28px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, transparent 32%),
    linear-gradient(rgba(94, 196, 196, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 196, 196, 0.03) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
  z-index: 0;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 0;
  width: 2px;
  height: 84%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(94, 196, 196, 0.35) 18%,
    rgba(94, 196, 196, 0.95) 50%,
    rgba(94, 196, 196, 0.35) 82%,
    transparent 100%
  );
  box-shadow:
    0 0 10px rgba(94, 196, 196, 0.45),
    0 0 24px rgba(94, 196, 196, 0.18);
  pointer-events: none;
  z-index: 2;
}

.sidebar__collapse {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 12px);
  margin: 0 6px 8px;
  padding: 10px;
  border: 1px solid rgba(94, 196, 196, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.sidebar__collapse:hover {
  background: rgba(94, 196, 196, 0.12);
  border-color: rgba(94, 196, 196, 0.5);
  color: #fff;
}

.sidebar__collapse:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sidebar__collapse-icon {
  display: block;
}

.sidebar__collapse-icon--closed {
  display: none;
}

.layout.sidebar-collapsed .sidebar {
  flex: 0 0 var(--sidebar-width-collapsed);
  width: var(--sidebar-width-collapsed);
}

.layout.sidebar-collapsed .sidebar__collapse-icon--open {
  display: none;
}

.layout.sidebar-collapsed .sidebar__collapse-icon--closed {
  display: block;
}

.layout.sidebar-collapsed .sidebar__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.layout.sidebar-collapsed .sidebar__link {
  justify-content: center;
  gap: 0;
  width: calc(100% - 8px);
  margin: 0 4px;
  padding: 10px 6px;
}

.layout.sidebar-collapsed .sidebar__divider-line {
  margin: 8px 8px;
}

.layout.sidebar-collapsed .sidebar__collapse {
  width: calc(100% - 8px);
  margin: 0 4px 8px;
}

#sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
}

/* —— Werbe-Sidebar (rechts) —— */
.ad-sidebar {
  position: relative;
  flex: 0 0 var(--ad-sidebar-width);
  width: var(--ad-sidebar-width);
  min-height: 0;
  align-self: stretch;
  background: var(--ad-sidebar-bg);
  border-left: 1px solid var(--ad-sidebar-border);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ad-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding: 18px 12px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.ad-slot--sidebar {
  width: 100%;
  min-height: 280px;
}

.ad-slot--sidebar .adsbygoogle {
  display: block;
  width: 100%;
  min-height: 250px;
}

.ad-sidebar__inner::-webkit-scrollbar {
  width: 6px;
}

.ad-sidebar__inner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 14px;
}

.sidebar__logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar__brand-name {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.sidebar__divider {
  margin: 0 12px 10px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.sidebar__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.year-filter {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 24px;
  background: radial-gradient(ellipse at 30% 0%, #236868 0%, var(--bg) 55%, var(--bg-deep) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.year-filter__inner--international,
.year-filter__inner--europe,
.year-filter__inner--europe-bracket {
  width: 100%;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.year-filter:has(.year-filter__inner--europe-bracket) {
  justify-content: stretch;
}

.year-filter__select {
  min-width: 7.5rem;
  padding: 6px 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  cursor: pointer;
}

.year-filter__field--season {
  margin: 0;
}

.year-filter:has(.year-filter__inner--europe) {
  justify-content: stretch;
}

.year-filter__europe-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.year-filter__europe-nav--cl {
  flex-wrap: wrap;
  row-gap: 6px;
  max-width: min(100%, 52rem);
}

.year-filter__year-group--hidden {
  display: none;
}

.dashboard--europe-cl-stats {
  display: block;
  max-width: none;
  --europe-thead-height: 2.25rem;
  --group-stage-stats-visible-rows: 10;
  --group-stage-performance-visible-rows: 10;
  --ko-stats-visible-rows: 10;
  --group-winrate-visible-rows: 5;
  --group-games-visible-rows: 8;
}

.dashboard--europe-cl-stats .card__header--europe-alltime,
.dashboard--europe-cl-stats .card__header--ko-history {
  align-items: flex-start;
}

.dashboard--europe-cl-stats .card__header--europe-alltime .card__title,
.dashboard--europe-cl-stats .card__header--ko-history .card__title {
  text-align: left;
  width: 100%;
}

.dashboard--europe-cl-stats .card__header--europe-alltime .card__note,
.dashboard--europe-cl-stats .card__header--ko-history .card__note {
  text-align: left;
}

.dashboard--europe-cl-stats > .card--europe-cl-stats {
  grid-column: 1 / -1;
}

/* Group Stage Performance + Winrate: 50/50 row (see .europe-group-performance-split-row) */

.europe-group-stats-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  align-items: stretch;
}

.europe-group-stats-split-row > .card--europe-group-stage-stats {
  margin-top: 0;
  min-width: 0;
  height: 100%;
}

.europe-group-stats-split-row .card__table-wrap--group-stage-stats {
  overflow-x: auto;
  overflow-y: auto;
}

/* 50/50: feste Spalten — Team lesbar, Zahlen kompakt, PPG sichtbar (~32rem Tabellenbreite) */
.europe-group-stats-split-row .card__table-wrap--group-stage-stats .group-stage-stats-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
  font-size: 0.84rem;
}

.europe-group-stats-split-row .card__table-wrap--group-stage-stats .group-stage-stats-table col:nth-child(1),
.europe-group-stats-split-row
  .card__table-wrap--group-stage-stats
  .group-stage-stats-table
  .col-rank {
  width: 2.25rem;
}

.europe-group-stats-split-row .card__table-wrap--group-stage-stats .group-stage-stats-table col:nth-child(2),
.europe-group-stats-split-row
  .card__table-wrap--group-stage-stats
  .group-stage-stats-table
  .col-team {
  width: 11rem;
}

.europe-group-stats-split-row
  .card__table-wrap--group-stage-stats
  .group-stage-stats-table
  col:nth-child(n + 3),
.europe-group-stats-split-row
  .card__table-wrap--group-stage-stats
  .group-stage-stats-table
  .col-stat {
  width: 2.45rem;
}

.europe-group-stats-split-row
  .card__table-wrap--group-stage-stats
  .group-stage-stats-table
  thead
  th.col-stat,
.europe-group-stats-split-row
  .card__table-wrap--group-stage-stats
  .group-stage-stats-table
  tbody
  td.col-stat {
  padding-left: 4px;
  padding-right: 4px;
}

.europe-group-stats-split-row
  .card__table-wrap--group-stage-stats
  .group-stage-stats-table
  td.col-stat
  .cell-value,
.europe-group-stats-split-row
  .card__table-wrap--group-stage-stats
  .group-stage-stats-table
  td.col-rank
  .cell-value,
.europe-group-stats-split-row
  .card__table-wrap--group-stage-stats
  .group-stage-stats-table
  td.col-rank
  .alltime-rank {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.europe-group-stats-split-row .group-stage-stats-table td.col-team .alltime-team {
  gap: 6px;
  min-width: 0;
}

.europe-group-stats-split-row .group-stage-stats-table td.col-team .team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit;
}

@media (max-width: 1599px) {
  .dashboard--europe-cl-stats .europe-group-stats-split-row,
  .dashboard--europe-cl-stats .europe-group-performance-split-row,
  .dashboard--europe-cl-stats .europe-group-games-row,
  .dashboard--europe-cl-stats .europe-group-winrate-grid,
  .dashboard--europe-cl-stats .europe-ko-games-grid,
  .europe-ko-games-block .europe-group-stats-split-row {
    grid-template-columns: 1fr;
  }

  .dashboard--europe-cl-stats .europe-group-stats-split-row > .card--europe-group-stage-stats-countries,
  .europe-ko-games-block .europe-group-stats-split-row > .card--europe-ko-games-stats-countries {
    margin-top: 0;
  }

  .dashboard--europe-cl-stats .europe-group-performance-split-row > .card--europe-group-stage-performance {
    max-height: none;
  }

  .dashboard--europe-cl-stats
    .europe-group-performance-split-row
    > .card--europe-group-stage-performance
    .card__table-wrap--group-stage-performance {
    max-height: calc(
      var(--europe-thead-height) +
        var(--table-row-height) * var(--group-stage-performance-visible-rows, 12)
    );
    flex: none;
  }

  .dashboard--europe-cl-stats .europe-ko-stage-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard--europe-cl-stats > .europe-group-stats-split-row,
.dashboard--europe-cl-stats > .europe-group-performance-split-row,
.dashboard--europe-cl-stats > .europe-group-games-block,
.dashboard--europe-cl-stats > .europe-ko-games-block,
.dashboard--europe-cl-stats > .europe-ko-games-grid {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 1.25rem;
}

.dashboard--europe-cl-stats > .europe-group-stats-split-row {
  margin-top: 0;
}

.europe-ko-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  --ko-four-grid-visible-rows: 8;
}

.europe-ko-games-grid > .card {
  grid-column: auto;
  grid-row: auto;
  margin-top: 0;
  min-width: 0;
  width: 100%;
}

.europe-ko-games-grid .card__header--europe-alltime {
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.europe-ko-games-grid .card__title {
  line-height: 1.25;
  text-align: left;
}

.europe-ko-games-grid .card__table-wrap--ko-matchups,
.europe-ko-games-grid .card__table-wrap--ko-grid-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(
    var(--europe-thead-height) +
      var(--table-row-height) * var(--ko-four-grid-visible-rows, 8)
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.europe-ko-games-grid .card__table-wrap--ko-matchups::-webkit-scrollbar,
.europe-ko-games-grid .card__table-wrap--ko-grid-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.europe-ko-games-grid .card__table-wrap--ko-matchups::-webkit-scrollbar-thumb,
.europe-ko-games-grid .card__table-wrap--ko-grid-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}


.dashboard--europe-cl-stats > .card--europe-ko-history.card--europe-cl-stats {
  margin-top: 0;
}

.europe-ko-games-grid .card--europe-ko-highlight .group-games-table--ko-ties,
.europe-ko-games-grid .card--europe-ko-matchups .ko-matchups-table {
  display: table;
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.8rem;
  table-layout: fixed;
}

.europe-ko-games-grid .group-games-table--ko-ties col.col-season {
  width: 11%;
}

.europe-ko-games-grid .group-games-table--ko-ties col.col-stage {
  width: 7%;
}

.europe-ko-games-grid .group-games-table--ko-ties col.col-leg,
.europe-ko-games-grid .group-games-table--ko-ties col.col-score,
.europe-ko-games-grid .group-games-table--ko-ties col.col-stat {
  width: 8%;
}

.europe-ko-games-grid .group-games-table--ko-ties col.col-team {
  width: 26%;
}

.europe-ko-games-grid .ko-matchups-table col.col-matchups {
  width: 9%;
}

.europe-ko-games-grid .ko-matchups-table col.col-qualify {
  width: 9%;
}

.europe-ko-games-grid .ko-matchups-table col.col-team {
  width: 41%;
}

.card--europe-ko-highlight .group-games-table--ko-ties thead {
  display: table-header-group;
}

.card--europe-ko-highlight .group-games-table--ko-ties tbody {
  display: table-row-group;
}

.card--europe-ko-highlight .group-games-table--ko-ties tbody tr {
  display: table-row;
  height: var(--table-row-height);
}

.card--europe-ko-highlight .group-games-table--ko-ties thead tr {
  display: table-row;
  height: auto;
}

.card--europe-ko-highlight .group-games-table--ko-ties th,
.card--europe-ko-highlight .group-games-table--ko-ties td {
  display: table-cell;
  vertical-align: middle;
}

.card--europe-ko-highlight .group-games-table--ko-ties thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
}

.card--europe-ko-highlight .group-games-table--ko-ties tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card--europe-ko-highlight .group-games-table--ko-ties .col-season {
  text-align: center;
  white-space: nowrap;
}

.card--europe-ko-highlight .group-games-table--ko-ties .col-stage,
.card--europe-ko-highlight .group-games-table--ko-ties .col-leg,
.card--europe-ko-highlight .group-games-table--ko-ties .col-score,
.card--europe-ko-highlight .group-games-table--ko-ties .col-stat {
  text-align: center;
  white-space: nowrap;
}

.card--europe-ko-highlight .group-games-table--ko-ties .col-team {
  text-align: left;
  min-width: 0;
}

.card--europe-ko-highlight .group-games-table--ko-ties td.col-season .cell-value,
.card--europe-ko-highlight .group-games-table--ko-ties td.col-stage .cell-value,
.card--europe-ko-highlight .group-games-table--ko-ties td.col-leg .cell-value,
.card--europe-ko-highlight .group-games-table--ko-ties td.col-score .cell-value,
.card--europe-ko-highlight .group-games-table--ko-ties td.col-stat .cell-value {
  display: block;
  text-align: center;
}

.europe-ko-games-grid .group-games-table--ko-ties td.col-team .team-name,
.europe-ko-games-grid .ko-matchups-table td.col-team .team-name {
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  font-size: 0.78rem;
}

.europe-ko-games-grid .group-games-table--ko-ties thead th,
.europe-ko-games-grid .ko-matchups-table thead th {
  padding: 6px 4px;
  font-size: 0.66rem;
}

.europe-ko-games-grid .group-games-table--ko-ties tbody td,
.europe-ko-games-grid .ko-matchups-table tbody td {
  padding: 5px 4px;
}

.card--europe-ko-highlight .group-games-table--ko-ties th.sortable {
  cursor: pointer;
  user-select: none;
}

.card--europe-ko-highlight .group-games-table--ko-ties th.sortable:hover,
.card--europe-ko-highlight .group-games-table--ko-ties th.sortable--active {
  color: var(--text-muted);
}

.card--europe-ko-highlight .group-games-table--ko-ties th.sortable::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  margin-left: 0.25em;
}

.card--europe-ko-highlight
  .group-games-table--ko-ties
  th.sortable--active.sortable--desc::after {
  content: "▼";
  font-size: 0.55em;
  opacity: 0.85;
  color: var(--accent, #5ec4c4);
}

.card--europe-ko-highlight
  .group-games-table--ko-ties
  th.sortable--active.sortable--asc::after {
  content: "▲";
  font-size: 0.55em;
  opacity: 0.85;
  color: var(--accent, #5ec4c4);
}

.europe-ko-games-grid .group-games-table--ko-both-legs col.col-team {
  width: 72%;
}

.europe-ko-games-grid .group-games-table--ko-both-legs col.col-count {
  width: 28%;
}

.europe-ko-games-grid .group-games-table--ko-penalty col.col-team {
  width: 42%;
}

.europe-ko-games-grid .group-games-table--ko-penalty col.col-pen-stat {
  width: 14.5%;
}

.europe-ko-games-grid .group-games-table--ko-penalty col.col-pen-pct {
  width: 14%;
}

.card--europe-ko-highlight .group-games-table--ko-both-legs .col-count,
.card--europe-ko-highlight .group-games-table--ko-penalty .col-pen-stat,
.card--europe-ko-highlight .group-games-table--ko-penalty .col-pen-pct {
  text-align: center;
  white-space: nowrap;
}

.card--europe-ko-highlight .group-games-table--ko-both-legs td.col-count .cell-value,
.card--europe-ko-highlight .group-games-table--ko-penalty td.col-pen-stat .cell-value,
.card--europe-ko-highlight .group-games-table--ko-penalty td.col-pen-pct .cell-value {
  display: block;
  text-align: center;
}

.europe-ko-games-grid .card--europe-ko-matchups {
  margin-top: 0;
  width: 100%;
}

.card--europe-ko-matchups {
  width: 100%;
}

.card--europe-ko-matchups .card__header--europe-alltime {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.card--europe-ko-matchups .card__note {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--text-muted);
}

.europe-ko-games-grid .card--europe-ko-matchups .ko-matchups-table {
  display: table;
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.card--europe-ko-matchups .ko-matchups-table thead {
  display: table-header-group;
}

.card--europe-ko-matchups .ko-matchups-table tbody {
  display: table-row-group;
}

.card--europe-ko-matchups .ko-matchups-table tbody tr {
  display: table-row;
  height: var(--table-row-height);
}

.card--europe-ko-matchups .ko-matchups-table thead tr {
  display: table-row;
  height: auto;
}

.card--europe-ko-matchups .ko-matchups-table th,
.card--europe-ko-matchups .ko-matchups-table td {
  display: table-cell;
  vertical-align: middle;
}

.card--europe-ko-matchups .ko-matchups-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
}

.card--europe-ko-matchups .ko-matchups-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card--europe-ko-matchups .ko-matchups-table .col-matchups,
.card--europe-ko-matchups .ko-matchups-table .col-qualify {
  text-align: center;
  white-space: nowrap;
}

.card--europe-ko-matchups .ko-matchups-table .col-team {
  text-align: left;
  min-width: 0;
}

.card--europe-ko-matchups .ko-matchups-table td.col-matchups .cell-value,
.card--europe-ko-matchups .ko-matchups-table td.col-qualify .cell-value {
  display: block;
  text-align: center;
}

.card--europe-ko-matchups .ko-matchups-table td.col-team {
  padding-left: 8px;
  padding-right: 8px;
}

.card--europe-ko-matchups .ko-matchups-table td.col-team .alltime-team {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.card--europe-ko-matchups .ko-matchups-table td.col-team .team-name {
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

.card--europe-ko-matchups .ko-matchups-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.card--europe-ko-matchups .ko-matchups-table th.sortable:hover,
.card--europe-ko-matchups .ko-matchups-table th.sortable--active {
  color: var(--text-muted);
}

.card--europe-ko-matchups .ko-matchups-table th.sortable::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  margin-left: 0.25em;
}

.card--europe-ko-matchups
  .ko-matchups-table
  th.sortable--active.sortable--desc::after {
  content: "▼";
  font-size: 0.55em;
  opacity: 0.85;
  color: var(--accent, #5ec4c4);
}

.card--europe-ko-matchups
  .ko-matchups-table
  th.sortable--active.sortable--asc::after {
  content: "▲";
  font-size: 0.55em;
  opacity: 0.85;
  color: var(--accent, #5ec4c4);
}

.dashboard--europe-cl-stats .card__table-wrap--ko-matchups {
  width: 100%;
}

.dashboard--europe-cl-stats .card__table-wrap--ko-matchups thead {
  display: table-header-group;
}

.dashboard--europe-cl-stats .card__table-wrap--ko-matchups tbody {
  display: table-row-group;
  max-height: none;
  overflow: visible;
}

.dashboard--europe-cl-stats .card__table-wrap--ko-matchups tbody tr {
  display: table-row;
  width: auto;
  table-layout: auto;
}

.dashboard--europe-cl-stats .card__table-wrap--ko-grid-scroll {
  width: 100%;
}

.dashboard--europe-cl-stats .card__table-wrap--ko-grid-scroll thead {
  display: table-header-group;
}

.dashboard--europe-cl-stats .card__table-wrap--ko-grid-scroll tbody {
  display: table-row-group;
  max-height: none;
  overflow: visible;
}

.dashboard--europe-cl-stats .card__table-wrap--ko-grid-scroll tbody tr {
  display: table-row;
  width: auto;
  table-layout: auto;
}

.europe-ko-games-grid .card__table-wrap--ko-grid-scroll tbody td.col-team,
.europe-ko-games-grid .card__table-wrap--ko-grid-scroll tbody td.col-season,
.europe-ko-games-grid .card__table-wrap--ko-grid-scroll tbody td.col-stage,
.europe-ko-games-grid .card__table-wrap--ko-grid-scroll tbody td.col-leg,
.europe-ko-games-grid .card__table-wrap--ko-grid-scroll tbody td.col-score,
.europe-ko-games-grid .card__table-wrap--ko-grid-scroll tbody td.col-stat {
  width: auto;
}

/* Globale col-team 85%-Regel gilt nicht für die 5-Spalten-Matchup-Tabelle */
.europe-ko-games-grid .card__table-wrap--ko-matchups tbody td.col-team,
.europe-ko-games-grid .card__table-wrap--ko-matchups tbody td.col-matchups,
.europe-ko-games-grid .card__table-wrap--ko-matchups tbody td.col-qualify {
  width: auto;
}

.card--europe-ko-matchups .card__table-wrap--ko-matchups tbody td.col-team .alltime-team {
  min-width: 0;
  width: 100%;
}

.card--europe-ko-matchups .card__table-wrap--ko-matchups tbody td.col-team .team-name {
  flex: 1 1 auto;
  min-width: 0;
}

.europe-ko-games-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.europe-ko-games-block .europe-group-stats-split-row {
  width: 100%;
  margin-top: 0;
}

.europe-ko-games-block .europe-group-stats-split-row > .card--europe-ko-games-stats {
  margin-top: 0;
}

.europe-ko-stage-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
}

.europe-ko-stage-btn {
  padding: 10px 12px;
  border: none;
  border-radius: 4px;
  background: #f5f5f5;
  color: #111;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.europe-ko-stage-btn:hover {
  background: #fff;
}

.europe-ko-stage-btn--active {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--accent, #7dd3fc);
}

.dashboard--europe-cl-stats .card--europe-ko-games-stats-countries {
  margin-top: 0;
}

.europe-group-games-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.europe-group-games-row > .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
}

.europe-group-performance-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  align-items: start;
  --group-winrate-visible-rows: 6;
  --group-winrate-stack-gap: 12px;
  --europe-cl-stats-card-header-height: 2.875rem;
  /* Höhe rechts: 2×(Kopf + Tabelle 6 Zeilen) + Zwischenraum */
  --group-winrate-stack-height: calc(
    2 *
      (
        var(--europe-cl-stats-card-header-height) + var(--europe-thead-height) +
          var(--table-row-height) * var(--group-winrate-visible-rows)
      ) +
    var(--group-winrate-stack-gap)
  );
}

.europe-group-performance-split-row > .card--europe-group-stage-performance {
  margin-top: 0;
  min-width: 0;
  width: 100%;
  max-height: var(--group-winrate-stack-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.europe-group-performance-split-row
  > .card--europe-group-stage-performance
  .card__table-wrap--group-stage-performance {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: auto;
}

.europe-group-performance-split-row
  .group-stage-performance-table
  tbody
  tr {
  height: var(--table-row-height);
}

.europe-group-performance-split-row > .europe-group-winrate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--group-winrate-stack-gap);
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.europe-group-performance-split-row .europe-group-winrate-grid > .card {
  min-width: 0;
  width: 100%;
  margin-top: 0;
}

.europe-group-performance-split-row
  .europe-group-winrate-grid
  .card__table-wrap--group-stage-winrate {
  max-height: calc(
    var(--europe-thead-height) +
      var(--table-row-height) * var(--group-winrate-visible-rows, 6)
  );
}

.europe-group-winrate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.europe-group-winrate-grid > .card {
  min-width: 0;
  width: 100%;
  margin-top: 0;
}


.europe-group-performance-split-row .group-stage-performance-table {
  min-width: 0;
}

.europe-group-performance-split-row .europe-group-winrate-grid .card__title {
  line-height: 1.25;
  text-align: left;
}

.card__table-wrap--group-games {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  max-height: calc(
    var(--europe-thead-height) +
      var(--table-row-height) * var(--group-games-visible-rows, 8)
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  scrollbar-gutter: stable;
}

.europe-group-games-row .card__table-wrap--group-games::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.europe-group-games-row .card__table-wrap--group-games::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

/* Normale Tabellenstruktur (kein tbody-block aus globalen Regeln) */
.dashboard--europe-cl-stats .card__table-wrap--group-games thead {
  display: table-header-group;
  width: 100%;
  table-layout: auto;
}

.dashboard--europe-cl-stats .card__table-wrap--group-games tbody {
  display: table-row-group;
  max-height: none;
  overflow: visible;
}

.dashboard--europe-cl-stats .card__table-wrap--group-games tbody tr {
  display: table-row;
  width: auto;
  table-layout: auto;
}

.dashboard--europe-cl-stats .card__table-wrap--group-games tbody td.col-team {
  width: auto;
}

.card--europe-group-games-matches .group-games-table--matches {
  display: table;
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.78rem;
  table-layout: fixed;
}

.europe-group-games-row .group-games-table--matches col.col-date {
  width: 12%;
}

.europe-group-games-row .group-games-table--matches col.col-team {
  width: 30%;
}

.europe-group-games-row .group-games-table--matches col.col-score {
  width: 14%;
}

.europe-group-games-row .group-games-table--matches col.col-diff {
  width: 14%;
}

.card--europe-group-games-matches .group-games-table--matches thead {
  display: table-header-group;
}

.card--europe-group-games-matches .group-games-table--matches tbody {
  display: table-row-group;
}

.card--europe-group-games-matches .group-games-table--matches tr {
  display: table-row;
}

.card--europe-group-games-matches .group-games-table--matches th,
.card--europe-group-games-matches .group-games-table--matches td {
  display: table-cell;
  vertical-align: middle;
}

.card--europe-group-games-count .group-games-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.84rem;
  table-layout: fixed;
}

.card--europe-group-games-matches .group-games-table tr,
.card--europe-group-games-count .group-games-table tr {
  height: var(--table-row-height);
}

.card--europe-group-games-matches .group-games-table thead th,
.card--europe-group-games-count .group-games-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
}

.card--europe-group-games-matches .group-games-table tbody td,
.card--europe-group-games-count .group-games-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.card--europe-group-games-matches .group-games-table .col-date {
  text-align: center;
  white-space: nowrap;
}

.card--europe-group-games-matches .group-games-table .col-score {
  text-align: center;
  white-space: nowrap;
}

.card--europe-group-games-matches .group-games-table .col-team {
  text-align: left;
}

.card--europe-group-games-matches .group-games-table .col-diff {
  text-align: center;
}

.europe-group-games-row .group-games-table--matches thead th {
  padding: 8px 4px;
  font-size: 0.66rem;
}

.europe-group-games-row .group-games-table--matches tbody td {
  padding: 0 4px;
}

.europe-group-games-row .group-games-table--matches td.col-team .team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card--europe-group-games-count .group-games-table .col-team {
  width: 75%;
  text-align: left;
}

.card--europe-group-games-count .group-games-table .col-count {
  width: 25%;
  text-align: center;
}

.card--europe-group-games-matches .group-games-table td.col-date .cell-value,
.card--europe-group-games-matches .group-games-table td.col-score .cell-value,
.card--europe-group-games-matches .group-games-table td.col-stat .cell-value,
.card--europe-group-games-count .group-games-table td.col-count .cell-value {
  display: block;
  text-align: center;
}

.card--europe-group-games-matches .group-games-table td.col-team .team-name,
.card--europe-group-games-count .group-games-table td.col-team .team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.europe-group-games-row .group-games-count-row--pickable {
  cursor: pointer;
}

.europe-group-games-row .group-games-count-row--pickable:hover td {
  background: rgba(125, 211, 252, 0.08);
}

.card--europe-group-games-matches .group-games-table th.sortable,
.card--europe-group-games-count .group-games-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.card--europe-group-games-matches .group-games-table th.sortable:hover,
.card--europe-group-games-matches .group-games-table th.sortable--active,
.card--europe-group-games-count .group-games-table th.sortable:hover,
.card--europe-group-games-count .group-games-table th.sortable--active {
  color: var(--accent, #7dd3fc);
}

.card--europe-group-games-matches .group-games-table th.sortable::after,
.card--europe-group-games-count .group-games-table th.sortable::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  margin-left: 0.25em;
}

.card--europe-group-games-matches
  .group-games-table
  th.sortable--active.sortable--desc::after,
.card--europe-group-games-count
  .group-games-table
  th.sortable--active.sortable--desc::after {
  content: "▼";
  font-size: 0.55em;
  opacity: 0.85;
}

.card--europe-group-games-matches
  .group-games-table
  th.sortable--active.sortable--asc::after,
.card--europe-group-games-count
  .group-games-table
  th.sortable--active.sortable--asc::after {
  content: "▲";
  font-size: 0.55em;
  opacity: 0.85;
}

.card--europe-group-games-count .group-games-table th.col-count.sortable:empty::after {
  margin-left: 0;
}

.card__header--group-performance .card__header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card__header--group-performance .card__subtitle {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
  font-family: var(--font-body, inherit);
}

.card--europe-group-stage-stats .card__filter-hint,
.card--europe-ko-games-stats .card__filter-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard--europe-cl-stats .card__table-wrap--ko-history {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(
    var(--europe-thead-height) +
      var(--table-row-height) * var(--ko-stats-visible-rows, 10)
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.year-filter__europe-link {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.year-filter__europe-link--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
}

.year-filter__europe-link--cta {
  gap: 10px;
  padding: 8px 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(94, 196, 196, 0.65);
  border-radius: 6px;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.year-filter__europe-link--cta:hover {
  background: rgba(94, 196, 196, 0.22);
  border-color: var(--accent);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(94, 196, 196, 0.35);
  transform: translateY(-1px);
}

.year-filter__europe-link--cta:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.year-filter__europe-link--cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.year-filter__europe-link-arrow {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  opacity: 0.95;
  transition: transform 0.15s ease;
}

.year-filter__europe-link--cta:hover .year-filter__europe-link-arrow {
  transform: translateX(3px);
}

.year-filter__europe-link:not(.year-filter__europe-link--cta):not(.year-filter__europe-link--active) {
  border: 1px solid transparent;
  border-radius: 6px;
}

.year-filter__europe-link:not(.year-filter__europe-link--cta):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.year-filter__filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar--intl-view .top-bar__title,
.top-bar--derby-view .top-bar__title,
.top-bar--club-ranking-view .top-bar__title {
  display: none;
}

.top-bar--derby-view:not(:has(.league-filter-chip)),
.top-bar--club-ranking-view:not(:has(.league-filter-chip)) {
  margin-bottom: 0;
  min-height: 0;
}

.top-bar--intl-view:not(:has(.league-filter-chip)) {
  margin-bottom: 0;
  min-height: 0;
}

.year-filter__team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.year-filter__team-label {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.year-filter__select {
  min-width: 11rem;
  padding: 7px 32px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.15);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.year-filter__select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.year-filter__year-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.year-filter--hidden {
  display: none;
}

.year-filter__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.year-filter__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.year-filter__icon {
  opacity: 0.95;
  flex-shrink: 0;
}

.year-filter__inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.year-filter__sep {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  user-select: none;
}

.year-filter__field {
  display: block;
}

.year-filter__input {
  width: 4.75rem;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.year-filter__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.year-filter__input::-webkit-outer-spin-button,
.year-filter__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar__divider-line {
  margin: 10px 16px;
  border: none;
  border-top: 1px solid rgba(94, 196, 196, 0.35);
  box-shadow: 0 0 10px rgba(94, 196, 196, 0.12);
  list-style: none;
}

.sidebar__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 12px);
  margin: 0 6px;
  padding: 11px 14px;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.sidebar__link:hover {
  background: rgba(94, 196, 196, 0.1);
  border-left-color: rgba(94, 196, 196, 0.45);
  color: #fff;
  box-shadow: inset 0 0 18px rgba(94, 196, 196, 0.06);
}

.sidebar__link--active {
  background: linear-gradient(
    90deg,
    rgba(94, 196, 196, 0.22) 0%,
    rgba(94, 196, 196, 0.07) 55%,
    transparent 100%
  );
  border-left-color: var(--accent);
  color: #fff;
  box-shadow:
    inset 0 0 22px rgba(94, 196, 196, 0.1),
    0 0 16px rgba(94, 196, 196, 0.08);
}

.sidebar__link--active .sidebar__label {
  text-shadow: 0 0 14px rgba(94, 196, 196, 0.35);
}

.sidebar__link .flag-img {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.35));
  transition: filter 0.2s ease;
}

.sidebar__link:hover .flag-img,
.sidebar__link--active .flag-img {
  filter: drop-shadow(0 0 6px rgba(94, 196, 196, 0.35));
}

.sidebar__label {
  line-height: 1.25;
  font-size: 1.05rem;
}

.flag-img {
  flex-shrink: 0;
  width: 36px;
  height: 26px;
  object-fit: contain;
  display: block;
}

/* EU fallback (kein Bild) */
.flag {
  flex-shrink: 0;
  width: 36px;
  height: 24px;
  border-radius: 2px;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.flag--eu {
  background: #003399;
  background-image: radial-gradient(circle, #ffcc00 18%, transparent 20%);
  background-size: 8px 8px;
  background-position: 4px 4px;
}

.flag--es {
  background: linear-gradient(
    to bottom,
    #c60b1e 0 25%,
    #ffc400 25% 75%,
    #c60b1e 75% 100%
  );
}

.flag--gb-eng {
  background: #fff;
  background-image:
    linear-gradient(#ce1126, #ce1126),
    linear-gradient(90deg, #ce1126, #ce1126);
  background-size: 100% 22%, 22% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.flag--it {
  background: linear-gradient(
    to right,
    #009246 0 33.3%,
    #fff 33.3% 66.6%,
    #ce2b37 66.6% 100%
  );
}

.flag--de {
  background: linear-gradient(
    to bottom,
    #000 0 33.3%,
    #dd0000 33.3% 66.6%,
    #ffce00 66.6% 100%
  );
}

.flag--fr {
  background: linear-gradient(
    to right,
    #0055a4 0 33.3%,
    #fff 33.3% 66.6%,
    #ef4135 66.6% 100%
  );
}

.flag--tr {
  background: #e30a17;
  position: relative;
}

.flag--tr::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  top: 6px;
  left: 11px;
  box-shadow: 7px 0 0 #e30a17;
}

.flag--nl {
  background: linear-gradient(
    to bottom,
    #ae1c28 0 33.3%,
    #fff 33.3% 66.6%,
    #21468b 66.6% 100%
  );
}

.flag--pt {
  background: linear-gradient(to right, #006600 0 40%, #ff0000 40% 100%);
}

.main {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  padding: 20px 24px 32px;
  background: radial-gradient(ellipse at 30% 0%, #236868 0%, var(--bg) 55%, var(--bg-deep) 100%);
}

.main > .dashboard {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.top-bar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-bar__subtitle {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.top-bar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(94, 196, 196, 0.12);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.team-filter-chip:hover {
  background: rgba(94, 196, 196, 0.22);
}

.team-filter-chip__x {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.85;
}

.decade-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 200, 80, 0.55);
  border-radius: 999px;
  background: rgba(255, 200, 80, 0.12);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.decade-filter-chip:hover {
  background: rgba(255, 200, 80, 0.22);
}

.decade-filter-chip__label {
  letter-spacing: 0.02em;
}

.league-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(94, 196, 196, 0.55);
  border-radius: 999px;
  background: rgba(94, 196, 196, 0.12);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.league-filter-chip:hover {
  background: rgba(94, 196, 196, 0.22);
}

.league-filter-chip__role {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.decade-select {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 2px 6px;
  margin: -2px -6px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
}

.decade-select:hover {
  background: var(--row-hover);
}

.decade-select--active {
  background: rgba(255, 200, 80, 0.18);
  outline: 1px solid rgba(255, 200, 80, 0.45);
}

.team-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
}

.team-select:hover {
  background: var(--row-hover);
}

.team-select--active {
  background: rgba(94, 196, 196, 0.18);
  outline: 1px solid rgba(94, 196, 196, 0.45);
}

.team-select--count {
  justify-content: flex-end;
  font-weight: 600;
  color: var(--accent);
}

.team-select--value {
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
}

.team-row--clickable {
  cursor: pointer;
}

.team-row--clickable:hover td {
  background: var(--row-hover);
}

.team-row--active td {
  background: rgba(94, 196, 196, 0.14);
}

.card--focused {
  border-color: rgba(94, 196, 196, 0.35);
  box-shadow: 0 0 0 1px rgba(94, 196, 196, 0.2), var(--shadow);
}

.file-picker__btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}

.file-picker__btn:hover {
  background: #164848;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
  align-content: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - 120px);
}

/* Länder-Übersicht (8 Tabellen): ab mittlerer Breite 2 pro Zeile (Sidebars + Lesbarkeit) */
.dashboard--country-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1500px) {
  .dashboard--country-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dashboard--country-stats {
    grid-template-columns: 1fr;
  }
}

.dashboard--league-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  align-items: start;
  align-content: start;
  min-height: 0;
}

.dashboard--league-view .card--league-alltime,
.dashboard--league-view .league-champions-runner-row {
  grid-column: 1 / -1;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.league-champions-runner-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.league-champions-runner-row > .card--league-champions,
.league-champions-runner-row > .card--league-runner-up {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 1201px) {
  .league-champions-runner-row {
    flex-direction: row;
    align-items: stretch;
  }

  .league-champions-runner-row > .card--league-champions,
  .league-champions-runner-row > .card--league-runner-up {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }
}

.dashboard--league-view .card--league-history {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  width: 100%;
}

.dashboard--league-view .card--league-side {
  align-self: stretch;
  --table-visible-rows: 5;
}

.dashboard--league-view .card--league-side .card__table-wrap tbody {
  min-height: calc(var(--table-row-height) * var(--table-visible-rows));
  max-height: calc(var(--table-row-height) * var(--table-visible-rows));
}

.dashboard--cup-view,
.dashboard--league-cup-view,
.dashboard--super-cup-view {
  --europe-thead-height: 2.25rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

.dashboard--cup-view > *,
.dashboard--league-cup-view > *,
.dashboard--super-cup-view > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.dashboard--cup-view .card--cup-side,
.dashboard--league-cup-view .card--cup-side,
.dashboard--super-cup-view .card--cup-side {
  --table-visible-rows: 6;
}

.dashboard--super-cup-view .card--sc-winner {
  --table-visible-rows: 2;
}

.dashboard--cup-view .card--cup-streak,
.dashboard--league-cup-view .card--cup-streak,
.dashboard--super-cup-view .card--cup-streak {
  --table-visible-rows: 5;
}

@media (min-width: 901px) {
  .dashboard--cup-view,
  .dashboard--league-cup-view,
  .dashboard--super-cup-view {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dashboard--cup-view > .card--cup-history,
  .dashboard--league-cup-view > .card--cup-history,
  .dashboard--super-cup-view > .card--cup-history,
  .dashboard--cup-view > .card--cup-rate,
  .dashboard--league-cup-view > .card--cup-rate,
  .dashboard--super-cup-view > .card--cup-rate,
  .dashboard--super-cup-view > .card--sc-winner {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .dashboard--cup-view > .card--cup-side:not(.card--cup-rate):not(.card--sc-winner),
  .dashboard--league-cup-view > .card--cup-side:not(.card--cup-rate),
  .dashboard--super-cup-view > .card--cup-side:not(.card--cup-rate):not(.card--sc-winner) {
    flex: 1 1 calc(50% - 7px);
    width: calc(50% - 7px);
    max-width: calc(50% - 7px);
  }
}

.card--sc-winner {
  padding-bottom: 0;
  align-self: start;
  height: fit-content;
}

.card--sc-winner .card__header {
  padding: 0.55rem 0.85rem 0.35rem;
}

.card--sc-winner .card__title {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.card--sc-winner .card__table-wrap {
  padding: 0 0.85rem 0;
}

.dashboard--super-cup-view .card--sc-winner.card--cup-side .card__table-wrap tbody {
  min-height: 0;
  max-height: calc(var(--table-row-height) * 2);
  overflow-y: auto;
}

.card--sc-winner .card__table-wrap table {
  font-size: 0.8rem;
}

.card--sc-winner .card__table-wrap th,
.card--sc-winner .card__table-wrap td {
  padding: 5px 8px;
}

.card--sc-winner .label-plain,
.label-plain {
  display: block;
  line-height: 1.3;
  white-space: normal;
  text-align: left;
}

.card--cup-rate .card__table-wrap--cup-rate {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-height: calc(var(--table-row-height) * 6 + 2.4rem);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--cup-rate .cup-rate-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.86rem;
  table-layout: fixed;
}

.card--cup-rate .cup-rate-table thead {
  display: table-header-group;
}

.card--cup-rate .cup-rate-table tbody {
  display: table-row-group;
}

.card--cup-rate .cup-rate-table tr {
  display: table-row;
}

.card--cup-rate .cup-rate-table th,
.card--cup-rate .cup-rate-table td {
  display: table-cell;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.card--cup-rate .cup-rate-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: var(--table-row-height);
  box-sizing: border-box;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

.card--cup-rate .cup-rate-table thead th.col-team {
  text-align: left;
}

.card--cup-rate .cup-rate-table .col-team {
  width: 34%;
  text-align: left;
}

.card--cup-rate .cup-rate-table .col-stat {
  width: 11%;
  text-align: center;
}

.card--cup-rate .cup-rate-table .col-winpct {
  width: 12%;
  text-align: center;
}

.card--cup-rate .cup-rate-table td.col-stat,
.card--cup-rate .cup-rate-table td.col-winpct {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.card--cup-rate .cup-rate-table td.col-stat .cell-value,
.card--cup-rate .cup-rate-table td.col-winpct .cell-value {
  display: inline-block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.card--cup-rate .cup-rate-table td.col-team .team-name {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.card--cup-rate .cup-rate-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.card--cup-rate .cup-rate-table th.sortable:hover {
  color: var(--text);
}

.card--cup-rate .cup-rate-table th.sortable--active {
  color: var(--accent);
}

.card--cup-rate .cup-rate-table th.sortable::after {
  content: "↕";
  margin-left: 4px;
  font-size: 0.65em;
  opacity: 0.35;
}

.card--cup-rate .cup-rate-table th.sortable--active.sortable--desc::after {
  content: "▼";
  opacity: 1;
}

.card--cup-rate .cup-rate-table th.sortable--active.sortable--asc::after {
  content: "▲";
  opacity: 1;
}

.dashboard--cup-view .card--cup-side .card__table-wrap tbody,
.dashboard--super-cup-view .card--cup-side .card__table-wrap tbody {
  min-height: calc(var(--table-row-height) * var(--table-visible-rows));
  max-height: calc(var(--table-row-height) * var(--table-visible-rows));
}

.cup-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.cup-table th,
.cup-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.cup-table thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.card--cup-history {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.card--cup-history .card__table-wrap--cup {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-height: calc(var(--table-row-height) * 10 + 2.5rem);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--cup-history .cup-table {
  width: 100%;
  min-width: var(--history-min-cup);
}

.card--cup-history .cup-table thead {
  display: table-header-group;
  width: 100%;
}

.card--cup-history .cup-table tbody {
  display: table-row-group;
}

.card--cup-history .cup-table tbody tr {
  display: table-row;
  width: auto;
}

.card--cup-history .cup-table thead th,
.card--cup-history .cup-table td {
  text-align: left;
}

.card--cup-history .cup-table col.col-season {
  width: 8%;
  min-width: 4.25rem;
}

.card--cup-history .cup-table col.col-champion,
.card--cup-history .cup-table col.col-runner {
  width: 32%;
  min-width: 9rem;
}

.card--cup-history .cup-table col.col-score {
  width: 10%;
  min-width: 4.75rem;
}

.card--cup-history .cup-table col.col-score-2 {
  width: 10%;
  min-width: 4.75rem;
}

.cup-table--single-leg col.col-champion,
.cup-table--single-leg col.col-runner {
  width: 34%;
  min-width: 9rem;
}

.cup-table--single-leg col.col-score {
  width: 14%;
  min-width: 5rem;
}

.card--cup-history .cup-table thead th {
  white-space: nowrap;
}

.cup-table thead th.col-champion,
.cup-table thead th.col-runner {
  text-align: left;
}

.cup-table thead th.col-score,
.cup-table td.col-score {
  text-align: center;
  padding-inline: 6px;
}

.cup-table td.col-score .cell-value {
  display: inline-block;
  text-align: center;
}

.card--cup-history .cup-table td.col-season {
  white-space: nowrap;
}

.cup-table .league-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cup-table .league-team .crest {
  flex-shrink: 0;
}

.dashboard--cup-view .card--cup-side td.col-team,
.dashboard--league-cup-view .card--cup-side td.col-team,
.dashboard--super-cup-view .card--cup-side td.col-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dashboard--cup-view .card--cup-side td.col-team > .crest,
.dashboard--league-cup-view .card--cup-side td.col-team > .crest,
.dashboard--super-cup-view .card--cup-side td.col-team > .crest {
  flex-shrink: 0;
}

.card--cup-history .cup-table td.league-team-col {
  overflow: hidden;
  min-width: 0;
}

.card--cup-history .cup-table td.league-team-col .league-team {
  min-width: 0;
}

.card--cup-history .cup-table td.league-team-col .team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card--cup-history .cup-table td.col-score {
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  white-space: nowrap;
}

.card--cup-history .cup-table td.col-score .cell-value {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card--league-history .card__table-wrap--league {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-height: calc(var(--table-row-height) * 10 + 2.5rem);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--league-history .league-table {
  width: 100%;
  min-width: var(--history-min-league);
  table-layout: fixed;
}

.card--league-history .league-table thead {
  display: table-header-group;
  width: 100%;
}

.card--league-history .league-table tbody {
  display: table-row-group;
  max-height: none;
  min-height: 0;
  overflow: visible;
}

.card--league-history .league-table tbody tr {
  display: table-row;
  width: auto;
  table-layout: auto;
}

.card__table-wrap--league {
  flex: 0 0 auto;
}

.card__table-wrap--cup {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.league-table th,
.league-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.league-table thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.12);
}

.league-table .col-season,
.league-table td.col-season {
  display: table-cell;
  width: 16%;
  min-width: 4.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.league-table td.league-team-col {
  display: table-cell;
  width: 28%;
  min-width: 8.5rem;
}

.league-table .league-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card--league-history .card__table-wrap tbody td.col-team,
.card--league-history .card__table-wrap tbody td.col-value {
  width: auto;
}

.league-team .team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card--league-alltime .card__header {
  width: 100%;
  box-sizing: border-box;
  padding-right: 12px;
}

.card--league-alltime .card__table-wrap--alltime {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-height: calc(var(--table-row-height) * 6 + var(--table-head-height));
  padding: 0 14px 14px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--league-alltime .alltime-table {
  width: 100%;
  min-width: var(--league-alltime-min);
  border-collapse: collapse;
  font-size: 0.86rem;
  table-layout: auto;
}

.card--league-alltime .alltime-table col.col-rank {
  width: 2.5rem;
}

.card--league-alltime .alltime-table col.col-team {
  width: 10rem;
}

.card--league-alltime .alltime-table col.col-stat {
  width: 3.75rem;
}

.card--league-alltime .alltime-table col.col-stat:last-child {
  width: 4.25rem;
}

.card--league-alltime .alltime-table thead {
  display: table-header-group;
}

.card--league-alltime .alltime-table tbody {
  display: table-row-group;
}

.card--league-alltime .alltime-table tr {
  display: table-row;
}

.card--league-alltime .alltime-table th,
.card--league-alltime .alltime-table td {
  display: table-cell;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.card--league-alltime .alltime-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

.card--league-alltime .alltime-table thead th.col-rank,
.card--league-alltime .alltime-table thead th.col-stat {
  text-align: center;
}

.card--league-alltime .alltime-table thead th.col-team {
  text-align: left;
}

.card--league-alltime .alltime-table th,
.card--league-alltime .alltime-table td {
  overflow: visible;
  text-overflow: clip;
}

.card--league-alltime .alltime-table td.col-team {
  overflow: visible;
  max-width: none;
}

.card--league-alltime .alltime-table td.col-stat,
.card--league-alltime .alltime-table td.col-rank {
  overflow: visible;
  max-width: none;
  white-space: nowrap;
}

.card--league-alltime .alltime-team {
  max-width: none;
  overflow: visible;
}

.card--league-alltime .alltime-table td.col-rank {
  text-align: center;
}

.card--league-alltime .alltime-table td.col-stat {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.card--league-alltime .alltime-table td.col-stat .cell-value {
  display: inline-block;
  width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
}

.card--league-alltime .alltime-table td.col-team .team-name,
.card--league-alltime .alltime-team .team-name {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  max-width: none;
  min-width: 0;
}

.card--league-champions .card__header,
.card--league-runner-up .card__header {
  width: 100%;
  box-sizing: border-box;
  padding-right: 12px;
}

.card--league-champions .card__table-wrap--champions,
.card--league-runner-up .card__table-wrap--runner-up {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-height: calc(var(--table-row-height) * 6 + var(--table-head-height));
  padding: 0 14px 14px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--league-champions .league-stats-table,
.card--league-runner-up .league-stats-table {
  width: 100%;
  min-width: var(--league-stats-min);
  border-collapse: collapse;
  font-size: 0.86rem;
  table-layout: auto;
}

.card--league-champions .league-stats-table col.col-season,
.card--league-runner-up .league-stats-table col.col-season {
  width: 4.75rem;
}

.card--league-champions .league-stats-table col.col-team,
.card--league-runner-up .league-stats-table col.col-team {
  width: 9.5rem;
}

.card--league-champions .league-stats-table col.col-stat,
.card--league-runner-up .league-stats-table col.col-stat {
  width: 3.5rem;
}

.card--league-champions .league-stats-table thead,
.card--league-runner-up .league-stats-table thead {
  display: table-header-group;
}

.card--league-champions .league-stats-table tbody,
.card--league-runner-up .league-stats-table tbody {
  display: table-row-group;
}

.card--league-champions .league-stats-table tr,
.card--league-runner-up .league-stats-table tr {
  display: table-row;
}

.card--league-champions .league-stats-table th,
.card--league-champions .league-stats-table td,
.card--league-runner-up .league-stats-table th,
.card--league-runner-up .league-stats-table td {
  display: table-cell;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.card--league-champions .league-stats-table thead th,
.card--league-runner-up .league-stats-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  white-space: nowrap;
}

.card--league-champions .league-stats-table thead th.col-team,
.card--league-champions .league-stats-table thead th.col-season,
.card--league-runner-up .league-stats-table thead th.col-team,
.card--league-runner-up .league-stats-table thead th.col-season {
  text-align: left;
}

.card--league-champions .league-stats-table td.col-season,
.card--league-runner-up .league-stats-table td.col-season {
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.card--league-champions .league-stats-table td.col-season .cell-value,
.card--league-runner-up .league-stats-table td.col-season .cell-value {
  display: inline-block;
  width: 100%;
  text-align: left;
}

.card--league-champions .league-stats-table td.col-stat,
.card--league-runner-up .league-stats-table td.col-stat {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.card--league-champions .league-stats-table th,
.card--league-champions .league-stats-table td,
.card--league-runner-up .league-stats-table th,
.card--league-runner-up .league-stats-table td {
  overflow: visible;
  text-overflow: clip;
}

.card--league-champions .league-stats-table td.col-season,
.card--league-runner-up .league-stats-table td.col-season,
.card--league-champions .league-stats-table td.col-stat,
.card--league-runner-up .league-stats-table td.col-stat {
  overflow: visible;
  max-width: none;
  white-space: nowrap;
}

.card--league-champions .league-stats-table td.col-season .cell-value,
.card--league-runner-up .league-stats-table td.col-season .cell-value {
  display: inline-block;
  width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.card--league-champions .league-stats-table td.col-stat .cell-value,
.card--league-runner-up .league-stats-table td.col-stat .cell-value {
  display: inline-block;
  width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
  white-space: nowrap;
}

.card--league-champions .league-stats-table td.col-team,
.card--league-runner-up .league-stats-table td.col-team {
  overflow: visible;
  max-width: none;
}

.card--league-champions .league-stats-table td.col-team .alltime-team,
.card--league-runner-up .league-stats-table td.col-team .alltime-team {
  max-width: none;
  overflow: visible;
}

.card--league-champions .league-stats-table td.col-team .team-name,
.card--league-runner-up .league-stats-table td.col-team .team-name {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  max-width: none;
}

.card--league-champions .league-stats-table th.sortable,
.card--league-runner-up .league-stats-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.card--league-champions .league-stats-table th.sortable:hover,
.card--league-runner-up .league-stats-table th.sortable:hover {
  color: var(--text);
}

.card--league-champions .league-stats-table th.sortable--active,
.card--league-runner-up .league-stats-table th.sortable--active {
  color: var(--accent);
}

.card--league-champions .league-stats-table th.sortable::after,
.card--league-runner-up .league-stats-table th.sortable::after {
  content: "↕";
  margin-left: 4px;
  font-size: 0.65em;
  opacity: 0.35;
}

.card--league-champions .league-stats-table th.sortable--active.sortable--desc::after,
.card--league-runner-up .league-stats-table th.sortable--active.sortable--desc::after {
  content: "▼";
  opacity: 1;
}

.card--league-champions .league-stats-table th.sortable--active.sortable--asc::after,
.card--league-runner-up .league-stats-table th.sortable--active.sortable--asc::after {
  content: "▲";
  opacity: 1;
}

.alltime-team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.alltime-rank {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.alltime-rank--empty {
  color: rgba(244, 247, 247, 0.35);
}

.alltime-team .team-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.alltime-table td.col-team,
.europe-alltime-table td.col-team {
  overflow: hidden;
  max-width: 0;
}

.alltime-table td.col-stat,
.alltime-table td.col-winpct,
.europe-alltime-table td.col-stat,
.europe-alltime-table td.col-rank {
  overflow: hidden;
  white-space: nowrap;
}

.alltime-team .crest {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .dashboard--league-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard--league-view .card--league-alltime,
  .dashboard--league-view .league-champions-runner-row {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .dashboard--europe-cup-view {
    grid-template-columns: 1fr;
  }

  .dashboard--europe-cup-view .card--europe-history,
  .dashboard--europe-cup-view .europe-cup-side-col {
    grid-column: 1;
    grid-row: auto;
    height: auto;
    max-height: none;
  }

  .europe-cup-side-col .card--europe-side {
    flex: 0 0 auto;
  }

  .europe-cup-side-col .card--europe-side .card__table-wrap tbody {
    max-height: calc(var(--table-row-height) * var(--europe-side-rows, 5));
  }

  .europe-country-stats-row,
  .dashboard--europe-super-cup-view .europe-country-stats-row {
    grid-template-columns: 1fr;
  }

  .dashboard--europe-cup-view .card--europe-ko-history {
    grid-column: 1;
    grid-row: auto;
  }

  .dashboard--cup-view > .card--cup-side:not(.card--cup-rate):not(.card--sc-winner),
  .dashboard--league-cup-view > .card--cup-side:not(.card--cup-rate),
  .dashboard--super-cup-view > .card--cup-side:not(.card--cup-rate):not(.card--sc-winner) {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .card--cup-history .cup-table th,
  .card--cup-history .cup-table td {
    padding-inline: 6px;
  }
}


.view-empty {
  min-height: 200px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card--expanded {
  position: fixed;
  inset: 24px;
  z-index: 100;
  grid-row: auto !important;
  grid-column: auto !important;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--card-border);
}

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.card__actions {
  display: flex;
  gap: 4px;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--row-hover);
}

.card__hint {
  margin-left: auto;
}

.card__table-wrap {
  flex: 0 1 auto;
  overflow: hidden;
}

/* Group Games: scroll im Wrapper (nach globalem overflow:hidden) */
.europe-group-games-row .card__table-wrap--group-games {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  max-height: calc(
    var(--europe-thead-height) +
      var(--table-row-height) * var(--group-games-visible-rows, 8)
  );
}

.card__table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--league):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll):not(.card__table-wrap--europe-triple-eu) thead {
  display: table;
  width: 100%;
  table-layout: auto;
}

.card__table-wrap thead th {
  padding: 8px 10px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

.card__table-wrap thead th.col-head-value {
  text-align: right;
  min-width: max-content;
  padding-left: 12px;
  padding-right: 10px;
}

.card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--league):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll):not(.card__table-wrap--europe-triple-eu) tbody {
  display: block;
  max-height: calc(var(--table-row-height) * var(--table-visible-rows));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* Untere Zusatz-Tabellen: max. 5 Zeilen, Rest scrollen */
.card[data-table="decade-leader"],
.card[data-table="national-double"],
.card[data-table="national-triple"] {
  --table-visible-rows: 5;
}

.card__table-wrap tbody::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.card__table-wrap tbody::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.card__table-wrap tbody::-webkit-scrollbar-track {
  background: transparent;
}

.card__table-wrap tbody::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* All card tables: thin scrollbars, no OS arrow buttons (Chrome/Edge) */
.card .card__table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card .card__table-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.card .card__table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.card .card__table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.card .card__table-wrap::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Mobile (≤900px): alle Auswertungen horizontal wischbar (League, Cup, Länder, Europe, …) */
@media (max-width: 900px) {
  .main > .dashboard,
  .dashboard > .card,
  .card {
    min-width: 0;
    max-width: 100%;
  }

  .card .card__table-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
  }

  .card .card__table-wrap::-webkit-scrollbar {
    height: 8px;
  }

  /* Wrapper: vertikal + horizontal (History, All Time, Derby, Group Games, …) */
  .card--league-alltime .card__table-wrap,
  .card--league-champions .card__table-wrap,
  .card--league-runner-up .card__table-wrap,
  .card--league-history .card__table-wrap,
  .card--cup-history .card__table-wrap,
  .card--cup-rate .card__table-wrap,
  .card--intl-comparison .card__table-wrap,
  .card--intl-history .card__table-wrap,
  .card--derby-top .card__table-wrap,
  .card__table-wrap--derby-matches,
  .europe-group-games-row .card__table-wrap--group-games,
  .card--europe-triple-eu .card__table-wrap,
  .dashboard--europe-overview-view .card--europe-triple-eu .card__table-wrap--europe-triple-eu,
  .europe-group-stats-split-row .card__table-wrap--group-stage-stats,
  .europe-group-stats-split-row .card__table-wrap--group-stage-performance,
  .europe-group-stats-split-row .card__table-wrap--group-stage-winrate,
  .europe-ko-games-grid .card__table-wrap--ko-matchups,
  .europe-ko-games-grid .card__table-wrap--ko-grid-scroll,
  .dashboard--europe-cl-stats .card__table-wrap--ko-history,
  .card--npp .card__table-wrap,
  .card--ipp .card__table-wrap,
  .card--pp .card__table-wrap,
  .card--comp .card__table-wrap,
  .card--five-years .card__table-wrap,
  .card--team-of-year .card__table-wrap {
    overflow-y: auto;
  }

  /* Kleine Stat-Karten (TITLES, RUNNER UP, …): eine Tabelle, ein Scrollbereich */
  .card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--league):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll):not(.card__table-wrap--europe-triple-eu) {
    overflow-y: auto;
    max-height: calc(var(--table-row-height) * var(--table-visible-rows) + var(--table-head-height));
  }

  .card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--league):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll):not(.card__table-wrap--europe-triple-eu) thead {
    display: table-header-group;
    width: auto;
  }

  .card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--league):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll):not(.card__table-wrap--europe-triple-eu) tbody {
    display: table-row-group;
    max-height: none;
    overflow: visible;
  }

  .card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--league):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll):not(.card__table-wrap--europe-triple-eu) tbody tr {
    display: table-row;
    width: auto;
    table-layout: auto;
  }

  .card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll):not(.card__table-wrap--europe-triple-eu) tbody td.col-team {
    width: auto;
  }

  .card .card__table-wrap > table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }

  .card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--league):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll):not(.card__table-wrap--europe-triple-eu) > table {
    min-width: 12rem;
  }

  .league-table,
  .cup-table,
  .alltime-table,
  .league-stats-table,
  .cup-rate-table,
  .intl-table,
  .intl-comparison-table,
  .intl-ko-history-table,
  .intl-record-table,
  .europe-finals-table,
  .europe-cups-table,
  .ko-history-table,
  .derby-top-table,
  .derby-match-table,
  .npp-table,
  .ipp-table,
  .pp-table,
  .comp-table,
  .five-years-table,
  .team-of-year-table,
  .group-stage-stats-table,
  .group-games-table,
  .ko-matchups-table {
    table-layout: auto;
  }
}

/* Side stat tables (2 cols): only tbody scrolls vertically */
.card--europe-country .card__table-wrap,
.europe-cup-side-col .card--europe-side .card__table-wrap,
.card--europe-sc-winner .card__table-wrap,
.card--sc-winner .card__table-wrap {
  overflow: hidden;
}

.card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--league):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll):not(.card__table-wrap--europe-triple-eu) tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll):not(.card__table-wrap--europe-triple-eu) tbody td.col-team {
  width: 85%;
}

.card__table-wrap:not(.card__table-wrap--europe-triple-eu) tbody td.col-value {
  width: 15%;
}

/* Gefilterte Tabellen (Jahrzehnt- oder Team-Ansicht) */
.card--filter-view .card__table-wrap thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

/* Team-Filter: schmales Jahr, breiter Wert */
.card--filter-view:not(.card--decade-filter-view):not([data-table="all-national"])
  .card__table-wrap
  thead
  th:first-child,
.card--filter-view:not(.card--decade-filter-view):not([data-table="all-national"])
  .card__table-wrap
  tbody
  td.col-team {
  width: var(--filter-year-col-width);
  min-width: var(--filter-year-col-width);
}

.card--filter-view:not(.card--decade-filter-view):not([data-table="all-national"])
  .card__table-wrap
  thead
  th.col-head-value,
.card--filter-view:not(.card--decade-filter-view):not([data-table="all-national"])
  .card__table-wrap
  tbody
  td.col-value {
  width: calc(100% - var(--filter-year-col-width));
  min-width: 0;
}

.card--filter-view:not(.card--decade-filter-view)[data-table="all-national"]
  .card__table-wrap
  thead
  th:first-child,
.card--filter-view:not(.card--decade-filter-view)[data-table="all-national"]
  .card__table-wrap
  tbody
  td.col-team {
  width: 62%;
  min-width: 0;
}

.card--filter-view:not(.card--decade-filter-view)[data-table="all-national"]
  .card__table-wrap
  thead
  th.col-head-value,
.card--filter-view:not(.card--decade-filter-view)[data-table="all-national"]
  .card__table-wrap
  tbody
  td.col-value {
  width: 38%;
  min-width: 0;
}

/* Jahrzehnt-Filter: 15 % Jahr / 85 % Wert (Liga, Pokal, …) */
.card--decade-filter-view:not([data-table="all-national"]):not([data-table="decade"]):not(
    [data-table="national-double"]
  ):not([data-table="national-triple"])
  .card__table-wrap
  thead
  th:first-child,
.card--decade-filter-view:not([data-table="all-national"]):not([data-table="decade"]):not(
    [data-table="national-double"]
  ):not([data-table="national-triple"])
  .card__table-wrap
  tbody
  td.col-team {
  width: 15%;
  min-width: var(--filter-year-col-width);
}

.card--decade-filter-view:not([data-table="all-national"]):not([data-table="decade"]):not(
    [data-table="national-double"]
  ):not([data-table="national-triple"])
  .card__table-wrap
  thead
  th.col-head-value,
.card--decade-filter-view:not([data-table="all-national"]):not([data-table="decade"]):not(
    [data-table="national-double"]
  ):not([data-table="national-triple"])
  .card__table-wrap
  tbody
  td.col-value {
  width: 85%;
  min-width: 0;
}

.card--decade-filter-view[data-table="all-national"] .card__table-wrap thead th:first-child,
.card--decade-filter-view[data-table="all-national"] .card__table-wrap tbody td.col-team,
.card--decade-filter-view[data-table="decade"] .card__table-wrap thead th:first-child,
.card--decade-filter-view[data-table="decade"] .card__table-wrap tbody td.col-team,
.card--decade-filter-view[data-table="national-double"] .card__table-wrap thead th:first-child,
.card--decade-filter-view[data-table="national-double"] .card__table-wrap tbody td.col-team,
.card--decade-filter-view[data-table="national-triple"] .card__table-wrap thead th:first-child,
.card--decade-filter-view[data-table="national-triple"] .card__table-wrap tbody td.col-team {
  width: 85%;
  min-width: 0;
}

.card--decade-filter-view[data-table="all-national"] .card__table-wrap thead th.col-head-value,
.card--decade-filter-view[data-table="all-national"] .card__table-wrap tbody td.col-value,
.card--decade-filter-view[data-table="decade"] .card__table-wrap thead th.col-head-value,
.card--decade-filter-view[data-table="decade"] .card__table-wrap tbody td.col-value,
.card--decade-filter-view[data-table="national-double"] .card__table-wrap thead th.col-head-value,
.card--decade-filter-view[data-table="national-double"] .card__table-wrap tbody td.col-value,
.card--decade-filter-view[data-table="national-triple"] .card__table-wrap thead th.col-head-value,
.card--decade-filter-view[data-table="national-triple"] .card__table-wrap tbody td.col-value {
  width: 15%;
  min-width: 0;
}

.card--filter-view tbody td.col-team {
  padding-right: 8px;
  vertical-align: top;
}

.card--filter-view td.col-team {
  display: block;
  min-width: 0;
}

.card--filter-view .filter-label--year {
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.card--filter-view .filter-label--comp,
.card--decade-filter-view .filter-label--team {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.card--decade-filter-view .filter-label--team {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.card--filter-view .filter-value,
.card--decade-filter-view .filter-value {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: right;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.25;
  width: 100%;
}

.card--cols-decade .card__table-wrap thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.card--cols-decade .card__table-wrap thead th:first-child,
.card--cols-decade .card__table-wrap tbody td.col-team {
  width: 1%;
  white-space: nowrap;
}

.card--cols-decade .card__table-wrap thead th.col-head-value,
.card--cols-decade .card__table-wrap tbody td.col-value {
  width: 99%;
  min-width: 0;
}

.card--cols-decade .card__table-wrap tbody td.col-team {
  padding-right: 6px;
  vertical-align: top;
}

.card--cols-decade .card__table-wrap tbody td.col-value {
  padding-left: 4px;
  padding-right: 8px;
}

.card--cols-decade .decade-name {
  display: inline;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

.card--cols-decade td.col-team {
  flex: 0 0 auto;
  min-width: min-content;
  width: auto;
}

.card--cols-decade .col-team .decade-select {
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
}

.card--cols-decade .col-value {
  min-width: 0;
  width: 100%;
}

.card--cols-decade .team-select--value {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.card--cols-decade .team-select--value .crest {
  flex-shrink: 0;
}

.card--cols-decade .decade-leader {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-align: right;
  font-weight: 600;
  color: var(--accent);
  width: 100%;
}

.card--cols-decade .team-select--value .team-name {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: right;
}

tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

tbody tr:hover td {
  background: var(--row-hover);
}

.card__table-wrap:not(.card__table-wrap--alltime):not(.card__table-wrap--champions):not(.card__table-wrap--runner-up):not(.card__table-wrap--cup):not(.card__table-wrap--cup-rate):not(.card__table-wrap--intl-comparison):not(.card__table-wrap--npp):not(.card__table-wrap--ipp):not(.card__table-wrap--pp):not(.card__table-wrap--comp):not(.card__table-wrap--five-years):not(.card__table-wrap--team-of-year):not(.card__table-wrap--europe-cups):not(.card__table-wrap--europe-finals):not(.card__table-wrap--ko-history):not(.card__table-wrap--intl-ko-history):not(.card__table-wrap--europe-alltime-eu):not(.card__table-wrap--derby-top):not(.card__table-wrap--derby-matches):not(.card__table-wrap--group-stage-stats):not(.card__table-wrap--group-stage-performance):not(.card__table-wrap--group-stage-winrate):not(.card__table-wrap--group-games):not(.card__table-wrap--ko-matchups):not(.card__table-wrap--ko-grid-scroll) .col-team,
.team-row .col-team {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.col-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.25;
  padding-left: 4px;
  padding-right: 8px;
}

.team-name,
.decade-name,
.cell-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
  min-width: 0;
}

.team-name--wrap,
.decade-name--wrap,
.cell-value--wrap {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cell-value {
  width: 100%;
  text-align: right;
}

.team-name {
  flex: 1;
  min-width: 0;
}

.decade-select,
.team-select {
  min-width: 0;
  max-width: 100%;
}

.team-select--value .team-name {
  text-align: right;
}

.crest {
  flex-shrink: 0;
  width: 18px;
  height: 22px;
  border-radius: 3px 3px 4px 4px;
  background: var(--c1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}

.empty {
  color: var(--text-muted);
  text-align: center;
  padding: 24px !important;
}

.placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 48px 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-align: center;
}

.placeholder__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.placeholder__text {
  margin: 0;
  max-width: 420px;
  color: var(--text-muted);
  line-height: 1.5;
}

.empty-page {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 48px;
}

@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .dashboard--league-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard--league-view .card--league-history,
  .dashboard--league-view .card--league-alltime,
  .dashboard--league-view .league-champions-runner-row {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .dashboard--league-view .card--league-side {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .layout.sidebar-collapsed .sidebar {
    width: 100%;
    flex: none;
  }

  .layout.sidebar-collapsed .sidebar__label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .layout.sidebar-collapsed .sidebar__link {
    justify-content: flex-start;
    gap: 12px;
    width: calc(100% - 12px);
    margin: 0 6px;
    padding: 11px 14px;
  }

  .ad-sidebar {
    display: none;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(94, 196, 196, 0.2);
    padding-bottom: 12px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  }

  .sidebar::after {
    top: auto;
    bottom: 0;
    right: 8%;
    left: 8%;
    width: auto;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(94, 196, 196, 0.35) 18%,
      rgba(94, 196, 196, 0.95) 50%,
      rgba(94, 196, 196, 0.35) 82%,
      transparent 100%
    );
  }

  .sidebar__nav {
    max-height: 200px;
  }
}

.dashboard--intl-comparison-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  align-items: start;
  max-width: 100%;
}

.dashboard--intl-comparison-view .card--intl-comparison {
  grid-column: 1 / -1;
  grid-row: 1;
}

.dashboard--intl-comparison-view .card[data-table="intl-vs-team"] {
  grid-column: 1;
  grid-row: 2;
}

.dashboard--intl-comparison-view .card[data-table="intl-vs-country"] {
  grid-column: 2;
  grid-row: 2;
}

.card--intl-comparison {
  width: 100%;
}

.card--intl-comparison .card__table-wrap--intl-comparison {
  padding: 0 14px 14px;
  overflow: auto;
}

.intl-comparison-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.intl-comparison-table thead {
  display: table-header-group;
}

.intl-comparison-table tbody {
  display: table-row-group;
}

.intl-comparison-table tr {
  display: table-row;
}

.intl-comparison-table th,
.intl-comparison-table td {
  display: table-cell;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.intl-comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  white-space: nowrap;
}

.intl-comparison-table .col-team {
  width: 22%;
  text-align: left;
}

.intl-comparison-table thead th.col-team {
  text-align: left;
}

.intl-comparison-table .col-stat,
.intl-comparison-table .col-ppg {
  width: 7%;
}

.intl-comparison-table .col-sep {
  width: 2%;
  color: var(--text-muted);
  text-align: center;
}

.intl-comparison-table td.col-stat,
.intl-comparison-table td.col-ppg,
.intl-comparison-table td.col-sep {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.intl-comparison-table td.col-stat .cell-value,
.intl-comparison-table td.col-ppg .cell-value,
.intl-comparison-table td.col-sep .cell-value {
  display: inline-block;
  width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
}

.intl-comparison-table td.col-team .alltime-team {
  min-height: 22px;
}

.intl-comparison-table td.col-team .team-name {
  white-space: nowrap;
  line-height: 1.25;
}

.intl-comparison-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.intl-comparison-table th.sortable:hover {
  color: var(--text);
}

.intl-comparison-table th.sortable--active {
  color: var(--text);
}

.intl-comparison-table th.sortable::after {
  content: "▼";
  font-size: 0.55rem;
  margin-left: 0.25em;
  opacity: 0.35;
}

.intl-comparison-table th.sortable--active.sortable--desc::after {
  content: "▼";
  opacity: 1;
}

.intl-comparison-table th.sortable--active.sortable--asc::after {
  content: "▲";
  opacity: 1;
}

/* Club Ranking — horizontal scroll (Desktop + Mobile; overflow-y:visible bricht iOS-Safari) */
.card--npp .card__table-wrap--npp,
.card--ipp .card__table-wrap--ipp,
.card--pp .card__table-wrap--pp,
.card--comp .card__table-wrap--comp,
.card--five-years .card__table-wrap--five-years,
.card--team-of-year .card__table-wrap--team-of-year {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.card--npp,
.card--ipp,
.card--pp,
.card--comp,
.card--five-years,
.card--team-of-year {
  min-width: 0;
  max-width: 100%;
}

.card--npp .card__table-wrap--npp::-webkit-scrollbar,
.card--ipp .card__table-wrap--ipp::-webkit-scrollbar,
.card--pp .card__table-wrap--pp::-webkit-scrollbar,
.card--comp .card__table-wrap--comp::-webkit-scrollbar,
.card--five-years .card__table-wrap--five-years::-webkit-scrollbar,
.card--team-of-year .card__table-wrap--team-of-year::-webkit-scrollbar {
  height: 8px;
}

.card--npp .card__table-wrap--npp::-webkit-scrollbar-thumb,
.card--ipp .card__table-wrap--ipp::-webkit-scrollbar-thumb,
.card--pp .card__table-wrap--pp::-webkit-scrollbar-thumb,
.card--comp .card__table-wrap--comp::-webkit-scrollbar-thumb,
.card--five-years .card__table-wrap--five-years::-webkit-scrollbar-thumb,
.card--team-of-year .card__table-wrap--team-of-year::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
}

.card__table-wrap--npp .npp-table,
.card__table-wrap--ipp .ipp-table,
.card__table-wrap--pp .pp-table,
.card__table-wrap--comp .comp-table,
.card__table-wrap--five-years .five-years-table,
.card__table-wrap--team-of-year .team-of-year-table {
  width: max-content;
  min-width: 100%;
}

.dashboard--npp-view,
.dashboard--ipp-view,
.dashboard--pp-view,
.dashboard--five-years-view {
  min-width: 0;
}

.dashboard--npp-view .card--npp,
.dashboard--ipp-view .card--ipp,
.dashboard--pp-view .card--pp,
.dashboard--pp-view .card--comp,
.dashboard--five-years-view .card--five-years,
.dashboard--five-years-view .card--team-of-year {
  min-width: 0;
  max-width: 100%;
}

.dashboard--npp-view {
  display: block;
  max-width: 100%;
}

.dashboard--npp-view .card--npp {
  width: 100%;
}

.club-rank-intro,
.npp-intro {
  margin: 14px 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.club-rank-intro__title,
.npp-intro__title {
  margin: 0 0 10px;
  font-weight: 700;
  text-decoration: underline;
}

.club-rank-intro__text,
.npp-intro__text {
  margin: 0;
  color: var(--text);
}

.card--npp .card__table-wrap--npp {
  padding: 0 14px 14px;
}

.npp-table {
  min-width: 56rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.npp-table thead {
  display: table-header-group;
}

.npp-table tbody {
  display: table-row-group;
}

.npp-table tr {
  display: table-row;
}

.npp-table th,
.npp-table td {
  display: table-cell;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.npp-table thead th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  white-space: nowrap;
}

.npp-table .col-rank {
  width: 4%;
}

.npp-table .col-team {
  width: 20%;
  text-align: left;
}

.npp-table thead th.col-team {
  text-align: left;
}

.npp-table .col-npp {
  width: 7%;
}

.npp-table .col-stat {
  width: 6%;
}

.npp-table .col-stat-wide {
  width: 7%;
}

.npp-table td.col-stat,
.npp-table td.col-npp,
.npp-table td.col-rank {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.npp-table td.col-stat .cell-value,
.npp-table td.col-npp .cell-value,
.npp-table td.col-rank .cell-value {
  display: inline-block;
  width: 100%;
  text-align: center;
  line-height: 1.25;
}

.npp-table td.col-npp .club-rank-points,
.ipp-table td.col-ipp .club-rank-points {
  font-weight: 600;
  color: var(--text);
}

.npp-table td.col-team .club-rank-team,
.npp-table td.col-team .npp-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.npp-table td.col-team .team-name {
  white-space: nowrap;
  line-height: 1.25;
}

.npp-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.npp-table th.sortable:hover {
  color: var(--text);
}

.npp-table th.sortable--active {
  color: var(--text);
}

.npp-table th.sortable::after {
  content: "▼";
  font-size: 0.55rem;
  margin-left: 0.25em;
  opacity: 0.35;
}

.npp-table th.sortable--active.sortable--desc::after {
  content: "▼";
  opacity: 1;
}

.npp-table th.sortable--active.sortable--asc::after {
  content: "▲";
  opacity: 1;
}

.dashboard--pp-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
}

.dashboard--pp-view .card--pp {
  width: 100%;
}

.card--pp .card__table-wrap--pp {
  padding: 0 14px 14px;
}

.pp-table {
  min-width: 48rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.pp-table thead {
  display: table-header-group;
}

.pp-table tbody {
  display: table-row-group;
}

.pp-table tr {
  display: table-row;
}

.pp-table th,
.pp-table td {
  display: table-cell;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.pp-table thead th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  white-space: nowrap;
}

.pp-table .col-rank {
  width: 5%;
}

.pp-table .col-team {
  width: 22%;
  text-align: left;
}

.pp-table thead th.col-team {
  text-align: left;
}

.pp-table .col-stat {
  width: 8%;
}

.pp-table .col-stat-wide {
  width: 10%;
}

.pp-table .col-pp {
  width: 9%;
}

.pp-table thead th.col-pp,
.pp-table td.col-pp {
  background: rgba(0, 0, 0, 0.22);
}

.pp-table td.col-stat,
.pp-table td.col-pp,
.pp-table td.col-rank {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pp-table td.col-stat .cell-value,
.pp-table td.col-pp .cell-value,
.pp-table td.col-rank .cell-value {
  display: inline-block;
  width: 100%;
  text-align: center;
  line-height: 1.25;
}

.pp-table td.col-pp .club-rank-points--pp {
  font-weight: 700;
  color: var(--text);
}

.pp-table td.col-team .club-rank-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.pp-table td.col-team .team-name {
  white-space: nowrap;
  line-height: 1.25;
}

.pp-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.pp-table th.sortable:hover {
  color: var(--text);
}

.pp-table th.sortable--active {
  color: var(--text);
}

.pp-table th.sortable::after {
  content: "▼";
  font-size: 0.55rem;
  margin-left: 0.25em;
  opacity: 0.35;
}

.pp-table th.sortable--active.sortable--desc::after {
  content: "▼";
  opacity: 1;
}

.pp-table th.sortable--active.sortable--asc::after {
  content: "▲";
  opacity: 1;
}

.club-rank-intro__text strong {
  font-weight: 700;
  color: var(--text);
}

.dashboard--pp-view .card--comp {
  width: 100%;
}

.card--comp .card__table-wrap--comp {
  padding: 0 14px 14px;
}

.comp-table {
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.comp-table thead {
  display: table-header-group;
}

.comp-table tbody {
  display: table-row-group;
}

.comp-table tr {
  display: table-row;
}

.comp-table th,
.comp-table td {
  display: table-cell;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.comp-table thead th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  white-space: nowrap;
}

.comp-table .col-country {
  width: 18%;
  text-align: left;
}

.comp-table thead th.col-country {
  text-align: left;
}

.comp-table .col-stat {
  width: 11%;
}

.comp-table .col-stat-wide {
  width: 12%;
}

.comp-table td.col-stat {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.comp-table td.col-stat .cell-value {
  display: inline-block;
  width: 100%;
  text-align: center;
  line-height: 1.25;
}

.comp-table td.col-country .club-rank-team--country {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.comp-table td.col-country .team-name {
  white-space: nowrap;
  line-height: 1.25;
}

.comp-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.comp-table th.sortable:hover {
  color: var(--text);
}

.comp-table th.sortable--active {
  color: var(--text);
}

.comp-table th.sortable::after {
  content: "▼";
  font-size: 0.55rem;
  margin-left: 0.25em;
  opacity: 0.35;
}

.comp-table th.sortable--active.sortable--desc::after {
  content: "▼";
  opacity: 1;
}

.comp-table th.sortable--active.sortable--asc::after {
  content: "▲";
  opacity: 1;
}

.dashboard--five-years-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

.dashboard--five-years-view .card--five-years-intro,
.dashboard--five-years-view .card--team-of-year,
.dashboard--five-years-view .card--five-years {
  width: 100%;
}

.dashboard--five-years-view .card--five-years-intro .club-rank-intro {
  margin: 14px;
}

.card__table-wrap--team-of-year {
  padding: 0 14px 14px;
}

.team-of-year-table {
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.team-of-year-table thead {
  display: table-header-group;
}

.team-of-year-table tbody {
  display: table-row-group;
}

.team-of-year-table tr {
  display: table-row;
}

.team-of-year-table th,
.team-of-year-table td {
  display: table-cell;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.team-of-year-table thead th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

.team-of-year-table .col-season-label,
.team-of-year-table td.col-season-label {
  width: 15%;
  text-align: left;
}

.team-of-year-table thead th.col-season-label {
  text-align: left;
}

.team-of-year-table td.col-season-label .cell-value,
.team-of-year-table td.col-season-label .season-label {
  display: block;
  width: auto;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.team-of-year-table .col-place {
  width: 28.33%;
  text-align: left;
}

.team-of-year-table thead th.col-place {
  text-align: left;
}

.team-of-year-table td.col-place .club-rank-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.team-of-year-table td.col-place .team-name {
  white-space: nowrap;
  line-height: 1.25;
}

.card__table-wrap--team-of-year .team-of-year-table thead th {
  text-align: left;
}

/* Europe overview — titles / runner-up per competition + total */
.dashboard--europe-overview-view {
  display: block;
  max-width: 100%;
  overflow-x: hidden;
  --table-visible-rows: 5;
}

.europe-overview-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.europe-overview-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.europe-overview-row__cards {
  display: contents;
}

.top-bar--europe-overview-view .top-bar__title {
  display: none;
}

.europe-overview-row--total .card--europe-overview-side .card__title {
  color: var(--accent, #7dd3fc);
}

.dashboard--europe-overview-view .card--europe-overview-side {
  align-self: stretch;
  min-width: 0;
}

.dashboard--europe-overview-view .card--europe-overview-side:not(.card--europe-triple-eu) .card__table-wrap tbody {
  display: block;
  min-height: 0 !important;
  max-height: calc(var(--table-row-height) * var(--table-visible-rows, 5)) !important;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.dashboard--europe-overview-view .card--europe-overview-side:not(.card--europe-triple-eu) .card__table-wrap tbody tr {
  height: var(--table-row-height);
}

@media (max-width: 1400px) {
  .europe-overview-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .europe-overview-row {
    grid-template-columns: 1fr;
  }
}

.dashboard--europe-overview-view .europe-overview-side-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: stretch;
  margin-top: 4px;
}

.dashboard--europe-overview-view .europe-overview-side-row > .europe-triple-eu-section,
.dashboard--europe-overview-view .europe-overview-side-row > .europe-decade-section {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin-top: 0;
}

.dashboard--europe-overview-view .card--europe-decade,
.dashboard--europe-overview-view .card--europe-decade-country {
  --table-visible-rows: 10;
}

.dashboard--europe-overview-view .card--europe-decade.card--cols-decade .card__table-wrap thead,
.dashboard--europe-overview-view .card--europe-decade-country.card--cols-decade .card__table-wrap thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.dashboard--europe-overview-view .card--europe-decade.card--cols-decade .card__table-wrap tbody tr,
.dashboard--europe-overview-view .card--europe-decade-country.card--cols-decade .card__table-wrap tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.dashboard--europe-overview-view .card--europe-decade.card--cols-decade .card__table-wrap thead th:first-child,
.dashboard--europe-overview-view .card--europe-decade.card--cols-decade .card__table-wrap tbody td.col-team,
.dashboard--europe-overview-view .card--europe-decade-country.card--cols-decade .card__table-wrap thead th:first-child,
.dashboard--europe-overview-view .card--europe-decade-country.card--cols-decade .card__table-wrap tbody td.col-team {
  display: table-cell;
  width: 34%;
  flex: none;
  vertical-align: middle;
  white-space: nowrap;
}

.dashboard--europe-overview-view .card--europe-decade.card--cols-decade .card__table-wrap thead th.col-head-value,
.dashboard--europe-overview-view .card--europe-decade.card--cols-decade .card__table-wrap tbody td.col-value,
.dashboard--europe-overview-view .card--europe-decade-country.card--cols-decade .card__table-wrap thead th.col-head-value,
.dashboard--europe-overview-view .card--europe-decade-country.card--cols-decade .card__table-wrap tbody td.col-value {
  display: table-cell;
  width: 66%;
  flex: none;
  vertical-align: middle;
  text-align: right;
}

.dashboard--europe-overview-view .card--europe-decade.card--cols-decade .decade-leader,
.dashboard--europe-overview-view .card--europe-decade-country.card--cols-decade .decade-leader {
  display: inline;
  width: auto;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  text-align: right;
}

.dashboard--europe-overview-view .europe-decade-select.decade-select--active {
  color: #fff;
}

.dashboard--europe-overview-view .europe-triple-eu-section .card--europe-triple-eu {
  width: 100%;
  min-width: 0;
  --table-visible-rows: 10;
}

.dashboard--europe-overview-view .card--europe-triple-eu .card__table-wrap--europe-triple-eu {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(
    var(--europe-thead-height, 2.25rem) +
      var(--table-row-height) * var(--table-visible-rows, 10)
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table {
  display: table;
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table col.col-season {
  width: 5.25rem;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table col.col-triple {
  width: 5.75rem;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table col.col-flag {
  width: 2.5rem;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table col.col-team {
  width: auto;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table thead {
  display: table-header-group;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table tbody {
  display: table-row-group;
  max-height: none !important;
  overflow: visible;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table tr {
  display: table-row;
  height: var(--table-row-height);
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table th,
.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table td {
  display: table-cell;
  vertical-align: middle;
  padding: 8px 8px;
  text-align: left;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  line-height: 1.3;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table td.col-team {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 8px;
  padding-bottom: 8px;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table th.col-season,
.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table td.col-season {
  width: 5.25rem;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table th.col-flag,
.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table td.col-flag {
  width: 2.5rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  text-align: center;
  white-space: nowrap;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table td.col-flag .country-flag-img {
  width: 1.45rem;
  height: auto;
  vertical-align: middle;
}

.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table th.col-triple,
.dashboard--europe-overview-view .card--europe-triple-eu .europe-triple-eu-table td.col-triple {
  width: 5.75rem;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .dashboard--europe-overview-view .europe-overview-side-row {
    grid-template-columns: 1fr;
  }
}

.dashboard--europe-cup-view {
  --europe-history-rows: 12;
  --europe-side-rows: 5;
  --europe-card-header: 2.75rem;
  --europe-thead-height: 2.25rem;
  --europe-panel-height: max(
    calc(
      var(--europe-card-header) + var(--europe-thead-height) +
        var(--table-row-height) * var(--europe-history-rows)
    ),
    calc(
      2 *
        (
          var(--europe-card-header) + var(--europe-thead-height) +
            var(--table-row-height) * var(--europe-side-rows)
        ) + 12px
    )
  );
  grid-template-columns: minmax(0, 72%) minmax(248px, 28%);
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: 12px;
  min-height: 0;
}

/* Europe (CL, EL, COL, CWC, SC) — keine Menü-/Vollbild-Icons in Tabellenköpfen */
.dashboard--europe-cup-view .card__actions,
.dashboard--europe-overview-view .card__actions,
.dashboard--europe-cl-stats .card__actions,
.dashboard--europe-bracket .card__actions {
  display: none;
}

/* UEFA — Tabellentitel (Card-Header) einheitlich */
.dashboard--europe-overview-view .card__title,
.dashboard--europe-cup-view .card__title,
.dashboard--europe-cl-stats .card__title,
.dashboard--europe-bracket .card__title,
.dashboard--super-cup-view .card__title {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.25;
  text-align: left;
  width: 100%;
}

.dashboard--europe-cup-view--no-ko.dashboard--europe-cup-view--no-alltime {
  grid-template-rows: auto auto;
}

.dashboard--europe-cup-view--no-ko:not(.dashboard--europe-cup-view--no-alltime) {
  grid-template-rows: auto auto auto;
}

.dashboard--europe-cup-view:not(.dashboard--europe-cup-view--no-ko).dashboard--europe-cup-view--no-alltime {
  grid-template-rows: auto auto auto;
}

.europe-country-stats-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.dashboard--europe-super-cup-view .europe-country-stats-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
}

.dashboard--europe-super-cup-view .card--europe-sc-winner .card__table-wrap tbody {
  display: block;
  min-height: 0 !important;
  max-height: calc(var(--table-row-height) * var(--europe-side-rows)) !important;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.dashboard--europe-super-cup-view .card--europe-sc-winner .label-plain,
.dashboard--europe-super-cup-view .card--europe-sc-winner .cell-value {
  white-space: nowrap;
}

/* Super Cup — All Time Table nur linke Hälfte (50 %) */
.dashboard--europe-super-cup-view .card--europe-alltime-eu {
  grid-column: 1 / -1;
  justify-self: start;
  width: 50%;
  max-width: 50%;
  min-width: 0;
}

.dashboard--europe-super-cup-view .card--europe-alltime-eu .europe-alltime-table {
  min-width: 0;
  width: 100%;
}

@media (max-width: 1100px) {
  .dashboard--europe-super-cup-view .card--europe-alltime-eu {
    width: 100%;
    max-width: 100%;
  }
}

.dashboard--europe-cup-view .card--europe-country {
  min-width: 0;
}

.dashboard--europe-cup-view .card--europe-country .card__table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.dashboard--europe-cup-view .card--europe-country .card__table-wrap tbody {
  display: block;
  min-height: 0 !important;
  max-height: calc(var(--table-row-height) * var(--europe-side-rows)) !important;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.dashboard--europe-cup-view .card--europe-country .card__table-wrap tbody tr {
  height: var(--table-row-height);
}

.dashboard--europe-cup-view .card--europe-country .card__table-wrap tbody td.col-team {
  width: 72% !important;
  overflow: visible;
}

.dashboard--europe-cup-view .card--europe-country .card__table-wrap tbody td.col-value {
  width: 28% !important;
  text-align: right;
  white-space: nowrap;
}

.dashboard--europe-cup-view .card--europe-country .club-rank-team,
.dashboard--europe-cup-view .card--europe-country .col-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.dashboard--europe-cup-view .card--europe-country .team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard--europe-cup-view .card--europe-country .intl-flag {
  flex-shrink: 0;
}

.team-row--europe-country {
  cursor: pointer;
}

.team-row--europe-country td {
  pointer-events: auto;
}

.dashboard--europe-cup-view .card--europe-ko-history {
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
}

.dashboard--europe-cup-view .card--europe-alltime-eu {
  grid-column: 1 / -1;
  grid-row: 4;
  min-width: 0;
}

.dashboard--europe-cup-view--no-ko .card--europe-alltime-eu {
  grid-row: 3;
}

/* CL, EL, Conference League, CWC — KO History + All Time Table untereinander (75 % Breite) */
.dashboard--europe-ko-alltime-split {
  grid-template-rows: auto auto auto;
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* KO History + All Time Table: volle Breite bis Großbildschirm */
@media (max-width: 1599px) {
  .dashboard--europe-ko-alltime-split .europe-ko-alltime-row {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .dashboard--europe-ko-alltime-split .europe-ko-alltime-row > .card--europe-ko-history,
  .dashboard--europe-ko-alltime-split .europe-ko-alltime-row > .card--europe-alltime-eu {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1600px) {
  .dashboard--europe-ko-alltime-split .europe-ko-alltime-row {
    width: 75%;
    max-width: 75%;
    align-items: flex-start;
  }
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row > .card--europe-ko-history,
.dashboard--europe-ko-alltime-split .europe-ko-alltime-row > .card--europe-alltime-eu {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .card__table-wrap--ko-history,
.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .card__table-wrap--europe-alltime-eu {
  max-height: calc(
    var(--europe-card-header) + var(--europe-thead-height) +
      var(--table-row-height) * 14
  );
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .ko-history-table {
  min-width: 860px;
  font-size: 0.8rem;
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .ko-history-table th,
.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .ko-history-table td {
  padding: 6px 4px;
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .ko-history-table col.col-team,
.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .ko-history-table .col-team {
  min-width: 128px;
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .ko-history-table col.col-stat,
.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .ko-history-table col.col-pct,
.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .ko-history-table .col-stat,
.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .ko-history-table .col-pct {
  min-width: 44px;
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .card--europe-alltime-eu .europe-alltime-table {
  min-width: 34rem;
  width: 100%;
  font-size: 0.8rem;
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .card--europe-alltime-eu .europe-alltime-table th,
.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .card--europe-alltime-eu .europe-alltime-table td {
  padding: 6px 4px;
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .card--europe-alltime-eu .europe-alltime-table col.col-team,
.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .card--europe-alltime-eu .europe-alltime-table .col-team {
  min-width: 120px;
}

.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .card--europe-alltime-eu .europe-alltime-table col.col-stat,
.dashboard--europe-ko-alltime-split .europe-ko-alltime-row .card--europe-alltime-eu .europe-alltime-table .col-stat {
  min-width: 40px;
}

.card__header--europe-alltime {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.card__header--europe-alltime .card__header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.card__header--europe-alltime .card__title {
  text-align: center;
  width: 100%;
}

.dashboard--europe-cup-view .card__header--europe-alltime .card__title,
.dashboard--europe-cup-view .card__header--ko-history .card__title {
  text-align: left;
}

.dashboard--europe-cup-view .card__header--europe-alltime .card__note--alltime {
  text-align: left;
}

.dashboard--europe-cl-stats .card__header--europe-alltime .card__title,
.dashboard--europe-cl-stats .card__header--ko-history .card__title {
  text-align: left;
}

.dashboard--europe-cl-stats .card__header--group-performance .card__header-text {
  align-items: flex-start;
}

.dashboard--europe-cl-stats .card__header--group-performance .card__title,
.dashboard--europe-cl-stats .card__header--group-performance .card__subtitle {
  text-align: left;
  width: 100%;
}

.card__note--alltime {
  margin: 0;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
}

.card__table-wrap--europe-alltime-eu {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(
    var(--europe-card-header) + var(--europe-thead-height) +
      var(--table-row-height) * 14
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--europe-alltime-eu .europe-alltime-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.84rem;
  table-layout: fixed;
}

.card--europe-alltime-eu .europe-alltime-table thead {
  display: table-header-group;
}

.card--europe-alltime-eu .europe-alltime-table tbody {
  display: table-row-group;
}

.card--europe-alltime-eu .europe-alltime-table tr {
  display: table-row;
}

.card--europe-alltime-eu .europe-alltime-table th,
.card--europe-alltime-eu .europe-alltime-table td {
  display: table-cell;
}

.card--europe-alltime-eu .europe-alltime-table thead tr {
  background: var(--card);
}

.card--europe-alltime-eu .europe-alltime-table th,
.card--europe-alltime-eu .europe-alltime-table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.card--europe-alltime-eu .europe-alltime-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: var(--table-row-height);
  box-sizing: border-box;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  background: inherit;
  border-bottom: 1px solid var(--card-border);
}

.card--europe-alltime-eu .europe-alltime-table tbody tr {
  height: var(--table-row-height);
}

.card--europe-alltime-eu .europe-alltime-table col.col-rank,
.card--europe-alltime-eu .europe-alltime-table .col-rank {
  width: 4%;
  text-align: center;
}

.card--europe-alltime-eu .europe-alltime-table col.col-team,
.card--europe-alltime-eu .europe-alltime-table .col-team {
  width: 26%;
  text-align: left;
}

.card--europe-alltime-eu .europe-alltime-table col.col-stat,
.card--europe-alltime-eu .europe-alltime-table .col-stat {
  width: 8%;
  text-align: center;
}

.card--europe-alltime-eu .europe-alltime-table td.col-rank,
.card--europe-alltime-eu .europe-alltime-table td.col-stat {
  text-align: center;
}

.card--europe-alltime-eu .europe-alltime-table td.col-stat .cell-value {
  display: block;
  text-align: center;
}

/* CL — Group Stage Stats (aggregated from Group sheet) */
.card__table-wrap--group-stage-stats {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(
    var(--europe-thead-height) +
      var(--table-row-height) * var(--group-stage-stats-visible-rows, 10)
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  scrollbar-gutter: stable;
}

.card__table-wrap--group-stage-performance {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(
    var(--europe-thead-height) +
      var(--table-row-height) * var(--group-stage-performance-visible-rows, 10)
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card__table-wrap--group-stage-winrate {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(
    var(--europe-thead-height) +
      var(--table-row-height) * var(--group-winrate-visible-rows, 5)
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card__table-wrap--group-stage-winrate thead,
.card__table-wrap--group-games thead {
  display: table-header-group;
  width: 100%;
  table-layout: auto;
}

.card__table-wrap--group-stage-winrate tbody,
.card__table-wrap--group-games tbody {
  display: table-row-group;
  max-height: none;
  overflow: visible;
}

.card__table-wrap--group-stage-winrate tbody tr,
.card__table-wrap--group-games tbody tr {
  display: table-row;
  width: auto;
  table-layout: auto;
}

.card__table-wrap--group-games tbody td.col-team {
  width: auto;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.84rem;
  table-layout: fixed;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table thead {
  display: table-header-group;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table tbody {
  display: table-row-group;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table tr {
  display: table-row;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table th,
.card__table-wrap--group-stage-stats .group-stage-stats-table td {
  display: table-cell;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table col.col-rank {
  width: 4%;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table col.col-team {
  width: 22%;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table col.col-stat {
  width: 6%;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table col.col-winpct {
  width: 8%;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
}

.card__table-wrap--group-stage-stats .group-stage-stats-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table .col-rank {
  width: 4%;
  text-align: center;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table .col-team {
  width: 22%;
  text-align: left;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table .col-stat {
  width: 6%;
  text-align: center;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table .col-winpct {
  width: 8%;
  text-align: center;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table td.col-stat .cell-value,
.card__table-wrap--group-stage-stats .group-stage-stats-table td.col-winpct .cell-value,
.card__table-wrap--group-stage-stats .group-stage-stats-table td.col-rank .alltime-rank {
  display: block;
  text-align: center;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table td.col-team .team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.card__table-wrap--group-stage-stats .group-stage-stats-table th.sortable:hover {
  color: var(--accent, #7dd3fc);
}

.card__table-wrap--group-stage-stats .group-stage-stats-table th.sortable--active {
  color: var(--accent, #7dd3fc);
}

.card__table-wrap--group-stage-stats .group-stage-stats-table th.sortable::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  margin-left: 0.25em;
}

.card__table-wrap--group-stage-stats
  .group-stage-stats-table
  th.sortable--active.sortable--desc::after {
  content: "▼";
  font-size: 0.55em;
  opacity: 0.85;
}

.card__table-wrap--group-stage-stats
  .group-stage-stats-table
  th.sortable--active.sortable--asc::after {
  content: "▲";
  font-size: 0.55em;
  opacity: 0.85;
}

.card__table-wrap--group-stage-stats
  .group-stage-stats-table--countries
  tr.team-row--clickable {
  cursor: pointer;
}

.card--europe-group-stage-performance .group-stage-performance-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.84rem;
  table-layout: fixed;
}

.card--europe-group-stage-performance .group-stage-performance-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
}

.card--europe-group-stage-performance .group-stage-performance-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.card--europe-group-stage-performance .group-stage-performance-table .col-team {
  width: 28%;
  text-align: left;
}

.card--europe-group-stage-performance .group-stage-performance-table .col-stat {
  width: 10%;
  text-align: center;
}

.card--europe-group-stage-performance .group-stage-performance-table .col-app {
  width: 8%;
}

.card--europe-group-stage-performance .group-stage-performance-table .col-pct {
  width: 12%;
  text-align: center;
}

.card--europe-group-stage-performance .group-stage-performance-table td.col-stat .cell-value,
.card--europe-group-stage-performance .group-stage-performance-table td.col-pct .cell-value {
  display: block;
  text-align: center;
}

.card--europe-group-stage-performance .group-stage-performance-table td.col-team .team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card--europe-group-stage-performance .group-stage-performance-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.card--europe-group-stage-performance .group-stage-performance-table th.sortable:hover,
.card--europe-group-stage-performance .group-stage-performance-table th.sortable--active {
  color: var(--accent, #7dd3fc);
}

.card--europe-group-stage-performance .group-stage-performance-table th.sortable::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  margin-left: 0.25em;
}

.card--europe-group-stage-performance
  .group-stage-performance-table
  th.sortable--active.sortable--desc::after {
  content: "▼";
  font-size: 0.55em;
  opacity: 0.85;
}

.card--europe-group-stage-performance
  .group-stage-performance-table
  th.sortable--active.sortable--asc::after {
  content: "▲";
  font-size: 0.55em;
  opacity: 0.85;
}

.card--europe-group-winrate .group-stage-winrate-table {
  display: table;
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.84rem;
  table-layout: auto;
}

.card--europe-group-winrate .group-stage-winrate-table thead {
  display: table-header-group;
}

.card--europe-group-winrate .group-stage-winrate-table tbody {
  display: table-row-group;
}

.card--europe-group-winrate .group-stage-winrate-table tr {
  display: table-row;
  height: var(--table-row-height);
}

.card--europe-group-winrate .group-stage-winrate-table th,
.card--europe-group-winrate .group-stage-winrate-table td {
  display: table-cell;
  vertical-align: middle;
}

.card--europe-group-winrate .group-stage-winrate-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
}

.card--europe-group-winrate .group-stage-winrate-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.card--europe-group-winrate .group-stage-winrate-table .col-season {
  width: 9%;
  text-align: center;
}

.card--europe-group-winrate .group-stage-winrate-table .col-stage {
  width: 9%;
  text-align: center;
}

.card--europe-group-winrate .group-stage-winrate-table .col-team {
  width: 20%;
  text-align: left;
}

.card--europe-group-winrate .group-stage-winrate-table .col-stat {
  width: 6%;
  text-align: center;
}

.card--europe-group-winrate .group-stage-winrate-table td.col-season .cell-value,
.card--europe-group-winrate .group-stage-winrate-table td.col-stage .cell-value,
.card--europe-group-winrate .group-stage-winrate-table td.col-stat .cell-value {
  display: block;
  text-align: center;
}

.card--europe-group-winrate .group-stage-winrate-table td.col-team .team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card--europe-group-winrate .group-stage-winrate-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.card--europe-group-winrate .group-stage-winrate-table th.sortable:hover,
.card--europe-group-winrate .group-stage-winrate-table th.sortable--active {
  color: var(--accent, #7dd3fc);
}

.card--europe-group-winrate .group-stage-winrate-table th.sortable::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  margin-left: 0.25em;
}

.card--europe-group-winrate
  .group-stage-winrate-table
  th.sortable--active.sortable--desc::after {
  content: "▼";
  font-size: 0.55em;
  opacity: 0.85;
}

.card--europe-group-winrate
  .group-stage-winrate-table
  th.sortable--active.sortable--asc::after {
  content: "▲";
  font-size: 0.55em;
  opacity: 0.85;
}

.europe-group-winrate-grid .group-stage-winrate-table {
  table-layout: fixed;
  font-size: 0.78rem;
}

.europe-group-winrate-grid .group-stage-winrate-table col.col-season {
  width: 11%;
}

.europe-group-winrate-grid .group-stage-winrate-table col.col-stage {
  width: 9%;
}

.europe-group-winrate-grid .group-stage-winrate-table col.col-team {
  width: 27%;
}

.europe-group-winrate-grid .group-stage-winrate-table col.col-stat {
  width: 6.625%;
}

.europe-group-winrate-grid .group-stage-winrate-table thead th {
  padding: 8px 3px;
  font-size: 0.66rem;
}

.europe-group-winrate-grid .group-stage-winrate-table tbody td {
  padding: 0 3px;
}

.europe-group-winrate-grid .group-stage-winrate-table td.col-team .team-name {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.2;
}

.card__header--ko-history {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.card__header--ko-history .card__note {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
}

.card__table-wrap--ko-history {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(
    var(--europe-card-header) + var(--europe-thead-height) +
      var(--table-row-height) * 14
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--europe-ko-history .card__table-wrap--ko-history thead {
  display: table-header-group;
  width: 100%;
}

.card--europe-ko-history .card__table-wrap--ko-history tbody {
  display: table-row-group;
  max-height: none;
  overflow: visible;
}

.ko-history-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.84rem;
  table-layout: fixed;
}

.ko-history-table thead {
  display: table-header-group;
}

.ko-history-table tbody {
  display: table-row-group;
}

.ko-history-table tr {
  display: table-row;
}

.ko-history-table th,
.ko-history-table td {
  display: table-cell;
}

.card--europe-ko-history .ko-history-table thead tr {
  background: var(--card);
}

.card--europe-ko-history .ko-history-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: var(--table-row-height);
  box-sizing: border-box;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  background: inherit;
  border-bottom: 1px solid var(--card-border);
}

.ko-history-table tbody tr {
  height: var(--table-row-height);
}

.ko-rank {
  display: inline-block;
  min-width: 1.5em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text-muted);
}

.ko-rank--empty {
  font-weight: 400;
}

.ko-history-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.ko-history-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ko-history-table th,
.ko-history-table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.ko-history-table col.col-rank,
.ko-history-table .col-rank {
  width: 4%;
  min-width: 40px;
  text-align: center;
}

.ko-history-table col.col-team,
.ko-history-table .col-team {
  width: 22%;
  min-width: 160px;
  text-align: left;
}

.ko-history-table col.col-stat,
.ko-history-table col.col-pct,
.ko-history-table .col-stat,
.ko-history-table .col-pct {
  width: 6.5%;
  text-align: center;
}

.ko-history-table td.col-rank,
.ko-history-table td.col-stat,
.ko-history-table td.col-pct {
  text-align: center;
}

.ko-history-table .col-total {
  font-weight: 700;
}

.ko-history-table .club-rank-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ko-history-table .team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ko-history-table .cell-value {
  display: block;
  text-align: center;
}

.ko-history-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.ko-history-table th.sortable:hover {
  color: var(--accent, #7dd3fc);
}

.dashboard--europe-cup-view .card--europe-history {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: var(--europe-panel-height);
  max-height: var(--europe-panel-height);
}

.dashboard--europe-cup-view .card--europe-history .card__header {
  flex: 0 0 auto;
}

.card--europe-history .card__table-wrap--europe-finals {
  flex: 0 0 auto;
  max-height: calc(
    var(--europe-thead-height) +
      var(--table-row-height) * var(--europe-history-rows)
  );
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.europe-cup-side-col {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: var(--europe-panel-height);
  max-height: var(--europe-panel-height);
  min-width: 0;
}

.europe-cup-side-col .card--europe-side {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.europe-cup-side-col .card--europe-side .card__header {
  flex: 0 0 auto;
}

.europe-cup-side-col .card--europe-side .card__table-wrap {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.europe-cup-side-col .card--europe-side .card__table-wrap tbody {
  display: block;
  min-height: 0 !important;
  max-height: calc(var(--table-row-height) * var(--europe-side-rows)) !important;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.europe-cup-side-col .card--europe-side .card__table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.europe-cup-side-col .card--europe-side .card__table-wrap tbody td.col-team {
  width: 78% !important;
  overflow: visible;
}

.europe-cup-side-col .card--europe-side .card__table-wrap tbody td.col-value {
  width: 22% !important;
  white-space: nowrap;
}

.europe-cup-side-col .card--europe-side .card__table-wrap tbody tr {
  height: var(--table-row-height);
}

.europe-cup-side-col .card--europe-side .club-rank-team,
.europe-cup-side-col .card--europe-side .col-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  min-width: 0;
}

.europe-cup-side-col .card--europe-side .team-name {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.europe-cup-side-col .card--europe-side .intl-flag {
  flex-shrink: 0;
}

.card--europe-history .europe-finals-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.europe-finals-table {
  width: 100%;
  min-width: var(--history-min-europe-finals);
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.europe-finals-table thead {
  display: table-header-group;
}

.europe-finals-table tbody {
  display: table-row-group;
}

.europe-finals-table tr {
  display: table-row;
  height: var(--table-row-height);
}

.europe-finals-table th,
.europe-finals-table td {
  display: table-cell;
  padding: 8px 10px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  text-align: left;
}

.europe-finals-table thead th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

.europe-finals-table .col-season {
  width: 9%;
  min-width: 4.5rem;
}

.europe-finals-table .col-champion,
.europe-finals-table .col-runner {
  width: 23%;
  min-width: 9rem;
}

.europe-finals-table .col-score,
.europe-finals-table .col-score-2 {
  width: 14%;
  min-width: 4.75rem;
  white-space: nowrap;
}

.europe-finals-table--single-leg .col-season {
  width: 10%;
}

.europe-finals-table--single-leg .col-champion,
.europe-finals-table--single-leg .col-runner {
  width: 27%;
}

.europe-finals-table--single-leg .col-score {
  width: 16%;
  min-width: 5rem;
}

.europe-finals-table td.col-season .cell-value {
  display: block;
  width: auto;
  max-width: none;
  text-align: left;
  font-weight: 600;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.europe-finals-table td.col-champion,
.europe-finals-table td.col-runner {
  overflow: hidden;
}

.europe-finals-table td.col-score,
.europe-finals-table td.col-score-2 {
  overflow: visible;
  text-overflow: clip;
}

.europe-finals-table td.col-score .cell-value,
.europe-finals-table td.col-score-2 .cell-value {
  display: block;
  width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  text-align: left;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.europe-finals-table .club-rank-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.europe-finals-table .intl-flag {
  flex-shrink: 0;
}

.europe-finals-table td.col-team .team-name,
.europe-finals-table td.col-champion .team-name,
.europe-finals-table td.col-runner .team-name {
  white-space: nowrap;
  line-height: 1.25;
}

.card--europe-cups .card__table-wrap--europe-cups {
  padding: 0 14px 14px;
  overflow: visible;
}

.europe-cups-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.europe-cups-table thead {
  display: table-header-group;
}

.europe-cups-table tbody {
  display: table-row-group;
}

.europe-cups-table tr {
  display: table-row;
}

.europe-cups-table th,
.europe-cups-table td {
  display: table-cell;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.europe-cups-table thead th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

.europe-cups-table .col-season {
  width: 22%;
  text-align: left;
}

.europe-cups-table .col-team {
  width: 78%;
  text-align: left;
}

.europe-cups-table thead th.col-team,
.europe-cups-table thead th.col-season {
  text-align: left;
}

.europe-cups-table td.col-season .cell-value {
  display: block;
  width: auto;
  text-align: left;
  font-weight: 600;
}

.europe-cups-table td.col-team .club-rank-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.europe-cups-table td.col-team .team-name {
  white-space: nowrap;
  line-height: 1.25;
}

.europe-cups-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.europe-cups-table th.sortable:hover {
  color: var(--text);
}

.europe-cups-table th.sortable--active {
  color: var(--accent);
}

.europe-cups-table th.sortable::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  margin-left: 0.25em;
}

.europe-cups-table th.sortable--active.sortable--desc::after {
  content: "▼";
  font-size: 0.55em;
  opacity: 0.85;
}

.europe-cups-table th.sortable--active.sortable--asc::after {
  content: "▲";
  font-size: 0.55em;
  opacity: 0.85;
}

.card--five-years .card__table-wrap--five-years {
  padding: 0 14px 14px;
}

.five-years-table {
  min-width: 68rem;
  border-collapse: collapse;
  font-size: 0.82rem;
  table-layout: fixed;
}

.five-years-table thead {
  display: table-header-group;
}

.five-years-table tbody {
  display: table-row-group;
}

.five-years-table tr {
  display: table-row;
}

.five-years-table th,
.five-years-table td {
  display: table-cell;
  padding: 6px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.five-years-table thead th {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  white-space: nowrap;
}

.five-years-table .col-rank {
  width: 4%;
}

.five-years-table .col-team {
  width: 16%;
  text-align: left;
}

.five-years-table thead th.col-team {
  text-align: left;
}

.five-years-table .col-season {
  width: 5.5%;
}

.five-years-table .col-total {
  width: 6.5%;
}

.five-years-table thead th.col-total,
.five-years-table td.col-total {
  background: rgba(0, 0, 0, 0.22);
}

.five-years-table .col-stat {
  width: 5%;
}

.five-years-table .col-stat-wide {
  width: 6%;
}

.five-years-table td.col-stat,
.five-years-table td.col-season,
.five-years-table td.col-total,
.five-years-table td.col-rank {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.five-years-table td.col-stat .cell-value,
.five-years-table td.col-season .cell-value,
.five-years-table td.col-total .cell-value,
.five-years-table td.col-rank .cell-value {
  display: inline-block;
  width: 100%;
  text-align: center;
  line-height: 1.25;
}

.five-years-table td.col-total .club-rank-points--total {
  font-weight: 700;
  color: var(--text);
}

.five-years-table td.col-team .club-rank-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}

.five-years-table td.col-team .team-name {
  white-space: nowrap;
  line-height: 1.25;
  font-size: 0.8rem;
}

.five-years-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.five-years-table th.sortable:hover {
  color: var(--text);
}

.five-years-table th.sortable--active {
  color: var(--text);
}

.five-years-table th.sortable::after {
  content: "▼";
  font-size: 0.55rem;
  margin-left: 0.2em;
  opacity: 0.35;
}

.five-years-table th.sortable--active.sortable--desc::after {
  content: "▼";
  opacity: 1;
}

.five-years-table th.sortable--active.sortable--asc::after {
  content: "▲";
  opacity: 1;
}

.dashboard--ipp-view {
  display: block;
  max-width: 100%;
}

.dashboard--ipp-view .card--ipp {
  width: 100%;
}

.card--ipp .card__table-wrap--ipp {
  padding: 0 14px 14px;
}

.ipp-table {
  min-width: 52rem;
  border-collapse: collapse;
  font-size: 0.8rem;
  table-layout: fixed;
}

.ipp-table thead {
  display: table-header-group;
}

.ipp-table tbody {
  display: table-row-group;
}

.ipp-table tr {
  display: table-row;
}

.ipp-table th,
.ipp-table td {
  display: table-cell;
  padding: 6px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.ipp-table thead th {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  white-space: nowrap;
}

.ipp-table .col-rank {
  width: 3.5%;
}

.ipp-table .col-team {
  width: 14%;
  text-align: left;
}

.ipp-table thead th.col-team {
  text-align: left;
}

.ipp-table .col-ipp {
  width: 5.5%;
}

.ipp-table .col-stat {
  width: 4.2%;
}

.ipp-table .col-stat-narrow {
  width: 4%;
}

.ipp-table td.col-stat,
.ipp-table td.col-ipp,
.ipp-table td.col-rank {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ipp-table td.col-stat .cell-value,
.ipp-table td.col-ipp .cell-value,
.ipp-table td.col-rank .cell-value {
  display: inline-block;
  width: 100%;
  text-align: center;
  line-height: 1.25;
}

.ipp-table td.col-team .club-rank-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}

.ipp-table td.col-team .team-name {
  white-space: nowrap;
  line-height: 1.25;
  font-size: 0.82rem;
}

.ipp-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.ipp-table th.sortable:hover {
  color: var(--text);
}

.ipp-table th.sortable--active {
  color: var(--text);
}

.ipp-table th.sortable::after {
  content: "▼";
  font-size: 0.55rem;
  margin-left: 0.2em;
  opacity: 0.35;
}

.ipp-table th.sortable--active.sortable--desc::after {
  content: "▼";
  opacity: 1;
}

.ipp-table th.sortable--active.sortable--asc::after {
  content: "▲";
  opacity: 1;
}

.dashboard--international-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 14px;
  align-items: start;
}

.dashboard--international-view .intl-primary-stack {
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.intl-top-band {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}

.intl-top-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.intl-top-row .card--intl-record,
.intl-top-row .card--intl-ko-history,
.intl-top-band .card--intl-titles {
  display: flex;
  flex-direction: column;
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
}

.intl-top-row .card--intl-record {
  flex: 1 1 22rem;
  max-width: min(36%, 26rem);
  min-width: 0;
}

.intl-top-row .card--intl-ko-history {
  flex: 3 1 24rem;
  min-width: 0;
  max-width: none;
}

.intl-top-row .card--intl-ko-history .card__table-wrap--intl-ko-history {
  flex: 1 1 auto;
  padding-bottom: 0.65rem;
}

.intl-top-band .card--intl-titles {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 11.5rem;
  width: auto;
}

.dashboard--international-view .card[data-table="intl-vs-team"] {
  grid-column: 1;
  grid-row: 3;
}

.dashboard--international-view .card[data-table="intl-vs-country"] {
  grid-column: 2;
  grid-row: 3;
}

.dashboard--international-view .card--intl-streak {
  grid-column: 1;
  grid-row: 4;
}

.dashboard--international-view .card--intl-records {
  grid-column: 2;
  grid-row: 4;
}

.card__table-wrap--intl-ko-history {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--intl-ko-history .card__table-wrap--intl-ko-history thead {
  display: table-header-group;
  width: 100%;
}

.card--intl-ko-history .card__table-wrap--intl-ko-history tbody {
  display: table-row-group;
  max-height: none;
  overflow: visible;
}

.intl-ko-history-table {
  width: 100%;
  min-width: var(--history-min-intl-ko);
  font-size: 0.88rem;
  table-layout: fixed;
}

.intl-ko-history-table col.col-comp {
  width: 48%;
}

.intl-ko-history-table col.col-stat {
  width: calc(52% / 5);
}

.intl-ko-history-table .col-comp {
  text-align: left;
  white-space: nowrap;
  padding: 6px 12px 6px 8px;
}

.intl-ko-history-table .col-stat {
  padding: 6px 4px;
  white-space: nowrap;
  text-align: center;
}

.intl-ko-history-table thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 4px;
  white-space: nowrap;
}

.intl-ko-history-table thead th.col-comp {
  text-align: left;
  padding-left: 8px;
}

.intl-ko-history-table tbody td.col-comp {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary, #e8eaed);
}

.intl-ko-history-table tbody td.col-stat {
  font-size: 1.05rem;
  font-weight: 700;
}

.intl-top-row .intl-record-table .intl-record-labels th {
  font-size: 0.68rem;
  padding: 6px 3px;
}

.intl-top-row .intl-record-table tbody td {
  font-size: 0.92rem;
  padding: 4px 3px;
}

.intl-top-row .intl-record-table .col-stat {
  width: 20%;
}

.intl-top-row .intl-ko-history-table {
  font-size: 0.88rem;
}

.intl-top-row .intl-ko-history-table col.col-comp {
  width: 46%;
}

.intl-top-row .intl-ko-history-table col.col-stat {
  width: calc(54% / 5);
}

.intl-top-row .intl-ko-history-table .col-comp {
  padding: 6px 10px 6px 8px;
}

.intl-top-row .intl-ko-history-table .col-stat {
  padding: 6px 4px;
}

.intl-top-row .intl-ko-history-table thead th {
  font-size: 0.78rem;
  padding: 6px 4px;
}

.intl-top-row .intl-ko-history-table tbody td.col-comp {
  font-size: 0.82rem;
}

.intl-top-row .intl-ko-history-table tbody td.col-stat {
  font-size: 0.92rem;
}

.intl-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
  min-height: 0;
}

.card--intl-streak .intl-metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intl-metric-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 4.5rem;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.intl-metric-stat__value {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.intl-metrics-grid--records .intl-metric-stat__value {
  font-variant-numeric: normal;
  word-break: break-word;
}

.intl-metric-stat__label {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.card--intl-titles .card__table-wrap--intl-side {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.intl-titles-table .col-competition {
  width: 68%;
  text-align: left;
}

.intl-top-band .intl-titles-table {
  table-layout: fixed;
  width: 100%;
  font-size: 0.88rem;
}

.intl-top-band .intl-titles-table .col-competition {
  width: auto;
  white-space: nowrap;
  padding-right: 6px;
}

.intl-top-band .intl-titles-table thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.intl-top-band .intl-titles-table thead th.col-competition {
  padding: 6px 4px 6px 8px;
}

.intl-top-band .intl-titles-table tbody td.col-competition {
  font-size: 0.82rem;
  padding: 6px 4px 6px 8px;
}

.intl-top-band .intl-titles-table .col-stat {
  width: 2.25rem;
  text-align: center;
  padding: 6px 4px;
}

.intl-top-band .intl-titles-table tbody td.col-stat {
  font-size: 0.92rem;
}

.intl-titles-table tbody td.col-stat {
  font-weight: 700;
  font-size: 1.05rem;
}

.card--intl-record .card__table-wrap--intl-side {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card--intl-rank .intl-rank-grid {
  flex: 1 1 auto;
}

.intl-rank-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
  min-height: 0;
}

.intl-rank-stat {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  text-align: center;
}

.intl-rank-stat__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.intl-rank-stat__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.25;
}

.intl-record-table .col-stat {
  width: 20%;
}

.intl-record-table .intl-record-labels th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.intl-record-table tbody td {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.intl-record-table .intl-record-labels + tr td {
  border-top: none;
}

.intl-record-table tr:not(.intl-record-labels) + .intl-record-labels th {
  padding-top: 10px;
}

.intl-record-table .intl-record-labels--ranks th {
  font-size: 0.72rem;
  line-height: 1.2;
}

.intl-record-table .intl-record-ranks td {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.card--intl-record .intl-summary-table tbody {
  display: table-row-group;
  max-height: none;
  overflow: visible;
}

.intl-record-table .col-sep {
  width: 1.5rem;
  max-width: 1.5rem;
  padding-inline: 4px;
  color: var(--text-muted);
  white-space: nowrap;
}

.card--intl-history .card__table-wrap--intl {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-height: calc(var(--table-row-height) * 12 + 2.5rem);
  overflow: auto;
  padding-bottom: 0.65rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--intl-history .intl-table {
  width: 100%;
  min-width: var(--history-min-intl);
  table-layout: fixed;
}

.card--intl-history .intl-table thead {
  display: table-header-group;
  width: 100%;
}

.card--intl-history .intl-table tbody {
  display: table-row-group;
  max-height: none;
  overflow: visible;
}

.card--intl-history .intl-table tbody tr {
  display: table-row;
  width: auto;
  table-layout: auto;
}

.intl-table,
.intl-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.intl-table thead,
.intl-summary-table thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.intl-summary-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.intl-table th,
.intl-table td,
.intl-summary-table th,
.intl-summary-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.intl-table thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
}

.intl-table .col-nr,
.intl-table td.col-nr {
  width: 5%;
  min-width: 2.5rem;
  white-space: nowrap;
}

.intl-table .col-season,
.intl-table td.col-season {
  width: 8%;
  min-width: 4.25rem;
  white-space: nowrap;
}

.intl-table .col-comp,
.intl-table td.col-comp {
  width: 7%;
  min-width: 2.75rem;
  white-space: nowrap;
}

.intl-table .col-stage,
.intl-table td.col-stage {
  width: 9%;
  min-width: 3.5rem;
  white-space: nowrap;
}

.intl-table .col-home,
.intl-table td.col-home {
  width: 22%;
  min-width: 8rem;
}

.intl-table .col-away,
.intl-table td.col-away {
  width: 22%;
  min-width: 8rem;
}

.intl-table .col-score,
.intl-table td.col-score {
  width: 10%;
  min-width: 3.25rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.intl-table .col-res,
.intl-table td.col-res {
  width: 7%;
  min-width: 2.5rem;
  text-align: center;
  white-space: nowrap;
}

.card--intl-history .intl-table thead th {
  white-space: nowrap;
}

.card--intl-side .card__table-wrap--intl-side {
  flex: 0 0 auto;
  padding-bottom: 0.65rem;
}

.card--intl-side .intl-summary-table tbody {
  display: block;
  max-height: calc(var(--table-row-height) * 10);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.intl-summary-table thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
}

.intl-summary-table .col-opponent,
.intl-summary-table td.col-opponent {
  width: 40%;
  text-align: left;
}

.intl-summary-table .col-stat,
.intl-summary-table td.col-stat {
  width: 12%;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.intl-ha-filters {
  display: flex;
  gap: 6px;
}

.intl-ha-btn {
  min-width: 2rem;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.intl-ha-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.intl-ha-btn--active {
  border-color: var(--accent);
  background: rgba(94, 196, 196, 0.25);
}

.intl-summary-row--clickable {
  cursor: pointer;
}

.intl-summary-row--clickable:hover td {
  background: var(--row-hover);
}

.intl-summary-row--active td {
  background: rgba(94, 196, 196, 0.14);
}

.intl-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.intl-summary-name {
  min-width: 0;
}

.intl-flag {
  flex-shrink: 0;
  width: 28px;
  height: 21px;
  object-fit: contain;
  display: block;
}

.intl-res {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #111;
}

.intl-res--w {
  background: #2ea84a;
  color: #fff;
}

.intl-res--l {
  background: #c0392b;
  color: #fff;
}

.intl-res--d {
  background: #d4a017;
  color: #111;
}

.dashboard--records-view {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
}

.records-view {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.records-view--empty {
  padding: 2rem 0;
  text-align: center;
}

.record-section--featured {
  margin-bottom: 0.25rem;
}

.record-section__grid {
  display: grid;
  grid-template-columns: repeat(var(--record-cols, 5), minmax(0, 1fr));
  gap: 0.75rem;
}

.record-section__grid--featured {
  --record-cols: 5;
}

.record-section__title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.record-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.record-card__head {
  margin: 0;
  padding: 0.6rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #1a4a7a 0%, #0f3558 100%);
}

.record-card__body {
  margin: 0;
  flex: 1;
  padding: 0.7rem 0.6rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--text);
  word-break: break-word;
}

.record-card--featured {
  border-color: rgba(212, 175, 55, 0.45);
}

.record-card--featured .record-card__head {
  color: #1a1a12;
  background: linear-gradient(180deg, #f0d56a 0%, #d4af37 45%, #b8962e 100%);
}

.record-card--featured .record-card__body {
  font-weight: 700;
  color: #e8c547;
}

@media (max-width: 1200px) {
  .dashboard--international-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .dashboard--international-view > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .intl-top-band {
    flex-direction: column;
    align-items: stretch;
  }

  .intl-top-row {
    flex-direction: column;
    align-items: stretch;
  }

  .intl-top-row .card--intl-record,
  .intl-top-row .card--intl-ko-history,
  .intl-top-band .card--intl-titles {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .card--intl-ko-history .card__table-wrap--intl-ko-history {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }

  .intl-top-row .intl-ko-history-table {
    min-width: 22rem;
  }

  .card--intl-record .card__table-wrap--intl-side {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }

  .intl-top-row .intl-record-table {
    min-width: 18rem;
  }

  .card--intl-history .card__table-wrap--intl {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }

  .card--intl-history .intl-table {
    min-width: 40rem;
  }

  .card--intl-history .intl-table tbody {
    overflow-x: visible;
  }

  .card--intl-side .card__table-wrap--intl-side {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }

  .card--intl-side .intl-summary-table {
    min-width: 20rem;
  }
}

@media (max-width: 1100px) {
  .record-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .intl-top-row .intl-record-table .intl-record-labels th,
  .intl-top-row .intl-record-table tbody td {
    font-size: 0.78rem;
    padding: 4px 2px;
  }

  .intl-record-table .col-sep {
    width: 1.25rem;
    max-width: 1.25rem;
    padding-inline: 2px;
  }

  .intl-top-row .intl-ko-history-table {
    font-size: 0.8rem;
  }

  .intl-top-row .intl-ko-history-table thead th,
  .intl-top-row .intl-ko-history-table .col-stat {
    padding-inline: 2px;
  }
}

@media (max-width: 720px) {
  .record-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard--league-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main {
    padding: 12px;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.top-tabs--hidden {
  display: none;
}

/* —— Derby —— */
.year-filter__inner--derby {
  width: 100%;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.year-filter__filters--derby {
  flex: 1 1 auto;
  min-width: 0;
}

.year-filter__select--derby {
  min-width: 12rem;
  max-width: 22rem;
}

.dashboard--derby-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.derby-upper-row {
  display: block;
  min-width: 0;
}

.card--derby-top {
  width: 100%;
  min-width: 0;
}

.derby-top-note {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.card--derby-top .card__table-wrap--derby-top {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 14px 14px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(var(--table-row-height) * 14 + var(--table-head-height));
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--derby-top .card__table-wrap--derby-top::-webkit-scrollbar,
.card__table-wrap--derby-matches::-webkit-scrollbar {
  width: 6px;
  height: 8px;
}

.card--derby-top .card__table-wrap--derby-top::-webkit-scrollbar-thumb,
.card__table-wrap--derby-matches::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.card--derby-top .card__table-wrap--derby-top::-webkit-scrollbar-track,
.card__table-wrap--derby-matches::-webkit-scrollbar-track {
  background: transparent;
}

.card--derby-top .card__table-wrap--derby-top::-webkit-scrollbar-button,
.card__table-wrap--derby-matches::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.card__table-wrap--derby-top .derby-top-table {
  width: max-content;
  min-width: 100%;
}

.derby-top-table {
  min-width: 42rem;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.86rem;
}

.derby-top-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  padding: 8px 10px;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
  box-sizing: border-box;
}

.derby-top-table td {
  padding: 8px 10px;
  line-height: 1.25;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  box-sizing: border-box;
}

.derby-top-table .col-rank {
  width: 2.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.derby-top-table .col-flag {
  width: 2.5rem;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

.derby-top-table .col-flag .country-flag-img,
.derby-top-table .col-flag .intl-flag {
  display: inline-block;
  vertical-align: middle;
}

.derby-top-table .col-derby {
  width: 24%;
  min-width: 11rem;
}

.derby-top-table .col-team {
  width: 21%;
  min-width: 9.5rem;
}

.derby-top-table .col-stat {
  width: 2.35rem;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.derby-top-row--clickable {
  cursor: pointer;
}

.derby-top-row--clickable:hover td {
  background: var(--row-hover);
}

.derby-top-row--active td {
  background: rgba(255, 255, 255, 0.08);
}

.derby-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.derby-stats-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.derby-titles-comparison-row,
.derby-records-row {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.derby-titles-comparison-row {
  flex: 0 0 50%;
  max-width: 50%;
}

.derby-records-row {
  flex: 1 1 0;
}

.derby-match-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.card--derby-titles-comparison,
.card--derby-records {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
}

.card--derby-titles-comparison {
  max-width: 100%;
}

.card--derby-titles-comparison .derby-records {
  padding-bottom: 0.35rem;
}

.card--derby-records {
  overflow: hidden;
}

.card--derby-records .derby-records {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 14px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.card--derby-records .derby-records::-webkit-scrollbar {
  width: 6px;
}

.card--derby-records .derby-records::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.derby-match-filters {
  flex: 0 0 12.5rem;
  width: 12.5rem;
  min-width: 12.5rem;
  max-width: 12.5rem;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.derby-match-filters__fields {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.derby-match-filters .year-filter__team {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.derby-match-filters .year-filter__select {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.card--derby-matches {
  position: static;
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.card__table-wrap--derby-matches {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(var(--table-row-height) * 14 + var(--table-head-height));
  padding: 0 14px 14px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.derby-records__row:last-child {
  border-bottom: none;
}

.derby-records__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.derby-records__row--head {
  padding-block: 10px;
  min-height: 2.75rem;
}

.derby-records__row--stats .derby-records__value {
  font-size: 1.05rem;
}

.derby-records__team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
}

.derby-records__team .team-name {
  flex: 0 1 auto;
  width: auto;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}

.derby-records__label {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.derby-records__value {
  display: block;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.derby-match-table {
  width: 100%;
  min-width: var(--history-min-derby);
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.86rem;
}

.derby-match-table col.col-date {
  width: 5.25rem;
}

.derby-match-table col.col-competition {
  width: 9rem;
}

.derby-match-table col.col-score {
  width: 3.25rem;
}

.derby-match-table col.col-pen {
  width: 4rem;
}

.derby-match-table col.col-home,
.derby-match-table col.col-away {
  width: calc((100% - 21.5rem) / 2);
}

.derby-match-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  padding: 8px 10px;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
  box-sizing: border-box;
}

.derby-match-table td {
  padding: 8px 10px;
  line-height: 1.25;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  box-sizing: border-box;
}

.derby-match-table .col-date,
.derby-match-table .col-pen {
  white-space: nowrap;
}

.derby-match-table .col-date {
  width: 5.25rem;
  min-width: 5.25rem;
  font-variant-numeric: tabular-nums;
}

.derby-match-table .col-score {
  width: 3.25rem;
  min-width: 3.25rem;
  text-align: center;
}

.derby-match-table .col-pen {
  width: 4rem;
  min-width: 4rem;
  text-align: center;
}

.derby-match-table .col-pen .cell-value {
  overflow: visible;
  text-overflow: clip;
}

.derby-match-table .col-competition {
  width: 9rem;
  min-width: 9rem;
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.derby-match-table th.col-home,
.derby-match-table td.col-home {
  padding-left: 6px;
}

.derby-match-table th.col-home,
.derby-match-table th.col-away,
.derby-match-table td.league-team-col {
  text-align: center;
  min-width: 0;
}

.derby-match-table td.league-team-col {
  overflow: visible;
}

.derby-match-table .league-team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: none;
}

.derby-match-table .team-name {
  white-space: nowrap;
}

.derby-match-table td.league-team-col--winner {
  background: rgba(0, 0, 0, 0.28);
}

.derby-match-table .league-team--winner {
  display: inline-flex;
  align-items: center;
  max-width: none;
  padding: 3px 10px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.derby-match-table .team-name--winner {
  font-weight: 700;
  color: #fff;
}

@media (max-width: 1100px) {
  .derby-bottom-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .derby-stats-row,
  .derby-match-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .derby-titles-comparison-row,
  .derby-records-row {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }

  .derby-match-row {
    flex-direction: column;
  }

  .card--derby-records {
    height: auto !important;
  }

  .card--derby-records .derby-records {
    max-height: calc(var(--table-row-height) * 12 + var(--table-head-height));
  }

  .derby-match-filters {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .derby-match-filters__fields {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .derby-match-filters .year-filter__team {
    flex: 1 1 10rem;
    flex-direction: row;
    align-items: center;
  }

  .card--derby-matches {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .card__table-wrap--derby-matches {
    max-height: calc(var(--table-row-height) * 12 + var(--table-head-height));
  }
}

/* Europe — Road to Final bracket (History view) */
.dashboard--europe-bracket {
  display: block;
  max-width: none;
}

.road-to-final {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 55%, var(--card) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 32px 36px;
  min-height: min(72vh, 720px);
  box-shadow: var(--shadow);
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.road-to-final::-webkit-scrollbar {
  height: 8px;
}

.road-to-final::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.road-to-final::-webkit-scrollbar-track {
  background: transparent;
}

.road-to-final__title {
  margin: 0 0 28px;
  text-align: right;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
}

.road-to-final__empty {
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  margin: 2rem 0;
}

.road-to-final__bracket {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(10px, 1.4vw, 18px);
  width: max-content;
  min-width: 100%;
  max-width: none;
  padding-bottom: 12px;
  box-sizing: border-box;
}

.tournament-bracket__tail {
  display: flex;
  align-items: stretch;
  flex: 2 1 0;
  min-width: 0;
  gap: clamp(10px, 1.4vw, 18px);
  margin-left: 0;
}

.tournament-bracket__tail > .tournament-round {
  flex: 1 1 0;
  min-width: clamp(196px, 13vw, 252px);
}

.tournament-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1 1 0;
  min-width: clamp(196px, 13vw, 252px);
}

.tournament-round__matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  gap: 6px;
}

.tournament-round--l16 .tournament-round__matches {
  justify-content: center;
  gap: 14px;
  padding: 6px 0;
}

.tournament-round--l16 .tournament-match {
  min-height: 60px;
  flex: 0 0 auto;
}

.tournament-round--qf .tournament-match {
  min-height: 96px;
}

.tournament-round--sf .tournament-match {
  min-height: 172px;
}

.tournament-round--fin .tournament-match {
  min-height: 292px;
}

.tournament-round--champion {
  justify-content: center;
  flex: 1 1 0;
  min-width: clamp(196px, 13vw, 252px);
  padding-left: 0;
}

.tournament-match {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  padding-right: 54px;
}

.tournament-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  padding: 5px 10px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.tournament-round--fin .tournament-team__name,
.tournament-round--champion .tournament-team__name {
  max-width: none;
  flex: 1 1 auto;
}

.tournament-team--empty {
  opacity: 0.45;
}

.tournament-round--champion .tournament-team {
  background: linear-gradient(180deg, #ffe082 0%, #ffc107 100%);
  border: 1px solid #ffb300;
  font-weight: 700;
  padding: 8px 12px;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.45);
}

.tournament-team__name {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  font-size: clamp(0.84rem, 0.88vw, 0.94rem);
  font-weight: 600;
  color: #111;
  line-height: 1.15;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: break-word;
}

.tournament-team img {
  width: clamp(22px, 1.55vw, 26px);
  height: clamp(14px, 1vw, 17px);
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 1px;
}

.tournament-trophy {
  margin-left: auto;
  font-size: 1rem;
  line-height: 1;
}

.tournament-score {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  min-width: 46px;
  padding: 5px 8px;
  text-align: center;
  font-size: clamp(0.84rem, 0.92vw, 0.94rem);
  font-weight: 700;
  color: #111;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-variant-numeric: tabular-nums;
}

.tournament-score--empty {
  opacity: 0.4;
}

.tournament-round--champion .tournament-match {
  padding-right: 0;
}

.tournament-round--champion .tournament-team__name {
  font-size: clamp(0.86rem, 0.92vw, 0.96rem);
}

.tournament-round--champion .tournament-team {
  padding: 10px 14px;
}

/* Europe — group stage tables (History / bracket view) */
.europe-group-stage {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}

.europe-group-stage__heading {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.europe-group-stage__grid {
  display: grid;
  gap: 16px;
  width: 100%;
}

/* League phase: volle Breite, eigener Block über den Gruppen */
.europe-group-stage__grid--league {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  margin-bottom: 16px;
}

/* Gruppen A–H: bis zu 3 pro Zeile, bei wenig Platz weniger Spalten */
.europe-group-stage__grid--groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.europe-group-table {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.europe-group-table--league {
  max-width: 100%;
}

.europe-group-table__title {
  margin: 0;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--card-border);
}

.europe-group-table__wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.europe-group-table__grid {
  width: 100%;
  min-width: 17.5rem;
  border-collapse: collapse;
  font-size: 0.78rem;
  table-layout: auto;
}

.europe-group-stage__grid--groups .europe-group-table__grid {
  min-width: 18.5rem;
}

.europe-group-stage__grid--groups .europe-group-table__grid .col-pl {
  width: 1.75rem;
}

.europe-group-stage__grid--groups .europe-group-table__grid .col-stat {
  width: 1.85rem;
}

.europe-group-stage__grid--groups .europe-group-table__grid .col-pts {
  width: 2rem;
}

.europe-group-table__grid th,
.europe-group-table__grid td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.europe-group-table__grid th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.12);
}

.europe-group-table__grid tbody tr:last-child td {
  border-bottom: none;
}

.europe-group-table__grid .col-team {
  text-align: left;
  min-width: 5.5rem;
  width: auto;
}

.europe-group-table--league .europe-group-table__grid {
  table-layout: auto;
  font-size: 0.82rem;
}

.europe-group-table--league .europe-group-table__grid .col-team {
  width: auto;
  min-width: 11rem;
}

.europe-group-table--league .europe-group-team span {
  max-width: none;
  white-space: nowrap;
}

.europe-group-table__grid .col-pl,
.europe-group-table__grid .col-pts {
  font-weight: 700;
}

.europe-group-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.europe-group-team img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 1px;
}

.europe-group-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .europe-group-stage__grid--groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tournament-bracket__tail {
    margin-left: -32px;
  }

  .europe-group-stage__grid--groups {
    grid-template-columns: 1fr;
  }

  .road-to-final {
    padding: 20px 16px 28px;
  }

  .road-to-final__title {
    text-align: left;
    font-size: 1.75rem;
    margin-bottom: 20px;
  }
}

/* LARGE-SCREEN-LAYOUT-START — revert via chat: "Large-Screen Layout rückgängig" */
:root {
  --layout-max-width: 1680px;
  --layout-max-width-ultra: 1760px;
}

@media (min-width: 1201px) {
  .content-area .main {
    width: 100%;
    max-width: var(--layout-max-width);
    margin-inline: auto;
  }
}

@media (min-width: 1920px) {
  .content-area .main {
    max-width: var(--layout-max-width-ultra);
  }
}

@media (min-width: 1201px) {
  .derby-match-table col.col-home,
  .derby-match-table col.col-away {
    width: min(10rem, calc((100% - 21.5rem) / 2));
  }
}
/* LARGE-SCREEN-LAYOUT-END */

/* —— Legal / info pages (footer links) —— */
body.legal-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  color: var(--text);
  font-family: var(--font-body);
}

.legal-page__main {
  flex: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-page__back:hover {
  color: #fff;
}

.legal-page__main h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.legal-page__lead {
  margin: 0 0 24px;
  line-height: 1.55;
  color: rgba(244, 247, 247, 0.72);
  font-size: 0.95rem;
}

.legal-page__main h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

.legal-page__main p,
.legal-page__main li {
  line-height: 1.6;
  color: rgba(244, 247, 247, 0.78);
}

.legal-page__main ul {
  padding-left: 1.25rem;
}

.legal-page__main a {
  color: var(--accent);
}

.legal-page__main a:hover {
  color: #fff;
}

.legal-page__contact-email {
  margin: 8px 0 0;
  font-size: 1.15rem;
}

.legal-page__contact-email a {
  font-weight: 600;
}

/* —— Cookie consent —— */
html.cookie-consent--pending body {
  overflow: hidden;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.cookie-consent__panel {
  position: relative;
  width: min(440px, 100%);
  padding: 24px 26px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(94, 196, 196, 0.35);
  background: var(--sidebar-bg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.cookie-consent__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.cookie-consent__text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(244, 247, 247, 0.78);
}

.cookie-consent__text strong {
  color: #fff;
  font-weight: 600;
}

.cookie-consent__link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__link:hover {
  color: #fff;
}

.cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.cookie-consent__btn {
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.cookie-consent__btn--accept {
  background: linear-gradient(180deg, #6ed4d4 0%, #4ba8a8 100%);
  color: #062626;
}

.cookie-consent__btn--accept:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
