:root {
  --bg: #001e28;
  --bg-2: #00141e;
  --panel: #0a2732;
  --panel-2: #0f3442;
  --row-hover: #12394a;
  --line: #16404f;
  --text: #e8f0f3;
  --muted: #8aa4ae;
  --accent: #ff0046;
  --live: #ff0046;
  --star: #ffc400;
  --win: #00a83f;
  --loss: #dc0000;
  --draw: #f3a000;
  --blue: #0d6efd;
  --focus: #ffc400;
  --radius: 8px;
  font-size: 15px;
}

/* TV a veľké obrazovky: všetko väčšie, čitateľné z gauča */
@media (min-width: 1500px) { :root { font-size: 17px; } }
@media (min-width: 1900px) { :root { font-size: 22px; } }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg-2); color: var(--text); overflow-x: hidden; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img.flag { width: 1.15rem; height: .8rem; object-fit: cover; border-radius: 2px; flex: none; }

[data-nav]:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

/* ---------- Hlavička ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 0 1rem; min-height: 3.6rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.2rem; white-space: nowrap; letter-spacing: .02em; }
.brand strong { font-weight: 900; }
.tabs { display: flex; height: 3.6rem; }
.tab {
  display: flex; align-items: center; padding: 0 1rem; color: var(--muted); height: 100%;
  font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .03em;
  border-bottom: 3px solid transparent;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.updated { margin-left: auto; color: var(--muted); font-size: .75rem; }
@media (max-width: 760px) {
  .top { gap: 0; padding: 0 .5rem; }
  .brand { padding: .6rem .3rem; }
  .tabs { order: 3; width: 100%; overflow-x: auto; height: auto; }
  .tab { flex: 1 0 auto; justify-content: center; padding: .7rem .6rem; font-size: .72rem; }
}

.sports { order: 4; width: calc(100% + 2rem); margin: 0 -1rem; display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); padding: 0 .6rem; }
.sports::-webkit-scrollbar { display: none; }
.sport { display: flex; align-items: center; gap: .45rem; padding: .75rem .8rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; border-bottom: 3px solid transparent; color: var(--text); }
.sport span { font-size: 1rem; }
.sport.active { border-bottom-color: var(--accent); }
@media (max-width: 760px) { .sports { width: calc(100% + 1rem); margin: 0 -.5rem; } .sport { padding: .6rem .6rem; font-size: .72rem; } }

/* ---------- Rozloženie ---------- */
.layout { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 1rem; max-width: 1240px; margin: 0 auto; padding: 1rem; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); padding: .6rem; gap: .6rem; } }
.view { display: none; }
.view.active { display: block; }
.panel { background: var(--bg); border-radius: var(--radius); }
.empty { color: var(--muted); text-align: center; padding: 3rem 1rem; }
.error { color: #ff8a9c; }
.hint { color: var(--muted); font-size: .85rem; }
.section-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: .9rem .9rem .6rem; margin: 0; }

/* ---------- Bočný panel ---------- */
.side h3 { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .5rem; padding: 0 .4rem; }
.side ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.side li a, .side li button.lnk {
  display: flex; align-items: center; gap: .55rem; width: 100%; padding: .45rem .5rem; border-radius: 6px;
  font-size: .85rem; border: 0; background: none; text-align: left;
}
.side li a:hover, .side li a.active { background: var(--panel); }
.side li img.logo { width: 1.1rem; height: 1.1rem; object-fit: contain; }
.side .pin { margin-left: auto; border: 0; background: none; color: var(--muted); padding: .1rem .3rem; }
.side .pin.on { color: var(--blue); }
.side .muted { color: var(--muted); font-size: .8rem; padding: 0 .5rem; }
@media (max-width: 900px) {
  .side { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side h3, .side .muted, .side .pin, .side .side-teams { display: none; }
  .side ul { display: flex; gap: .4rem; margin: 0; }
  .side li a { white-space: nowrap; background: var(--bg); border-radius: 999px; padding: .4rem .8rem; }
}

/* ---------- Filter + dni ---------- */
.toolbar { display: grid; gap: .6rem; margin-bottom: .8rem; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .1rem; }
.chip {
  border: 1px solid var(--line); background: var(--bg); border-radius: 6px;
  padding: .4rem .85rem; font-size: .8rem; font-weight: 700; color: var(--text); text-transform: uppercase;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-live span { color: var(--live); }
.chip-live.active span { color: #fff; }

.days { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; min-width: 3.9rem; border: 1px solid var(--line); background: var(--bg); border-radius: 6px;
  padding: .3rem .5rem; text-align: center; line-height: 1.2; font-size: .82rem;
}
.day small { display: block; color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.day.today small { color: var(--accent); font-weight: 800; }
.day.active { background: var(--text); color: var(--bg-2); border-color: var(--text); }
.day.active small { color: var(--bg-2); }
.day.none { opacity: .45; }

/* ---------- Zoznam zápasov ---------- */
.league { background: var(--bg); border-radius: var(--radius); overflow: hidden; margin-bottom: .8rem; }
.league-head { display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem; background: var(--panel-2); font-size: .8rem; }
.league-head .name { font-weight: 800; text-transform: uppercase; }
.league-head .pin { border: 0; background: none; color: var(--muted); padding: 0 .2rem; }
.league-head .pin.on { color: var(--blue); }
.league-head .table-link { margin-left: auto; color: var(--text); font-size: .78rem; text-decoration: underline; }
.round-head { padding: .45rem .9rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line); }

.row {
  display: grid; grid-template-columns: 2.1rem 4.6rem minmax(0, 1fr) auto 2.6rem; align-items: center;
  border-top: 1px solid var(--line); padding: .4rem .3rem .4rem .1rem; cursor: pointer;
}
.row:hover { background: var(--row-hover); }
.star { border: 0; background: none; color: var(--muted); font-size: 1.1rem; padding: .2rem; line-height: 1; }
.star.on { color: var(--star); }
.status { font-size: .78rem; color: var(--text); text-align: center; line-height: 1.25; padding-right: .4rem; }
.status.done { color: var(--muted); }
.status.live { color: var(--live); font-weight: 800; }
.status .blink { animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.teams { display: grid; gap: .3rem; min-width: 0; }
.tm { display: flex; align-items: center; gap: .55rem; min-width: 0; font-size: .9rem; }
.tm img { width: 1.15rem; height: 1.15rem; object-fit: contain; flex: none; }
.tm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm.win span { font-weight: 800; }
.tm.fav span::after { content: " ★"; color: var(--star); font-size: .75em; }
.tm .sub { color: var(--muted); font-size: .8rem; }
.scores .sets { color: var(--muted); font-weight: 500; margin-right: .6rem; letter-spacing: .15em; font-size: .8rem; }
.side li img.flag { width: 1.15rem; }
.scores { display: grid; gap: .3rem; text-align: right; font-weight: 800; min-width: 1.6rem; font-variant-numeric: tabular-nums; padding-right: .4rem; font-size: .9rem; }
.row.is-live .scores { color: var(--live); }
.tv-btn { border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 4px; font-size: .62rem; font-weight: 800; padding: .2rem .25rem; }
.row.is-live .tv-btn { color: #fff; border-color: var(--live); background: var(--live); }
.more { display: block; width: 100%; padding: .7rem; border: 0; border-top: 1px solid var(--line); background: none; font-weight: 700; text-decoration: underline; font-size: .82rem; }

/* ---------- Stránka ligy ---------- */
.league-hero { padding: 1rem 1rem 0; margin-bottom: .8rem; }
.crumbs { display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.hero-main { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; }
.hero-logo { width: 4.4rem; height: 4.4rem; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.hero-logo img { width: 80%; height: 80%; object-fit: contain; }
.hero-main h1 { margin: 0; font-size: 1.4rem; display: flex; align-items: center; gap: .5rem; }
.hero-main .season { color: var(--muted); font-size: .85rem; font-weight: 700; margin-top: .3rem; }
.hero-tabs { display: flex; gap: .2rem; border-top: 1px solid var(--line); overflow-x: auto; }
.hero-tabs a { padding: .8rem .8rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.hero-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Správy ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: .8rem; }
.news { background: var(--bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); }
.news .nb { padding: .7rem .8rem .9rem; display: grid; gap: .35rem; }
.news .meta { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.news h4 { margin: 0; font-size: .95rem; line-height: 1.3; }
.news p { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.league-news { padding: 0 .9rem .9rem; }

/* ---------- Karty (obľúbené, prehrávač) ---------- */
.card { padding: 1rem; margin-bottom: .8rem; }
.card h2 { font-size: 1rem; margin: 0 0 .3rem; }
.card .hint { display: block; margin: 0 0 .8rem; }
.btn { display: inline-block; border: 0; background: var(--accent); color: #fff; border-radius: 6px; padding: .55rem 1rem; font-weight: 700; }
.btn-2 { background: var(--panel-2); color: var(--text); }
.row-btns { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
.fav-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.fav-list li { display: flex; align-items: center; gap: .6rem; background: var(--panel); border-radius: 6px; padding: .5rem .7rem; }
.fav-list img { width: 1.4rem; height: 1.4rem; object-fit: contain; }
.fav-list .lg { color: var(--muted); font-size: .8rem; }
.fav-list .del { margin-left: auto; border: 0; background: none; color: var(--muted); }

/* ---------- Tabuľka ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .85rem; }
th, td { padding: .5rem .45rem; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 700; font-size: .72rem; background: var(--panel-2); text-transform: uppercase; }
td.team-cell { text-align: left; }
td.team-cell div { display: flex; align-items: center; gap: .55rem; }
td.team-cell img { width: 1.25rem; height: 1.25rem; object-fit: contain; }
td.pts { font-weight: 800; }
tr.fav td, tr.hl td { background: rgba(255, 196, 0, .1); }
tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* ---------- Prehrávač ---------- */
.player-box { background: #000; border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: .8rem; }
video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-msg { position: absolute; inset: auto 0 0 0; padding: .6rem 1rem; color: var(--muted); font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); pointer-events: none; }
.player-msg:empty { display: none; }
.stream-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.stream-list li { display: flex; gap: .5rem; }
.stream-list .play { flex: 1; text-align: left; border: 1px solid var(--line); background: var(--panel); padding: .65rem 1rem; border-radius: 6px; }
.stream-list .play.playing { border-color: var(--accent); }
.stream-list .del { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 0 .9rem; color: var(--muted); }
.stream-form { display: grid; grid-template-columns: 1fr 2fr auto; gap: .5rem; }
@media (max-width: 600px) { .stream-form { grid-template-columns: 1fr; } }
.stream-form input { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .55rem .8rem; min-width: 0; }

/* ---------- Detail zápasu ---------- */
dialog {
  border: 0; border-radius: 10px; background: var(--bg); color: var(--text);
  width: min(760px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); padding: 0;
}
dialog::backdrop { background: rgba(0, 0, 0, .75); }
@media (max-width: 640px) { dialog { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border-radius: 0; } }
.dt-top { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; font-size: .75rem; color: var(--muted); text-transform: uppercase; font-weight: 800; }
.dt-top span { display: flex; align-items: center; gap: .45rem; }
.close { border: 0; background: transparent; font-size: 1.1rem; padding: .3rem .5rem; border-radius: 6px; color: var(--text); }
.dt-head { display: grid; grid-template-columns: 2rem 1fr auto 1fr 2rem; align-items: center; gap: .5rem; padding: .5rem 1rem 1.2rem; text-align: center; border-bottom: 1px solid var(--line); }
.dt-team { display: grid; justify-items: center; gap: .5rem; }
.dt-team .lg { width: 4.6rem; height: 4.6rem; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.dt-team .lg img { width: 78%; height: 78%; object-fit: contain; }
.dt-team .nm { font-weight: 700; font-size: .95rem; }
.dt-head .star { font-size: 1.4rem; }
.dt-date { font-size: .8rem; color: var(--muted); }
.dt-score { font-size: 2.3rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .05em; margin: .2rem 0; }
.dt-score.live { color: var(--live); }
.dt-state { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.dt-state.live { color: var(--live); }
.stream-btn { margin-top: .5rem; border: 1px solid var(--muted); background: none; border-radius: 4px; padding: .3rem .7rem; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.dt-tabs { display: flex; padding: 0 .5rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.dt-tab { border: 0; background: none; padding: .8rem .8rem; color: var(--text); font-weight: 800; font-size: .78rem; text-transform: uppercase; border-bottom: 3px solid transparent; white-space: nowrap; }
.dt-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.dt-body { padding: .5rem 0 1.25rem; overflow-y: auto; }
.blk-title { margin: .6rem 0 0; padding: .55rem 1rem; background: var(--panel); font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.blk { padding: .7rem 1rem; }
.info-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 1rem; font-size: .85rem; border-bottom: 1px solid var(--line); }
.info-row b { text-align: right; }
.watch { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt {
  display: inline-flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: var(--panel);
  border-radius: 6px; padding: .55rem .9rem; font-size: .85rem; font-weight: 700;
}
.opt small { color: var(--muted); font-size: .72rem; font-weight: 400; }
.opt.tipsport { background: var(--blue); border-color: var(--blue); color: #fff; }
.opt.tipsport small { color: #d6e4ff; }
.opt.free { border-color: var(--win); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .7rem 1rem; }
.form-team { display: flex; align-items: center; gap: .7rem; background: var(--panel); border-radius: 8px; padding: .6rem; }
.form-team img { width: 2.6rem; height: 2.6rem; object-fit: contain; background: #fff; border-radius: 6px; padding: .2rem; }
.form-team .pos { font-size: .75rem; color: var(--muted); }
.badges { display: flex; gap: .2rem; margin-top: .3rem; flex-wrap: wrap; }
.badge { width: 1.35rem; height: 1.35rem; border-radius: 4px; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; }
.badge.V { background: var(--win); }
.badge.P { background: var(--loss); }
.badge.Q { background: #5b6b73; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.h2h-row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .45rem 1rem; border-bottom: 1px solid var(--line); font-size: .85rem; cursor: pointer; }
.h2h-row:hover { background: var(--row-hover); }
.h2h-row .d { color: var(--muted); font-size: .78rem; }
.period { margin-bottom: .2rem; }
.ev { display: grid; grid-template-columns: 1fr 3.5rem 1fr; gap: .4rem; padding: .45rem 1rem; border-bottom: 1px solid var(--line); font-size: .85rem; align-items: center; }
.ev .t { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.ev .side { display: flex; gap: .45rem; align-items: center; }
.ev .side.home { flex-direction: row-reverse; text-align: right; }
.ev .ico { flex: none; }
.ev .goal-score { font-weight: 800; background: var(--accent); color: #fff; border-radius: 4px; padding: 0 .35rem; font-size: .8rem; white-space: nowrap; }
.ev .pen { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.ev small { display: block; color: var(--muted); font-size: .75rem; }
.stat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: .35rem 1rem; font-size: .85rem; }
.stat .v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .lbl { text-align: center; color: var(--muted); font-size: .8rem; }
.bar { grid-column: 1 / 4; display: flex; gap: 3px; height: 5px; }
.bar i { display: block; background: var(--line); border-radius: 3px; }
.bar i.lead { background: var(--accent); }
@media (max-width: 640px) {
  .ev { grid-template-columns: 1fr 2.6rem 1fr; gap: .3rem; font-size: .8rem; padding: .45rem .6rem; }
  .ev .ico { display: none; }
  .dt-team .lg { width: 3.4rem; height: 3.4rem; }
  .dt-score { font-size: 1.9rem; }
  .dt-head { padding: .5rem .5rem 1rem; grid-template-columns: 1.6rem 1fr auto 1fr 1.6rem; }
  .row { grid-template-columns: 1.9rem 4rem minmax(0, 1fr) auto 2.3rem; }
}

/* ---------- Toasty ---------- */
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 50; max-width: min(360px, calc(100vw - 2rem)); }
.toast { background: var(--panel-2); border-left: 4px solid var(--accent); border-radius: 6px; padding: .7rem 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.4); font-size: .9rem; }
.toast b { display: block; }
.hero-main .pin, .league-head .pin { border: 0; background: none; font-size: 1rem; padding: .1rem .3rem; filter: grayscale(1); opacity: .6; }
.hero-main .pin.on, .league-head .pin.on, .side .pin.on { filter: none; opacity: 1; }
.side .pin { filter: grayscale(1); opacity: .5; }

/* Odkaz na zápas z Tipsportu */
.tv-btn.has-link { background: var(--blue); border-color: var(--blue); color: #fff; font-size: .75rem; text-align: center; }
.link-form { display: flex; gap: .4rem; flex-wrap: wrap; padding-top: 0; }
.link-form input { flex: 1 1 14rem; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .5rem .7rem; }

/* Kurzy */
.odds { padding: .5rem 1rem .2rem; display: grid; gap: .4rem; }
.odds-row { display: grid; grid-template-columns: 7rem repeat(3, 1fr); gap: .4rem; align-items: center; }
.odds-row.head span { text-align: center; color: var(--muted); font-size: .75rem; font-weight: 700; }
.bk { border-radius: 6px; padding: .45rem .5rem; font-weight: 800; font-size: .8rem; text-align: center; background: var(--panel-2); }
.bk-tipsport { background: #1660d6; color: #fff; }
.bk-fortuna { background: #ffdd00; color: #111; }
.bk-chance { background: #f2f2f2; color: #0c4da2; }
.bk-sazka { background: #e30613; color: #fff; }
.odd { display: block; text-align: center; border: 1px solid var(--muted); border-radius: 6px; padding: .45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.odd:hover { background: var(--row-hover); }
.odds-note { margin: .3rem 0 0; font-size: .72rem; }

/* Vyhľadávanie v hlavičke */
.search { position: relative; flex: 1 1 14rem; max-width: 24rem; margin-left: auto; }
.search input { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; font-size: .85rem; }
.search + .updated { margin-left: 0; }
.search-results { position: absolute; top: calc(100% + .4rem); left: 0; right: 0; min-width: 18rem; max-height: 70vh; overflow-y: auto; z-index: 30;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.5); padding: .3rem 0; }
.sr-h { padding: .5rem .9rem .3rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.sr { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; border: 0; background: none; padding: .5rem .9rem; font-size: .88rem; }
.sr img { width: 1.3rem; height: 1.3rem; object-fit: contain; flex: none; }
.sr small { display: block; color: var(--muted); font-size: .75rem; }
.sr:hover { background: var(--row-hover); }
a.sr { flex-direction: column; align-items: flex-start; gap: 0; }
@media (max-width: 760px) { .search { order: 5; max-width: none; flex-basis: 100%; margin: 0 0 .5rem; } .search-results { min-width: 0; } }

/* Pravidlá hokeja */
.rules-head { padding: 1rem; margin-bottom: .8rem; }
.rules-head .hint { margin: .5rem 0 0; }
.rules-head .hint a { color: var(--text); }
.rules-search { display: flex; gap: .5rem; margin-top: .8rem; }
.rules-search input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .55rem .8rem; }
.rules-layout { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: .8rem; align-items: start; }
.rules-layout .rq-results:empty { display: none; }
.rules-layout:has(.rq-results:empty) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .rules-layout { grid-template-columns: minmax(0, 1fr); } .rq-results { max-height: 40vh; } }
.rq-results { position: sticky; top: 8rem; max-height: calc(100vh - 9rem); overflow-y: auto; background: var(--bg); border-radius: var(--radius); }
.rq-hit { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: .55rem .8rem; font-size: .8rem; line-height: 1.4; }
.rq-hit b { display: block; color: var(--accent); font-size: .72rem; }
.rq-hit span { color: var(--muted); }
.rq-hit mark { background: var(--star); color: #000; border-radius: 2px; padding: 0 .1em; }
.rq-hit:hover { background: var(--row-hover); }
.pdf-pages { display: grid; gap: .8rem; }
.pdf-page { position: relative; background: #fff; border-radius: 4px; overflow: hidden; width: 100%; }
.pdf-page canvas { display: block; width: 100%; height: auto; }
.pg-no { position: absolute; right: .5rem; bottom: .4rem; font-size: .7rem; color: #666; }

/* Bannery */
.banner { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: .8rem; background: var(--bg); }
.banner img { display: block; width: 100%; height: auto; }
.banner-side { margin-top: .5rem; }
.right { display: none; }
@media (min-width: 1500px) {
  .layout { grid-template-columns: 13.5rem minmax(0, 1fr) 13.5rem; max-width: 1560px; }
  .right { display: block; }
  .right .banner-slot { position: sticky; top: 8.5rem; }
}
@media (max-width: 900px) { .side .banner { display: none; } }
.banner-feed { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Stránka tímu */
.team-link { color: inherit; }
.team-link:hover { text-decoration: underline; }
.dt-team .team-link { display: grid; justify-items: center; gap: .5rem; }
.team-summary { display: flex; gap: 2rem; flex-wrap: wrap; padding: .9rem 1rem; margin-bottom: .8rem; }
.team-summary > div { display: grid; gap: .2rem; }
.team-summary b { font-size: 1.2rem; }
.hero-main .star { font-size: 1.3rem; border: 0; background: none; }
table.roster td.team-cell img.ph { width: 2.2rem; height: 2.2rem; border-radius: 50%; object-fit: cover; background: var(--panel); }
a.sr.sr-team { flex-direction: row; align-items: center; gap: .6rem; }

/* ---------- Prihlásenie, ikony v hlavičke ---------- */
.icon-btn { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; font-size: 1rem; flex: none; }
.user-btn.on { border-color: var(--star); box-shadow: 0 0 0 1px var(--star) inset; }
.search-toggle { display: none; }
.linklike { border: 0; background: none; padding: 0; color: var(--text); text-decoration: underline; font: inherit; }
.login-dlg { width: min(400px, calc(100vw - 2rem)); padding: 1.4rem; }
.login-dlg h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
.login-dlg input[type="password"] { width: 100%; margin-top: .8rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; font-size: 1rem; }
.login-dlg .error { color: #ff8a9c; min-height: 1.2em; margin: .5rem 0 0; font-size: .85rem; }
dialog[open] { display: flex; flex-direction: column; }
.login-dlg[open] { display: block; }
.dt-body { flex: 1 1 auto; min-height: 0; }

/* ---------- Spodná navigácia (mobil) ---------- */
.bottom-nav { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
  input, select, textarea { font-size: 16px !important; } /* iOS nebude približovať pri písaní */

  .top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: calc(.35rem + env(safe-area-inset-top)) calc(.6rem + env(safe-area-inset-right)) 0 calc(.6rem + env(safe-area-inset-left)); min-height: 0; }
  .top .tabs { display: none; }
  .brand { padding: .35rem .2rem; margin-right: auto; font-size: 1.1rem; }
  .search-toggle { display: grid; }
  .updated { display: none; }
  .search { display: none; order: 5; flex-basis: 100%; max-width: none; margin: .1rem 0 .3rem; }
  body.search-open .search { display: block; }
  .sports { order: 6; margin-top: .2rem; }

  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: grid; justify-items: center; gap: .1rem; font-size: .66rem; font-weight: 700; color: var(--muted); padding: .25rem 0; text-transform: uppercase; letter-spacing: .02em; }
  .bottom-nav a span { font-size: 1.15rem; line-height: 1.2; }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav a.active span { filter: drop-shadow(0 0 6px rgba(255, 0, 70, .7)); }

  .toasts { bottom: calc(4.8rem + env(safe-area-inset-bottom)); left: .6rem; right: .6rem; max-width: none; }
  .layout { padding: .5rem; gap: .5rem; }
  .league { margin-bottom: .6rem; border-radius: 6px; }
  .league-head { padding: .5rem .6rem; }
  .row { padding-top: .5rem; padding-bottom: .5rem; }
  .tm { font-size: .92rem; }
  .chip { padding: .45rem .8rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hero-main h1 { font-size: 1.2rem; }
  .hero-logo { width: 3.6rem; height: 3.6rem; }
  .team-summary { gap: 1.2rem; }
  .news-grid { grid-template-columns: 1fr; }
  .rules-head { padding: .8rem; }
  .card { padding: .9rem; }
  .banner-top { margin-bottom: .5rem; }
  .dt-top { position: sticky; top: 0; background: var(--bg); z-index: 2; }
}
@media (max-width: 640px) {
  /* celoobrazovkový detail nesmie zasahovať pod Dynamic Island / výrez */
  .dt-top { padding-top: calc(.8rem + env(safe-area-inset-top)); }
  .dt-body { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
  dialog.login-dlg { width: calc(100vw - 2rem); max-width: 400px; height: auto; max-height: none; margin: auto; border-radius: 12px; }
}


/* Účet a správa používateľov */
.tag { font-size: .65rem; font-weight: 800; text-transform: uppercase; background: var(--star); color: #000; border-radius: 4px; padding: .1rem .4rem; vertical-align: middle; }
.acc-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.acc-form h3, .acc-users h3 { width: 100%; margin: 0; font-size: .85rem; }
.acc-form input { flex: 1 1 10rem; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .55rem .8rem; }
.acc-users { margin-top: 1.2rem; display: grid; gap: .5rem; }
.login-dlg input[type="text"] { width: 100%; margin-top: .8rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; font-size: 1rem; }
code { background: var(--panel); padding: 0 .3rem; border-radius: 3px; }


/* Tipsport spúšťač */
.tip-card h2 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tip-card h2 .bk { font-size: .75rem; padding: .3rem .6rem; }
.tip-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.tip-form input { flex: 1 1 16rem; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .8rem; }
.tip-go { background: var(--blue); }
.tip-h { margin: 1.1rem 0 .5rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.tip-list { display: grid; gap: .4rem; }
.tip-item { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; text-align: left; width: 100%;
  border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: .55rem .8rem; }
.tip-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-item small { display: block; color: var(--muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-item .tip-time { color: var(--muted); font-size: .8rem; text-align: center; }
.tip-item.live { border-color: var(--live); }
.tip-item.live .tip-time b { color: var(--live); }
.tip-play { background: var(--blue); color: #fff; border-radius: 6px; padding: .3rem .6rem; font-size: .8rem; }
.side .banner + .banner { margin-top: .8rem; }
a.banner { transition: transform .15s, box-shadow .15s; }
a.banner:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }


/* Prenos prihlásenia Tipsport (mobil → TV) */
.handoff { margin: 0; border: 0; background: none; }
.handoff summary { cursor: pointer; padding: 0 0 .6rem; font-weight: 700; font-size: 1rem; }
.handoff[open] summary { border-bottom: 1px solid var(--line); }
#handoff-body { padding: .8rem 0 0; display: grid; gap: .7rem; }
.ho-form input { background: var(--panel) !important; }
#handoff-body .hint { margin: 0; }
.ho-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .ho-cols { grid-template-columns: 1fr; } }
.ho-form { display: grid; gap: .5rem; align-content: start; }
.ho-form h3 { margin: 0; font-size: .85rem; }
.ho-form input { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .8rem; }
#ho-recv input { font-size: 1.4rem; letter-spacing: .3em; text-align: center; }
.ho-code { font-size: 2.6rem; font-weight: 800; letter-spacing: .15em; text-align: center; background: var(--bg); border-radius: 8px; padding: .6rem; font-variant-numeric: tabular-nums; }
.ho-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto auto; gap: .5rem; align-items: center; }
.ho-row span { color: var(--muted); font-size: .8rem; }
.ho-val { font-size: 1.15rem; padding: .45rem .6rem; overflow-wrap: anywhere; }
@media (max-width: 640px) { .ho-row { grid-template-columns: 1fr auto auto; } .ho-row span { grid-column: 1 / -1; } }


/* =========================================================
   Motívy (5) × režim (tmavý / svetlý)
   ========================================================= */
html[data-theme="flash"][data-mode="dark"] { --bg: #001e28; --bg-2: #00141e; --panel: #0a2732; --panel-2: #0f3442; --row-hover: #12394a; --line: #16404f; --text: #e8f0f3; --muted: #8aa4ae; --accent: #ff0046; --focus: #ff0046; }
html[data-theme="flash"][data-mode="light"] { --bg: #ffffff; --bg-2: #eef2f5; --panel: #f4f7f9; --panel-2: #e6edf1; --row-hover: #eaf1f5; --line: #dbe3e8; --text: #0f1e26; --muted: #5d707a; --accent: #e5003f; --focus: #e5003f; }
html[data-theme="ice"][data-mode="dark"] { --bg: #0b1a2e; --bg-2: #071222; --panel: #10243d; --panel-2: #15304f; --row-hover: #183859; --line: #1e3a5c; --text: #e6f1ff; --muted: #8ea8c6; --accent: #3aa0ff; --focus: #3aa0ff; }
html[data-theme="ice"][data-mode="light"] { --bg: #ffffff; --bg-2: #edf4fb; --panel: #f3f8fd; --panel-2: #e2eefa; --row-hover: #e8f2fc; --line: #d3e2f1; --text: #0c1d33; --muted: #587089; --accent: #0a6fd6; --focus: #0a6fd6; }
html[data-theme="forest"][data-mode="dark"] { --bg: #0f1f17; --bg-2: #0a1610; --panel: #142a1f; --panel-2: #1a3628; --row-hover: #1d3d2d; --line: #234634; --text: #e7f3ec; --muted: #8fb19d; --accent: #22c55e; --focus: #22c55e; }
html[data-theme="forest"][data-mode="light"] { --bg: #ffffff; --bg-2: #eef6f1; --panel: #f4faf6; --panel-2: #e3f1e8; --row-hover: #e9f5ee; --line: #d4e8db; --text: #0e2318; --muted: #5a7766; --accent: #15924a; --focus: #15924a; }
html[data-theme="royal"][data-mode="dark"] { --bg: #17132b; --bg-2: #100d20; --panel: #1f1a3a; --panel-2: #282249; --row-hover: #2c2552; --line: #342c5c; --text: #eeeaff; --muted: #a39cc8; --accent: #a855f7; --focus: #a855f7; }
html[data-theme="royal"][data-mode="light"] { --bg: #ffffff; --bg-2: #f3f1fb; --panel: #f8f6fd; --panel-2: #ebe6f8; --row-hover: #efebfa; --line: #e0daf2; --text: #1c1636; --muted: #6b648c; --accent: #7c3aed; --focus: #7c3aed; }
html[data-theme="sunset"][data-mode="dark"] { --bg: #24150f; --bg-2: #1a0e09; --panel: #2e1c14; --panel-2: #3a2419; --row-hover: #42291d; --line: #4a2e20; --text: #fff1ea; --muted: #c4a291; --accent: #ff7a1a; --focus: #ff7a1a; }
html[data-theme="sunset"][data-mode="light"] { --bg: #ffffff; --bg-2: #fbf3ee; --panel: #fdf8f5; --panel-2: #f7e8df; --row-hover: #fbefe8; --line: #f0ddd1; --text: #2a160c; --muted: #82675a; --accent: #e8650a; --focus: #e8650a; }
html[data-mode="light"] { --shadow: 0 1px 2px rgba(15, 30, 40, .06), 0 4px 16px rgba(15, 30, 40, .06); color-scheme: light; }
html[data-mode="dark"] { --shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 8px 24px rgba(0, 0, 0, .25); color-scheme: dark; }
html[data-mode="light"] .day.active { background: var(--accent); color: #fff; border-color: var(--accent); }
html[data-mode="light"] .day.active small { color: #fff; }
html[data-mode="light"] .hero-logo, html[data-mode="light"] .dt-team .lg { box-shadow: inset 0 0 0 1px var(--line); }
html[data-mode="light"] .pdf-page { box-shadow: var(--shadow); }

/* =========================================================
   Vizuálne vylepšenia
   ========================================================= */
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
.top { background: var(--bg); box-shadow: 0 1px 0 var(--line); border-bottom: 0; backdrop-filter: saturate(1.2); }
.brand strong { color: var(--accent); }
.panel, .league, .news, .card { box-shadow: var(--shadow); }
.league, .panel, .news { border-radius: 12px; }
.league-head { gap: .6rem; padding: .65rem .9rem; }
.league-head .count { margin-left: auto; color: var(--muted); font-weight: 700; font-size: .75rem; }
.row { transition: background .12s; }
.row:hover { background: var(--row-hover); }
.chip { border-radius: 999px; transition: background .15s, color .15s; }
.chip:hover { border-color: var(--accent); }
.live-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--live); margin-right: .4rem; vertical-align: middle; box-shadow: 0 0 0 0 var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 0, 70, .55); } 70% { box-shadow: 0 0 0 .45rem rgba(255, 0, 70, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 0, 70, 0); } }
.row.is-live { background: linear-gradient(90deg, rgba(255, 0, 70, .07), transparent 40%); }
.row.is-live .status::before { content: ""; display: inline-block; width: .42rem; height: .42rem; border-radius: 50%; background: var(--live); margin-right: .3rem; animation: pulse 1.6s infinite; vertical-align: middle; }
.btn { border-radius: 8px; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.day { border-radius: 10px; transition: background .15s; }

/* Toolbar: filtre + voľby zobrazenia */
.toolbar-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.toolbar-row .filters { flex: 1 1 auto; margin: 0; }
.view-opts { display: flex; gap: .35rem; }
.opt-toggle { border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 999px; padding: .4rem .75rem; font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.opt-toggle.on { color: var(--text); border-color: var(--accent); background: var(--panel-2); }
.date-pick { position: relative; overflow: hidden; }
.date-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.date-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* Aktuálnosť dát */
.updated { display: inline-flex; align-items: center; gap: .45rem; }
.updated .fresh { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); flex: none; }
.updated.ok .fresh { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.updated.warn .fresh { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.updated.bad .fresh { background: var(--live); animation: pulse 1.2s infinite; }
.updated.bad span { color: var(--live); font-weight: 700; }
#health-notes { display: grid; gap: .4rem; }
#health-notes:empty { display: none; }
.health-note { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #f59e0b; border-radius: 8px; padding: .5rem .8rem; font-size: .82rem; }
.health-note.bad { border-left-color: var(--live); }
.stale-badge { font-size: .68rem; font-weight: 800; color: #fff; background: var(--live); border-radius: 999px; padding: .15rem .55rem; text-transform: none; }

/* Riadky: štítok súťaže a kurzy */
.row-league { display: flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .02em; }
.row { grid-template-columns: 2.1rem 4.6rem minmax(0, 1fr) auto auto 2.6rem; }
.row-odds { display: grid; grid-template-columns: repeat(3, 2.9rem); gap: .25rem; margin-right: .4rem; }
.row-odds:empty { display: none; }
.row-odds span { text-align: center; border: 1px solid var(--line); border-radius: 6px; font-size: .75rem; font-weight: 700; padding: .2rem 0; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .row { grid-template-columns: 1.9rem 4rem minmax(0, 1fr) auto auto 2.3rem; } .row-odds { grid-template-columns: repeat(3, 2.4rem); } .row-odds span { font-size: .68rem; } }

/* Kompaktné zobrazenie */
body.compact .row { padding-top: .25rem; padding-bottom: .25rem; }
body.compact .teams { gap: .1rem; }
body.compact .tm { font-size: .84rem; }
body.compact .tm img { width: .95rem; height: .95rem; }
body.compact .league { margin-bottom: .5rem; }

/* Výber motívu */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.theme-pick { display: grid; justify-items: center; gap: .45rem; border: 2px solid var(--line); background: var(--panel); border-radius: 12px; padding: .7rem .4rem; font-weight: 700; font-size: .82rem; }
.theme-pick.on { border-color: var(--accent); }
.theme-pick .sw { position: relative; width: 3rem; height: 3rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .35); }
.theme-pick .sw i { position: absolute; right: -.15rem; bottom: -.15rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid var(--bg); }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .2rem; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: .45rem .9rem; border-radius: 999px; font-weight: 700; font-size: .82rem; color: var(--muted); }
.seg button.on { background: var(--accent); color: #fff; }

/* Responzivita: tablet */
@media (min-width: 761px) and (max-width: 1100px) {
  .layout { grid-template-columns: 11.5rem minmax(0, 1fr); }
  .tab { padding: 0 .6rem; font-size: .74rem; }
  .search { max-width: 14rem; }
}
@media (max-width: 760px) {
  .toolbar-row { flex-direction: column; align-items: stretch; }
  .view-opts { justify-content: flex-end; }
  .league, .panel, .news { border-radius: 10px; }
}

/* toolbar sa nesmie roztiahnuť podľa šírky čipov (mobil) */
.toolbar { grid-template-columns: minmax(0, 1fr); }
.toolbar-row, .toolbar-row .filters, .view-opts { min-width: 0; }
main { min-width: 0; }


/* Náhradné logo tímu (iniciály) */
.ini { display: inline-grid; place-items: center; flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: hsl(var(--h, 210) 55% 42%); color: #fff; font-size: .5rem; font-weight: 800; letter-spacing: -.02em; }
body.compact .tm .ini { width: .95rem; height: .95rem; font-size: .44rem; }
.dt-team .lg.no-logo { background: transparent; box-shadow: none; }
.dt-team .lg .ini { width: 100%; height: 100%; font-size: 1.5rem; border-radius: 12px; }


/* Stránka tímu – ostatné športy */
.hero-logo.no-logo { background: transparent; }
.hero-logo .ini { width: 100%; height: 100%; border-radius: 10px; font-size: 1.4rem; }
.club-note { margin: 0 0 .8rem; }
td.team-cell .ini { width: 1.25rem; height: 1.25rem; font-size: .5rem; }


/* Stav zdrojov */
a.updated { text-decoration: none; cursor: pointer; }
.status-sum { font-weight: 800; padding: .7rem .9rem; border-radius: 8px; margin: .8rem 0; }
.status-sum.ok { background: rgba(34, 197, 94, .12); color: #22c55e; }
.status-sum.bad { background: rgba(255, 0, 70, .12); color: var(--live); }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.status-list li { display: grid; grid-template-columns: .7rem minmax(10rem, 16rem) 1fr auto; gap: .6rem; align-items: center; background: var(--panel); border-radius: 8px; padding: .5rem .8rem; font-size: .85rem; }
.status-list .st-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #22c55e; }
.status-list li.bad .st-dot { background: var(--live); }
.status-list li.bad .st-detail { color: var(--live); }
.status-list .st-detail { color: var(--muted); overflow-wrap: anywhere; }
.status-list .st-ms { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .status-list li { grid-template-columns: .7rem 1fr auto; } .status-list .st-detail { grid-column: 2 / -1; } }


/* Push notifikácie */
.push-on { font-weight: 800; color: #22c55e; margin: 0 0 .4rem; }


/* =========================================================
   TV režim
   ========================================================= */
body.tv-mode .top, body.tv-mode .side, body.tv-mode .right, body.tv-mode .bottom-nav, body.tv-mode .banner-slot { display: none !important; }
body.tv-mode .layout { display: block; max-width: none; padding: 1.2rem 1.6rem; }
body.tv-mode { padding-bottom: 0; }
.tv-bar { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.2rem; }
.tv-brand { font-size: 1.6rem; letter-spacing: .02em; }
.tv-brand b { color: var(--accent); }
.tv-clock { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-left: auto; }
.tv-fresh { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .95rem; }
.tv-fresh .fresh { width: .7rem; height: .7rem; border-radius: 50%; background: var(--muted); }
.tv-fresh.ok .fresh { background: #22c55e; } .tv-fresh.warn .fresh { background: #f59e0b; } .tv-fresh.bad .fresh { background: var(--live); }
.tv-actions { display: flex; gap: .5rem; }
.tv-board { display: grid; gap: 1rem; }
.tv-card { background: var(--bg); border-radius: 16px; padding: 1.1rem 1.4rem; box-shadow: var(--shadow); display: grid; gap: .55rem; border: 2px solid transparent; cursor: pointer; }
.tv-card.live { border-color: var(--live); background: linear-gradient(135deg, rgba(255, 0, 70, .1), var(--bg) 55%); }
.tv-card.fav { border-color: var(--star); }
.tv-league { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: .95rem; letter-spacing: .03em; }
.tv-league .tv-star { margin-left: auto; color: var(--star); font-style: normal; }
.tv-team { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; font-size: 1.7rem; font-weight: 600; }
.tv-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-team b { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 1.6ch; text-align: right; }
.tv-team.win { font-weight: 800; }
.tv-card.live .tv-team b { color: var(--live); }
.tv-logo { width: 2.6rem !important; height: 2.6rem !important; object-fit: contain; }
.tv-team .ini.tv-logo { font-size: 1rem; }
.tv-sub { color: var(--muted); font-size: 1.1rem; }
.tv-state { font-size: 1.15rem; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.tv-state.live { color: var(--live); }
.tv-empty { grid-column: 1 / -1; text-align: center; font-size: 2rem; padding: 4rem 1rem; color: var(--muted); }
.tv-empty small { font-size: 1.1rem; }
.tv-pager { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.tv-pager i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--line); }
.tv-pager i.on { background: var(--accent); }
@media (max-width: 760px) { .tv-team { font-size: 1.2rem; } .tv-team b { font-size: 1.5rem; } .tv-clock { font-size: 1.6rem; } .tv-bar { flex-wrap: wrap; } }


/* Video gólu */
.vid-btn { border: 0; background: var(--accent); color: #fff; border-radius: 50%; width: 1.5rem; height: 1.5rem; display: inline-grid; place-items: center; font-size: .65rem; flex: none; cursor: pointer; }


/* Môj deň */
.my-day { border: 2px solid var(--star); }
.my-day .league-head { background: linear-gradient(90deg, rgba(255, 196, 0, .18), var(--panel-2)); }

/* hlavička: menej miesta pre záložky na stredných obrazovkách */
@media (min-width: 761px) and (max-width: 1450px) { .tab { padding: 0 .55rem; font-size: .74rem; } .search { max-width: 16rem; } .top { gap: .8rem; } }


/* Štatistiky hráčov */
.stats-chips { margin-bottom: .7rem; }
.stats-table td .mini-logo { width: 1rem; height: 1rem; object-fit: contain; vertical-align: middle; margin-right: .35rem; }
.stats-table td.team-cell img.ph { width: 1.8rem; height: 1.8rem; border-radius: 50%; object-fit: cover; background: var(--panel); }


/* Live: tretiny, bliknutie pri góle, hlavička */
.row-periods { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.row.is-live .row-periods { color: var(--text); opacity: .75; }
.row.goal-flash { animation: goalflash 1s ease-in-out 6; }
.row.goal-flash .scores { color: var(--star) !important; }
@keyframes goalflash { 0%, 100% { background: transparent; } 50% { background: rgba(255, 196, 0, .22); } }
.live-head { display: flex; align-items: center; gap: .6rem; background: var(--bg); border: 1px solid var(--live); border-radius: 12px; padding: .6rem .9rem; margin-bottom: .8rem; box-shadow: var(--shadow); }
.live-head b { color: var(--live); letter-spacing: .05em; }
.live-head .hint { margin-left: auto; }

/* TV: šípka na ďalšiu stranu */
.tv-pager { align-items: center; }
.tv-next { margin-left: 1rem; border: 0; background: var(--accent); color: #fff; font-size: 1.8rem; font-weight: 800; width: 3.6rem; height: 3.6rem; border-radius: 50%; cursor: pointer; box-shadow: var(--shadow); }
.tv-next:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }

/* 8coin */
.user-btn.has-coins { display: inline-flex; flex-direction: row; align-items: center; white-space: nowrap; width: auto; padding: 0 .75rem; gap: .4rem; border-radius: 999px; }
.coin-bal { font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--star); }
.coin-bal small { font-size: .6rem; margin-left: .25rem; opacity: .8; }
.btn.mini { padding: .3rem .65rem; font-size: .75rem; }
.coin-card { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.coin-card h3, .coin-card h4 { margin: 0 0 .4rem; font-size: .85rem; }
.coin-card h4 { margin-top: .9rem; color: var(--muted); }
.coin-big { font-size: 1.8rem; font-weight: 800; color: var(--star); font-variant-numeric: tabular-nums; }
.coin-big small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: .3rem 0 .6rem; }

/* tickety (ako na Tipsporte) */
.tk-list { display: grid; gap: .5rem; }
.tk { display: grid; grid-template-columns: 1fr repeat(3, minmax(5.5rem, auto)) 2.2rem; gap: .8rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 6px; padding: .6rem .8rem; }
.tk.won { border-left-color: var(--win); }
.tk.lost { border-left-color: var(--loss); }
.tk.open { border-left-color: var(--star); }
.tk.void { border-left-color: var(--blue, #1660d6); }
.tk-meta { font-size: .72rem; color: var(--muted); }
.tk-meta b { color: var(--text); }
.tk-live { color: var(--live); font-weight: 800; }
.tk-title { font-weight: 800; margin: .1rem 0; }
.tk-sub { font-size: .8rem; color: var(--muted); }
.tk-sub b { color: var(--text); }
.tk-legs { list-style: none; margin: .2rem 0 0; padding: 0; font-size: .78rem; color: var(--muted); display: grid; gap: .1rem; }
.tk-legs b { color: var(--text); }
.tk-legs span { color: var(--star); font-weight: 700; margin-left: .3rem; font-variant-numeric: tabular-nums; }
.tk-col { text-align: left; }
.tk-col small { display: block; color: var(--muted); font-size: .72rem; }
.tk-col b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-ic { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-weight: 800; color: #fff; background: var(--muted); }
.tk.won .tk-ic { background: var(--win); }
.tk.lost .tk-ic { background: var(--loss); }
.tk.open .tk-ic { background: var(--star); color: #000; }
.tk.void .tk-ic { background: var(--blue, #1660d6); }
@media (max-width: 640px) {
  .tk { grid-template-columns: repeat(3, 1fr) 2rem; }
  .tk-main { grid-column: 1 / -1; }
}

/* stávky v detaile zápasu */
.bet-sec { display: grid; gap: .6rem; justify-items: start; }
.bet-sec .tk-list, #bet-panel { width: 100%; }
.bet-open { background: var(--star); color: #000; }
#bet-panel { display: grid; gap: .6rem; }
.bet-bar { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.bet-tab { border: 0; background: var(--panel-2); color: var(--text); border-radius: 6px; padding: .4rem .8rem; font-weight: 700; font-size: .85rem; }
.bet-tab.on { background: var(--blue, #1660d6); color: #fff; }
.bb-toggle { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: var(--panel-2); color: var(--text); border-radius: 999px; padding: .3rem .8rem .3rem .35rem; font-weight: 700; font-size: .85rem; }
.bb-toggle i { width: 1.6rem; height: 1rem; border-radius: 999px; background: var(--muted); position: relative; transition: background .15s; }
.bb-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1rem - 4px); height: calc(1rem - 4px); border-radius: 50%; background: #fff; transition: transform .15s; }
.bb-toggle.on i { background: var(--star); }
.bb-toggle.on i::after { transform: translateX(.6rem); }
.bet-live { color: var(--live); font-weight: 800; font-size: .8rem; margin-left: auto; }
.bet-cats { margin: 0; }
.bet-grp { background: var(--panel); border-radius: 6px; overflow: hidden; }
.bet-grp.open { background: var(--panel-2); }
.bet-grp-h { display: flex; align-items: center; gap: .4rem; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); padding: .75rem .9rem; font-size: .95rem; }
.bet-grp-h span { color: var(--muted); }
.bet-grp-h i { margin-left: auto; font-style: normal; color: var(--muted); transition: transform .15s; }
.bet-grp.open .bet-grp-h i { transform: rotate(180deg); }
.bet-grp-b { padding: 0 .7rem .7rem; display: grid; gap: .6rem; }
.bet-mk-h { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; margin-bottom: .3rem; font-size: .8rem; font-weight: 700; }
.bet-mk-h small { color: var(--muted); font-size: .7rem; font-weight: 400; text-align: right; margin-left: auto; }
.bet-picks { display: grid; gap: .35rem; grid-template-columns: repeat(2, 1fr); }
.bet-picks.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .bet-picks.c3 { grid-template-columns: repeat(2, 1fr); } }
.bet-pick { display: flex; justify-content: space-between; gap: .5rem; align-items: center; text-align: left; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: .5rem .65rem; font-size: .82rem; }
.bet-pick b { color: #5aa9ff; font-variant-numeric: tabular-nums; }
.bet-pick:hover { background: var(--row-hover); }
.bet-pick.on { background: var(--star); color: #000; border-color: var(--star); }
.bet-pick.on b { color: #000; }
.bet-pick.dis { opacity: .35; cursor: not-allowed; }
.bet-slip { display: grid; gap: .5rem; background: var(--panel-2); border: 1px solid var(--star); border-radius: 8px; padding: .8rem; }
.bet-slip h4 { margin: 0; font-size: .9rem; }
.bs-leg { display: flex; gap: .5rem; align-items: center; font-size: .85rem; }
.bs-leg > span { flex: 1; }
.bs-leg button { border: 0; background: transparent; color: var(--muted); }
.bet-form { display: grid; gap: .5rem; }
.bet-stake { display: flex; gap: .4rem; flex-wrap: wrap; }
.bet-stake input { flex: 1 1 8rem; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .5rem .7rem; }
.bet-win b { color: var(--star); }

.tickets-btn { width: auto; padding: 0 .75rem; gap: .35rem; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; }
.tickets-btn[hidden] { display: none; }
.tickets-btn b { background: var(--star); color: #000; border-radius: 999px; font-size: .7rem; min-width: 1.1rem; padding: 0 .3rem; text-align: center; }
.tickets-btn b:empty { display: none; }
@media (max-width: 640px) { .tickets-btn span { display: none; } .tickets-btn { padding: 0 .6rem; } }

.c8 { color: #a855f7; }

.tk.cashed { border-left-color: #a855f7; }
.tk.cashed .tk-ic { background: #a855f7; }
.tk-cash { margin-top: .4rem; }
.tk-legs i { font-style: normal; display: inline-grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%; font-size: .65rem; font-weight: 800; color: #fff; margin-right: .35rem; }
.tk-legs .lg-won { background: var(--win); }
.tk-legs .lg-lost { background: var(--loss); }
.tk-legs .lg-void { background: var(--muted); }
.acca-slip { margin: .8rem 0; }
.bs-leg small { color: var(--muted); }
.board { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .25rem; }
.board li { display: grid; grid-template-columns: 1.8rem 1fr auto auto; gap: .6rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .7rem; font-size: .85rem; }
.board li.me { border-color: var(--star); }
.board .rk { color: var(--muted); font-weight: 800; }
.board .st { color: var(--muted); font-size: .72rem; }
.board b { font-variant-numeric: tabular-nums; }

/* štatistiky pred zápasom, tracker, komunita */
.pv-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; padding: .6rem 1rem; }
.pv-head > div { display: flex; align-items: center; gap: .5rem; }
.pv-head > div:last-child { justify-content: flex-end; }
.pv-head span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.pv-form { display: flex; justify-content: space-between; padding: .3rem 1rem .6rem; }
.pv-scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 1rem .6rem; }
.pv-sc b:first-child { display: block; margin-bottom: .2rem; }
.pv-sc small { color: var(--muted); font-weight: 400; }
@media (max-width: 640px) { .pv-scorers { grid-template-columns: 1fr; } }
.trk { padding: .5rem 1rem 1rem; display: grid; gap: .6rem; }
.trk-rink { position: relative; max-width: 780px; margin: 0 auto; width: 100%; background: radial-gradient(ellipse at center, #1c3340 0%, #0b1a22 100%); border-radius: 10px; padding: .6rem; }
.rink { width: 100%; display: block; }
.trk-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(62%, 440px); background: rgba(40, 48, 54, .88); backdrop-filter: blur(3px); border-radius: 10px; padding: .6rem .8rem; color: #fff; text-align: center; }
.trk-compact .trk-card { position: static; transform: none; width: auto; max-width: 780px; margin: 0 auto .5rem; }
.trk-title { font-weight: 800; font-size: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: .3rem; margin-bottom: .4rem; }
.trk-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: start; }
.trk-side { display: grid; gap: .3rem; justify-items: center; }
.trk-meter { width: .7rem; height: 3rem; background: rgba(255, 255, 255, .18); border-radius: 3px; display: flex; align-items: flex-end; overflow: hidden; }
.trk-meter i { display: block; width: 100%; background: var(--blue, #1660d6); }
.trk-grid .trk-side:last-child .trk-meter i { background: #e67e22; }
.trk-pct b { font-size: 1.3rem; }
.trk-pct small { font-size: .7rem; }
.trk-pct span { display: block; font-size: .65rem; opacity: .8; }
.trk-pos small { display: block; font-size: .65rem; opacity: .8; text-transform: uppercase; margin-bottom: .3rem; }
.trk-pos b { display: inline-block; min-width: 1.6rem; padding: .15rem .35rem; border-radius: 4px; margin: 0 .15rem; }
.trk-pos b.h { background: var(--blue, #1660d6); }
.trk-pos b.a { background: #e67e22; }
.trk-status { text-align: center; font-size: .9rem; display: flex; gap: .5rem; justify-content: center; align-items: center; }
.trk-sc { background: var(--blue, #1660d6); color: #fff; font-weight: 800; padding: .1rem .45rem; border-radius: 4px; }
.trk-sc.live { background: var(--live); }
.trk-legend { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; font-size: .72rem; color: var(--muted); margin-top: .4rem; }
.trk-legend i { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .25rem; }
.trk-counts { display: flex; justify-content: space-between; font-size: .8rem; margin-top: .3rem; color: var(--text); }
.trk-ev { display: flex; gap: .6rem; font-size: .82rem; padding: .25rem .5rem; border-left: 3px solid var(--blue, #1660d6); background: var(--panel); border-radius: 4px; }
.trk-ev.away { border-left-color: #e67e22; }
.trk-ev .t { color: var(--muted); min-width: 4.5rem; font-variant-numeric: tabular-nums; }
.trk-note { text-align: center; }
.com-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 0 1rem; }
@media (max-width: 640px) { .com-grid { grid-template-columns: 1fr; } }
.com-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .7rem; }
.com-card h4 { text-align: center; margin: 0 0 .6rem; font-size: .85rem; }
.com-bars { display: flex; gap: .6rem; justify-content: space-around; align-items: flex-end; }
.com-col { flex: 1; display: grid; gap: .3rem; justify-items: center; text-align: center; font-size: .75rem; }
.com-bar { width: 100%; max-width: 5rem; height: 7rem; display: flex; align-items: flex-end; }
.com-bar i { display: block; width: 100%; background: rgba(230, 126, 34, .35); border: 1px solid #e67e22; border-radius: 4px 4px 0 0; text-align: center; padding-top: .15rem; font-style: normal; }
.com-col:nth-child(2) .com-bar i { background: rgba(22, 96, 214, .35); border-color: var(--blue, #1660d6); }
.com-bar b { font-size: .75rem; }
.com-col .nm { font-weight: 700; }
.com-col small { color: var(--muted); }

.pitch { width: 100%; display: block; }
.badge.R { background: var(--draw); color: #000; }

/* stránka tímu: výsledky ako na Flashscore */
.rs { display: grid; grid-template-columns: 5.2rem 1fr 1.8rem calc(var(--pc, 3) * 1.7rem) 2.2rem; gap: .5rem; align-items: center; padding: .45rem .8rem; border-bottom: 1px solid var(--line); font-size: .85rem; cursor: pointer; }
.rs:hover { background: var(--row-hover); }
.rs-d { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.rs-d small { display: block; font-size: .68rem; }
.rs-team { display: flex; align-items: center; gap: .45rem; min-height: 1.5rem; }
.rs-team img, .rs-team .lg { width: 1.1rem; height: 1.1rem; object-fit: contain; flex: none; }
.rs-team.me span { font-weight: 800; }
.rs-s { display: grid; text-align: center; font-variant-numeric: tabular-nums; }
.rs-s b { min-height: 1.5rem; display: grid; place-items: center; font-weight: 400; color: var(--muted); }
.rs-s b.w { font-weight: 800; color: var(--text); }
.rs-p { display: grid; grid-template-columns: repeat(var(--pc, 3), 1fr); text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-p > div { display: grid; }
.rs-p span { min-height: 1.5rem; display: grid; place-items: center; }
.rs-r { justify-self: end; }
.rs-b { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 4px; color: #fff; font-weight: 800; font-size: .75rem; position: relative; }
.rs-b.V { background: var(--win); }
.rs-b.P { background: var(--loss); }
.rs-b.ot::after { content: ""; position: absolute; right: 0; bottom: 0; border-style: solid; border-width: 0 0 .5rem .5rem; border-color: transparent transparent #f39c12 transparent; }
.rs-odds { grid-template-columns: 5.2rem 1fr auto; }
.rs-od { display: flex; gap: .3rem; }
.rs-od span { border: 1px solid var(--muted); border-radius: 6px; padding: .35rem .6rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3.2rem; text-align: center; }
.rs-od.none { color: var(--muted); font-size: .75rem; }
.rs-note { padding: .5rem .2rem; }
@media (max-width: 640px) { .rs { grid-template-columns: 4rem 1fr 1.6rem calc(var(--pc, 3) * 1.4rem) 2rem; gap: .35rem; padding: .45rem .5rem; } .rs-odds { grid-template-columns: 4rem 1fr auto; } .rs-od span { min-width: 2.6rem; padding: .3rem .4rem; } }

.row-odds .up { color: #3ddc84; }
.row-odds .down { color: #ff6b6b; }
.odd small.mv { display: block; font-size: .65rem; font-weight: 600; opacity: .9; }
.odd small.mv.up { color: #3ddc84; }
.odd small.mv.down { color: #ff6b6b; }

.tk-acts { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.tk-acts .tk-cash { margin-top: 0; }
.rs-b.R { background: var(--draw); color: #000; }

/* karta tipéra (vzhľad wallet karty) */
#card-body { max-width: 420px; margin: 1rem auto; padding: 0 1rem 2rem; display: grid; gap: 1rem; }
.wcard { aspect-ratio: 1.586; border-radius: 20px; padding: 1.2rem 1.3rem; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(168, 85, 247, .55), transparent 55%), linear-gradient(135deg, #04323f 0%, #001e28 55%, #2a0f45 100%); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .1); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.wcard::after { content: "8"; position: absolute; right: -1rem; bottom: -3.5rem; font-size: 12rem; font-weight: 900; color: rgba(255, 255, 255, .05); line-height: 1; pointer-events: none; }
.wc-top { display: flex; justify-content: space-between; align-items: center; }
.wc-brand { font-size: 1.3rem; font-weight: 800; letter-spacing: .03em; }
.wc-brand b { font-weight: 400; }
.wc-kind { font-size: .65rem; letter-spacing: .14em; opacity: .75; font-weight: 700; }
.wc-label { margin-top: auto; font-size: .7rem; opacity: .7; text-transform: uppercase; letter-spacing: .1em; }
.wc-balance { font-size: 2.8rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.05; }
.wc-balance small { font-size: 1.1rem; margin-left: .35rem; color: #c58bff; }
.wc-eur { font-size: .85rem; opacity: .7; margin-bottom: .8rem; }
.wc-row { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: .5rem; font-size: .8rem; }
.wc-row span { display: block; font-size: .6rem; opacity: .65; text-transform: uppercase; letter-spacing: .08em; }
.wc-row b { font-variant-numeric: tabular-nums; }
.wcard-off { aspect-ratio: auto; gap: .6rem; }
.wc-info .info-row { padding-left: 0; padding-right: 0; }
.wc-steps { padding-left: 1.1rem; margin: .3rem 0 .8rem; font-size: .85rem; color: var(--muted); display: grid; gap: .3rem; }
.wc-steps b { color: var(--text); }

.tk.tk-go, .tk-legs li.tk-go { cursor: pointer; }
.tk.tk-go:hover { border-color: var(--accent); background: var(--row-hover); }
.tk-legs li.tk-go:hover { color: var(--text); text-decoration: underline; }

/* bannery: vždy viditeľné – v bočných paneloch (široké obrazovky) alebo v pruhu pod obsahom (užšie) */
.right .banner-slot { max-height: calc(100vh - 9.5rem); overflow-y: auto; scrollbar-width: none; }
.right .banner-slot::-webkit-scrollbar { display: none; }
.banner-rail { display: none; margin: 1.2rem 0 .6rem; }
.rail-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; margin-bottom: .5rem; }
.rail-row { display: none; flex-wrap: wrap; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; }
.rail-row:empty { display: none !important; }
.rail-row .banner { flex: 0 0 auto; height: clamp(7rem, 24vw, 12rem); margin: 0; }
.rail-row .banner img { height: 100%; width: auto; max-width: 100%; }
@media (max-width: 1499px) { .banner-rail { display: block; } .rail-right { display: flex; } }
@media (max-width: 900px) { .rail-side { display: flex; } }
.banner-top { max-width: 100%; }

/* užšie obrazovky: ovládacie prvky sa zalamujú a riadky výsledkov sa zmenšia */
@media (max-width: 640px) {
  .view-opts { flex-wrap: wrap; justify-content: flex-end; }
  .toolbar-row { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  #vo-sort { display: none; }
  .rs { grid-template-columns: 3.3rem minmax(0, 1fr) 1.3rem calc(var(--pc, 3) * 1.15rem) 1.7rem; gap: .25rem; padding: .45rem .4rem; font-size: .8rem; }
  .rs-d { font-size: .68rem; }
  .rs-b { width: 1.35rem; height: 1.35rem; }
  .hero-main h1 { font-size: 1.05rem; }
}

@media (max-width: 760px) { .toolbar-row > .filters, .toolbar-row > .view-opts { max-width: 100%; width: 100%; } .view-opts { flex-wrap: wrap; } }

/* stránka Bannery */
#banners-body { display: grid; gap: .8rem; }
.bn-head h1 { margin: 0 0 .3rem; font-size: 1.3rem; }
.bn-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); align-items: start; }
.bn-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; }
.bn-pic { display: grid; place-items: center; background: var(--bg); }
.bn-pic img { width: 100%; height: auto; max-height: 24rem; object-fit: contain; display: block; }
.bn-info { padding: .7rem .9rem; display: grid; gap: .3rem; justify-items: start; }
.bn-info small { color: var(--muted); }
.rail-title a { margin-left: .6rem; color: var(--accent); text-transform: none; letter-spacing: 0; font-weight: 700; }
