:root {
  --ink: #171717;
  --muted: #5f6368;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #dedbd2;
  --red: #c62828;
  --gold: #d7a431;
  --green: #0b7a5a;
  --teal: #0c5162;
  --shadow: 0 24px 70px rgba(24, 24, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(15, 17, 18, 0.84);
  backdrop-filter: blur(14px);
}

.brand,
.main-nav,
.hero-actions,
.match-meta,
.match-details {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #111 0 33%, var(--red) 33% 66%, var(--gold) 66%),
    radial-gradient(circle at 50% 50%, transparent 0 38%, #fff 39% 43%, transparent 44%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.38);
}

.main-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.9rem;
}

.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-group-label {
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: #111111;
  background: var(--gold);
  outline: none;
}

.nav-link-shop {
  color: #ffffff;
  background: rgba(198, 40, 40, 0.68);
}

.hero,
.detail-hero {
  --hero-image: url("../img/hero-worldcup.jpg");
  --hero-image-set: image-set(
    url("../img/hero-worldcup.webp") type("image/webp"),
    url("../img/hero-worldcup.jpg") type("image/jpeg")
  );
}

.hero-germany {
  --hero-image: url("../img/hero-germany.jpg");
  --hero-image-set: image-set(
    url("../img/hero-germany.webp") type("image/webp"),
    url("../img/hero-germany.jpg") type("image/jpeg")
  );
}

.hero-groups {
  --hero-image: url("../img/hero-groups.jpg");
  --hero-image-set: image-set(
    url("../img/hero-groups.webp") type("image/webp"),
    url("../img/hero-groups.jpg") type("image/jpeg")
  );
}

.hero-knockout {
  --hero-image: url("../img/hero-knockout.jpg");
  --hero-image-set: image-set(
    url("../img/hero-knockout.webp") type("image/webp"),
    url("../img/hero-knockout.jpg") type("image/jpeg")
  );
}

.hero-deutsche-ligen {
  --hero-image: url("../img/hero-deutsche-ligen.jpg");
  --hero-image-set: image-set(
    url("../img/hero-deutsche-ligen.webp") type("image/webp"),
    url("../img/hero-deutsche-ligen.jpg") type("image/jpeg")
  );
}

.hero-europe {
  --hero-image: url("../img/hero-europe.jpg");
  --hero-image-set: image-set(
    url("../img/hero-europe.webp") type("image/webp"),
    url("../img/hero-europe.jpg") type("image/jpeg")
  );
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(88px, 12vw, 148px) clamp(18px, 4vw, 56px) 52px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.86), rgba(10, 10, 10, 0.48) 52%, rgba(10, 10, 10, 0.2)),
    linear-gradient(0deg, rgba(10, 10, 10, 0.74), transparent 48%),
    var(--hero-image) center / cover;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.86), rgba(10, 10, 10, 0.48) 52%, rgba(10, 10, 10, 0.2)),
    linear-gradient(0deg, rgba(10, 10, 10, 0.74), transparent 48%),
    var(--hero-image-set) center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, #111 0 33%, var(--red) 33% 66%, var(--gold) 66%);
}

.hero-content,
.next-match {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.segmented-control button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  color: #111111;
  background: var(--gold);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.hero-ad {
  position: absolute;
  top: clamp(22px, 4vw, 42px);
  left: clamp(18px, 4vw, 56px);
  z-index: 2;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100% - clamp(36px, 8vw, 112px)));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(12, 81, 98, 0.52)),
    rgba(17, 17, 17, 0.62);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  text-decoration: none;
}

.hero-ad:hover,
.hero-ad:focus-visible {
  border-color: rgba(215, 164, 49, 0.78);
  background:
    linear-gradient(135deg, rgba(215, 164, 49, 0.2), rgba(12, 81, 98, 0.58)),
    rgba(17, 17, 17, 0.72);
  outline: none;
}

.hero-ad-visual {
  display: block;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.hero-ad-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-ad-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hero-ad-label,
.hero-ad-copy small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-ad-copy strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.2;
}

.hero-ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  color: #111111;
  background: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.next-match {
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(18, 19, 20, 0.72);
  box-shadow: var(--shadow);
}

.next-match strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.next-match .next-match-teams {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 10px;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.15;
}

.next-match .team-name span {
  white-space: nowrap;
}

.next-match > span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
}

.next-match > .label {
  color: var(--gold);
}

.next-match .countdown {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #111111;
  background: var(--gold);
  font-weight: 800;
}

.section {
  scroll-margin-top: 96px;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-note {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.compact-grid,
.match-list,
.knockout-grid,
.commerce-grid,
.team-panel,
.standings-grid {
  display: grid;
  gap: 16px;
}

.compact-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 24px;
  padding-bottom: 24px;
  background: #171717;
}

.compact-grid.league-overview {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.league-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.goal-getters-card {
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
}

.goal-getters-section .goal-getters-card {
  margin-bottom: 0;
}

.goal-getters-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.goal-getters-heading h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.goal-getters-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.goal-getters-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 7px;
  background: #ffffff;
}

.goal-getter-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: #171717;
  font-size: 0.82rem;
  font-weight: 900;
}

.goal-getter-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-getters-list strong {
  min-width: 34px;
  color: var(--green);
  font-size: 1.05rem;
  text-align: right;
}

.single-standings {
  margin-bottom: 28px;
}

.league-match-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.league-match-columns h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.round-results-panel {
  margin-top: 26px;
}

.round-results-panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.round-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.round-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.round-results summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

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

.round-results summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 1.1rem;
  line-height: 1;
}

.round-results[open] summary::after {
  content: "-";
}

.round-results summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.round-result-list {
  display: grid;
  align-items: start;
  gap: 8px;
  padding: 0 12px 12px;
}

.round-result-match {
  display: grid;
  align-self: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfaf7;
}

.round-result-time {
  display: block;
  min-height: 18px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.round-result-teams {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 40px;
  gap: 12px;
}

.round-result-teams .team-name {
  width: 100%;
  max-width: 100%;
}

.round-result-teams .team-name strong {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

.round-result-teams .team-away {
  justify-content: flex-end;
}

.round-result-teams .team-away .club-logo {
  order: 2;
}

.round-result-teams .team-away strong {
  order: 1;
  text-align: right;
}

.round-result-teams .club-logo {
  width: 28px;
}

.round-result-teams .score {
  justify-self: center;
  min-width: 44px;
  padding: 6px 8px;
  text-align: center;
  justify-content: center;
}

.round-result-teams strong {
  font-size: 0.92rem;
}

.goal-events {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.goal-event-group + .goal-event-group {
  margin-top: 10px;
}

.goal-event-heading {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.goal-scorers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.goal-scorers li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 7px;
  color: #2d2b26;
  background: #f2efe7;
  font-size: 0.82rem;
  font-weight: 800;
}

.goal-event-group.is-shootout .goal-scorers li {
  background: #fff4d9;
}

.goal-event {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-scoreline {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  color: #ffffff;
  background: #171717;
  font-size: 0.72rem;
  line-height: 1.2;
}

.round-result-match .goal-events {
  margin-top: 8px;
  padding-top: 8px;
}

.round-result-match .goal-scorers li {
  font-size: 0.76rem;
}

.compact-match-list {
  grid-template-columns: 1fr;
  align-items: start;
}

.compact-match-list .match-card {
  min-height: 0;
  gap: 12px;
}

.compact-match-list .match-meta {
  min-height: 34px;
}

.compact-match-list .teams {
  min-height: 44px;
  gap: 10px;
}

.compact-match-list .team-name {
  width: 100%;
  max-width: 100%;
}

.compact-match-list .team-name strong {
  display: block;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

.compact-match-list .teams strong {
  font-size: 1rem;
}

.detail-hero {
  padding-top: clamp(104px, 10vw, 128px);
  padding-bottom: clamp(42px, 6vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.62)),
    linear-gradient(0deg, rgba(17, 17, 17, 0.58), rgba(17, 17, 17, 0.06)),
    var(--hero-image) center / cover;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.62)),
    linear-gradient(0deg, rgba(17, 17, 17, 0.58), rgba(17, 17, 17, 0.06)),
    var(--hero-image-set) center / cover;
}

.detail-hero .hero-copy {
  max-width: 720px;
}

.crawl-links {
  padding-top: 34px;
  padding-bottom: 34px;
  background: #f7f4ea;
}

.competition-link-groups {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.competition-link-groups.is-compact {
  margin-top: 0;
}

.competition-link-group {
  display: grid;
  gap: 8px;
}

.link-group-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-hero .link-group-label {
  color: rgba(255, 255, 255, 0.72);
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.competition-link-group .link-cloud {
  margin-top: 0;
}

.link-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

.link-cloud a:hover,
.link-cloud a:focus-visible,
.link-cloud a.is-active {
  color: #ffffff;
  background: var(--teal);
}

.cup-section {
  background: #f7f4ea;
}

.empty-note {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 800;
}

.text-section {
  background: #f7f4ea;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.text-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.text-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.text-grid p {
  margin: 0;
  color: var(--muted);
}

.metric {
  padding: 20px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.metric span,
.match-meta,
.match-details {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric span {
  color: rgba(255, 255, 255, 0.62);
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.4rem;
}

.league-summary .metric {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.league-summary .metric span {
  color: var(--muted);
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f2efe7;
}

.segmented-control button {
  padding: 9px 13px;
  color: var(--muted);
  background: transparent;
}

.segmented-control button.is-active {
  color: #ffffff;
  background: var(--teal);
}

.schedule-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.datalist-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  min-width: 210px;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(242, 239, 231, 0.92)),
    #f2efe7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 800;
}

.datalist-control label {
  white-space: nowrap;
}

.datalist-field {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 44px;
  align-items: center;
  border-radius: 8px;
  background: var(--teal);
}

.datalist-control input {
  width: 130px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
  color: #ffffff;
  background: transparent;
  font: inherit;
  outline: none;
}

.datalist-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.12);
}

.datalist-toggle::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 17px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.datalist-control input::selection {
  color: #111111;
  background: var(--gold);
}

.datalist-control input:focus-visible,
.datalist-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(215, 164, 49, 0.42);
}

.datalist-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  width: min(260px, calc(100vw - 36px));
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(12, 81, 98, 0.28);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.2);
}

.datalist-popup[hidden] {
  display: none;
}

.datalist-popup button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.datalist-popup button:hover,
.datalist-popup button:focus-visible {
  color: #ffffff;
  background: var(--teal);
  outline: none;
}

.datalist-popup button[hidden] {
  display: none;
}

.match-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.match-card,
.round-card,
.commerce-card,
.team-panel article,
.standings-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.match-card {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 18px;
  min-height: 232px;
  padding: 20px;
}

.match-card[hidden] {
  display: none;
}

.empty-state {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}

.empty-state[hidden] {
  display: none;
}

.match-meta,
.match-details {
  justify-content: space-between;
  gap: 14px;
}

.match-card .match-meta {
  min-height: 36px;
}

.match-meta span:first-child {
  color: var(--green);
  font-weight: 800;
}

.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.team-name,
.table-team {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.team-name {
  color: inherit;
}

.team-name span,
.team-name strong,
.table-team span {
  min-width: 0;
  overflow-wrap: break-word;
}

.team-away {
  justify-content: flex-end;
  text-align: right;
}

.flag {
  flex: 0 0 auto;
  width: 30px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 3px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.12);
}

.club-logo {
  flex: 0 0 auto;
  width: 32px;
  aspect-ratio: 1;
  padding: 2px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 5px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.1);
}

.teams strong {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 8px;
  border-radius: 7px;
  text-align: center;
  color: #ffffff;
  background: #171717;
  font-weight: 900;
}

.match-details {
  align-items: start;
  flex-direction: column;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  background: #f2efe7;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

td {
  text-align: center;
}

thead th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

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

.standings-card {
  padding: 18px;
}

.standings-card.is-focus {
  border-color: rgba(198, 40, 40, 0.42);
  box-shadow: inset 0 0 0 2px rgba(215, 164, 49, 0.18);
}

.standings-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.standings-card-heading .eyebrow {
  margin-bottom: 0;
}

.standings-card-heading span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
}

.standings-card .table-wrap {
  margin-top: 14px;
}

.standings-card table {
  min-width: 0;
  font-size: 0.9rem;
}

.standings-card th,
.standings-card td {
  padding: 10px 7px;
}

.standings-card tbody th {
  width: 34%;
}

.standings-card .flag {
  width: 24px;
}

.standings-card .club-logo {
  width: 24px;
}

.compact-match-list .club-logo {
  width: 28px;
}

.is-focus-team th,
.is-focus-team td {
  color: #111111;
  background: rgba(215, 164, 49, 0.2);
  font-weight: 900;
}

.team-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.team-panel article,
.round-card {
  padding: 18px;
}

.team-panel span,
.round-card > span {
  color: var(--red);
  font-weight: 900;
}

.team-panel strong,
.round-card > strong,
.commerce-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
}

.team-panel p,
.round-card > p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.round-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.round-card > p {
  margin-top: 0;
}

.knockout-pairings {
  display: grid;
  gap: 10px;
}

.knockout-pairing {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.round-card .knockout-time,
.round-card .knockout-ground {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.knockout-teams {
  gap: 8px;
}

.knockout-teams .flag {
  width: 24px;
}

.knockout-teams .team-name strong {
  display: inline;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.25;
}

.knockout-teams .score {
  min-width: 42px;
  padding: 6px;
  font-size: 0.86rem;
}

.commerce {
  background: #111111;
  color: #ffffff;
}

.commerce .section-note {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
}

.commerce-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.commerce-intro p,
.commerce-intro span {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.commerce-intro span {
  max-width: 320px;
  font-size: 0.9rem;
  font-weight: 800;
}

.commerce-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: stretch;
}

.commerce-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  background: #171717;
  border-color: rgba(255, 255, 255, 0.16);
}

.commerce-card:first-child {
  grid-row: span 2;
}

.commerce-card:not(:first-child) {
  grid-template-columns: minmax(138px, 0.64fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  min-height: 250px;
}

.commerce-card-media {
  position: relative;
  display: block;
  min-height: 100%;
  background: #222222;
}

.commerce-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: 100%;
  object-fit: cover;
}

.commerce-card:first-child img {
  aspect-ratio: 16 / 10;
}

.commerce-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 5px;
  color: #111111;
  background: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.commerce-card-body {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: clamp(18px, 2.3vw, 28px);
  background:
    linear-gradient(145deg, rgba(198, 40, 40, 0.2), rgba(12, 81, 98, 0.28)),
    #171717;
}

.commerce-card:hover,
.commerce-card:focus-visible {
  transform: translateY(-2px);
}

.commerce-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.commerce-label {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.commerce-card strong {
  margin-top: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.12;
}

.commerce-copy,
.commerce-check {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.commerce-check {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.commerce-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 14px;
  border-radius: 7px;
  color: #111111;
  background: var(--gold);
  font-weight: 900;
}

.commerce-card:hover .commerce-cta,
.commerce-card:focus-visible .commerce-cta {
  background: #efbf46;
}

.sponsored-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.sponsored-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(215, 164, 49, 0.1), rgba(255, 255, 255, 0)),
    var(--surface);
  font-size: 0.93rem;
}

.sponsored-label {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--muted);
  background: #f2efe7;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sponsored-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sponsored-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.2;
}

.sponsored-copy small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.sponsored-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  color: #111111;
  background: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.sponsored-links a:hover,
.sponsored-links a:focus-visible {
  background: #efbf46;
  outline: none;
}

.sources {
  padding-top: 34px;
  padding-bottom: 34px;
}

.source-context {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: #111111;
}

.footer-copy {
  display: grid;
  gap: 5px;
  max-width: 620px;
}

.footer-copy strong {
  color: #ffffff;
}

.footer-copy span {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-links {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  padding-top: clamp(126px, 12vw, 160px);
  background: #f7f3eb;
}

.legal-page h1 {
  max-width: 760px;
  margin-bottom: 28px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
}

.legal-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.legal-panel h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.legal-panel p,
.legal-panel address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.legal-panel p + p {
  margin-top: 12px;
}

@media (max-width: 1000px) {
  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .next-match {
    max-width: 520px;
  }

  .compact-grid,
  .match-list,
  .commerce-grid,
  .league-summary,
  .league-match-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standings-grid {
    grid-template-columns: 1fr;
  }

  .text-grid {
    grid-template-columns: 1fr;
  }

  .commerce-grid,
  .commerce-intro {
    grid-template-columns: 1fr;
  }

  .commerce-card:first-child {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-items: start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .section {
    scroll-margin-top: 126px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 18px;
  }

  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .nav-group {
    flex: 0 0 auto;
  }

  .nav-link-shop {
    flex: 0 0 auto;
  }

  .hero {
    min-height: auto;
    padding-top: 152px;
    padding-bottom: 34px;
  }

  .hero-copy {
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .detail-hero {
    padding-top: 88px;
    padding-bottom: 34px;
  }

  .detail-hero.hero-deutsche-ligen,
  .detail-hero.hero-europe {
    background-position: 28% center;
  }

  .compact-grid {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .crawl-links,
  .sources {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .link-cloud {
    gap: 8px;
    margin-top: 14px;
  }

  .commerce-card:not(:first-child) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .commerce-card:not(:first-child) img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .compact-grid,
  .match-list,
  .team-panel,
  .commerce-grid,
  .league-summary,
  .goal-getters-list,
  .league-match-columns,
  .round-results-grid,
  .standings-grid,
  .knockout-grid {
    grid-template-columns: 1fr;
  }

  .compact-grid,
  .league-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .compact-grid .metric:last-child:nth-child(odd),
  .league-summary .metric:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .metric {
    padding: 16px;
  }

  .metric strong {
    font-size: 1.22rem;
  }

  .schedule-controls,
  .datalist-control {
    width: 100%;
  }

  .datalist-field {
    width: 100%;
  }

  .datalist-control input {
    width: 100%;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
  }

  .segmented-control button {
    flex: 1 0 auto;
  }

  .hero-ad {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-ad-cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .teams {
    grid-template-columns: 1fr;
  }

  .round-result-teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .team-away,
  .score {
    text-align: left;
    justify-content: flex-start;
  }

  .sponsored-card {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sponsored-links a {
    width: 100%;
  }

  .knockout-teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .standings-card {
    padding: 16px;
  }

  .standings-card .table-wrap {
    overflow: visible;
  }

  .standings-card table,
  .standings-card tbody {
    display: block;
    width: 100%;
  }

  .standings-card table {
    min-width: 0;
  }

  .standings-card thead {
    display: none;
  }

  .standings-card tbody tr {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .standings-card tbody tr:last-child {
    border-bottom: 0;
  }

  .standings-card th,
  .standings-card td {
    border-bottom: 0;
    padding: 0;
  }

  .standings-card tbody th {
    grid-column: 1 / -1;
    width: auto;
  }

  .standings-card .table-team {
    display: flex;
    width: 100%;
  }

  .standings-card .table-team span {
    overflow-wrap: normal;
  }

  .standings-card td {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 36px;
    border-radius: 5px;
    background: #f7f4ea;
    font-size: 0.78rem;
    font-weight: 900;
  }

  .standings-card td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  .is-focus-team th,
  .is-focus-team td {
    background: rgba(215, 164, 49, 0.22);
  }
}

@media (max-width: 360px) {
  .compact-grid,
  .league-summary {
    grid-template-columns: 1fr;
  }
}
