: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: #fff; 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); }
.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: .35rem .6rem 0; 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: #00141e; 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: #fff; }
  .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) {
  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); }
