/* TJ Sokol Moravská Nová Ves · basketbal
   Paleta podle dresů: červená a žlutá, tmavá palubovka, oranžový míč. */

:root {
  --bg: #f5f3ef;
  --ink: #14161c;
  --surface: #ffffff;
  --line: #e5e1da;
  --line-soft: #edeae4;
  --muted: #67636b;
  --accent: #e2231a;
  --accent-dark: #b81710;
  --accent-soft: #fde3e1;
  --gold: #ffd200;
  --gold-dark: #d4ad00;
  --gold-soft: #fff6c4;
  --ball: #f28c28;
  --navy: #15121b;
  --navy-2: #221c2a;
  --win: #1f7a45;
  --loss: #b3261e;
  --dark: #15121b;
  --dark-2: #221c2a;
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-d: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
.d, .h1, .h2, .h3, .page-title, .hero-title, .team-cat, .team-name, .post-title, .event-title, .next-match-title, .date-day, .calendar-title, .placement, .stat-value strong, .hero-stats strong, .training-strip-title, .brand-name, .tile h3, .score, .score-big, .vs { font-family: var(--font-d); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 900px) { .container { padding-inline: 40px; } }
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-win { color: var(--win); }
.text-loss { color: var(--loss); }
.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.inline { display: inline; }
.with-icon { display: inline-flex; align-items: center; gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Typografie */
.h1 { font-size: clamp(38px, 6vw, 64px); line-height: 0.98; font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; }
.h2 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; }
.h2.small { font-size: 30px; }
.h3 { font-size: 24px; font-weight: 700; line-height: 1.1; }
.h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: var(--font); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); }
.eyebrow.gold { color: var(--gold); }
.lead { font-size: 19px; color: var(--muted); }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; font-family: var(--font); line-height: 1; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost.danger { border-color: var(--line); color: var(--loss); }
.btn-ghost.danger:hover { background: var(--loss); border-color: var(--loss); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-light:hover { border-color: #fff; color: #fff; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14px; }
.btn-xs { height: 32px; padding: 0 10px; font-size: 13px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn.danger:hover { border-color: var(--loss); color: var(--loss); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }

/* Štítky */
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; background: #ebe7e0; color: #5c564f; }
.chip-n { background: #ebe7e0; color: #5c564f; }
.chip-t { background: var(--dark); color: #fff; }
.chip-a { background: var(--accent-soft); color: #8a3a08; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.badge-home { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: #8a3a08; }
.badge-away { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #e3ecf7; color: #1f4c86; }

/* Karty */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.card-head + .table { border-top: 0; }
.empty { padding: 32px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2:not(.compact):not(.tiles) { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* Hlavička */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header::before { content: ''; display: block; height: 5px; background: linear-gradient(90deg, var(--accent) 0 50%, var(--gold) 50% 100%); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.brand-name.light { color: #fff; }
.brand-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.brand-sub.gold { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a { color: var(--ink); font-weight: 500; font-size: 15px; }
.site-nav > a:hover, .site-nav > a.on { color: var(--accent-dark); }
.site-nav-actions { display: flex; gap: 10px; margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 16px; }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 10px 4px; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .site-nav-actions { margin: 12px 0 0; flex-direction: column; }
  .site-nav-actions .btn { width: 100%; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero-court { position: absolute; left: -40px; bottom: -10px; width: 720px; max-width: 110%; opacity: 0.08; pointer-events: none; }
.hero-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 380px; background: radial-gradient(ellipse 60% 90% at 74% 100%, rgba(216, 30, 43, 0.55) 0%, rgba(245, 196, 0, 0.14) 45%, transparent 72%); pointer-events: none; }
.hero-band { position: absolute; right: -12%; bottom: 60px; width: 64%; height: 150px; transform: rotate(-12deg); background: linear-gradient(180deg, var(--accent) 0 58%, var(--gold) 58% 76%, var(--accent) 76% 100%); opacity: 0.9; pointer-events: none; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.hero-band::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 18px); }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; padding-block: 72px 80px; position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 1; }
.hero-title { font-size: clamp(48px, 7vw, 88px); line-height: 0.92; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-text { font-size: 19px; color: #c9d2de; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 36px; font-weight: 800; line-height: 1; color: var(--gold); }
.hero-stats span { font-size: 13px; color: #94a3b8; margin-top: 4px; }
.hero-visual { position: relative; min-height: 560px; }
.hero-scene { position: absolute; left: -150px; top: -70px; width: calc(100% + 190px); height: calc(100% + 110px); pointer-events: none; overflow: visible; }
.hero-caption { position: absolute; left: 0; top: 24px; display: flex; flex-direction: column; gap: 2px; z-index: 1; }
.hero-caption .d { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.9; }
.hero-caption span:last-child { font-size: 13px; color: #c9d2de; }
.next-match { position: absolute; left: 0; bottom: 0; width: min(380px, 100%); background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 14px; z-index: 1; }
.next-match-row { display: flex; gap: 16px; align-items: flex-start; }
.next-match-row > div { display: flex; flex-direction: column; gap: 6px; }
.next-match-title { font-size: 24px; font-weight: 700; line-height: 1.05; color: var(--ink); }
.next-match-title:hover { color: var(--accent-dark); }
.date-block { display: flex; flex-direction: column; align-items: center; background: #ebe7e0; color: var(--ink); border-radius: 12px; padding: 8px 14px; min-width: 56px; }
.date-block-accent { background: var(--accent); color: var(--gold); }
.date-day { font-size: 34px; font-weight: 800; line-height: 1; }
.date-month { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
/* Let míče: vodorovně rovnoměrně, svisle po oblouku, u koše zmenšení (hloubka), pak propad sítí. Cyklus 4,4 s. */
@keyframes fly-x { 0% { transform: translateX(0); } 68% { transform: translateX(404px); } 100% { transform: translateX(404px); } }
@keyframes fly-y { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(0.2, 0.6, 0.5, 1); } 36% { transform: translateY(-372px); animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.4); } 68% { transform: translateY(-228px); animation-timing-function: ease-in; } 82% { transform: translateY(-96px); } 100% { transform: translateY(-96px); } }
@keyframes fly-scale { 0% { transform: scale(1); opacity: 0; } 5% { opacity: 1; } 68% { transform: scale(0.72); opacity: 1; } 80% { transform: scale(0.68); opacity: 1; } 88% { transform: scale(0.66); opacity: 0; } 100% { transform: scale(1); opacity: 0; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(900deg); } }
@keyframes net-swish { 0%, 69% { transform: scale(1, 1); } 75% { transform: scale(1.1, 1.2); } 82% { transform: scale(0.95, 0.96); } 89% { transform: scale(1.03, 1.04); } 95%, 100% { transform: scale(1, 1); } }
@keyframes swish-ring { 0%, 69% { transform: scale(0.6); opacity: 0; } 73% { transform: scale(1); opacity: 0.9; } 86% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }
.fly-x { animation: fly-x 4.4s linear infinite; }
.fly-y { animation: fly-y 4.4s infinite; }
.fly-scale { transform-box: fill-box; transform-origin: 50% 50%; animation: fly-scale 4.4s linear infinite; }
.spin { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 4.4s linear infinite; }
.net { animation: net-swish 4.4s ease-out infinite; }
.swish { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; animation: swish-ring 4.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .fly-x, .fly-y, .fly-scale, .spin, .net, .swish { animation: none; }
  .fly-x { transform: translateX(300px); }
  .fly-y { transform: translateY(-330px); }
  .fly-scale { transform: scale(0.8); opacity: 1; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 40px 28px; }
  .hero-visual { min-height: 0; display: flex; flex-direction: column; }
  .hero-scene { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; height: 300px; margin: -10px 0 -30px; }
  .hero-band { display: none; }
  .hero-caption { position: relative; top: auto; }
  .next-match { position: relative; margin-top: 0; width: 100%; }
}

/* Výsledková tabule */
.score-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.score-line .team { font-weight: 600; font-size: 15px; }
.score-line .team.left { text-align: right; }
.score-line .team.ours { color: var(--ink); }
.score { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; white-space: nowrap; }
.score.win { color: var(--win); }
.score.loss { color: var(--loss); }
.score.draw { color: var(--muted); }
.score-big { font-size: clamp(44px, 8vw, 84px); font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
.vs { font-size: 22px; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--navy); color: #fff; text-align: center; border-top: 6px solid var(--gold); }
.scoreboard .team-big { font-family: var(--font-d); font-size: clamp(20px, 3vw, 30px); font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.scoreboard .muted { color: #94a3b8; }
.scoreboard .score-big.win { color: #5ed28a; }
.scoreboard .score-big.loss { color: #ff8a80; }
.panel-dark .score-line .team { color: #e2e8f0; }
.panel-dark .score-line .team.ours { color: #fff; }
.panel-dark .score.win { color: #5ed28a; }
.panel-dark .score.loss { color: #ff8a80; }
.panel-dark .score.draw { color: #cbd5e1; }
.result-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.result-row:last-child { border-bottom: 0; }
.result-row .muted { font-size: 13px; }
.result-row .result-sub { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #94a3b8; margin-top: 4px; }

/* Pruh s tréninky */
.training-strip { background: var(--accent); color: #fff; border-top: 6px solid var(--gold); }
.training-strip-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; padding-block: 12px; flex-wrap: wrap; }
.training-strip-title { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.training-item { font-size: 15px; }
.training-place { margin-left: auto; font-size: 14px; opacity: 0.9; }
@media (max-width: 900px) { .training-strip-inner { flex-direction: column; align-items: flex-start; gap: 8px; } .training-place { margin-left: 0; } }

/* Sekce */
.section { padding-block: 64px 24px; display: flex; flex-direction: column; gap: 32px; }
.section:last-child { padding-bottom: 96px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head > div { display: flex; flex-direction: column; gap: 10px; }
.team-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--accent); color: var(--ink); }
.team-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.team-cat { font-size: 52px; font-weight: 800; line-height: 0.9; letter-spacing: -0.01em; }
.team-name { font-size: 28px; font-weight: 700; line-height: 1; }
.team-years { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.team-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.team-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 32px; }
.team-detail .team-name { margin: 8px 0 12px; }
.team-detail .team-meta { border-top: 0; padding-top: 0; }
@media (max-width: 700px) { .team-detail { grid-template-columns: 1fr; } }
.post-card { overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.post-card:hover .post-title { color: var(--accent-dark); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.post-title { font-size: 26px; font-weight: 700; line-height: 1.1; }
.event-list { display: flex; flex-direction: column; overflow: hidden; }
.event-row { display: grid; grid-template-columns: 110px 1fr 180px 200px 160px; align-items: center; gap: 20px; padding: 20px 28px; border-bottom: 1px solid var(--line-soft); }
.event-row:last-child { border-bottom: 0; }
.event-date { display: flex; align-items: baseline; gap: 6px; }
.event-date .date-day { font-size: 36px; }
.date-meta { font-family: var(--font-d); font-size: 18px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.event-main { display: flex; flex-direction: column; gap: 4px; }
.event-title { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.event-title:hover { color: var(--accent-dark); }
.event-status { display: flex; flex-direction: column; gap: 6px; }
.event-status-text { font-size: 13px; font-weight: 600; }
.event-action { justify-self: end; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--line-soft); width: 100%; overflow: hidden; }
.bar span { display: block; height: 6px; border-radius: 3px; background: var(--accent); }
@media (max-width: 900px) {
  .event-row { grid-template-columns: 70px 1fr; gap: 10px 14px; padding: 16px 18px; }
  .event-teams, .event-status, .event-action { grid-column: 2; justify-self: start; }
}
.tiles { gap: 16px; }
.tile { padding: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.tile svg { color: var(--accent); background: var(--gold-soft); border-radius: 10px; padding: 6px; box-sizing: content-box; }
.tile h3 { font-size: 22px; font-weight: 700; }
.tile:hover h3 { color: var(--accent-dark); }
.panel-dark { background: var(--navy); color: #fff; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 24px; position: relative; overflow: hidden; border-top: 6px solid var(--gold); }
.panel-dark .h2 { color: #fff; }
.panel-dark .muted { color: #94a3b8; }
.panel-dark .link-more { color: var(--gold); }
.results { display: flex; flex-direction: column; }
.placement { font-size: 30px; font-weight: 800; text-align: right; }
.results-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.results-head { display: flex; gap: 16px; align-items: center; }
.results-head > div { display: flex; flex-direction: column; gap: 4px; }

/* Nábor */
.cta-band { background: linear-gradient(100deg, var(--accent) 0 70%, var(--accent-dark) 70% 100%); color: #fff; border-left: 10px solid var(--gold); border-radius: 20px; padding: 36px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.cta-band .h2 { color: #fff; }
.cta-band p { color: #fff3ea; font-size: 17px; }
.cta-band .btn-light { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cta-band .btn-light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-d); font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.step h3 { font-size: 18px; font-weight: 700; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Partneři */
.sponsors { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.sponsor { display: inline-flex; align-items: center; justify-content: center; min-height: 72px; min-width: 160px; padding: 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; }
.sponsor img { max-height: 44px; max-width: 160px; object-fit: contain; }
.sponsor.generalni { min-height: 96px; min-width: 220px; border-width: 2px; border-color: var(--accent); }
.sponsor.generalni img { max-height: 64px; max-width: 220px; }
.sponsor-level { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Článek */
.article { max-width: 780px; gap: 20px; }
.prose { font-size: 17px; line-height: 1.65; }
.prose h2 { font-family: var(--font-d); font-size: 30px; font-weight: 700; text-transform: uppercase; margin: 32px 0 8px; scroll-margin-top: 90px; }
.prose h3 { font-family: var(--font-d); font-size: 24px; font-weight: 700; margin: 24px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose img { border-radius: 12px; }
.prose a { text-decoration: underline; }
.notice { background: var(--accent-soft); color: #6b2e06; padding: 14px 18px; border-radius: 12px; font-size: 15px; }
.form-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }

/* Kalendář */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #d6d1c8; font-size: 14px; font-weight: 500; color: var(--ink); background: #fff; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter.small { height: 32px; font-size: 13px; padding: 0 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .calendar-layout { grid-template-columns: 1fr; } }
.calendar { overflow: hidden; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.calendar-nav { display: flex; align-items: center; gap: 14px; }
.calendar-title { font-size: 30px; font-weight: 800; text-transform: uppercase; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #faf8f4; border-bottom: 1px solid var(--line-soft); }
.calendar-weekdays span { padding: 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.calendar-weekdays .weekend { color: var(--accent-dark); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-cell { min-height: 112px; padding: 8px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; background: #fff; }
.cal-cell.out { background: #faf8f4; }
.cal-cell.out .cal-num { color: #b8b0a5; }
.cal-num { font-size: 14px; font-weight: 600; }
.cal-num.weekend { color: var(--accent-dark); }
.cal-num.today { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; }
.cal-item { display: flex; flex-direction: column; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.25; color: inherit; }
.cal-item small { font-size: 11px; opacity: 0.85; font-weight: 500; }
.cal-zapas { background: var(--accent); color: #fff; }
.cal-turnaj { background: var(--navy); color: #fff; }
.cal-soustredeni { background: #1f5fbf; color: #fff; }
.cal-akce { background: #ebe7e0; color: #5c564f; }
.cal-trenink { background: #fff; color: var(--muted); border: 1px dashed #d6d1c8; }
.cal-item.past { background: #f0ede7; color: #8a837a; border-color: transparent; }
a.cal-item:hover { filter: brightness(0.94); }
@media (max-width: 700px) {
  .cal-cell { min-height: 64px; padding: 4px; }
  .cal-item { font-size: 10px; padding: 2px 4px; }
  .cal-item small { display: none; }
}
.calendar-side { display: flex; flex-direction: column; gap: 14px; }
.side-event { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.side-event.highlight { border: 2px solid var(--accent); }

/* Detail události */
.event-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.event-detail-main { display: flex; flex-direction: column; gap: 20px; }
.event-facts { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; font-size: 16px; font-weight: 500; }
@media (max-width: 900px) { .event-detail { grid-template-columns: 1fr; } }

/* Tabulky */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: #faf8f4; border-bottom: 1px solid var(--line-soft); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.dim td { opacity: 0.55; }
.table-wrap { overflow-x: auto; }
.table a { color: var(--ink); }
.table a:hover { color: var(--accent-dark); }
.table .num { font-family: var(--font-d); font-size: 18px; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b8b0a5; flex-shrink: 0; }
.status.ok { color: #1f7a45; } .status.ok::before { background: #2f9e5b; }
.status.warn { color: #8a5a00; } .status.warn::before { background: #f2b705; }
.status.bad { color: #9e1b12; } .status.bad::before { background: var(--loss); }
.member-name { display: inline-flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #ebe7e0; color: #5c564f; flex-shrink: 0; }
.avatar.accent { background: var(--gold); color: var(--navy); }
.jersey { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; background: var(--accent); color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); font-family: var(--font-d); font-size: 18px; font-weight: 800; }
.att { display: inline-flex; align-items: center; gap: 10px; min-width: 120px; }
.att .bar span { background: var(--ink); }
.att-dots { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 20px; }
.att-dot { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: #ebe7e0; color: #5c564f; }
.att-dot.yes { background: #dcefe3; color: #1f7a45; }
.att-dot.no { background: #fbdad7; color: #9e1b12; }

/* Formuláře */
.form { padding: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field-label em { color: var(--accent); font-style: normal; margin-left: 2px; }
.field-help { font-size: 12px; color: var(--muted); }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='date'], input[type='tel'], input[type='url'], input[type='search'], input[type='color'], input:not([type]), select, textarea { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid #d6d1c8; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-family: var(--font); font-size: 15px; }
input[type='color'] { padding: 4px; width: 64px; }
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 22, 28, 0.08); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.compact { gap: 14px; }
.grid-3.compact { gap: 14px; }
@media (max-width: 700px) { .grid-3.compact { grid-template-columns: 1fr; } }
.fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.fieldset legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; align-items: center; }
.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; background: #ebe7e0; color: #5c564f; margin-bottom: 16px; }
.flash-ok { background: #dcefe3; color: #1f7a45; }
.flash-err { background: #fbdad7; color: #9e1b12; }
.attendance-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 20px; }
.attendance-item { border-bottom: 1px solid var(--line-soft); }
.check-all { font-weight: 600; }

/* Patička */
.site-footer { background: var(--navy); color: #cfc8d6; border-top: 6px solid var(--gold); padding: 64px 0 40px; position: relative; overflow: hidden; }
.footer-ball { position: absolute; right: 40px; bottom: -120px; width: 320px; height: 320px; opacity: 0.06; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; position: relative; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer-col a { color: #c0c9d6; }
.footer-col a:hover { color: #fff; }
.footer-brand p { line-height: 1.6; margin-top: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 48px; padding-top: 24px; font-size: 13px; color: #7f8b9b; position: relative; flex-wrap: wrap; }
.footer-bottom a { color: #7f8b9b; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Přihlášení */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-card { width: 100%; max-width: 420px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }

/* Administrace */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 240px; flex-shrink: 0; background: var(--navy); color: #c0c9d6; display: flex; flex-direction: column; gap: 24px; padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { padding: 0 6px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 10px; color: #c0c9d6; font-size: 15px; font-weight: 500; }
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.admin-nav a.on { background: var(--accent); color: #fff; font-weight: 600; box-shadow: inset 4px 0 0 var(--gold); }
.admin-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.admin-user-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; color: #94a3b8; flex-grow: 1; min-width: 0; }
.admin-user-text strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user .icon-btn { background: transparent; border-color: rgba(255, 255, 255, 0.2); color: #c0c9d6; }
.admin-user .icon-btn:hover { border-color: #fff; color: #fff; }
.admin-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 32px; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 10px; width: 420px; max-width: 100%; height: 42px; padding: 0 14px; border-radius: var(--radius-sm); background: #fff; border: 1.5px solid #d6d1c8; color: var(--muted); }
.search input { border: 0; height: 100%; padding: 0; font-size: 14px; background: transparent; }
.search input:focus { box-shadow: none; }
.admin-content { padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 40px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.stat.highlight { border: 2px solid var(--accent); }
.stat-value { display: flex; align-items: baseline; gap: 8px; }
.stat-value strong { font-size: 34px; font-weight: 800; line-height: 1; }
.admin-grid { gap: 20px; }
.admin-grid.align-start { align-items: start; }
.admin-grid.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.tabs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 22px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 2px; font-size: 15px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tab .n { font-size: 12px; font-weight: 600; background: #ebe7e0; color: #5c564f; border-radius: 999px; padding: 2px 8px; }
.tabs-row .chips { padding-bottom: 8px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-grid.wide-left { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-side { display: none; position: static; height: auto; width: 100%; }
  .admin-side.open { display: flex; }
  .admin-topbar { padding: 0 16px; }
  .admin-content { padding: 16px 16px 40px; }
  .page-title { font-size: 32px; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* Galerie, dokumenty, platba */
.post-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--line-soft); }
.gallery-item a { display: block; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item.cover { outline: 3px solid var(--accent); }
.gallery-item figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px; background: #fff; }
.article .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.doc-list { display: flex; flex-direction: column; }
.doc-row { display: grid; grid-template-columns: 24px 1fr auto 20px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.doc-row:last-child { border-bottom: 0; }
.doc-row:hover { color: var(--accent-dark); }
.doc-row svg:first-child { color: var(--accent); }
.doc-name { font-weight: 600; }
.pay { display: flex; gap: 18px; padding: 16px 20px; align-items: flex-start; flex-wrap: wrap; }
.qr { width: 160px; height: 160px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.qr svg { width: 100%; height: 100%; display: block; }
.pay-text { margin: 0 0 6px; font-family: var(--font); font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.card-pad { padding: 16px 20px; }
input[type='file'] { width: 100%; padding: 10px; border: 1.5px dashed #d6d1c8; border-radius: var(--radius-sm); background: #fff; font-family: var(--font); font-size: 14px; }
.report { display: flex; flex-direction: column; gap: 28px; }
.report-section { display: flex; flex-direction: column; gap: 12px; }
.report .table th, .report .table td { padding: 8px 12px; }
.logo-thumb { height: 36px; max-width: 120px; object-fit: contain; }

/* Tisk (soupiska, přehledy) */
.print-body { background: #fff; color: #000; padding: 24px; }
.print-sheet { max-width: 960px; margin: 0 auto; font-size: 13px; }
.print-head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 2px solid #000; padding-bottom: 12px; margin-bottom: 20px; }
.print-head h1 { font-family: var(--font-d); font-size: 28px; text-transform: uppercase; margin: 0 0 4px; }
.print-head p { margin: 0; line-height: 1.5; }
.print-block { margin-bottom: 22px; page-break-inside: avoid; }
.print-block h2 { font-family: var(--font-d); font-size: 20px; margin: 0 0 8px; }
.print-table { width: 100%; border-collapse: collapse; }
.print-table th, .print-table td { border: 1px solid #000; padding: 6px 8px; text-align: left; }
.print-table th { background: #f0f0f0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.print-sign { display: flex; justify-content: space-between; margin-top: 28px; }
.print-body .table th, .print-body .table td { border: 1px solid #000; }
.print-body .table th { background: #f0f0f0; color: #000; }
.print-body .chip { border: 1px solid #999; background: #fff !important; color: #000 !important; }
@media print {
  .print-body { padding: 0; }
  .print-sheet { max-width: none; }
  @page { margin: 15mm; }
}
