/* ==========================================================================
   sledujzive.cz — frontend stylesheet
   Sdílený pro home / kategorii / subkategorii / detail eventu.
   ========================================================================== */

/* ---- 1. Design tokens ---- */
:root {
  color-scheme: light;
  --bg:        #0b0e15;
  --surface:   #141822;
  --surface-2: #1a1f2c;
  --line:      #232838;
  --line-2:    #2c3244;
  --text:      #ffffff;
  --text-2:    #b7bdca;
  --text-3:    #7b8192;
  --text-4:    #525a6e;
  --accent:    #00d26a;
  --live:      #ff4d5e;
  --warm:      #ffb020;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---- 2. Reset ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ==========================================================================
   APP SHELL
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
}
@media (min-width: 1000px) {
  .app-shell { padding-right: 400px; }
}
.content-wrap {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-width: 0; max-width: 777px; margin: auto; padding: 0 50px; margin-top:0px;
}

/* ==========================================================================
   ICON RAIL
   ========================================================================== */
.rail {
  grid-column: 1;
  grid-row: 1 / -1;
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-right: none;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 18px 0 0;
  z-index: 5;
}
.rail .brand-mark {
  align-self: center;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.rail .brand-mark svg { width: 40px; height: 40px; }
.rail .divider { align-self: center; width: 28px; height: 1px; background: var(--line-2); margin: 0 0 8px; }

.rail-list {
  flex: 1; width: 100%;
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.rail-list::-webkit-scrollbar { width: 4px; }
.rail-list::-webkit-scrollbar-track { background: transparent; }
.rail-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
.rail-list::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

.rail-foot {
  flex-shrink: 0; width: 100%;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line-2);
  display: flex; justify-content: center; align-items: center;
}

.rail-link {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.rail-link:hover { color: var(--text); background: var(--surface-2); }
.rail-link.active { color: var(--accent); background: rgba(0,210,106,.12); }
.rail-link svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.rail-row {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   FLYOUT
   ========================================================================== */
.flyout {
  position: fixed;
  top: 0; left: 72px;
  width: 240px; height: 100%;
  background: var(--surface);
  border: none;
  border-right: 1px solid var(--line);
  border-right: none;
  padding: 28px 22px 28px;
  z-index: 8;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity .18s ease, transform .18s ease;
}
.flyout.flyout--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.rail-row::after {
  content: '';
  position: absolute;
  top: 0; left: 100%;
  width: 12px;
  height: 100%;
  pointer-events: auto;
}
.flyout .head {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 800;
  color: var(--text);
  padding-bottom: 14px;
  margin-bottom: 12px;
}
.flyout .sub-list { display: grid; gap: 0; }
.flyout .sub-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  font-size: 13px; color: var(--text-2);
  border-bottom: 1px dashed var(--line);
  transition: color .15s, padding-left .15s;
}
.flyout .sub-list a:last-child { border-bottom: 0; }
.flyout .sub-list a:hover { color: var(--text); padding-left: 4px; }
.flyout .sub-list a.active { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   RIGHT PANEL
   ========================================================================== */
.right-panel {
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 36px 25px 56px;
  display: flex; flex-direction: column;
  font-size: 13px;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 1000px) {
  .right-panel {
    position: fixed;
    top: 0; right: 0;
    max-width: 400px;
    height: 100vh;
    overflow-y: auto;
    border-top: none;
    border-left: 1px solid var(--line);
    padding: 40px 25px 56px;
  }
}
.rp-h {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-4);
  font-weight: 700;
  margin: 0 0 14px;
}
.rp-h-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 10px 0 5px;
}
.rp-section + .rp-section { margin-top: 32px; }

/* "Populární soutěže" list */
.leaguescontainer .LC-list {
  display: flex; flex-direction: column; gap: 1px;
  padding: 0 0 30px 0;
}
.leaguescontainer .LC-item {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; align-items: center;
  padding: 9px 0;
  border-radius: 8px;
  transition: background .15s;
}
.leaguescontainer .LC-item .name {
  font-size: 13px; color: var(--text-2); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.leaguescontainer .LC-item .badge {
  font-family: var(--mono);
  font-size: 10px; color: var(--text-4);
  font-variant-numeric: tabular-nums; font-weight: 700;
  padding: 2px 7px;
  background: var(--surface);
  border-radius: 999px;
  min-width: 22px; text-align: center;
}
.leaguescontainer .LC-item.live .badge {
  color: var(--live);
  background: rgba(255, 77, 94, .12);
}

/* "Program" — nadcházející eventy */
.nexteventscontainer { margin-top: 10px; }
.NEC-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; align-items: center;
  border-radius: 10px; margin-bottom: 4px;
  padding: 7px 15px;
  background: var(--surface);
  transition: padding-left .15s;
}
.NEC-row a { font-size: 13px; font-weight: 600; color: var(--text-2); }
.NEC-row .when { font-size: 12px; font-weight: 400; white-space: nowrap; color: var(--text-4); }
.NEC-row.live { background: linear-gradient(135deg, rgb(247 75 92 / 10%) 0%, var(--surface) 65%); }
.NEC-row.live a { color: var(--live); }
.NEC-row.live .when { color: var(--live); }

/* ==========================================================================
   3. Layout shell
   ========================================================================== */
main {
  padding: 48px 0 80px;
  min-width: 0;
}

/* ---- 4. Navigation ---- */
.breadcrumbs { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 8px; color: var(--text-4); }

.kicker {
  display: inline-block;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px; margin-top: 20px;
}

h1 {
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.12;
  margin: 0 0 16px;
}
h1.page-title {
  font-size: 2.5em; font-weight: 700; color: var(--text);
  letter-spacing: -.015em; line-height: 1.15; margin: 0 0 28px;
}
h1.page-title em {
  color: #7a8090; font-style: normal; font-weight: 700;
  display: block; line-height: 1.2;
}
h2 {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700;
  margin: 48px 0 16px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
main#page-detail h2 {
  line-height: 1.25; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; margin: 56px 0 30px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -.015em;
  margin: 0; line-height: 1.25;
}
p { margin: 0 0 16px; }
.lede { font-size: 18px; color: var(--text-2); margin: 0 0 40px; line-height: 1.6; max-width: 600px; }
.lede b { color: var(--text); font-weight: 600; }
.text-body p { color: var(--text-2); line-height: 1.7; font-size: 16px; }
.text-body p + p { margin-top: 18px; }
.text-body b { color: var(--text); font-weight: 600; }

/* ---- 5. Animations ---- */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,94,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(255,77,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); }
}

/* ==========================================================================
   HOMEPAGE intro
   ========================================================================== */
.hp-intro { padding: 8px 0 8px; }
.hp-intro .hp-date {
  display: inline-block;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-4); font-weight: 700;
  margin-bottom: 14px; font-variant-numeric: tabular-nums;
}

/* Kategorie — datum (kicker) */
.cat-label {
  display: inline-block;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-4); font-weight: 700; margin-bottom: 10px; margin-top: 20px;
}

/* ==========================================================================
   MATCH-CARDS (home / kategorie listy)
   ========================================================================== */
.match-cards { display: grid; gap: 8px; }
.mcard {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px; align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: 12px;
  transition: border-color .15s, background .15s; min-height: 80px;
}
.mcard:hover { background: var(--surface-2); }
.m-time {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.m-time .day {
  display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-4); font-weight: 600; margin-bottom: 2px;
}
.m-time .done { color: var(--text-4); }

.mcard.live span.ldot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 94, .6);
  animation: pulse 1.6s infinite;
  display: inline-block;
  margin-right: 5px;
}
.mcard.live .m-time { color: var(--live); }

.m-teams { display: grid; gap: 2px; min-width: 0; }
.m-teams .t {
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-teams .t.lost { color: var(--text-3); }

.m-score {
  display: grid; gap: 10px; text-align: right;
  font-size: 17px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums; line-height: 1.0;
}
.m-score .s.lost { color: var(--text-3); }

.m-streams {
  display: inline-flex; gap: 12px; align-items: center; justify-content: flex-end;
  color: var(--text-3);
}
.m-streams .sicon {
  display: inline-flex; width: 18px; height: 18px;
  cursor: help; transition: color .15s ease;
}
.m-streams .sicon svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.m-streams .sicon:hover { color: var(--text); }

@media (max-width: 640px) {
  .mcard {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "time teams" "time bottom";
    gap: 10px;
  }
  .mcard .m-time { grid-area: time;  padding-top: 2px; }
  .mcard .m-teams { grid-area: teams; }
  .mcard .m-streams, .mcard .m-score { grid-area: bottom; justify-self: start; }
  .mcard.final { grid-template-columns: 64px 1fr 20px; grid-template-areas: "time teams score"; }
  .mcard.final .m-score{ grid-area: auto; justify-self: auto; }
}

/* ==========================================================================
   TOP-LEVEL CATEGORY — subcat-list
   ========================================================================== */
.subcat-list { display: flex; flex-direction: column; margin: 0 0 44px; }
.subcat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text);
  transition: color .12s; gap: 12px;
}
.subcat-link:last-child { border: none; }
.subcat-link-name {
  font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1;
  transition: color .12s;
}
.subcat-arrow {
  color: var(--text-4); opacity: 0;
  font-size: 20px;
  transition: opacity .12s, transform .15s, color .12s;
  flex-shrink: 0;
}
.subcat-link:hover { color: var(--text); }
.subcat-link:hover .subcat-link-name { color: var(--accent); }
.subcat-link:hover .subcat-arrow { color: var(--accent); opacity: 1; transform: translateX(3px); }

/* ==========================================================================
   KATEGORIE — blocks (admin html_content)
   ========================================================================== */
.cat-h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -.015em;
  margin: 32px 0 10px; line-height: 1.25;
  display: flex; align-items: center; gap: 10px;
}
.cat-h3 .h3-icon {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--surface-2); color: var(--text-2);
  flex-shrink: 0;
}
.cat-h3 .h3-icon svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cat-h3 .h3-icon.is-accent { background: rgba(0,210,106,.12); color: var(--accent); }

.pull-fact {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px 0 18px;
}
.pull-fact .pf-num {
  font-size: 28px; font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: var(--accent);
  line-height: 1; padding: 2px 0;
}
.pull-fact .pf-txt { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.pull-fact .pf-txt b { color: var(--text); font-weight: 600; }

.bullets { display: grid; gap: 8px; margin: 4px 0 18px; padding: 0; list-style: none; }
.bullets li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-2); font-size: 14.5px; line-height: 1.55;
}
.bullets li:last-child { border-bottom: 0; }
.bullets .b-icon {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; color: var(--accent);
  align-self: start; margin-top: 3px;
}
.bullets .b-icon svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.bullets b { color: var(--text); font-weight: 600; }

/* Kategorie — comp-grid (sister subkategorie) */
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .comp-grid { grid-template-columns: repeat(2, 1fr); } }
.comp-card {
  background: transparent; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 118px;
  transition: border-color .15s, background .15s;
}
.comp-card:hover { border-color: var(--line-2); background: var(--surface); }
.comp-card .cname { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.comp-card .ccount { font-size: 12px; color: var(--text-3); }
.comp-card .ccount b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   DETAIL EVENTU — tile + statusbar + broadcast tabulka + platforms
   ========================================================================== */

/* Tile */
.tile {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 48px;
}
.live-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700;
}
.live-strip .ldot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 94, .6);
  animation: pulse 1.6s infinite;
}
.live-strip.upcoming .ldot { background: var(--accent); animation: none; }
.live-strip.upcoming .lstate { color: var(--accent); }
.live-strip.live .lstate { color: var(--live); }
.live-strip.final .lstate { color: var(--text-3); }
.live-strip.final .ldot { background: var(--text-4); animation: none; }
.live-strip .ltime { color: var(--text-3); margin-left: auto; font-variant-numeric: tabular-nums; }

.tile .match { padding: 0 24px 6px; }
.tile .team-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 20px; align-items: center;
  padding: 10px 0;
}
.tile .team-row + .team-row { border-top: 1px solid var(--line); }
.tile .team-name {
  font-size: clamp(20px, 3vw, 25px); font-weight: 700; letter-spacing: -.02em;
}
.tile .team-score {
  font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  min-width: 40px; text-align: right;
}
.tile .team-score.dim { color: var(--text-4); }

/* Statusbar (alternativní úzký proužek) */
.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface);
  border: 0; border-radius: 10px;
  padding: 12px 16px; margin: 0 0 30px;
  font-size: 14px;
  transition: background 0.2s;
  background: linear-gradient(90deg, rgb(1 212 107 / 10%) 0%, var(--surface) 60%);
}
.statusbar.live {
  background: linear-gradient(90deg, rgba(255,77,94,0.10) 0%, var(--surface) 60%);
}
.statusbar.post { background: var(--surface); }
.statusbar .left {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 600; flex-wrap: wrap;
}
.statusbar .icn {
  width: 18px; height: 18px;
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.statusbar .icn svg { width: 100%; height: 100%; }
.statusbar .right {
  color: var(--text); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.statusbar .right .hint {
  color: var(--text-3); font-weight: 400; margin-left: 6px; font-variant-numeric: normal;
}
.statusbar .muted { color: #6b7684; }
.statusbar .sep-dot { color: var(--text-4); margin: 0 4px; }

.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--live); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; font-size: 12px;
}
.live-pill::before {
  content: ""; width: 7px; height: 7px;
  background: var(--live); border-radius: 50%;
  display: inline-block;
  animation: pulse 1.6s infinite;
  box-shadow: 0 0 0 0 rgba(255,77,94,.6);
}

/* Broadcast tabulka */
.broadcast-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.broadcast-table > caption {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.broadcast-table thead th {
  text-align: left;
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-4); font-weight: 700;
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--line);
}
.broadcast-table thead th.col-price { text-align: right; padding-right: 0; }
.broadcast-table tbody tr { border-bottom: 1px solid var(--line); }
.broadcast-table tbody th,
.broadcast-table tbody td {
  padding: 18px 16px 18px 0;
  vertical-align: baseline;
  text-align: left;
}
.broadcast-table th.col-kind {
  font-size: 11px; letter-spacing: 0; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; width: 120px;
}
.broadcast-table td.col-plat {
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
.broadcast-table td.col-plat a {
  text-decoration: underline; text-underline-offset: 3px;
}
.broadcast-table td.col-plat small {
  display: block; font-size: 13px; font-weight: 400;
  color: var(--text-3); margin-top: 2px; letter-spacing: 0;
}
.broadcast-table td.col-price {
  text-align: right;
  font-size: 14px; font-weight: 600;
  color: var(--text-2); white-space: nowrap;
  padding-right: 0; width: 90px;
}
.broadcast-table td.col-price.free { color: var(--accent); }

/* BTN */
.btn-row { margin: 32px 0 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 22px;
  background: var(--accent); color: #0b0e15; border-radius: 10px; font-weight: 700;
  font-size: 15px; transition: transform .15s, box-shadow .15s; line-height: 1.3;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,210,106,.22); }

/* Platform sekce */
.platform { padding: 8px 0 32px; }
.platform:last-of-type { padding-bottom: 0; }
.platform-head { align-items: center; margin-bottom: 14px; margin-top: 25px;}
.platform-head h3 { margin-top: 15px; margin-bottom: 10px; }
.section-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: #9aa3b0; flex-shrink: 0;
}
.section-icon svg {
  width: 19px; height: 19px;
  fill: none; stroke: #9aa3b0;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.platform p { color: var(--text-2); line-height: 1.7; margin: 0 0 14px; }
.platform p b { color: var(--text); font-weight: 600; }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; padding: 18px 0; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px;
  font-weight: 500; align-items: flex-start;
}
.faq-q .caret {
  color: var(--text-3); transition: transform .2s;
  font-size: 18px; line-height: 1; padding-top: 2px;
}
.faq-item.open .faq-q .caret { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--text-2); }
.faq-a .inner { padding-bottom: 18px; line-height: 1.65; font-size: 15px; }
.faq-a .inner b { color: var(--text); font-weight: 600; }
.faq-item.open .faq-a { max-height: 800px; }
/* ==========================================================================
   HLEDÁNÍ — /hledat
   ========================================================================== */
.search-form {
  display: flex;
  gap: 8px;
  margin: 0 0 36px;
  max-width: 600px;
}
.search-form input[type="search"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.search-form input[type="search"]:focus {
  border-color: var(--accent);
  background: var(--surface-2);
}
.search-form input[type="search"]::placeholder {
  color: var(--text-4);
}
.search-form button[type="submit"] {
  padding: 0 22px;
  background: var(--accent);
  color: #0b0e15;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  transition: transform .15s, box-shadow .15s;
}
.search-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,210,106,.22);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--text-4); font-size: 13px; text-align: left;
}
footer a { color: var(--text-2); margin-right: 5px; }

/* ==========================================================================
   Responsive collapse
   ========================================================================== */
@media (max-width: 640px) {
  .app-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }

  .rail {
    grid-column: 1; grid-row: 1;
    position: sticky; top: 0;
    height: auto; width: 100%;
    flex-direction: row; align-items: center;
    padding: 0 8px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    border-bottom: none;
    overflow-x: auto; overflow-y: hidden;
    z-index: 20;
    scrollbar-width: none;
    background:none;
  }
  .rail:after { content: ""; width: 100%; position: absolute; height: 100%; left: 0px; top: 0px; backdrop-filter: blur(30px); background: rgb(25 30 44 / 60%); z-index: -1;}
  .rail::-webkit-scrollbar { display: none; }

  .rail .brand-mark {
    margin-bottom: 0; margin-right: 6px; flex-shrink: 0;
    width: 44px; height: 60px;
  }
  .rail .divider {
    width: 1px; height: 24px; margin: 0 0px 0 0;
    align-self: center; flex-shrink: 0;
  }

  .rail-list {
    flex-direction: row; flex: 1;
    overflow-x: auto; overflow-y: hidden;
    padding: 4px 0; gap: 2px;
    align-items: center;
    scrollbar-width: none;
    min-width: 0;
  }
  .rail-list::-webkit-scrollbar { display: none; }

  .rail-foot {
    border-top: none;
    border-left: 1px solid var(--line-2);
    padding: 0 8px 0 12px;
    height: 24px;
    flex-shrink: 0; width: 44px;
  }

  .flyout { display: none; }

  .content-wrap { grid-column: 1; grid-row: 2; padding: 0; }

  main { padding: 32px 20px 80px; }
  h1.page-title { font-size: 2em; }
  footer{ padding: 32px 20px 5px; }

  .broadcast-table thead {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .broadcast-table tbody tr {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-areas: "kind plat" "kind price";
    gap: 4px 16px;
    padding: 14px 0;
  }
  .broadcast-table tbody th,
  .broadcast-table tbody td { padding: 0; border: 0; width: auto; }
  .broadcast-table th.col-kind { grid-area: kind; padding-top: 4px;  }
  .broadcast-table td.col-plat { grid-area: plat; font-size: 17px; }
  .broadcast-table td.col-price { grid-area: price; text-align: left; font-size: 13px; }
  .rp-h{ font-size: 12px; } .leaguescontainer .LC-item .name{ font-size: 14px; }.leaguescontainer .LC-item .badge{ font-size: 11px; }.NEC-row a{ font-size: 14px; }footer { font-size: 13px; }
  
}
