/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --bg-card: #1a1d26;
  --bg-card-hover: #22262f;
  --text: #e4e6ea;
  --text-muted: #8b8f9a;
  --accent: #3ecf8e;
  --accent-hover: #34b87c;
  --border: #2a2d38;
  --cta-bg: #1c2a1f;
  --cta-border: #3ecf8e;
}

html { font-size: 16px; scroll-behavior: smooth; scrollbar-gutter: stable; overflow-x: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: 1440px; }

@media (min-width: 1600px) {
  .container--wide { max-width: 1600px; }
}

/* ── Header ── */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-header__logo img {
  height: 18px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .site-header__logo img { height: 15px; }
}

.site-header nav { display: flex; gap: 1.5rem; }

.site-header nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .site-header .container { padding: 0 0.75rem; }
  .site-header nav { gap: 0.75rem; }
  .site-header nav a { font-size: 0.7rem; }
  .site-header__logo img { height: 13px; }
}

.site-header nav a:hover { color: var(--text); }

.site-header nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ── Hero ── */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Hero Finder ── */
.hero--finder {
  background: linear-gradient(135deg, #1a2a1a 0%, #1a1d26 60%, #0f1117 100%);
  padding: 2.5rem 0;
  text-align: left;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__text { flex: 1; min-width: 280px; }

.hero__text h1 {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0;
}

.hero__text h1 strong { font-weight: 700; }

.hero__finder {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 300px;
  max-width: 360px;
}

.hero__finder-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-wrap: balance;
}

/* ── Custom dropdown (used in hero match finder) ── */
.custom-select {
  position: relative;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

.custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.custom-select__trigger:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.custom-select__trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.25);
}

.custom-select--open .custom-select__trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.25);
}

.custom-select--disabled .custom-select__trigger {
  opacity: 0.45;
  cursor: not-allowed;
}

.custom-select__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__label--placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.custom-select__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233ecf8e' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 8 11 13 6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.custom-select--open .custom-select__chevron {
  transform: rotate(180deg);
}

.custom-select__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 100%;
  width: max-content;
  max-width: min(520px, calc(100vw - 2rem));
  max-height: 320px;
  overflow-y: auto;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1117;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-select--open .custom-select__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select__option {
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select__option:hover,
.custom-select__option--active {
  background: var(--bg-card-hover);
}

.custom-select__option--selected {
  color: var(--accent);
  font-weight: 600;
}

.custom-select__option-date {
  display: inline-block;
  min-width: 3.25rem;
  margin-right: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

.custom-select__option--selected .custom-select__option-date {
  color: var(--accent);
}

.custom-select__group {
  padding: 0.5rem 0.75rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.custom-select__empty {
  padding: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Flag inside custom select (used on frontpage liga dropdown) */
.custom-select__option .league-card__flag,
.custom-select__label .league-card__flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  margin-right: 0.55rem;
  vertical-align: -1px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.custom-select__option .league-card__flag--globe,
.custom-select__label .league-card__flag--globe {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
}

/* Scrollbar polish */
.custom-select__panel::-webkit-scrollbar { width: 8px; }
.custom-select__panel::-webkit-scrollbar-track { background: transparent; }
.custom-select__panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.custom-select__panel::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.finder-button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.finder-button:hover:not(:disabled) { background: var(--accent-hover); }
.finder-button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Section subtitle ── */
.section__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── Date Selector ── */
.date-selector {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border);
}

.date-selector::-webkit-scrollbar { display: none; }

.date-tab {
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-transform: capitalize;
  transition: background 0.15s, color 0.15s;
  margin-bottom: -2px;
}

.date-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.date-tab--active {
  background: var(--bg-card-hover);
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.date-nav {
  position: sticky;
  z-index: 2;
  flex-shrink: 0;
  padding: 0.6rem 0.75rem;
  background: var(--bg-card);
  color: var(--text-muted);
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

#date-prev { left: 0; }
#date-next { right: 0; }

.date-nav:hover { color: var(--text); }

/* ── Match List (vertical, grouped by league) ── */
.match-list { margin-bottom: 1rem; }

.ml-league-header {
  display: block;
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  text-decoration: none;
}

.ml-league-header--link:hover {
  color: var(--text);
}

.ml-league-header .league-card__flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  margin-right: 0.5rem;
  vertical-align: -1px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ml-league-header .league-card__flag--globe {
  width: 17px;
  height: 17px;
  vertical-align: -2px;
  color: var(--accent);
}

.ml-row {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.1s;
  gap: 0.75rem;
}

.ml-row:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.ml-time {
  flex-shrink: 0;
  width: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ml-home {
  flex: 1;
  text-align: right;
  font-size: 0.9rem;
}

.ml-dash {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ml-away {
  flex: 1;
  text-align: left;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .hero__inner { flex-direction: column; }
  .hero__finder { max-width: 100%; min-width: 0; }
  .hero__text h1 { font-size: 1.35rem; }
}

/* ── Section ── */
.section { padding: 2rem 0; }
.section__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

/* ── Match Cards ── */
.match-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .match-grid { grid-template-columns: 1fr 1fr; }
}

.match-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.match-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--text);
}

.match-card__league {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.match-card__teams {
  font-size: 1rem;
  font-weight: 600;
}

.match-card__vs {
  color: var(--text-muted);
  margin: 0 0.4rem;
  font-weight: 400;
  font-size: 0.85rem;
}

.match-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ── League Cards ── */
.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.league-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--text);
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.league-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--text);
}

.league-card__country {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Flag variant — used on /ligaer/ */
.league-card--with-flag {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.league-card__flag {
  flex-shrink: 0;
  width: 32px;
  height: 24px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.league-card__flag--globe {
  background: none;
  box-shadow: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
}

.league-card__body {
  flex: 1;
  min-width: 0;
}

.league-card__name {
  display: block;
}

/* ── CTA Block ── */
.cta-block {
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.cta__content {
  flex: 1 1 240px;
  min-width: 0;
}

.cta__tv {
  flex: 0 0 auto;
  width: 180px;
  max-width: 100%;
  color: var(--accent);
  display: none;
  transition: transform 0.15s, color 0.15s;
}

@media (min-width: 768px) {
  .cta__tv {
    display: block;
  }
}

.cta__tv:hover {
  color: var(--accent-hover);
  transform: scale(1.03);
}

.cta__tv svg {
  width: 100%;
  height: auto;
  display: block;
}

.cta-block--narrow {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block--compact {
  padding: 1rem;
  margin: 0;
  display: block;
}

.cta-block--compact .cta__headline {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.cta-block--compact .cta__button {
  display: block;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.cta-block--compact .cta__compliance {
  font-size: 0.65rem;
  margin-top: 0.5rem;
}

.cta__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.cta__headline {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cta__subline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cta__steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.cta__step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.cta__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.cta__button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.15s;
}

.cta__button:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.cta__compliance {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ── Match Detail Page ── */
/* ── Match strip (horizontal league round nav) ── */
.match-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  padding: 1rem 0 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}

.match-strip:empty { display: none; }

.match-strip::-webkit-scrollbar { height: 4px; }
.match-strip::-webkit-scrollbar-track { background: transparent; }
.match-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.match-strip__card {
  flex-shrink: 0;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  min-width: 150px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.match-strip__card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--text);
}

.match-strip__card--active {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.match-strip__date {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.match-strip__home {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.match-strip__away {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* ── Match strip bar (selector + horizontal strip) ── */
.match-strip-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0 0;
}

.match-strip-bar:has(.match-strip:empty) { display: none; }

/* Custom league selector within strip bar */
.match-strip-bar .custom-select {
  flex-shrink: 0;
  width: 200px;
}

.match-strip-bar .custom-select__trigger {
  font-size: 0.82rem;
  min-height: 0;
  padding: 1.45rem 0.85rem;
}

.match-strip-bar .custom-select__panel {
  min-width: 260px;
  z-index: 20;
}

/* ── Match header ── */
.match-header-bar {
  display: block;
}

.match-header-bar__spacer,
.match-header-bar__cta {
  display: none;
}

@media (min-width: 1100px) {
  .match-header-bar {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    align-items: center;
    gap: 1.5rem;
  }
  .match-header-bar__spacer,
  .match-header-bar__cta {
    display: block;
  }
}

.match-header {
  padding: 1.5rem 0 1rem;
  text-align: center;
}

.match-header__league {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Versus layout — team names flanking "vs" with form dots inline */
.match-header__versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.match-header__side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.match-header__side--home {
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.match-header__side--away {
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}

.match-header__team-name {
  font-size: clamp(1rem, 3.5vw, 1.65rem);
  font-weight: 700;
  white-space: nowrap;
}

.match-header__vs {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  flex-shrink: 0;
}

.match-header__form-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.match-header__h1 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1rem;
}

.breadcrumbs__link {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumbs__sep {
  color: var(--border);
}

.breadcrumbs__current {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

.match-header__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Screen-reader only (SEO h1) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form dots */
.form-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  cursor: default;
}

.form-dot--win { background: var(--accent); }
.form-dot--draw { background: #eab308; }
.form-dot--loss { background: #e55; }

.form-dot__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  pointer-events: none;
  z-index: 20;
}

.form-dot__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border);
}

.form-dot:hover .form-dot__tooltip,
.form-dot:focus .form-dot__tooltip {
  opacity: 1;
  visibility: visible;
}

.form-dot__tooltip-score {
  font-weight: 700;
  color: #fff;
}

.form-dot__tooltip-date {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
}

/* Responsive: mobile match header + strip */
@media (max-width: 600px) {
  /* Stack versus vertically, centered — dots stay inline with team name */
  .match-header__versus {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }
  .match-header__side--home {
    flex-direction: row;
    justify-content: center;
  }
  .match-header__side--away {
    flex-direction: row-reverse;
    justify-content: center;
  }
  .match-header__vs {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .match-header__team-name {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  /* Strip bar: stack selector above strip on narrow screens */
  .match-strip-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  .match-strip-bar .custom-select {
    width: 100%;
  }
  .match-strip-bar .custom-select__trigger {
    padding: 0.55rem 0.85rem;
  }
  .match-strip {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── More matches (bottom of match page) ── */
#more-matches {
  margin-top: 2rem;
  max-width: 720px;
}

#more-matches:empty { display: none; }

#more-matches .ml-time {
  width: 100px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.more-matches__link {
  display: block;
  text-align: center;
  padding: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.more-matches__link:hover {
  color: var(--accent-hover);
}

@media (min-width: 1100px) {
  #more-matches {
    margin-left: auto;
    margin-right: auto;
  }
}

.match-analysis__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.match-analysis {
  padding: 1.5rem 0;
  line-height: 1.8;
  font-size: 1.05rem;
}

.match-analysis p { margin-bottom: 1rem; }

.match-analysis h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.match-analysis h3:first-child {
  margin-top: 0;
}

.match-analysis__placeholder {
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem 0;
}

.stream-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stream-note strong { color: var(--text); }

/* ── Where to watch (kamp-side) ── */
.where-to-watch {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.5rem;
  margin: 1.5rem 0;
}

.where-to-watch--narrow {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.where-to-watch__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.where-to-watch__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.where-to-watch__text a {
  color: var(--accent);
  font-weight: 600;
}

.where-to-watch__text a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── Streaming Provider Page ── */
.provider-card {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 1.75rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 880px) {
  .provider-card {
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .provider-card__cta { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 520px) {
  .provider-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .provider-card__device { justify-self: center; }
}

/* Laptop-style frame */
.provider-card__device {
  width: 100%;
  max-width: 180px;
}

.provider-card__screen {
  background: linear-gradient(180deg, #0f1117 0%, #1a1d26 100%);
  border: 4px solid #2a2d38;
  border-radius: 10px 10px 4px 4px;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  padding: 0.75rem;
  word-break: break-word;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.provider-card__base {
  width: 115%;
  height: 8px;
  margin: 3px auto 0;
  margin-left: -7.5%;
  background: linear-gradient(180deg, #2a2d38 0%, #1a1d26 100%);
  border-radius: 0 0 8px 8px;
  position: relative;
}

.provider-card__base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3px;
  background: #0f1117;
  border-radius: 0 0 4px 4px;
}

/* Body */
.provider-card__body {
  min-width: 0;
}

.provider-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.provider-card__lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.provider-card__detail {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.provider-card__detail strong { color: var(--text); }
.provider-card__detail span { color: var(--text-muted); }

/* Vertical numbered steps */
.provider-steps {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.provider-steps__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.provider-steps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.provider-steps__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.provider-steps__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}

.provider-steps__icon svg {
  width: 16px;
  height: 16px;
}

.provider-steps__num {
  color: var(--text);
  font-weight: 600;
  flex-shrink: 0;
}

.provider-steps__text { color: var(--text-muted); }

/* Circular CTA */
.provider-card__cta {
  display: flex;
  justify-content: center;
}

.provider-card__cta-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4ed99a 0%, var(--accent) 55%, #2fa872 100%);
  color: #0a1f14;
  text-decoration: none;
  text-align: center;
  padding: 1.25rem 1rem;
  box-shadow: 0 12px 30px rgba(62, 207, 142, 0.28), inset 0 -4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  line-height: 1.15;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.provider-card__cta-button:hover {
  color: #0a1f14;
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(62, 207, 142, 0.4), inset 0 -4px 12px rgba(0, 0, 0, 0.12);
}

.provider-card__cta-top {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #062013;
}

.provider-card__cta-bottom {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ── Match 3-column layout (desktop) ── */
.match-grid {
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  grid-template-rows: auto auto;
  gap: 0 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

@media (min-width: 1600px) {
  .match-grid {
    grid-template-columns: 380px 1fr 380px;
    gap: 0 2.5rem;
  }
}

/* Last10 panels: row 1 */
.match-grid__home-last10 {
  grid-column: 1;
  grid-row: 1;
}

.match-grid__away-last10 {
  grid-column: 3;
  grid-row: 1;
}

/* Lineup panels: row 2 — always aligned */
.match-grid__home-lineup {
  grid-column: 1;
  grid-row: 2;
}

.match-grid__away-lineup {
  grid-column: 3;
  grid-row: 2;
}

/* Center spans both rows */
.match-grid__center {
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 0;
  max-width: 720px;
}

@media (max-width: 1099px) {
  .match-grid { display: none !important; }
}

/* ── Sticky CTA bar ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(90deg, #1c2a1f 0%, #1a1d26 100%);
  border-top: 1px solid var(--accent);
  padding: 0.5rem 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.sticky-cta--hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.sticky-cta__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sticky-cta__text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.sticky-cta__button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 0.4rem 1.25rem;
  border-radius: 5px;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.15s;
}

.sticky-cta__button:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.sticky-cta__disclaimer {
  font-size: 0.6rem;
  color: var(--text-muted);
}

body.has-sticky-cta { padding-bottom: 52px; }

@media (max-width: 600px) {
  .sticky-cta__inner { gap: 0.4rem; }
  .sticky-cta__text { font-size: 0.75rem; }
  .sticky-cta__button { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
}

/* ── Lineups Grid (two columns) ── */
.lineups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .lineups-grid { grid-template-columns: 1fr; }
}

.lineup-panel, .form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.lineup-panel__title, .form-panel__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lineup-panel__subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.lineup-panel__formation {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.lineup-table, .form-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.form-table {
  table-layout: fixed;
}

.lineup-table tr, .form-table tr {
  border-bottom: 1px solid var(--border);
}

.lineup-table td, .form-table td {
  padding: 0.45rem 0.5rem;
  vertical-align: middle;
}

.lineup__cat-row td {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-top: 0.6rem;
}

.lineup__num {
  color: var(--text-muted);
  width: 36px;
  font-weight: 600;
}

.lineup__pos {
  color: var(--text-muted);
  text-align: right;
  font-size: 0.75rem;
  text-transform: capitalize;
}

.lineup__injury {
  color: #e55;
  font-size: 0.75rem;
}

.lineup__return {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.form__date {
  color: var(--text-muted);
  width: 44px;
  font-size: 0.75rem;
}

.form__league {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: 32px;
  white-space: nowrap;
}

.form__result {
  width: 24px;
  text-align: right;
  padding-left: 0.3rem;
}

.form-table .form-dot {
  width: 18px;
  height: 18px;
}

.form__home {
  text-align: right;
  padding-right: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form__score {
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  width: 40px;
}

.form__away {
  text-align: left;
  padding-left: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── H2H panel ── */
.h2h-panel {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 720px;
}

.h2h-panel__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Summary bar — horizontal stacked segments */
.h2h-summary {
  margin-bottom: 1.25rem;
}

.h2h-summary__bar {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.h2h-summary__seg {
  padding: 0.55rem 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: width 0.3s ease;
}

.h2h-summary__seg strong {
  font-weight: 800;
}

.h2h-summary__seg--a,
.h2h-summary__seg--b {
  background: var(--accent);
  color: #0a1f14;
}

.h2h-summary__seg--b {
  text-align: right;
}

.h2h-summary__seg--draw {
  background: #eab308;
  color: #1a1a1a;
  text-align: center;
}

/* H2H table */
.h2h-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.h2h-table tr {
  border-bottom: 1px solid var(--border);
}

.h2h-table tr:last-child {
  border-bottom: none;
}

.h2h-table td {
  padding: 0.55rem 0.5rem;
  vertical-align: middle;
}

.h2h__date {
  color: var(--text-muted);
  font-size: 0.75rem;
  width: 80px;
  white-space: nowrap;
}

.h2h__league {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: 36px;
  white-space: nowrap;
}

.h2h__team {
  color: var(--text-muted);
}

.h2h__team:nth-child(3) {
  text-align: right;
  padding-right: 0.4rem;
}

.h2h__team:nth-child(5) {
  text-align: left;
  padding-left: 0.4rem;
}

.h2h__team--winner {
  color: var(--text);
  font-weight: 700;
}

.h2h__score {
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  width: 44px;
  color: var(--text);
}

/* Responsive — center the panel on wide screens */
@media (min-width: 1100px) {
  .h2h-panel {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.site-footer__nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__responsible {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.site-footer__responsible-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.site-footer__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__logo {
  height: 36px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.site-footer__logo:hover {
  opacity: 1;
}

.site-footer__logo--18plus { height: 40px; }
.site-footer__logo--rofus { height: 28px; }
.site-footer__logo--stopspillet { height: 36px; }

.site-footer__copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Loading ── */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* ── Prose (SEO content) ── */
.prose {
  max-width: 760px;
  color: var(--text);
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.prose li {
  margin-bottom: 0.4rem;
  color: var(--text);
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  line-height: 1.35;
}

/* ── FAQ (accordion) ── */
.faq {
  max-width: 760px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.faq__item[open] {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.15s ease;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item ul {
  padding: 0 1.25rem 1.1rem 2.5rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq__item ul li {
  margin-bottom: 0.3rem;
}

.faq__item p {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Page Header (non-hero) ── */
.page-header {
  padding: 2rem 0 1.5rem;
  background: linear-gradient(135deg, #1a2a1a 0%, #1a1d26 60%, #0f1117 100%);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.page-header p {
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Page header with flag (used on /liga/[slug]) */
.page-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.page-header__flag {
  flex-shrink: 0;
}

.page-header__flag .league-card__flag {
  width: 56px;
  height: 42px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.page-header__flag .league-card__flag--globe {
  width: 48px;
  height: 48px;
}

.page-header__text {
  min-width: 0;
}
