:root {
  --l4-bg: #202020;
  --l4-bg-2: #292929;
  --l4-bg-3: #161616;
  --l4-text: #ffffff;
  --l4-muted: #b9bec3;
  --l4-line: #3b3b3b;
  --l4-blue: #11117a;
  --l4-red: #e82929;
  --l4-yellow: #ffe100;
  --l4-shell: 1240px;
}

body.page-template-page-regionalliga {
  background: #111;
}

.liga4-league-page {
  background: var(--l4-bg-3);
  color: var(--l4-text);
  min-height: 100vh;
  padding: 0 0 48px;
}

.liga4-shell {
  width: min(var(--l4-shell), calc(100% - 32px));
  margin: 0 auto;
}

.liga4-admin-warning {
  background: #fff3cd;
  color: #372d00;
  padding: 14px 16px;
  margin: 18px 0;
  border-left: 4px solid #ffca2c;
}

.liga4-league-head {
  background: var(--l4-bg);
  border: 1px solid var(--l4-line);
  border-top: 0;
}

.liga4-league-title-row {
  padding: 24px 32px 16px;
}

.liga4-kicker,
.liga4-eyebrow,
.liga4-section-heading,
.liga4-section-title,
.liga4-season,
.liga4-actionbar a,
.liga4-subnav a {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.liga4-kicker,
.liga4-eyebrow {
  color: var(--l4-red);
  font-size: 13px;
  letter-spacing: .02em;
}

.liga4-league-head h1 {
  margin: 2px 0 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.liga4-season {
  margin-top: 8px;
  color: var(--l4-muted);
  font-size: 14px;
}

.liga4-subnav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  border-top: 1px solid var(--l4-line);
}

.liga4-subnav a {
  color: #fff;
  text-decoration: none;
  padding: 13px 16px;
  font-size: 14px;
  white-space: nowrap;
  border-right: 1px solid var(--l4-line);
  position: relative;
}

.liga4-subnav a:hover,
.liga4-subnav a.is-active {
  background: #262626;
}

.liga4-subnav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--l4-red);
}

.liga4-panel {
  background: var(--l4-bg);
  border: 1px solid var(--l4-line);
  border-top: 0;
}

.liga4-matchday-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(370px, .95fr);
  gap: 32px;
  padding: 28px 32px 22px;
}

.liga4-hero-image {
  display: block;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
  margin-bottom: 14px;
}

.liga4-hero-image img,
.liga4-lead-image img,
.liga4-side-thumb img,
.liga4-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.liga4-hero h2,
.liga4-lead-story h2 {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.liga4-hero h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  margin: 5px 0 8px;
}

.liga4-hero h2 a,
.liga4-lead-story a,
.liga4-side-story a,
.liga4-news-card a {
  color: #fff;
  text-decoration: none;
}

.liga4-hero p,
.liga4-lead-story p {
  color: #ececec;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.liga4-scoreboard {
  min-width: 0;
}

.liga4-section-heading,
.liga4-section-title {
  color: #fff;
  font-size: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--l4-line);
}

.liga4-fixture {
  min-height: 49px;
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--l4-line);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.liga4-fixture:hover {
  background: rgba(255,255,255,.035);
}

.liga4-team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

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

.liga4-team-away {
  justify-content: flex-start;
}

.liga4-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liga4-team-logo,
.liga4-clubbar-logo {
  object-fit: contain;
  flex: 0 0 auto;
}

.liga4-score {
  justify-self: center;
  background: #050505;
  color: var(--l4-yellow);
  padding: 4px 6px;
  min-width: 42px;
  text-align: center;
  font-size: 16px;
}

.liga4-actionbar {
  display: flex;
  gap: 8px;
  padding: 14px 32px;
  border-top: 1px solid var(--l4-line);
}

.liga4-actionbar a {
  color: #fff;
  background: #333;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 13px;
}

.liga4-actionbar a:hover {
  background: var(--l4-blue);
}

.liga4-clubbar {
  margin-top: 22px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  align-items: stretch;
  scrollbar-width: thin;
}

.liga4-club-filter {
  flex: 0 0 62px;
  height: 62px;
  border: 0;
  border-right: 1px solid var(--l4-line);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  padding: 8px;
}

.liga4-club-filter:first-child {
  flex-basis: 78px;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
}

.liga4-club-filter:hover,
.liga4-club-filter.is-active {
  background: #292929;
}

.liga4-club-filter.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  background: var(--l4-red);
}

.liga4-clubbar-logo {
  max-width: 38px;
  max-height: 38px;
}

.liga4-club-initial {
  font: 800 12px/1 "Roboto Condensed", Arial, sans-serif;
}

.liga4-news-section {
  margin-top: 22px;
  background: var(--l4-bg);
  border: 1px solid var(--l4-line);
  padding: 0 32px 30px;
}

.liga4-news-section > .liga4-section-title {
  margin: 0 -32px 18px;
  padding: 14px 32px;
}

.liga4-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .95fr);
  gap: 32px;
}

.liga4-lead-image {
  aspect-ratio: 16/9;
  background: #111;
  margin-bottom: 12px;
}

.liga4-lead-story h2 {
  margin: 5px 0 8px;
  font-size: clamp(28px, 3vw, 43px);
}

.liga4-side-stories {
  display: grid;
  align-content: start;
}

.liga4-side-story {
  padding: 0 0 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--l4-line);
}

.liga4-side-story a {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
}

.liga4-side-thumb {
  aspect-ratio: 1/1;
  background: #111;
}

.liga4-side-story h3,
.liga4-news-card h3 {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  margin: 5px 0 0;
}

.liga4-side-story h3 {
  font-size: 20px;
}

.liga4-card-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  margin-top: 26px;
  padding-bottom: 6px;
}

.liga4-news-card {
  border: 1px solid var(--l4-line);
  background: #242424;
  padding: 10px;
}

.liga4-card-image {
  aspect-ratio: 16/10;
  background: #111;
  margin-bottom: 10px;
}

.liga4-card-meta {
  color: var(--l4-muted);
  font-size: 12px;
  font-family: "Roboto Condensed", Arial, sans-serif;
}

.liga4-news-card h3 {
  font-size: 18px;
}

.liga4-empty {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px dashed #555;
  padding: 24px;
  color: var(--l4-muted);
}

.liga4-empty strong {
  color: #fff;
}

.liga4-empty-small {
  min-height: 100px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .liga4-shell {
    width: min(100%, calc(100% - 20px));
  }

  .liga4-matchday-grid,
  .liga4-news-layout {
    grid-template-columns: 1fr;
  }

  .liga4-matchday-grid,
  .liga4-news-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .liga4-news-section > .liga4-section-title {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .liga4-scoreboard {
    margin-top: 4px;
  }
}

@media (max-width: 560px) {
  .liga4-shell {
    width: 100%;
  }

  .liga4-league-title-row {
    padding: 19px 16px 13px;
  }

  .liga4-matchday-grid {
    padding: 16px;
    gap: 24px;
  }

  .liga4-actionbar {
    padding: 10px 16px;
    overflow-x: auto;
  }

  .liga4-fixture {
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    font-size: 13px;
  }

  .liga4-team-logo {
    width: 21px;
    height: 21px;
  }

  .liga4-clubbar {
    margin-top: 12px;
  }

  .liga4-news-section {
    margin-top: 12px;
    padding: 0 16px 20px;
  }

  .liga4-news-section > .liga4-section-title {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .liga4-side-story a {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .liga4-side-story h3 {
    font-size: 17px;
  }
}
