/* =====================================================================
   skin_4 „Stadion“ – načítá se ZA skin_1/style.css a custom.css
   Barvy jen z --base-* (a color-mix z nich), tmavý režim přes body.mode-dark.
   Pozn.: html má font-size 62.5 % → 1rem = 10px.
   ===================================================================== */

/* ---------- odvozené tokeny ---------- */
:root {
  --s-bg: #ffffff;
  --s-surface: #ffffff;
  --s-soft: #f4f4f4;
  --s-text: var(--base-dark);
  --s-muted: var(--base-dark2);
  --s-line: var(--base-light);
  /* text v barvě klubu na světlém pozadí: nejdřív záložní hodnota, pak ztmavená klubová barva */
  --s-accent-text: var(--base-primary);
  --s-accent-text: var(--base-primary-text, color-mix(in oklab, var(--base-primary) 80%, #000));
  --s-tint: rgba(0, 0, 0, 0.05);
  --s-tint: color-mix(in srgb, var(--base-primary) 10%, transparent);
  /* tmavá hlavička s nádechem barvy klubu (počítá se v CSS) */
  --s-head: var(--base-dark);
  --s-head: color-mix(in oklab, var(--base-primary) 16%, var(--base-dark));
  --s-head-2: var(--base-dark);
  --s-head-2: color-mix(in oklab, var(--base-primary) 8%, var(--base-dark));
  --s-num: "Barlow Condensed", "GeneralSans-Variable", sans-serif;
  --s-head-h: 8.4rem;
}
body.mode-dark {
  --s-bg: var(--base-dark);
  --s-surface: var(--base-dark3);
  --s-soft: var(--base-dark4);
  --s-text: #ffffff;
  --s-muted: rgba(255, 255, 255, 0.62);
  --s-line: var(--base-dark4);
  --s-accent-text: #ffffff;
  --s-accent-text: color-mix(in oklab, var(--base-primary) 60%, #fff);
  --s-tint: rgba(255, 255, 255, 0.08);
  --s-tint: color-mix(in srgb, var(--base-primary) 24%, transparent);
}

body.skin-4 {
  background: var(--s-bg);
}
.skin-4 .s4-num {
  font-family: var(--s-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ---------- lišta klubů + horní pruh (jen desktop) ---------- */
.s4-util {
  background: var(--s-head-2);
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.35rem;
}
.s4-util a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.2s;
}
.s4-util a:hover,
.s4-util a.active {
  color: #ffffff;
}
.s4-util-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4rem;
  padding: 0 4rem;
}
.s4-util-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.s4-util-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  min-width: 0;
}
.s4-util-partners {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  overflow: hidden;
}
.s4-util-partners-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 0.2rem;
  white-space: nowrap;
}
/* partneři na bílých štítcích (barevná loga musí být čitelná na tmavém pruhu) */
.s4-plogo {
  height: 2.6rem;
  padding: 0.3rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  flex-shrink: 0;
}
.s4-plogo a {
  display: flex;
  align-items: center;
  height: 100%;
}
.s4-plogo img {
  max-height: 2rem;
  max-width: 9rem;
  width: auto;
  display: block;
}
.s4-util-tools {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.s4-util-lang {
  display: flex;
  gap: 1.2rem;
}
.s4-util-lang a.active {
  font-weight: 600;
}
.s4-util-social {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.s4-util-social a {
  display: flex;
  width: 1.8rem;
  height: 1.8rem;
}
.s4-util-social .icon {
  width: 1.8rem;
  height: 1.8rem;
  fill: #ffffff;
}
.s4-util-social a:hover {
  opacity: 0.7;
}

/* ---------- hlavní hlavička (sticky, tmavá) ---------- */
.s4-head {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--s-head);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.s4-head-inner {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  min-height: var(--s-head-h);
  padding: 0 4rem;
}
.s4-brand,
.s4-brand-link {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-width: 0;
  color: #ffffff;
  text-decoration: none;
}
.s4-brand {
  flex-shrink: 0;
  max-width: 30rem;
}
.s4-brand-link:hover {
  color: #ffffff;
}
.s4-brand-logo {
  width: 5.6rem;
  height: 6.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s4-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.s4-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.s4-brand-pre,
.s4-brand-sub {
  font-size: 1.15rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s4-brand-name {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-bottom: 0.05em;
}

/* menu priority+ (JS přesouvá nevejdoucí se položky do „Další“; bez JS se zalomí) */
.s4-nav-wrap {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  display: flex;
}
.s4-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
html.no-js .s4-nav {
  flex-wrap: wrap;
}
.s4-nav-item {
  position: relative;
  display: flex;
  flex-shrink: 0;
}
.s4-nav-item[hidden] {
  display: none;
}
.s4-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.3rem;
  min-height: var(--s-head-h);
  font-weight: 600;
  font-size: 1.5rem;
  white-space: nowrap;
  position: relative;
  color: #ffffff;
  text-decoration: none;
}
.s4-nav-link:hover,
.s4-nav-link:focus {
  color: #ffffff;
}
.s4-nav-link .s4-chev {
  opacity: 0.7;
  transition: transform 0.2s;
}
.s4-nav-link::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 0;
  height: 3px;
  background: var(--base-primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.s4-nav-item.active > .s4-nav-link::after,
.s4-nav-item:hover > .s4-nav-link::after,
.s4-nav-item.open > .s4-nav-link::after {
  transform: scaleX(1);
}
.s4-nav-item.open > .s4-nav-link .s4-chev {
  transform: rotate(180deg);
}

/* běžný dropdown */
.s4-dd {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 24rem;
  max-width: 34rem;
  background: var(--s-surface);
  color: var(--s-text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 1rem 0;
  margin: 0;
  list-style: none;
  border-top: 3px solid var(--base-primary);
  display: none;
  z-index: 5;
}
.s4-nav-more .s4-dd {
  left: auto;
  right: 0;
  max-height: calc(100vh - 12rem);
  overflow-y: auto;
}
.s4-dd a {
  display: block;
  padding: 0.8rem 2rem;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--s-text);
  text-decoration: none;
}
.s4-dd a:hover,
.s4-dd a:focus {
  background: var(--s-soft);
  color: var(--s-text);
}
.s4-dd .s4-dd-sub {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
}
.s4-dd .s4-dd-sub a {
  padding-left: 3.2rem;
  font-size: 1.35rem;
  color: var(--s-muted);
}
.s4-dd .s4-dd-sub .s4-dd-sub a {
  padding-left: 4.4rem;
}
.s4-nav-item:hover > .s4-dd,
.s4-nav-item:focus-within > .s4-dd,
.s4-nav-item.open > .s4-dd {
  display: block;
}

/* mega menu: položka, jejíž děti mají vlastní děti (Týmy → tým → stránky týmu) */
.s4-nav-item.is-mega {
  position: static;
}
.s4-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--s-surface);
  color: var(--s-text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border-top: 3px solid var(--base-primary);
  display: none;
  max-height: calc(100vh - 12rem);
  overflow-y: auto;
  z-index: 5;
}
.s4-nav-item.is-mega:hover > .s4-mega,
.s4-nav-item.is-mega:focus-within > .s4-mega,
.s4-nav-item.is-mega.open > .s4-mega {
  display: block;
}
.s4-nav-item.is-closed > .s4-dd,
.s4-nav-item.is-closed > .s4-mega {
  display: none !important;
}
.s4-mega-inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2.4rem 2.4rem;
  padding: 2.8rem 4rem 3.2rem;
  align-items: start;
}
.s4-mega-title {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--base-primary);
  color: var(--s-text);
  text-decoration: none;
}
.s4-mega-title:hover {
  color: var(--s-accent-text);
}
.s4-mega ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.s4-mega ul a {
  display: block;
  padding: 0.4rem 0;
  font-size: 1.4rem;
  color: var(--s-muted);
  text-decoration: none;
}
.s4-mega ul a:hover,
.s4-mega ul a:focus {
  color: var(--s-accent-text);
}

/* nástroje vpravo: košík + hamburger */
.s4-head-tools {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
  flex-shrink: 0;
}
.s4-head-cart a {
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #ffffff;
}
.s4-head-cart .icon {
  fill: #ffffff;
}
.s4-head-cart a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.s4-head .header-menu-cart {
  height: auto;
  padding: 0;
  margin: 0;
}
.s4-head .header-menu-cart:hover {
  background: none;
}
.s4-head .header-menu-cart-num {
  position: absolute;
  right: 0.3rem;
  top: 0.4rem;
  background: var(--base-primary);
  color: var(--base-btn-text);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 0.5rem;
  height: 1.4rem;
  line-height: 1.4rem;
}
.s4-head .header-menu-toggle {
  position: relative;
  top: auto;
  right: auto;
  display: none;
  width: 4.4rem;
  height: 4.4rem;
  flex-shrink: 0;
}
.s4-head .header-menu-toggle span {
  left: 1rem;
}
.s4-head .header-menu-toggle span:nth-child(1) { top: 14px; }
.s4-head .header-menu-toggle span:nth-child(2) { top: 21px; }
.s4-head .header-menu-toggle span:nth-child(3) { top: 28px; }
.s4-head .header-menu-toggle.open span:nth-child(1),
.s4-head .header-menu-toggle.open span:nth-child(3) { top: 21px; }

/* ---------- úvod: fotka přes celou šířku + kolejnice novinek ---------- */
.s4-hero {
  position: relative;
  height: clamp(520px, 44vw, 640px);
  background: var(--base-dark);
  color: #ffffff;
  overflow: hidden;
}
.s4-hero .carousel-inner,
.s4-hero .carousel-item {
  height: 100%;
}
.s4-hero-media,
.s4-hero-media picture,
.s4-hero-media > picture > img,
.s4-hero-brand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.s4-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* novinka bez fotky: značková plocha s vodoznakem loga */
.s4-hero-brand {
  background: linear-gradient(120deg, var(--s-head) 30%, var(--base-primary));
  overflow: hidden;
  z-index: 1; /* nad tmavým přechodem fotky – plocha je sama dost tmavá vlevo */
}
.s4-hero-brand-logo {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 44rem !important;
  height: 48rem !important;
  max-height: 90%;
  object-fit: contain !important;
  opacity: 0.1;
  /* bílá silueta loga – čitelná na tmavé ploše u jakkoliv barevného loga */
  filter: brightness(0) invert(1);
}
/* dvojitý přechod: zleva tmavý pro text, zespodu pro zápasový panel */
.s4-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 45%);
  pointer-events: none;
}
.s4-hero-cap-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  /* šířku a boční odsazení dává bootstrap .container (zarovnání s panelem zápasů a boxy) */
  padding-bottom: 11.2rem;
  display: flex;
  align-items: flex-end;
}
.s4-hero.has-rail .s4-hero-cap-wrap {
  padding-right: calc(var(--bs-gutter-x, 24px) * 0.5 + 38rem + 4.8rem);
}
.s4-hero-cap {
  max-width: 78rem;
}
/* prolínání novinek: odcházející titulek zmizí hned, nový se ukáže až po prolnutí fotky (jinak se dva titulky přetisknou) */
.s4-hero .carousel-item .s4-hero-cap {
  transition: opacity 0.25s ease 0.35s;
}
.s4-hero .carousel-item.active.carousel-item-start .s4-hero-cap,
.s4-hero .carousel-item.active.carousel-item-end .s4-hero-cap,
.s4-hero .carousel-item-next:not(.carousel-item-start) .s4-hero-cap,
.s4-hero .carousel-item-prev:not(.carousel-item-end) .s4-hero-cap {
  opacity: 0;
  transition: opacity 0.12s ease 0s;
}
@media (prefers-reduced-motion: reduce) {
  .s4-hero .carousel-item .s4-hero-cap {
    transition: none;
  }
}
.s4-hero-tagline {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.s4-tag {
  background: var(--base-primary);
  color: var(--base-btn-text);
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.s4-hero-title {
  display: block;
  font-size: 5.4rem;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* těsné řádkování + ořez: bez rezervy by se uřízla spodní část g, y, j, p na posledním řádku */
  padding-bottom: 0.07em;
}
.s4-hero-title:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.s4-hero-acts {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.skin-4 .s4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 4.4rem;
  padding: 0 2rem;
  font-weight: 600;
  font-size: 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
}
.skin-4 .s4-btn.btn-primary {
  background: var(--base-primary);
  color: var(--base-btn-text);
}
.skin-4 .s4-btn.btn-primary:hover {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%), var(--base-primary);
  color: var(--base-btn-text);
}
.skin-4 .s4-btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: transparent;
}
.skin-4 .s4-btn-ghost:hover {
  background: #ffffff;
  color: var(--base-dark);
}

.s4-rail-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding-bottom: 11.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.s4-rail {
  width: 38rem;
  pointer-events: auto;
  background: rgba(10, 10, 10, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.s4-rail-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  padding: 1.4rem 1.6rem 0.6rem;
}
.s4-rail-item {
  display: grid;
  grid-template-columns: 8.8rem minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.2rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s;
}
.s4-rail-item:hover,
.s4-rail-item:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.s4-rail-item.active {
  background: rgba(255, 255, 255, 0.08);
}
.s4-rail-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--base-primary);
}
.s4-rail-img {
  width: 8.8rem;
  height: 6rem;
  display: block;
  overflow: hidden;
  background: var(--s-head);
}
.s4-rail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.s4-rail-brand {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--s-head) 30%, var(--base-primary));
}
.s4-rail-brand img {
  width: 60% !important;
  height: 80% !important;
  object-fit: contain !important;
  opacity: 0.35;
  filter: brightness(0) invert(1);
}
.s4-rail-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.s4-rail-date {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}
.s4-rail-name {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s4-hero-dots {
  display: none;
}

/* ---------- zápasové centrum (přes spodní hranu fotky) ---------- */
.s4-mc {
  position: relative;
  z-index: 5;
  margin-top: -7.2rem;
}
.s4-mc.is-solo {
  margin-top: 3.2rem;
}
.s4-mc-panel {
  background: var(--s-surface);
  color: var(--s-text);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--s-line);
}
.s4-mc-head {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 2.4rem;
  border-bottom: 1px solid var(--s-line);
}
.skin-4 .s4-mc-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--s-text);
  flex-shrink: 0;
}
.s4-mc-tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.s4-mc-tabs::-webkit-scrollbar {
  display: none;
}
.s4-mc-tabs a {
  white-space: nowrap;
  padding: 0.7rem 1.3rem;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid var(--s-line);
  color: var(--s-text);
  text-decoration: none;
  flex-shrink: 0;
}
.s4-mc-tabs a:hover {
  border-color: var(--s-text);
  color: var(--s-text);
}
.s4-mc-tabs a.active {
  background: var(--s-text);
  color: var(--s-bg);
  border-color: var(--s-text);
}
.s4-more {
  white-space: nowrap;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--s-accent-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  text-decoration: none;
  flex-shrink: 0;
}
.s4-more:hover {
  color: var(--s-accent-text);
  text-decoration: underline;
}
.s4-mc-empty {
  padding: 2.4rem;
  color: var(--s-muted);
  font-size: 1.5rem;
}
.s4-mc-body {
  display: flex;
}
.s4-mc-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 2.2rem 2.4rem;
  border-right: 1px solid var(--s-line);
}
.s4-mc-col:last-child {
  border-right: 0;
}
/* jen poslední výsledek (tým nemá naplánovaný zápas): nenatahovat přes celý panel */
.s4-mc-col:only-child {
  flex: 0 1 52rem;
  border-right: 1px solid var(--s-line);
}
.s4-mc-col.s4-mc-next {
  flex-grow: 1.55;
}
.s4-kick {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--s-muted);
  margin-bottom: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}
.s4-kick b {
  color: var(--s-accent-text);
  white-space: nowrap;
}
.s4-kick-contest {
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.s4-mc-owner {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--s-accent-text);
  margin: -0.6rem 0 1rem;
}
.s4-badge {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--s-tint);
  color: var(--s-accent-text);
  white-space: nowrap;
}
.s4-badge.is-loss,
.s4-badge.is-draw {
  background: var(--s-soft);
  color: var(--s-muted);
}
.s4-res {
  display: block;
  color: var(--s-text);
  text-decoration: none;
}
.s4-res:hover {
  color: var(--s-text);
}
.s4-res-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.s4-res-row.is-lose {
  color: var(--s-muted);
}
.s4-res-logo {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s4-res-logo img,
.s4-nx-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.s4-res-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s4-res-score {
  font-size: 3rem;
  min-width: 3.6rem;
  text-align: center;
  line-height: 1;
}
.s4-meta {
  font-size: 1.3rem;
  color: var(--s-muted);
  margin-top: 1.2rem;
  line-height: 1.5;
}
.s4-link {
  color: var(--s-accent-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.s4-link:hover {
  color: var(--s-accent-text);
  text-decoration: underline;
}
.s4-nx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.s4-nx-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.s4-nx-logo {
  width: 6.4rem;
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.s4-nx-name {
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.s4-nx-date {
  font-size: 1.4rem;
  color: var(--s-muted);
  font-weight: 500;
}
.s4-nx-time {
  font-size: 5.8rem;
  line-height: 1;
  margin: 0.2rem 0 0.8rem;
}
.s4-cd {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}
.s4-cd span {
  background: var(--s-soft);
  padding: 0.5rem 0.8rem;
  min-width: 4.8rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--s-muted);
  font-weight: 600;
  line-height: 1.1;
}
.s4-cd b {
  display: block;
  font-size: 2.2rem;
  color: var(--s-text);
}
.s4-cd i {
  font-style: normal;
}
.s4-nx-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin-top: 1.6rem;
  font-size: 1.3rem;
  color: var(--s-muted);
  align-items: center;
  text-align: center;
}
.s4-up {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--s-line);
  align-items: center;
  color: var(--s-text);
  text-decoration: none;
}
.s4-up:last-child {
  border-bottom: 0;
}
.s4-up:hover {
  color: var(--s-accent-text);
}
.s4-up-day {
  text-align: center;
  line-height: 0.95;
}
.s4-up-day .s4-num {
  display: block;
  font-size: 2.6rem;
}
.s4-up-day small {
  display: block;
  font-size: 1.1rem;
  color: var(--s-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.s4-up-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.s4-up-owner {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--s-accent-text);
}
.s4-up-teams {
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
}
.s4-up-text small {
  color: var(--s-muted);
  font-weight: 500;
  font-size: 1.25rem;
}

/* obsah úvodu pod zápasovým centrem */
.s4-main-home {
  padding-top: 4.8rem;
}
.s4-main-sub {
  padding-top: 2.4rem;
}

/* ---------- podstránky: zápasová linka ---------- */
.s4-mline {
  background: var(--s-soft);
  border-bottom: 1px solid var(--s-line);
  font-size: 1.4rem;
  color: var(--s-text);
}
.s4-mline-inner {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  min-height: 4.8rem;
  padding: 0 4rem;
  overflow: hidden;
  white-space: nowrap;
}
.s4-mline a {
  color: var(--s-text);
  text-decoration: none;
}
.s4-mline-match {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-width: 0;
}
.s4-mline-match b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s4-mline a.s4-mline-match:hover b {
  text-decoration: underline;
}
.s4-mline-k {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--s-accent-text);
}
.s4-mline-sep {
  width: 1px;
  height: 2rem;
  background: var(--s-line);
  flex-shrink: 0;
}
body.mode-dark .s4-mline-sep {
  background: rgba(255, 255, 255, 0.2);
}
.s4-mline-tm {
  font-size: 2rem;
}
.s4-mline a.s4-mline-more {
  margin-left: auto;
  color: var(--s-accent-text);
  font-weight: 600;
}

/* ---------- tmavý režim: drobnosti ---------- */
body.mode-dark .s4-mc-panel {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
body.mode-dark .s4-dd,
body.mode-dark .s4-mega {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- přizpůsobení šířkám desktopu ---------- */
@media (max-width: 1439px) {
  .s4-head-inner {
    gap: 2rem;
    padding: 0 2.4rem;
  }
  .s4-util-inner,
  .s4-mline-inner {
    padding: 0 2.4rem;
  }
  .s4-nav-link {
    padding: 0 1.1rem;
    font-size: 1.45rem;
  }
  .s4-nav-link::after {
    left: 1.1rem;
    right: 1.1rem;
  }
  .s4-mega-inner {
    padding: 2.4rem 2.4rem 2.8rem;
  }
}
@media (max-width: 1279px) {
  .s4-brand {
    max-width: 24rem;
  }
  .s4-brand-name {
    font-size: 1.7rem;
  }
  .s4-hero.has-rail .s4-hero-cap-wrap {
    padding-right: calc(var(--bs-gutter-x, 24px) * 0.5 + 34rem + 3.2rem);
  }
  .s4-rail {
    width: 34rem;
  }
  .s4-hero-title {
    font-size: 4.6rem;
  }
  .s4-mc-col {
    padding: 2rem;
  }
  .s4-nx-time {
    font-size: 5rem;
  }
}

/* ---------- mobil a tablet (< 1200 px) ---------- */
@media (max-width: 1199px) {
  .s4-top,
  .s4-nav-wrap {
    display: none;
  }
  .s4-head {
    --s-head-h: 6.4rem;
  }
  .s4-head-inner {
    min-height: 6.4rem;
    padding: 0 0.8rem 0 1.6rem;
    gap: 1.2rem;
  }
  .s4-brand {
    max-width: none;
    flex-shrink: 1;
  }
  .s4-brand-logo {
    width: 4rem;
    height: 4.4rem;
  }
  .s4-brand-pre,
  .s4-brand-sub {
    display: none;
  }
  .s4-brand-name {
    font-size: 1.6rem;
  }
  .s4-head .header-menu-toggle {
    display: block;
  }

  /* úvod: fotka 4:3 s titulkem v přechodu + ukazatel */
  .s4-hero {
    height: auto;
  }
  .s4-hero .carousel-inner,
  .s4-hero .carousel-item {
    height: auto;
  }
  .s4-hero-slide {
    aspect-ratio: 4 / 3;
    max-height: 80vh;
  }
  .s4-hero-media::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.1) 100%);
  }
  .s4-hero-brand-logo {
    width: 60% !important;
    height: 80% !important;
    right: -4%;
  }
  .s4-hero-cap-wrap,
  .s4-hero.has-rail .s4-hero-cap-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding: 0 1.6rem 3.4rem;
  }
  .s4-hero.is-single .s4-hero-cap-wrap {
    padding-bottom: 2rem;
  }
  .s4-hero-tagline {
    margin-bottom: 1rem;
    font-size: 1.3rem;
  }
  .s4-hero-title {
    font-size: 2.5rem;
    line-height: 1.12;
    -webkit-line-clamp: 3;
  }
  .s4-hero-acts,
  .s4-rail-wrap {
    display: none;
  }
  .s4-hero-dots {
    display: flex;
    gap: 0.6rem;
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    bottom: 1.4rem;
    z-index: 4;
  }
  .s4-hero-dots button {
    flex: 1;
    height: 1.6rem;
    padding: 0.65rem 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .s4-hero-dots button::before {
    content: "";
    display: block;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
  }
  .s4-hero-dots button.active::before {
    background: var(--base-primary);
  }

  /* zápasové centrum: příští zápas první, bez swiperu */
  .s4-mc,
  .s4-mc.is-solo {
    margin-top: 0;
  }
  .s4-mc .container {
    padding: 0;
  }
  .s4-mc-panel,
  body.mode-dark .s4-mc-panel {
    box-shadow: none;
    border: 0;
    background: transparent;
  }
  .s4-mc-head {
    flex-wrap: wrap;
    padding: 2rem 1.6rem 1.2rem;
    gap: 1rem;
    border: 0;
  }
  .s4-mc-tabs {
    order: 3;
    flex-basis: 100%;
    margin: 0 -1.6rem;
    padding: 0 1.6rem;
  }
  .s4-mc-empty {
    padding: 0.8rem 1.6rem 2rem;
  }
  .s4-mc-body {
    flex-direction: column;
  }
  .s4-mc-col,
  .s4-mc-col:only-child {
    flex: 1 1 auto;
    border-right: 0;
    border-top: 1px solid var(--s-line);
    padding: 1.8rem 1.6rem;
  }
  .s4-mc-col.s4-mc-next {
    order: -1;
    background: var(--s-surface);
    margin: 0 1.6rem;
    border: 1px solid var(--s-line);
    border-top: 3px solid var(--base-primary);
  }
  .s4-mc-col.s4-mc-next + .s4-mc-col,
  .s4-mc-body > .s4-mc-col.s4-mc-last:not(:first-child) {
    margin-top: 1.2rem;
  }
  .s4-mc-body > .s4-mc-col:first-child:not(.s4-mc-next) {
    border-top: 0;
  }
  .s4-nx-logo {
    width: 5.2rem;
    height: 5.2rem;
  }
  .s4-nx-time {
    font-size: 4.6rem;
  }
  .s4-nx-name {
    font-size: 1.45rem;
  }
  .s4-main-home {
    padding-top: 2.4rem;
  }
  .s4-mline-inner {
    padding: 0 1.6rem;
    gap: 1.2rem;
    font-size: 1.3rem;
  }
  .s4-mline-hide-m {
    display: none !important;
  }
  .s4-mline-tm {
    font-size: 1.7rem;
  }
}
@media (max-width: 991px) {
  .s4-mc-col.s4-mc-next {
    order: -1;
  }
}
@media (max-width: 359px) {
  .s4-cd span {
    min-width: 4rem;
    padding: 0.4rem 0.5rem;
  }
  .s4-nx-time {
    font-size: 4rem;
  }
}
