.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 108px;
  height: 108px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.8px;
  line-height: 1;
}

.brand-club {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sport {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 1.3rem;
  color: var(--blue);
}

.site-nav {
  display: flex;
  gap: 22px;
  font-weight: 600;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(31, 79, 163, 0.12);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 19, 24, 0.2);
  background: var(--white);
  min-height: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
}

.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-switch {
  position: relative;
  --theme-switch-width: 140px;
  --theme-indicator-shift: -8px;
  width: var(--theme-switch-width);
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(31, 79, 163, 0.32);
  background:
    linear-gradient(140deg, rgba(31, 79, 163, 0.18), rgba(255, 91, 63, 0.14)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(227, 235, 249, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 1px 3px rgba(17, 19, 24, 0.12),
    0 10px 22px rgba(31, 79, 163, 0.18);
  padding: 0;
  cursor: pointer;
  --theme-indicator-size: 32px;
  --theme-indicator-left: 7px;
  --theme-indicator-top: 5px;
}

.theme-switch:focus-visible {
  outline: 3px solid rgba(31, 79, 163, 0.5);
  outline-offset: 3px;
}

.theme-end {
  position: absolute;
  top: 3px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff, #e6edf9);
  color: var(--blue-dark);
  border: 1px solid rgba(17, 19, 24, 0.1);
  opacity: 0.55;
  line-height: 1;
}

.theme-end svg {
  width: 16px;
  height: 16px;
  display: block;
}

.theme-moon svg {
  width: 19px;
  height: 19px;
  transform: translateX(1px);
}

.theme-sun {
  left: 5px;
}

.theme-moon {
  right: 5px;
}

.theme-indicator {
  position: absolute;
  top: var(--theme-indicator-top);
  left: var(--theme-indicator-left);
  width: var(--theme-indicator-size);
  height: var(--theme-indicator-size);
  border-radius: 50%;
  background: rgba(31, 79, 163, 0.25);
  box-shadow: 0 6px 14px rgba(12, 17, 28, 0.18);
  transition: transform 0.25s ease;
}

.theme-switch[aria-pressed="false"] .theme-sun {
  opacity: 1;
}

.theme-switch[aria-pressed="true"] .theme-moon {
  opacity: 1;
}

.theme-switch[aria-pressed="true"] .theme-indicator {
  transform: translateX(
    calc(
      var(--theme-switch-width) - (var(--theme-indicator-size) + var(--theme-indicator-left) * 2)
      + var(--theme-indicator-shift)
    )
  );
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  min-height: 44px;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(31, 79, 163, 0.28);
}

.button.ghost {
  border-color: rgba(17, 19, 24, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75);
}

.stat {
  display: block;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 2.2rem;
}

.label {
  font-size: 0.9rem;
  color: rgba(17, 19, 24, 0.7);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.card-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.team-card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 19, 24, 0.05);
}

.team-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.team-card li {
  padding-left: 18px;
  margin-bottom: 10px;
  position: relative;
}

.team-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.info-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.info-list div {
  background: rgba(255, 255, 255, 0.8);
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.fixture-card {
  background: var(--blue-dark);
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fixture {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-weight: 600;
  margin-top: 18px;
}

.fixture-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-weight: 600;
  margin-top: 18px;
}

.fixture-meta {
  opacity: 0.8;
  margin-top: 10px;
}

.fixture-meta-centered {
  text-align: center;
}

.fixture-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.fixture-list-item + .fixture-list-item {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.fixture-list-item {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.fixture-team-label,
.fixture-league-label {
  margin: 0;
}

.fixture-team-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fixture-league-label {
  opacity: 0.76;
}

.results-toggle {
  margin-top: 12px;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.results-toggle-summary {
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  padding: 14px 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.results-toggle-summary::after {
  content: "+";
  font-size: 1.1rem;
}

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

.results-list {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.results-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(31, 79, 163, 0.08);
  border: 1px solid rgba(31, 79, 163, 0.14);
}

.results-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  font-weight: 600;
}

.results-matchup {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.results-team {
  min-width: 0;
  overflow-wrap: anywhere;
}

.results-score {
  font-weight: 700;
  white-space: nowrap;
}

.results-versus {
  white-space: nowrap;
  opacity: 0.78;
}

.results-detail {
  margin: 6px 0 0;
  font-size: 0.9rem;
  opacity: 0.78;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

.table {
  display: grid;
  gap: 12px;
}

.table-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1.8fr) 72px 82px 64px 72px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.table-row span {
  min-width: 0;
}

.table-row span:first-child {
  text-align: center;
}

.table-row span:nth-child(n + 3) {
  text-align: right;
}

.table-row-header {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

.table-row.is-highlight {
  font-weight: 700;
  background: rgba(31, 79, 163, 0.14);
  border: 1px solid rgba(31, 79, 163, 0.2);
}

.training-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 19, 24, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.training-card p {
  margin: 0;
}

.training-card span {
  display: block;
  font-weight: 600;
  margin: 0;
}

.training-card small {
  font-size: 0.85rem;
  color: rgba(17, 19, 24, 0.7);
  display: block;
  margin: 0;
}

.training-location small,
.training-location small a,
[data-nwvv-field="standings-meta"] {
  font-size: 0.85rem;
  color: rgba(17, 19, 24, 0.7);
}

.training-location small {
  display: block;
  margin-top: 4px;
}

[data-nwvv-field="standings-meta"] {
  margin: 0;
}

.training-location {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 19, 24, 0.08);
  box-shadow: var(--shadow);
  max-width: 520px;
}

.whatsapp-qr {
  display: grid;
  gap: 10px;
  max-width: 300px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 19, 24, 0.1);
  box-shadow: 0 14px 30px rgba(12, 17, 28, 0.12);
}

.whatsapp-qr p {
  margin: 0;
  font-weight: 600;
}

.whatsapp-qr img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(12, 17, 28, 0.15);
  border: 1px solid rgba(17, 19, 24, 0.1);
  background: #fff;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 6;
  width: min(860px, calc(100vw - 48px));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 19, 24, 0.12);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 360px;
}

.cookie-actions {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(17, 19, 24, 0.2);
  background: var(--white);
  border-radius: 999px;
  font-weight: 600;
}

.cookie-action:hover,
.cookie-action:focus-visible {
  background: rgba(31, 79, 163, 0.12);
}

.cookie-dismiss {
  border: 1px solid rgba(17, 19, 24, 0.2);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.cookie-dismiss:hover,
.cookie-dismiss:focus-visible {
  background: rgba(31, 79, 163, 0.12);
}

.cookie-banner.is-hidden {
  display: none;
}

.embed-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(12, 17, 28, 0.06);
  border: 1px solid rgba(17, 19, 24, 0.04);
}

.embed-consent {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.embed-consent p {
  margin: 0;
  font-size: 0.95rem;
}

.embed-wrapper iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}

[data-theme="dark"] .site-header {
  background: rgba(15, 18, 26, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .site-nav a:hover,
[data-theme="dark"] .site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .button.ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(20, 24, 36, 0.7);
}

[data-theme="dark"] .button.primary,
[data-theme="dark"] .fixture-card {
  color: var(--ink);
}

[data-theme="dark"] .teams-highlight .fixture-card {
  background:
    linear-gradient(145deg, rgba(34, 67, 130, 0.96), rgba(21, 41, 82, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .teams-highlight .fixture-list-item + .fixture-list-item {
  border-top-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .teams-highlight .fixture-list-item {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .results-toggle {
  background: rgba(20, 24, 36, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .results-item {
  background: rgba(93, 134, 219, 0.14);
  border-color: rgba(93, 134, 219, 0.22);
}

[data-theme="dark"] .site-footer {
  color: rgba(245, 247, 255, 0.7);
}

[data-theme="dark"] .nav-toggle {
  background: rgba(20, 24, 36, 0.85);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .label,
[data-theme="dark"] .training-card small,
[data-theme="dark"] .training-location small,
[data-theme="dark"] .training-location small a,
[data-theme="dark"] [data-nwvv-field="standings-meta"] {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .hero-highlights div,
[data-theme="dark"] .info-list div,
[data-theme="dark"] .training-card,
[data-theme="dark"] .training-location,
[data-theme="dark"] .whatsapp-qr,
[data-theme="dark"] .cookie-banner,
[data-theme="dark"] .embed-consent {
  background: rgba(20, 24, 36, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .team-card {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .theme-switch {
  border-color: rgba(93, 134, 219, 0.45);
  background:
    linear-gradient(140deg, rgba(93, 134, 219, 0.25), rgba(255, 91, 63, 0.18)),
    linear-gradient(90deg, rgba(12, 16, 26, 0.94), rgba(26, 34, 52, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    0 10px 22px rgba(0, 0, 0, 0.45);
  --theme-indicator-shift: -4px;
}

[data-theme="dark"] .theme-indicator {
  background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .theme-end {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(245, 247, 255, 0.95);
  background: linear-gradient(180deg, rgba(28, 36, 56, 0.95), rgba(16, 22, 36, 0.95));
}

@media (max-width: 1100px) {
  .brand img {
    width: 95px;
    height: 95px;
  }

  .brand-club {
    font-size: 1.5rem;
  }

  .brand-sport {
    font-size: 1.1rem;
  }

  .site-nav {
    position: absolute;
    left: clamp(16px, 5vw, 36px);
    right: clamp(16px, 5vw, 36px);
    top: calc(100% + 8px);
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow-y: auto;
    z-index: 5;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .theme-switch {
    --theme-switch-width: 112px;
    --theme-indicator-shift: -6px;
    width: var(--theme-switch-width);
    height: 38px;
    --theme-indicator-size: 26px;
    --theme-indicator-left: 6px;
    --theme-indicator-top: 4px;
  }

  [data-theme="dark"] .theme-switch {
    --theme-indicator-shift: -2px;
  }

  .theme-end {
    top: 2px;
    width: 30px;
    height: 30px;
  }

  .theme-end svg {
    width: 14px;
    height: 14px;
  }

  .theme-moon svg {
    width: 17px;
    height: 17px;
  }

  .theme-sun {
    left: 4px;
  }

  .theme-moon {
    right: 4px;
  }

  .theme-indicator {
    top: var(--theme-indicator-top);
    left: var(--theme-indicator-left);
    width: var(--theme-indicator-size);
    height: var(--theme-indicator-size);
  }

  .whatsapp-qr {
    width: min(240px, 100%);
  }
}

@media (max-width: 800px) {
  .embed-wrapper iframe {
    height: 420px;
  }
}

@media (max-width: 700px) {
  .team-standings {
    overflow: hidden;
  }

  .team-standings .table {
    display: grid;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .team-standings .table-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: 24px minmax(0, 1.55fr) 42px 54px 38px 48px;
    gap: 6px;
    padding: 8px;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .team-standings .table-row-header {
    font-size: 0.66rem;
    letter-spacing: 0.02em;
  }

  .team-standings .table-row span:nth-child(2) {
    overflow-wrap: anywhere;
  }

  .results-toggle-summary {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .results-list {
    gap: 10px;
    padding: 0 12px 12px;
  }

  .results-item {
    padding: 10px;
  }

  .results-line {
    gap: 6px 10px;
    font-size: 0.84rem;
    align-items: start;
  }

  .results-detail,
  .results-item .fixture-meta {
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .team-standings .table-row {
    grid-template-columns: 22px minmax(0, 1.45fr) 38px 48px 34px 42px;
    gap: 4px;
    padding: 7px 6px;
    font-size: 0.72rem;
  }

  .team-standings .table-row-header {
    font-size: 0.62rem;
  }

  .results-line {
    font-size: 0.78rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .results-matchup {
    gap: 3px 6px;
  }

  .results-score {
    font-size: 0.82rem;
  }

  .results-detail,
  .results-item .fixture-meta {
    font-size: 0.72rem;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 14px;
    width: calc(100vw - 28px);
    padding: 16px;
  }

  .cookie-actions {
    flex-basis: 100%;
  }

  .cookie-action {
    flex-basis: 100%;
  }
}

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