/* =========================================================
   TJ Sokol Kobylnice – design system
   Klubová zelená, rozvržení inspirované weby velkých klubů
   (tmavá hlavička, match centre, velké dlaždice zpráv)
   ========================================================= */

:root {
  /* Barvy */
  --green-900: #052e16;
  --green-800: #14532d;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;

  --ink-900: #0b1120;
  --ink-800: #111827;
  --ink-700: #1f2937;
  --ink-600: #374151;
  --ink-400: #9ca3af;
  --ink-300: #cbd5e1;
  --ink-200: #e5e7eb;
  --ink-100: #f3f4f6;
  --ink-50:  #f8fafc;

  --white: #ffffff;
  --gold: #facc15;
  --red: #dc2626;

  --bg: #f3f5f4;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e3e7e5;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(2, 19, 8, .06), 0 1px 3px rgba(2, 19, 8, .08);
  --shadow: 0 12px 28px -12px rgba(5, 46, 22, .3);
  --shadow-lg: 0 30px 60px -25px rgba(5, 46, 22, .45);

  --container: 1240px;
  --header-h: 72px;

  --grad-green: linear-gradient(135deg, var(--green-600), var(--green-800));
  --grad-hero: linear-gradient(160deg, #031f0f 0%, #052e16 45%, #0c3d22 100%);

  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.02; font-weight: 800; letter-spacing: .005em;
  text-transform: uppercase; color: var(--ink-900);
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }

/* Tlačítka ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.3rem; border-radius: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .04em;
  border: 2px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--green-600); color: var(--white); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: var(--white); color: var(--green-900); }
.btn-outline { color: var(--green-800); border-color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.link-more {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--green-700); font-size: 1rem; white-space: nowrap;
}
.link-more:hover { color: var(--green-900); }

/* =========================================================
   Hlavička
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--green-900);
  color: var(--white);
  border-bottom: 3px solid var(--green-600);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand .crest {
  width: 50px; height: 50px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 50%; background: var(--white); padding: 4px;
  box-shadow: 0 0 0 3px var(--green-600);
}
.brand .crest img { width: 100%; height: 100%; }
.brand-text strong {
  display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800;
  text-transform: uppercase; line-height: 1; letter-spacing: .01em; color: var(--white);
}
.brand-text span {
  display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-400); font-weight: 700; margin-top: .2rem;
}

.main-nav { display: flex; align-items: stretch; height: 100%; gap: .1rem; }
.main-nav > a, .has-drop > a {
  display: flex; align-items: center; height: 100%;
  padding: 0 .85rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  text-transform: uppercase; letter-spacing: .04em;
  color: rgba(255,255,255,.88);
  border-bottom: 3px solid transparent; margin-bottom: -3px;
  transition: color .2s, border-color .2s, background .2s;
}
.main-nav > a:hover, .has-drop > a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.main-nav a.active { color: var(--white); border-bottom-color: var(--green-400); }

.has-drop { position: relative; display: flex; }
.has-drop > a::after { content: "▾"; font-size: .7em; opacity: .7; margin-left: .3rem; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--surface); color: var(--text);
  border-top: 3px solid var(--green-600);
  box-shadow: var(--shadow-lg); padding: .4rem 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .2s var(--ease); max-height: 70vh; overflow-y: auto;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: .55rem 1.1rem; font-size: .92rem; font-weight: 600; color: var(--ink-700); }
.dropdown a:hover { background: var(--ink-100); color: var(--green-700); }
.dropdown a.drop-all { color: var(--green-700); font-weight: 800; border-top: 1px solid var(--border); margin-top: .3rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 6px;
  background: rgba(255,255,255,.1); flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Match centre (úvod)
   ========================================================= */
.match-hero {
  position: relative; color: var(--white);
  background: var(--green-900);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.match-hero .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  opacity: .28; filter: grayscale(.2);
}
.match-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,31,15,.96) 0%, rgba(3,31,15,.75) 55%, rgba(3,31,15,.55) 100%);
}
.match-hero .container { position: relative; z-index: 1; }
.match-hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.5rem; align-items: stretch; }

.tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--green-400);
}
.tag.light { color: var(--white); background: var(--green-600); padding: .15rem .6rem; border-radius: 3px; }
.badge-demo {
  display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  background: var(--gold); color: var(--ink-900); padding: .2rem .55rem; border-radius: 3px; vertical-align: middle;
}

.result-card { padding: .5rem 0; }
.result-card h2 { color: var(--white); font-size: clamp(1.1rem, 2vw, 1.35rem); margin: .4rem 0 1.5rem; font-weight: 700; letter-spacing: .06em; opacity: .85; }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
.scoreline .team { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
.scoreline .team strong { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); text-transform: uppercase; line-height: 1; }
.scoreline .score {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 10vw, 6.5rem); line-height: .9;
  display: flex; align-items: center; gap: .3em;
}
.scoreline .score .sep { opacity: .5; font-size: .6em; }
.scoreline .ht { display: block; text-align: center; font-size: .85rem; color: var(--ink-300); margin-top: .4rem; font-family: "Inter", sans-serif; font-weight: 600; }
.crest-badge {
  width: clamp(56px, 8vw, 84px); height: clamp(56px, 8vw, 84px); border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  background: var(--ink-700); color: var(--white); border: 3px solid rgba(255,255,255,.25);
}
.crest-badge.home { background: var(--white); border-color: var(--green-500); padding: 6px; }
.crest-badge img { width: 100%; height: 100%; }
.crest-badge.sm { width: 36px; height: 36px; font-size: .95rem; border-width: 2px; padding: 3px; }

.scorers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; margin-top: 1.3rem; font-size: .92rem; color: var(--ink-200); }
.scorers ul { list-style: none; padding: 0; }
.scorers .home-sc { text-align: right; }
.scorers .ball { width: 1px; }
.scorers li::before { content: "⚽ "; font-size: .8em; }
.result-actions { margin-top: 1.8rem; display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

.next-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-top: 4px solid var(--green-500);
  border-radius: var(--radius); padding: 1.5rem; backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
}
.next-card h3 { color: var(--white); font-size: 1.1rem; letter-spacing: .08em; margin-bottom: 1.2rem; }
.next-teams { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.next-teams .t { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; flex: 1; }
.next-teams .t strong { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; line-height: 1.05; }
.next-teams .vs { font-family: var(--font-display); font-size: 1.4rem; opacity: .6; }
.next-when { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); text-align: center; }
.next-when b { display: block; font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; line-height: 1; }
.next-when span { color: var(--ink-300); font-size: .9rem; }
.next-card .btn { margin-top: auto; }
.next-card .countdown { font-family: var(--font-display); color: var(--green-400); font-size: 1.1rem; text-transform: uppercase; margin-top: .4rem; letter-spacing: .05em; }

/* Pruh zápasů */
.fixture-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.fixture-strip .container { display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.fx {
  flex: 0 0 auto; min-width: 190px; padding: .9rem 1.1rem; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .35rem; transition: background .2s;
}
.fx:hover { background: var(--ink-50); }
.fx .d { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fx .row { display: flex; justify-content: space-between; gap: .8rem; font-weight: 600; font-size: .9rem; }
.fx .row b { font-family: var(--font-display); font-size: 1.1rem; }
.fx .row.us { color: var(--green-800); font-weight: 800; }
.fx.played .d::after { content: " · konec"; }
.fx.next { background: #ecfdf3; }
.fx.next .d { color: var(--green-700); }

/* =========================================================
   Sekce
   ========================================================= */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.alt { background: var(--surface); }
.section.dark { background: var(--green-900); color: var(--white); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-bar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  border-bottom: 3px solid var(--ink-900); padding-bottom: .6rem; margin-bottom: 1.6rem;
}
.section.dark .section-bar { border-color: var(--green-500); }
.section-bar h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.kicker {
  display: inline-block; color: var(--green-700); font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
}

/* Dlaždice zpráv */
.news-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(210px, 1fr)); gap: 1rem; }
.news-mosaic .tile:first-child { grid-row: span 2; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--green-800); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 210px; isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,31,15,0) 25%, rgba(3,31,15,.92) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile .in { padding: 1.2rem 1.3rem 1.3rem; }
.tile .cat { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-400); font-size: .9rem; }
.tile h3 { color: var(--white); font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: .3rem 0 .4rem; }
.tile:first-child h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.tile time { font-size: .8rem; color: var(--ink-300); }
.tile p { color: var(--ink-200); font-size: .95rem; max-width: 60ch; margin-bottom: .4rem; }

/* Karty zpráv (seznam) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.news-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card .img { aspect-ratio: 16/9; overflow: hidden; background: var(--green-800); }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.news-card .cat { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--green-700); letter-spacing: .06em; font-size: .9rem; }
.news-card h3 { font-size: 1.35rem; }
.news-card time { font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: .4rem; }

/* Tabulka + střelci */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { background: var(--ink-900); color: var(--white); padding: .8rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.panel-head h3 { color: var(--white); font-size: 1.3rem; }
.panel-head a { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; color: var(--green-400); font-size: .95rem; white-space: nowrap; }
.panel-note { font-size: .8rem; color: var(--muted); padding: .7rem 1.1rem; border-top: 1px solid var(--border); }

.league { width: 100%; border-collapse: collapse; font-size: .92rem; }
.league th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .6rem .5rem; text-align: center; border-bottom: 1px solid var(--border); }
.league td { padding: .6rem .5rem; text-align: center; border-bottom: 1px solid var(--border); }
.league th.l, .league td.l { text-align: left; }
.league td.pos { width: 2.6rem; font-weight: 700; color: var(--muted); }
.league td.pts { font-weight: 800; }
.league tr.us td { background: #ecfdf3; font-weight: 800; color: var(--green-900); }
.league tr.us td.pos { box-shadow: inset 4px 0 0 var(--green-600); color: var(--green-800); }

.scorer-list { list-style: none; padding: 0; }
.scorer-list li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .8rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--border); }
.scorer-list li:last-child { border-bottom: 0; }
.scorer-list .n { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--muted); }
.scorer-list li:first-child .n { color: var(--green-600); }
.scorer-list .name { font-weight: 700; }
.scorer-list .goals { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--green-800); }
.scorer-list .goals small { font-family: "Inter", sans-serif; font-size: .7rem; color: var(--muted); font-weight: 600; margin-left: .2rem; }
.empty { padding: 1.5rem 1.1rem; color: var(--muted); font-size: .92rem; }

/* Hráči */
.squad-group + .squad-group { margin-top: 2.5rem; }
.squad-group h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.player {
  position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(170deg, var(--green-700) 0%, var(--green-900) 75%);
  color: var(--white); aspect-ratio: 3/4; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease);
}
.player:hover { transform: translateY(-4px); }
.player .num {
  position: absolute; top: .4rem; left: .8rem; z-index: -1;
  font-family: var(--font-display); font-weight: 800; font-size: 5.5rem; line-height: 1; color: rgba(255,255,255,.14);
}
.player .silhouette { position: absolute; inset: 12% 10% 0; z-index: -1; opacity: .9; }
.player img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.player::after { content: ""; position: absolute; inset: 45% 0 0; z-index: -1; background: linear-gradient(180deg, transparent, rgba(3,31,15,.95)); }
.player .info { padding: 1rem; }
.player .info small { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--green-400); line-height: 1; }
.player .info strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.45rem; line-height: 1; margin-top: .2rem; }
.player .info span { font-size: .78rem; color: var(--ink-300); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.staff { background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem; border-left: 4px solid var(--green-600); box-shadow: var(--shadow-sm); }
.staff strong { display: block; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; }
.staff span { font-size: .85rem; color: var(--muted); }

/* Seznam zápasů */
.match-list { display: flex; flex-direction: column; gap: .6rem; }
.match-row {
  display: grid; grid-template-columns: 8.5rem 1fr auto 1fr 7rem; align-items: center; gap: 1rem;
  background: var(--surface); border-radius: var(--radius-sm); padding: .9rem 1.1rem; box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent; transition: box-shadow .2s;
}
a.match-row:hover { box-shadow: var(--shadow); }
.match-row.w { border-left-color: var(--green-600); }
.match-row.d { border-left-color: var(--ink-400); }
.match-row.l { border-left-color: var(--red); }
.match-row .when { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.match-row .when b { display: block; color: var(--ink-900); font-size: .95rem; }
.match-row .home { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; font-weight: 700; text-align: right; }
.match-row .away { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.match-row .us { color: var(--green-800); font-weight: 800; }
.match-row .res {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; min-width: 4.5rem; text-align: center;
  background: var(--ink-900); color: var(--white); border-radius: 4px; padding: .1rem .6rem;
}
.match-row .res.time { background: var(--ink-100); color: var(--ink-700); font-size: 1.15rem; }
.match-row .res.na { background: var(--ink-100); color: var(--ink-400); }
.match-row .meta { text-align: right; font-size: .8rem; color: var(--muted); }
.match-row .meta .wdl { display: inline-block; width: 1.6rem; height: 1.6rem; line-height: 1.6rem; text-align: center; border-radius: 3px; color: var(--white); font-weight: 800; font-size: .8rem; }
.wdl.w { background: var(--green-600); } .wdl.d { background: var(--ink-400); } .wdl.l { background: var(--red); }
.tabs { display: flex; gap: .4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.tabs a { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; padding: .5rem 1rem; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); }
.tabs a.on, .tabs a:hover { color: var(--ink-900); border-bottom-color: var(--green-600); }

/* Detail zápasu */
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.lineups ol, .lineups ul { padding-left: 1.3rem; }
.lineups li { padding: .3rem 0; border-bottom: 1px solid var(--border); }
.timeline { list-style: none; padding: 0; }
.timeline li { display: grid; grid-template-columns: 3rem 1.6rem 1fr; gap: .6rem; align-items: center; padding: .55rem 1.1rem; border-bottom: 1px solid var(--border); }
.timeline li.away { direction: rtl; text-align: right; }
.timeline li.away > * { direction: ltr; }
.timeline .min { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--green-700); }
.card-ico { display: inline-block; width: .8rem; height: 1.05rem; border-radius: 2px; }
.card-ico.zluta { background: var(--gold); } .card-ico.cervena { background: var(--red); }

/* Mini hero podstránek */
.page-hero { background: var(--grad-hero); color: var(--white); padding: clamp(2rem, 5vw, 3.2rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 340px; height: 340px; border-radius: 50%; border: 40px solid rgba(74,222,128,.08); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 4rem); margin-top: .3rem; max-width: 22ch; }
.page-hero p { color: var(--ink-300); margin-top: .7rem; max-width: 60ch; }
.crumbs { margin-bottom: 1.2rem; }
.crumbs a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--green-700); letter-spacing: .04em; }

/* Layout obsah + sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.layout > * { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 1.2rem); }
.widget { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.widget h4 { background: var(--ink-900); color: var(--white); font-size: 1.15rem; padding: .7rem 1rem; letter-spacing: .04em; }
.widget .w-body { padding: 1rem; }
.widget.cta { background: var(--green-700); color: var(--white); }
.widget.cta h4 { background: var(--green-900); }
.widget.cta p { color: #dcfce7; font-size: .92rem; margin-bottom: .9rem; }
.widget.cta .btn-primary { background: var(--white); color: var(--green-900); }
.search-box { display: flex; gap: .4rem; }
.search-box input { flex: 1; min-width: 0; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 4px; font: inherit; font-size: .92rem; background: var(--ink-50); }
.search-box input:focus { outline: 2px solid var(--green-500); outline-offset: -1px; }
.search-box button { border: 0; background: var(--green-600); color: #fff; border-radius: 4px; padding: 0 .9rem; font-weight: 800; }
.widget-list { list-style: none; padding: 0; }
.widget-list a { display: block; padding: .6rem 1rem; border-bottom: 1px solid var(--border); font-weight: 600; font-size: .92rem; }
.widget-list li:last-child a { border-bottom: 0; }
.widget-list a:hover { background: var(--ink-50); color: var(--green-700); }
.mini-fx { padding: .2rem 0; }
.mini-fx .fx-line { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 1rem; border-bottom: 1px solid var(--border); font-size: .88rem; }
.mini-fx .fx-line:last-child { border-bottom: 0; }
.mini-fx .fx-line b { font-family: var(--font-display); font-size: 1.05rem; }

/* Seznam článků */
.article-list { list-style: none; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.article-list li + li { border-top: 1px solid var(--border); }
.article-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 1.1rem; transition: background .2s; }
.article-list a:hover { background: var(--ink-50); }
.article-list a:hover .t { color: var(--green-700); }
.article-list .t { font-weight: 600; }
.article-list time { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.article-list .x { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: .25rem; }
.article-list mark { background: #dcfce7; color: inherit; }
.year-jump { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.pill {
  display: inline-block; padding: .35rem .8rem; border-radius: 3px; background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em;
}
.pill:hover { border-color: var(--green-600); color: var(--green-700); }
.pill.green { background: var(--green-600); color: var(--white); border-color: var(--green-600); }
.year-head { font-size: 1.8rem; margin: 2.2rem 0 .8rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.year-head:first-of-type { margin-top: 0; }
[id^="rok-"] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Sezóny */
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.season-card { background: var(--surface); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--green-600); transition: transform .25s var(--ease); }
.season-card:hover { transform: translateY(-3px); }
.season-card h3 { font-size: 2rem; }
.season-card p { font-size: .88rem; color: var(--muted); margin-top: .4rem; }

/* Text článku */
.prose { background: var(--surface); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-sm); line-height: 1.75; }
.prose > * + * { margin-top: .9rem; }
.prose h1, .prose h2, .prose h3 { font-size: 1.5rem; margin-top: 1.6rem; }
.prose a { color: var(--green-700); text-decoration: underline; }
.prose img { height: auto; border-radius: var(--radius-sm); margin-inline: auto; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
.prose table { border-collapse: collapse; font-size: .9rem; min-width: 100%; }
.prose table table { min-width: 0; width: 100%; }
.prose td, .prose th { padding: .45rem .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose td[colspan] { border-bottom: none; }
.prose tr:nth-child(even) > td { background: var(--ink-50); }
.prose table p { margin: 0; }

/* Galerie */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.album-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: flex-end; color: var(--white); isolation: isolate; box-shadow: var(--shadow-sm); }
.album-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.album-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(3,31,15,.9)); }
.album-card:hover img { transform: scale(1.06); }
.album-card .body { padding: 1rem 1.1rem; }
.album-card .year { font-family: var(--font-display); font-weight: 700; color: var(--green-400); letter-spacing: .06em; }
.album-card h3 { color: var(--white); font-size: 1.45rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.photo { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; background: var(--ink-200); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.photo:hover img { transform: scale(1.05); }
.photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .7rem; font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.photo .zoom-ico { display: none; }
.album-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* Hledání */
.search-big input { font-size: 1.1rem; padding: .9rem 1.1rem; }
.search-big button { padding: 0 1.4rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2, 10, 5, .94); display: none; align-items: center; justify-content: center; padding: 4rem 1rem; }
.lightbox.open { display: flex; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: min(1200px, 92vw); max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox .lb-cap { color: var(--ink-200); text-align: center; margin-top: 1rem; font-size: .95rem; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 1.5rem; } .lb-next { right: 1.5rem; }
.lb-close { top: 1.5rem; right: 1.5rem; transform: none; font-size: 1.3rem; }
.lb-counter { position: absolute; top: 1.7rem; left: 1.7rem; color: var(--ink-300); font-weight: 600; font-size: .9rem; }

/* Patička */
.site-footer { background: var(--ink-900); color: var(--ink-400); padding: 3.5rem 0 1.5rem; border-top: 4px solid var(--green-600); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.site-footer p { font-size: .9rem; margin-top: 1rem; max-width: 38ch; }
.site-footer h5 { color: #fff; font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.site-footer a { font-size: .9rem; transition: color .2s; }
.site-footer a:hover { color: var(--green-400); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }

.demo-note { background: #fef9c3; border: 1px solid #fde047; color: #713f12; border-radius: var(--radius-sm); padding: .7rem 1rem; font-size: .88rem; margin-bottom: 1.2rem; }

/* =========================================================
   Responzivita
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav > a, .has-drop > a { padding: 0 .55rem; font-size: 1rem; }
}
@media (max-width: 980px) {
  .layout, .two-col, .match-hero-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .news-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .news-mosaic .tile:first-child { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-900); border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow-lg); padding: .5rem 0 1rem;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-130%); transition: transform .3s var(--ease);
  }
  .main-nav.open { transform: none; }
  .main-nav > a, .has-drop > a { height: auto; padding: .8rem 1.3rem; border-bottom: 0; margin: 0; font-size: 1.3rem; }
  .main-nav a.active { border-left: 4px solid var(--green-400); }
  .has-drop { flex-direction: column; }
  .has-drop .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 .4rem 1.3rem; max-height: none; }
  .has-drop .dropdown a { color: var(--ink-300); }
  .has-drop .dropdown a.drop-all { border: 0; color: var(--green-400); }
  .match-row { grid-template-columns: 1fr auto 1fr; row-gap: .4rem; }
  .match-row .when { grid-column: 1 / -1; display: flex; gap: .6rem; align-items: baseline; }
  .match-row .when b { display: inline; }
  .match-row .meta { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand .crest { width: 42px; height: 42px; }
  .brand-text strong { font-size: 1.2rem; }
  .news-mosaic { grid-template-columns: 1fr; }
  .news-mosaic .tile:first-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .player-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .player .info strong { font-size: 1.15rem; }
  .lineups { grid-template-columns: 1fr; }
  .article-list a { flex-direction: column; gap: .2rem; }
  .match-row .home, .match-row .away { font-size: .88rem; }
  .match-row .crest-badge.sm { display: none; }
  .scorers { font-size: .82rem; }
}
.player-grid.row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
@media (max-width: 600px) { .player-grid.row { grid-auto-columns: 44%; } }
.player .info .first { display: block; font-size: .85rem; color: var(--ink-200); text-transform: none; letter-spacing: 0; font-weight: 600; }
.player .info > span:not(.first) { display: block; margin-top: .15rem; }
.player .pstats { display: flex; gap: .8rem; margin-top: .55rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .75rem; color: var(--ink-300); }
.player .pstats b { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); margin-right: .15rem; }
.cap-badge { position: absolute; top: .7rem; right: .7rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--gold); color: var(--ink-900); font-weight: 800; display: grid; place-items: center; font-size: .8rem; }
.match-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .9rem 1.1rem; margin-bottom: 1.5rem; font-size: .9rem; color: var(--muted); }
.match-facts b { color: var(--ink-900); }
.player .pstats span { display: flex; flex-direction: column; line-height: 1.1; text-transform: uppercase; letter-spacing: .06em; font-size: .65rem; }
.player .pstats b { margin: 0 0 .1rem; }
.panel .w-body { padding: 1.1rem 1.2rem; }
.lineups ol { padding-left: 1.8rem; }

/* Loga klubů (JPG s bílým pozadím z fotbal.cz) */
.crest-badge.logo { background: var(--white); padding: 5px; border-color: rgba(255,255,255,.35); }
.crest-badge.logo img { object-fit: contain; border-radius: 50%; }
.crest-badge.logo.home { border-color: var(--green-500); }
.crest-badge.sm.logo { padding: 2px; border: 1px solid var(--border); }
.brand .crest img { object-fit: contain; border-radius: 50%; }
.mini-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; background: #fff; display: inline-block; vertical-align: middle; margin-right: .5rem; }
.fx .row > span { display: flex; align-items: center; }
.fx .mini-logo { width: 18px; height: 18px; margin-right: .4rem; }

/* Reportáže k zápasům */
.report { margin-bottom: 1.8rem; }
.report-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .2rem 0 .4rem; }
.report-by { font-size: .88rem; margin-bottom: 1rem; }
.rep-ico { display: inline-block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; color: var(--green-700); background: #ecfdf3; border-radius: 3px; padding: .1rem .45rem; margin-right: .3rem; vertical-align: middle; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.training { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.t-day { background: var(--green-900); color: var(--white); border-radius: var(--radius-sm); padding: 1rem 1.1rem; border-left: 4px solid var(--green-500); }
.t-day span { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--green-400); font-weight: 700; }
.t-day b { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.staff .contact-line { display: block; margin-top: .4rem; font-weight: 600; color: var(--green-700); font-size: .92rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Klubové logo (vlajka) bez kruhového podkladu */
.brand .crest { background: transparent; box-shadow: none; border-radius: 0; padding: 0; width: 44px; height: 54px; }
.brand .crest img { border-radius: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.crest-badge.logo.home { background: transparent; border: 0; padding: 0; border-radius: 0; }
.crest-badge.logo.home img { border-radius: 0; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.crest-badge.sm.logo.home { border: 0; }
.mini-logo[src$="logo.png"] { background: transparent; border-radius: 0; }
.crest-badge.logo.home { height: clamp(72px, 10.4vw, 108px); }
.crest-badge.logo.home img { width: 100%; height: 100%; object-fit: contain; }
.crest-badge.sm.logo.home { height: 40px; }
