/**
 * Draci — úpravy nad výchozím Splash styles.css.
 * Načítat jako POSLEDNÍ stylesheet v <head> (po inline <style>).
 */

:root {
  /* Primární zelená z loga (g553.png, dominantní accent #6eb428) */
  --primary: #6eb428;
  --primary-hover: #4a7a1a;
  --primary-rgb: 110, 180, 40;
  /* Splash / starý kód používá --red jako accent */
  --red: var(--primary);
}

a:hover {
  color: var(--primary-hover);
}

/* Patička: v tématu je position:fixed + #main má padding-bottom kvůli tomu */
.stm-footer {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
}

#main {
  padding-bottom: 0;
}

/* Logo v hlavičce (PNG) — desktop ≥100px, menší breakpointy */
.logo-main {
  flex-shrink: 0;
  margin-right: 24px;
}
.logo-main .logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.logo-main .site-logo {
  height: 100px;
  width: auto;
  max-width: min(320px, 42vw);
  object-fit: contain;
}

/*
 * Hlavička: výšku určuje logo (~100px desktop).
 * Menu + search + hamburger jen vertikálně na střed — odkazy se nenaťahují na výšku loga.
 */
body.header_1 .stm-header .stm-header-container {
  height: auto !important;
  min-height: 0;
  padding: 6px 12px;
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
}

body.header_1 .stm-header .stm-main-menu {
  display: flex;
  align-items: center;
  flex: 1;
}

body.header_1 .stm-header .stm-main-menu .stm-main-menu-unit {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  background: transparent !important;
}

/* Celý pruh rgba(21,21,21,.8) jen kolem položek menu, ne od loga doprava */
body.header_1 .stm-header .stm-main-menu .stm-main-menu-unit::after {
  display: none !important;
}

body.header_1 .stm-header .stm-main-menu-unit .header-menu {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 15px; /* Splash měl font-size:0 kvůli inline-block mezerám — u flex nepotřebujeme */
  background: rgba(21, 21, 21, 0.88);
  border-radius: 3px;
  overflow: visible; /* žádný horizontální „autoskrol“ jako u původního menu */
  width: auto;
  max-width: none;
}

body.header_1 .stm-header .stm-main-menu .stm-main-menu-unit .header-menu > li {
  display: flex !important;
  align-items: center;
}

body.header_1 .stm-header .header-menu > li > a {
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 12px;
  box-sizing: border-box;
}

body.header_1 .stm-header .mob-toggle {
  align-self: center;
  flex-shrink: 0;
}

body.header_1 .stm-header .logo-main {
  align-self: center;
}

/* Hamburger jen na úzkém okně (article neměl dřív skrývací pravidlo z index.html) */
body.header_1 .stm-header .mob-toggle {
  display: none;
}

.footer-brand .footer-brand-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 12px;
}
.footer-brand .site-logo--footer {
  height: 72px;
  width: auto;
  max-width: min(260px, 55vw);
  object-fit: contain;
}

/* Horizontální „oddechnutí“ od kraje obrazovky na tabletu / menším desktopu */
@media (max-width: 1024px) {
  body.header_1 #stm-top-bar .container,
  body.header_1 .stm-header .stm-header-container.container {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 991px) {
  .logo-main .site-logo {
    height: 64px;
    max-width: min(240px, 55vw);
  }
  body.header_1 .stm-header .stm-header-container {
    padding: 8px max(18px, env(safe-area-inset-left, 0px)) 10px max(18px, env(safe-area-inset-right, 0px));
    flex-wrap: wrap;
    row-gap: 4px;
    column-gap: 10px;
  }
  body.header_1 .stm-header .header-menu > li > a {
    padding: 6px 10px;
  }
  .footer-brand .site-logo--footer {
    height: 64px;
  }

  body.header_1 .stm-header .logo-main {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Hamburger: primary + bílé čárky (otevřený stav = bílý křížek na primary) */
  body.header_1 .stm-header .mob-toggle {
    order: 2;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(110, 180, 40, 0.35);
    cursor: pointer;
    flex-shrink: 0;
  }

  body.header_1 .stm-header .mob-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: #fff !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  body.header_1 .stm-header.mobile-nav-open .mob-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  body.header_1 .stm-header.mobile-nav-open .mob-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.header_1 .stm-header.mobile-nav-open .mob-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.header_1 .stm-header .stm-main-menu {
    display: none !important;
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    margin-top: 2px;
  }

  body.header_1 .stm-header.mobile-nav-open .stm-main-menu {
    display: block !important;
  }

  body.header_1 .stm-header .stm-main-menu-unit,
  body.header_1 .stm-header .stm-main-menu-unit .header-menu {
    width: 100%;
    max-width: none;
  }

  body.header_1 .stm-header.mobile-nav-open .stm-main-menu .stm-main-menu-unit {
    overflow: visible;
  }

  body.header_1 .stm-header .stm-main-menu-unit .header-menu {
    flex-direction: column;
    align-items: stretch;
    border-radius: 8px;
    /* hidden řezalo rozbalené podmenu; viz téma .sub-menu { z-index: -1 } */
    overflow: visible;
    background: #1e1e1e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  body.header_1 .stm-header .stm-main-menu .stm-main-menu-unit .header-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    direction: ltr;
  }

  body.header_1 .stm-header .header-menu > li > a {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    direction: ltr;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    line-height: 1.35 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 14px !important;
    color: #f2f2f2 !important;
    box-sizing: border-box;
  }

  body.header_1 .stm-header .header-menu > li > a span {
    text-align: left;
  }

  /* Položka s podmenu: řádek na celou šířku, šipka úplně vpravo (flex, nepřekrývá text) */
  body.header_1 .stm-header.mobile-nav-open .stm-main-menu .stm-main-menu-unit .header-menu > li:has(.sub-menu) {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  body.header_1 .stm-header.mobile-nav-open .header-menu > li:has(.sub-menu) > a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    padding-right: 10px !important;
    position: relative;
  }

  body.header_1 .stm-header.mobile-nav-open .header-menu > li:has(.sub-menu) > a > span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  body.header_1 .stm-header.mobile-nav-open .header-menu > li:has(.sub-menu) > a::after {
    content: '';
    flex: 0 0 auto;
    position: static;
    width: 8px;
    height: 8px;
    margin-left: auto;
    margin-right: 2px;
    border-right: 2px solid rgba(255, 255, 255, 0.55);
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    pointer-events: none;
    align-self: center;
  }

  body.header_1 .stm-header.mobile-nav-open .header-menu > li.mobile-sub-open > a::after {
    transform: rotate(225deg);
  }

  /* Zelený overlay na odkazu (Splash a:before) nesmí překrývat podmenu */
  body.header_1 .stm-header.mobile-nav-open .stm-main-menu .stm-main-menu-unit .header-menu > li > a:before {
    display: none !important;
  }

  /* Nad sousedními řádky menu — jinak další <li> překryje rozbalené podmenu */
  body.header_1 .stm-header.mobile-nav-open .stm-main-menu .stm-main-menu-unit .header-menu > li.mobile-sub-open {
    position: relative;
    z-index: 5;
  }

  body.header_1 .stm-header .header-menu > li .sub-menu {
    position: static !important;
    flex: 1 1 100%;
    width: calc(100% - 24px) !important;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: none;
    display: none !important;
    /* pod celou šířkou řádku hlavní položky, odsazení od okrajů tmavého panelu */
    margin: 4px 12px 10px 12px;
    padding: 8px 10px 10px 14px;
    list-style: none;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary);
  }

  body.header_1 .stm-header.mobile-nav-open .stm-main-menu .stm-main-menu-unit .header-menu > li.mobile-sub-open > .sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 6 !important;
  }

  body.header_1 .stm-header.mobile-nav-open .stm-main-menu .stm-main-menu-unit .header-menu .sub-menu li .sub-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
  }

  body.header_1 .stm-header.mobile-nav-open .header-menu .sub-menu li a {
    display: block;
    font-family: 'Roboto', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    padding: 8px 14px 8px 16px !important;
    text-align: left !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  body.header_1 .stm-header.mobile-nav-open .header-menu .sub-menu li:last-child a {
    border-bottom: 0;
  }

  body.header_1 .stm-header.mobile-nav-open .header-menu .sub-menu li a:hover,
  body.header_1 .stm-header.mobile-nav-open .header-menu .sub-menu li a:focus {
    background: rgba(110, 180, 40, 0.12);
    color: #fff !important;
    padding-left: 18px !important;
  }
}

@media (max-width: 787px) {
  /*
   * Splash theme @787px: #stm-top-bar { display:none }, .stm-header-inner { display:none }
   * — počítá s .stm-header-mobile, které v statickém HTML není → zmizí horní část stránky.
   */
  body.header_1 #stm-top-bar {
    display: block !important;
  }

  body.header_1 .stm-header .stm-header-inner {
    display: block !important;
  }

  .logo-main .site-logo {
    height: 56px;
    max-width: min(220px, 52vw);
  }
  body.header_1 .stm-header .stm-header-container {
    padding: 6px max(16px, env(safe-area-inset-left, 0px)) 8px max(16px, env(safe-area-inset-right, 0px));
  }
  body.header_1 .stm-header .header-menu > li > a {
    padding: 6px 8px;
  }
  .footer-brand .site-logo--footer {
    height: 52px;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .logo-main .site-logo {
    height: 48px;
    max-width: min(180px, 58vw);
  }
  body.header_1 .stm-header .stm-header-container {
    padding: 6px max(14px, env(safe-area-inset-left, 0px)) 6px max(14px, env(safe-area-inset-right, 0px));
  }
  .footer-brand .site-logo--footer {
    height: 44px;
  }
}

/* ── About / O Dracích page ──────────────────────────────────────────────── */

.about-page {
  padding: 48px 0 72px;
  background: #f5f5f5;
}

.about-inner {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
}

.about-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #111;
}

.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .72;
  display: block;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
}

.about-hero-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1;
  letter-spacing: .02em;
}

.about-hero-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin: 0;
}

.about-body {
  padding: 36px 40px 48px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: #444;
}

.about-body p {
  margin: 0 0 18px;
}

.about-lead {
  font-size: 18px !important;
  font-style: italic;
  color: #222 !important;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  margin-bottom: 24px !important;
}

.about-image-float {
  float: right;
  margin: 0 0 20px 28px;
  width: 340px;
  max-width: 48%;
}

.about-image-float img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
}

.about-image-caption {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  text-align: center;
}

@media (max-width: 600px) {
  .about-hero { height: 220px; }
  .about-hero-title { font-size: 30px; }
  .about-hero-overlay { padding: 20px 20px; }
  .about-body { padding: 24px 18px 36px; }
  .about-image-float { float: none; width: 100%; max-width: 100%; margin: 0 0 20px; }
}

.history-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 8px;
  clear: both;
}

.history-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
}

@media (max-width: 480px) {
  .history-gallery { grid-template-columns: 1fr; }
  .history-gallery-item img { height: 180px; }
}

/* ── end About page ─────────────────────────────────────────────────────── */

/* ── Mládež category pages ───────────────────────────────────────────────── */

.mladez-page {
  padding: 40px 0 72px;
  background: #f5f5f5;
  min-height: 60vh;
}

.mladez-sec-head {
  margin-bottom: 20px;
}

.mladez-sec-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.15;
}

/* Articles grid */
.mladez-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .mladez-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .mladez-articles-grid { grid-template-columns: 1fr; }
}

.mladez-article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

.mladez-article-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.13);
  transform: translateY(-2px);
  color: inherit;
}

.mladez-article-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e0e0e0;
  flex-shrink: 0;
}

.mladez-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mladez-article-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mladez-article-date {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}

.mladez-article-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.3;
}

.mladez-article-perex {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

/* Horizontal article list (A-tým articles page) */
.article-h-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-h-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}

.article-h-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  border-left-color: var(--red);
  color: inherit;
}

.article-h-thumb {
  width: 240px;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  background: #e0e0e0;
}

.article-h-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.article-h-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-h-date {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}

.article-h-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0 0 10px;
  line-height: 1.25;
}

.article-h-card:hover .article-h-title {
  color: var(--red);
}

.article-h-perex {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #555;
  margin: 0 0 14px;
  line-height: 1.55;
  flex: 1;
}

.article-h-more {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--red);
  align-self: flex-start;
}

.article-h-more i {
  margin-left: 4px;
  transition: transform .2s;
}

.article-h-card:hover .article-h-more i {
  transform: translateX(3px);
}

@media (max-width: 575px) {
  .article-h-card { flex-direction: column; }
  .article-h-thumb { width: 100%; aspect-ratio: 16 / 9; height: auto; }
}

/* Game rows */
.mladez-game-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 8px;
  border-left: 3px solid var(--primary);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
a.mladez-game-row:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  border-left-color: var(--red);
}

.mladez-game-date {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
  min-width: 80px;
}

.mladez-game-teams {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  flex: 1;
  min-width: 0;
}

.mladez-game-score {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.mladez-game-venue {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #aaa;
  flex-basis: 100%;
}

/* Highlighted row in standings */
.stm-standings tr.highlighted td {
  background: #f0f7e8;
  font-weight: 700;
}

/* ── Skeleton loading ────────────────────────────────────────────────────── */

@keyframes sk-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.sk-block {
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 800px 100%;
  animation: sk-shimmer 1.4s infinite linear;
  border-radius: 3px;
}

/* článek skelet */
.sk-article-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.sk-article-thumb {
  width: 100%;
  padding-top: 56%;
}
.sk-article-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sk-line { height: 12px; }
.sk-line--short { width: 40%; }
.sk-line--title { height: 16px; width: 85%; }
.sk-line--full  { width: 100%; }
.sk-line--med   { width: 65%; }

/* zápas řádek skelet */
.sk-game-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 8px;
  border-left: 3px solid #e8e8e8;
}

/* tabulka skelet */
.sk-table { width: 100%; border-collapse: collapse; }
.sk-table td { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; }
.sk-table tr:last-child td { border-bottom: none; }

/* realizační tým skelet */
.sk-person-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sk-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

/* ── end Mládež pages ────────────────────────────────────────────────────── */

/*
 * Splash styles.css (~ř. 21557) přepisuje .fa na "Font Awesome 5 Free" + lokální fa-solid-900,
 * které v html/basketball často chybí → ikony mizí. Stránky používají FA 4 z CDN — vrátit font.
 */
.fa,
.fas,
.far,
.fab {
  font-family: FontAwesome !important;
  font-style: normal !important;
  font-weight: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Tournament cards ────────────────────────────────────────────────────── */

.tournament-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tournament-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  overflow: hidden;
}

.tournament-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #fff !important;
  border: none !important;
  border-left: 3px solid #ddd !important;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
}
.tournament-header::before {
  display: none !important;
}
.tournament-header:hover,
.tournament-header.is-open {
  border-left-color: var(--red) !important;
  background: #fafafa !important;
}
.tournament-header:focus {
  outline: none;
  box-shadow: none !important;
}

.tournament-header-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tournament-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
}

.tournament-meta {
  font-size: 13px;
  color: #777;
}

.tournament-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #999;
  font-size: 13px;
}

.tournament-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: #f5f5f5;
  color: #888;
  border-radius: 3px;
  padding: 2px 8px;
}

.tournament-detail {
  padding: 18px 20px 20px;
  border-top: 1px solid #ebebeb;
  background: #f7f8fa;
}

.tournament-teams-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.tournament-team-chip {
  font-size: 12px;
  font-weight: 600;
  background: #f0f0f0;
  color: #555;
  border-radius: 3px;
  padding: 3px 10px;
}
.tournament-team-chip.is-own {
  background: var(--red);
  color: #fff;
}

/* ── Team detail page ────────────────────────────────────────────────────── */

.team-detail-header {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  padding: 28px 32px;
  margin-bottom: 24px;
  border-left: 4px solid var(--red);
}

.team-detail-logo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-detail-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-detail-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0 0 4px;
}

.team-detail-games-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.team-detail-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-auto-rows: 1fr;
}

.team-detail-games-grid .game-card-link,
.team-detail-games-grid .game-card {
  height: 100%;
}

@media (max-width: 991px) {
  .team-detail-games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .team-detail-games-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .team-detail-games-row { grid-template-columns: 1fr; }
}

.team-detail-short {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #888;
  margin: 0 0 8px;
}

.team-detail-stadium {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #555;
  margin: 0 0 4px;
}

.team-detail-stadium i { color: var(--red); margin-right: 5px; }

.team-detail-cat {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #aaa;
  margin: 0;
}

.team-detail-game-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  background: #f7f8fa;
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
  transition: border-color .2s, background .2s;
}

.team-detail-game-row:hover {
  border-left-color: var(--red);
  background: #f0f1f3;
  color: inherit;
}

.team-detail-game-row--future {
  border-left-color: #5a9c3a;
}

.team-detail-game-date {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

.team-detail-game-teams {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}

.team-detail-score {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  padding: 1px 10px;
  border-radius: 2px;
  font-size: 15px;
  margin: 0 6px;
}

.team-detail-vs {
  display: inline-block;
  font-size: 12px;
  color: #aaa;
  margin: 0 6px;
  font-weight: 400;
}

.team-detail-game-venue {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #aaa;
}

.team-detail-game-venue i { margin-right: 4px; }

/* Link in standings tables */
.standings-team-link {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
  background: none !important;
}

.standings-team-link:hover {
  color: var(--red);
  text-decoration: underline;
  background: none !important;
}

.mladez-table tr.highlight .standings-team-link:hover,
.sp-data-table tr.highlighted .standings-team-link:hover {
  color: #fff;
}

@media (max-width: 575px) {
  .team-detail-header { flex-direction: column; text-align: center; padding: 20px; }
  .team-detail-logo { width: 90px; height: 90px; }
}

/* ── Player detail page ── */
.player-detail { max-width: 900px; margin: 0 auto; }

.player-detail-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  margin-bottom: 4px;
}

.player-detail-photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.player-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.player-detail-info { flex: 1; min-width: 0; }

.player-detail-name-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.player-detail-number {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--red, #c0392b);
  line-height: 1;
}

.player-detail-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 26px;
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.player-detail-name strong { font-weight: 700; }

.player-detail-position {
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 14px;
}

.player-detail-attrs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 24px;
}

.player-detail-attr {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.player-detail-attr-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #aaa;
  font-weight: 600;
}

.player-detail-attr-val {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.player-detail-attr-sub {
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

.player-detail-bio {
  font-size: 14px;
  color: #555;
  margin: 14px 0 0;
  line-height: 1.6;
}

/* Stats panel header */
.player-detail-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Stat boxes */
.player-detail-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.player-stat-box {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #f6f6f6;
  border-radius: 8px;
  padding: 18px 12px;
  border: 1px solid #eee;
  transition: box-shadow .15s;
}

.player-stat-box--highlight {
  background: var(--red, #c0392b);
  border-color: var(--red, #c0392b);
  color: #fff;
}

.player-stat-val {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--dark, #1a1a1a);
}

.player-stat-box--highlight .player-stat-val { color: #fff; }

.player-stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  font-weight: 600;
}

.player-stat-box--highlight .player-stat-lbl { color: rgba(255,255,255,.75); }

/* Roster player link */
.roster-player-link {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}

.roster-player-link:hover { color: var(--red, #c0392b); text-decoration: underline; }

@media (max-width: 575px) {
  .player-detail-header { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
  .player-detail-name-row { justify-content: center; }
  .player-detail-attrs { grid-template-columns: repeat(2, 1fr); }
  .player-detail-stats { gap: 10px; }
}

/* ── Contact page ── */
.contact-page { max-width: 960px; margin: 0 auto; }

.contact-hero {
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--dark, #1a1a1a);
  border-radius: 10px;
  padding: 36px 40px;
  margin-bottom: 28px;
}

.contact-hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.contact-hero-text { flex: 1; min-width: 0; }

.contact-hero-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.1;
}

.contact-hero-legal {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  margin: 0 0 18px;
}

.contact-hero-socials { display: flex; flex-wrap: wrap; gap: 10px; }

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
  color: #fff;
}

.contact-social-btn:hover { opacity: .85; color: #fff; text-decoration: none; }
.contact-social-btn--fb { background: #1877f2; }
.contact-social-btn--ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.contact-social-btn--yt { background: #ff0000; }
.contact-social-btn--tw { background: #1da1f2; }

/* Cards grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
}

.contact-card-icon {
  font-size: 20px;
  color: var(--red, #c0392b);
  width: 24px;
  text-align: center;
}

.contact-card-head h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  color: #1a1a1a;
}

.contact-card-note {
  font-size: 13px;
  color: #999;
  margin: -8px 0 14px;
  font-style: italic;
}

.contact-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.contact-row:last-child { border-bottom: none; }

.contact-row-label {
  flex-shrink: 0;
  width: 90px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #aaa;
  font-weight: 600;
  padding-top: 1px;
}

.contact-row-val {
  font-size: 15px;
  color: #222;
  font-weight: 500;
  word-break: break-word;
}

.contact-row-val--mono {
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: .03em;
}

a.contact-row-val {
  color: var(--red, #c0392b);
  text-decoration: none;
}

a.contact-row-val:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .contact-hero { flex-direction: column; text-align: center; padding: 28px 20px; gap: 20px; }
  .contact-hero-socials { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-hero-name { font-size: 24px; }
}

/* ── Ice plan page ── */
.ice-plan-page { max-width: 960px; margin: 0 auto; }

.ice-plan-list { display: flex; flex-direction: column; gap: 32px; }

.ice-plan-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
}

.ice-plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 2px solid #f0f0f0;
  flex-wrap: wrap;
}

.ice-plan-card-meta { display: flex; flex-direction: column; gap: 6px; }

.ice-plan-card-head h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  color: #1a1a1a;
}

.ice-plan-validity {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #555;
}
.ice-plan-validity i { color: var(--red, #c0392b); }

.ice-plan-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--red, #c0392b);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.ice-plan-download-btn:hover { background: #a93226; color: #fff; }

.ice-plan-pdf-wrap {
  line-height: 0;
}

.ice-plan-pdf {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .ice-plan-pdf { height: 480px; }
  .ice-plan-card-head { flex-direction: column; }
}

/* ── EOS link ── */
.stm-topbar-eos {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 2px 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.stm-topbar-eos:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.footer-eos-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 3px;
  padding: 2px 9px;
  transition: color .15s, border-color .15s;
}

.footer-eos-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════
   Mobilní menu — full-screen overlay
══════════════════════════════════════════════════════ */

.draci-mob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  display: none;
}
@media (max-width: 991px) {
  .draci-mob-overlay { display: block; }
}
.draci-mob-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.draci-mob-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12,12,12,.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.draci-mob-overlay-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(20,20,20,.98) 0%, rgba(28,28,28,.96) 60%, rgba(20,32,12,.96) 100%);
  transform: translateY(-16px);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.7,.2,1) .04s, opacity .32s ease .04s;
  padding: max(18px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px))
           max(18px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
}
.draci-mob-overlay.is-open .draci-mob-overlay-inner {
  transform: translateY(0);
  opacity: 1;
}

.draci-mob-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.draci-mob-overlay-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.draci-mob-overlay-close {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background .2s, transform .2s;
}
.draci-mob-overlay-close:hover { background: rgba(255,255,255,.12); transform: rotate(90deg); }
.draci-mob-overlay-close span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  top: 50%;
  left: 50%;
}
.draci-mob-overlay-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.draci-mob-overlay-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.draci-mob-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -6px;
  padding: 4px 6px 12px;
}
.draci-mob-nav::-webkit-scrollbar { width: 4px; }
.draci-mob-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

.draci-mob-nav ul { list-style: none; margin: 0; padding: 0; }
.draci-mob-nav > ul > li {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.draci-mob-nav > ul > li:last-child { border-bottom: 0; }

.draci-mob-nav-row {
  display: flex;
  align-items: stretch;
}
.draci-mob-nav-link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 16px 6px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: color .2s, transform .2s;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.draci-mob-nav-link:hover,
.draci-mob-nav-link:focus { color: #fff; text-decoration: none; }
.draci-mob-nav > ul > li.is-active > .draci-mob-nav-row .draci-mob-nav-link,
.draci-mob-nav > ul > li.is-active > .draci-mob-nav-row .draci-mob-nav-toggle {
  color: var(--red);
}

.draci-mob-overlay-close::before,
.draci-mob-nav-link::before,
.draci-mob-nav-toggle::before { display: none !important; }

.draci-mob-nav-toggle {
  flex: 0 0 auto;
  width: 44px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.55);
  font-size: 22px;
  cursor: pointer;
  transition: color .2s;
}
.draci-mob-nav-toggle:hover { color: #fff; }

.draci-mob-sub {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(255,255,255,.08);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .2s ease, margin-bottom .3s ease;
}
.draci-mob-sub.is-open {
  max-height: 600px;
  opacity: 1;
  margin-bottom: 12px;
}
.draci-mob-sub li a {
  display: block;
  padding: 9px 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.draci-mob-sub li a:hover,
.draci-mob-sub li a:focus {
  color: #fff;
  padding-left: 10px;
  text-decoration: none;
}
.draci-mob-sub li.is-active a { color: var(--red); }

.draci-mob-overlay-footer {
  flex-shrink: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.draci-mob-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.draci-mob-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  font-size: 18px;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.draci-mob-socials a:hover {
  background: var(--red, #d2272f);
  color: #fff;
  transform: translateY(-2px);
}
.draci-mob-quick-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.draci-mob-quick-links a {
  flex: 1 1 0;
  max-width: 140px;
  padding: 10px 16px;
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.draci-mob-quick-links a:hover {
  background: var(--red, #d2272f);
  border-color: var(--red, #d2272f);
  text-decoration: none;
}

/* Override — starý mobile dropdown nesmí "expandnout" pod hlavičkou, místo něj se zobrazí overlay */
@media (max-width: 991px) {
  body.header_1 .stm-header.mobile-nav-open .stm-main-menu {
    display: none !important;
  }
}
