/* Inter (OFL) – text stránky, lokálne (assets/fonts/inter-latin.woff, latinka + stredoeurópske znaky) */
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin.woff') format('woff'); font-weight: 400 800; font-style: normal; font-display: swap; }
/* =====================================================================
 * Match Day – vzhľad (Bootstrap 5.3 + vlastné premenné, svetlá/tmavá téma)
 * ===================================================================== */
/* Jediné písmo nadpisov aj obrázkov – Barlow Condensed (OFL, assets/fonts) */
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-semibold.ttf") format("truetype"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-extrabold.ttf") format("truetype"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-semibolditalic.ttf") format("truetype"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-blackitalic.ttf") format("truetype"); font-weight: 700 900; font-style: italic; font-display: swap; }

:root,
[data-bs-theme="light"] {
    --md-accent: #e63946;
    --md-accent-rgb: 230, 57, 70;
    --md-accent-2: #f4b400;
    --md-pitch: #0b2a1a;
    --md-pitch-2: #14532d;
    --md-bg: #f3f5f2;
    --md-surface: #ffffff;
    --md-surface-2: #f7f8f6;
    --md-border: rgba(15, 35, 25, .09);
    --md-shadow: 0 1px 2px rgba(10, 30, 20, .04), 0 8px 24px -12px rgba(10, 30, 20, .18);
    --md-muted: #66736b;
    --md-win-bg: rgba(20, 160, 80, .10);
    --md-win: #138a45;

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-bg: var(--md-bg);
    --bs-primary: var(--md-accent);
    --bs-primary-rgb: var(--md-accent-rgb);
    --bs-link-color: var(--md-accent);
    --bs-link-color-rgb: var(--md-accent-rgb);
    --bs-link-hover-color: #c22c38;
    --bs-border-radius: .65rem;
    --bs-border-radius-lg: 1rem;
    --bs-border-radius-xl: 1.35rem;
    --bs-focus-ring-color: rgba(var(--md-accent-rgb), .25);
}

[data-bs-theme="dark"] {
    --md-bg: #0b120e;
    --md-surface: #121b16;
    --md-surface-2: #17221c;
    --md-border: rgba(255, 255, 255, .08);
    --md-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --md-muted: #93a39a;
    --md-win-bg: rgba(52, 211, 120, .12);
    --md-win: #4ade80;
    --bs-body-bg: var(--md-bg);
    --bs-body-color: #e6ece8;
    --bs-primary: #ff5a66;
    --bs-primary-rgb: 255, 90, 102;
    --bs-link-color: #ff6b76;
    --bs-link-color-rgb: 255, 107, 118;
    --bs-link-hover-color: #ff8a92;
    --bs-secondary-bg: #17221c;
    --bs-tertiary-bg: #141e18;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--md-bg);
    -webkit-font-smoothing: antialiased;
}
.app-main { flex: 1 0 auto; }

/* ---------- Tlačidlá v akcentovej farbe ---------- */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #cf2f3c;
    --bs-btn-hover-border-color: #cf2f3c;
    --bs-btn-active-bg: #b82632;
    --bs-btn-active-border-color: #b82632;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
    font-weight: 600;
}
.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}
.btn { font-weight: 500; }
.btn-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: inherit;
    border: 1px solid var(--md-border);
    background: var(--md-surface);
}
.btn-icon:hover { background: var(--md-surface-2); color: inherit; }
.theme-icon-dark { display: none; }
[data-bs-theme="dark"] .theme-icon-dark { display: inline; }
[data-bs-theme="dark"] .theme-icon-light { display: none; }

.form-control:focus, .form-select:focus {
    border-color: rgba(var(--md-accent-rgb), .5);
    box-shadow: 0 0 0 .25rem rgba(var(--md-accent-rgb), .15);
}
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--bs-primary); }

/* ---------- Navbar ---------- */
.app-navbar {
    background: color-mix(in srgb, var(--md-surface) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--md-border);
    padding-block: .6rem;
}
.brand-mark {
    width: 36px; height: 36px;
    border-radius: 9px;
    box-shadow: 0 6px 16px -6px rgba(var(--md-accent-rgb), .7);
}
.brand-text {
    font-family: "Barlow Condensed", "Inter", sans-serif;
    font-weight: 900; font-style: italic; text-transform: uppercase;
    font-size: 1.45rem;
    letter-spacing: .01em;
    color: var(--bs-body-color);
}
.brand-text span { color: var(--bs-primary); }
.app-navbar .nav-link {
    font-weight: 500;
    border-radius: 999px;
    padding: .45rem .95rem !important;
    color: var(--md-muted);
}
.app-navbar .nav-link:hover { color: var(--bs-body-color); background: var(--md-surface-2); }
.app-navbar .nav-link.active { color: var(--bs-primary); background: rgba(var(--md-accent-rgb), .1); }
.app-navbar .nav-link { display: flex; align-items: center; gap: .45rem; }
.app-navbar .nav-link .bi { font-size: 1rem; }
.app-navbar .nav-link:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.app-dropdown {
    --bs-dropdown-bg: var(--md-surface);
    --bs-dropdown-border-color: var(--md-border);
    --bs-dropdown-link-active-bg: var(--bs-primary);
    border-radius: .9rem; padding: .4rem; min-width: 14rem;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
}
.app-dropdown .dropdown-item { display: flex; align-items: center; gap: .6rem; border-radius: .6rem; padding: .5rem .75rem; font-weight: 500; }
.app-dropdown .dropdown-item .bi { color: var(--md-muted); }
.app-dropdown .dropdown-item.text-danger .bi { color: inherit; }

/* mobilné menu – rozbalený panel pod lištou */
@media (max-width: 767.98px) {
    .app-navbar .navbar-collapse { order: 3; width: 100%; }
    .app-navbar .navbar-nav {
        margin-top: .6rem; padding: .4rem;
        border: 1px solid var(--md-border); border-radius: 1rem;
        background: var(--md-surface);
        box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .35);
    }
    .app-navbar .nav-link { border-radius: .7rem; padding: .7rem .9rem !important; font-size: 1rem; }
    .app-navbar .dropdown-menu { position: static !important; transform: none !important; box-shadow: none; border: 0; padding: 0 0 .3rem 1.6rem; background: transparent; }
    .navbar-toggler .bi-list { transition: transform .2s; }
    .navbar-toggler[aria-expanded="true"] .bi-list { transform: rotate(90deg); }
}

.footer-link { color: var(--md-muted); text-decoration: none; }
.footer-link:hover { color: var(--bs-primary); text-decoration: underline; }

/* ---------- Správca ---------- */
.admin-link { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.admin-link:hover { transform: translateY(-2px); color: inherit; }
.admin-link > .bi:first-child { font-size: 1.6rem; color: var(--bs-primary); flex: 0 0 auto; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(244, 180, 0, .18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(230, 57, 70, .28), transparent 60%),
        linear-gradient(160deg, var(--md-pitch-2), var(--md-pitch) 65%);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(6rem, 10vw, 8rem);
}
.hero::after {
    /* jemné čiary ihriska */
    content: "";
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 80px, transparent 80px 160px);
    pointer-events: none;
}
.hero .container-xxl { position: relative; z-index: 1; }
.hero h1 {
    font-family: "Barlow Condensed", "Inter", sans-serif;
    font-size: clamp(2.3rem, 6.4vw, 4.4rem);
    font-weight: 900; font-style: italic;
    line-height: .95;
    letter-spacing: 0;
    text-shadow: 0 4px 0 rgba(230, 57, 70, .85);
}
.hero h1 .accent { color: #ffd166; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.hero p.lead { color: rgba(255, 255, 255, .78); max-width: 38rem; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .8rem; font-weight: 600;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
}
.hero-sm { padding-bottom: clamp(4.5rem, 8vw, 6rem); }
.hero-sm h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }

.overlap { margin-top: clamp(-5rem, -8vw, -3.5rem); position: relative; z-index: 2; }

/* ---------- Karty ---------- */
.card-app {
    background: var(--md-surface);
    border: 1px solid var(--md-border);
    border-radius: var(--bs-border-radius-xl);
    box-shadow: var(--md-shadow);
}
.card-app > .card-header {
    background: transparent;
    border-bottom: 1px solid var(--md-border);
    padding: 1rem 1.25rem;
}
.card-app .card-body { padding: 1.25rem; }
@media (min-width: 768px) {
    .card-app .card-body { padding: 1.75rem; }
}
.section-title { font-weight: 700; letter-spacing: -.01em; }
.text-muted-2 { color: var(--md-muted) !important; }

.feature {
    display: flex; gap: .85rem; align-items: flex-start;
}
.feature-icon {
    flex: 0 0 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(var(--md-accent-rgb), .1);
    color: var(--bs-primary);
    font-size: 1.2rem;
}

/* Posledné hľadania */
.recent-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .4rem .45rem .4rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--md-border);
    background: var(--md-surface-2);
    font-size: .875rem;
    color: inherit;
    text-decoration: none;
    max-width: 100%;
}
.recent-chip:hover { border-color: rgba(var(--md-accent-rgb), .45); color: inherit; }
.recent-chip .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-chip .remove {
    border: 0; background: transparent; color: var(--md-muted);
    width: 22px; height: 22px; border-radius: 50%; line-height: 1; padding: 0;
}
.recent-chip .remove:hover { background: rgba(var(--md-accent-rgb), .12); color: var(--bs-primary); }

/* ---------- select2 doladenie ---------- */
.select2-container--bootstrap-5 .select2-selection { min-height: calc(1.5em + 1rem + 2px); padding: .5rem 1rem; font-size: 1.05rem; border-radius: var(--bs-border-radius); background-color: var(--bs-body-bg); }
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { color: var(--bs-body-color); }
.select2-container--bootstrap-5 .select2-dropdown { background: var(--md-surface); border-color: var(--md-border); color: var(--bs-body-color); }
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field { background: var(--bs-body-bg); color: var(--bs-body-color); }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted { background: rgba(var(--md-accent-rgb), .12); color: var(--bs-body-color); }
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection { border-color: rgba(var(--md-accent-rgb), .5); box-shadow: 0 0 0 .25rem rgba(var(--md-accent-rgb), .15); }

/* ---------- Zoznam zápasov ---------- */
.team-card { overflow: hidden; }
.team-card .card-header { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.team-card .team-title, .card-app .team-title { font-weight: 700; font-size: 1.1rem; margin: 0; }

.filter-pills .btn { border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; }

.match-list { list-style: none; margin: 0; padding: 0; }
.match {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--md-border);
    transition: background .15s;
}
.match:first-child { border-top: 0; }
.match:hover { background: var(--md-surface-2); }
.match-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-size: .82rem; color: var(--md-muted); }
.match-meta .round { font-weight: 600; color: var(--bs-body-color); }
.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .75rem;
}
.match-team { display: flex; align-items: center; gap: .6rem; min-width: 0; font-weight: 600; }
.match-team.home { justify-content: flex-end; text-align: right; }
.match-team .name { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.match-team.winner .name { color: var(--md-win); }
.team-logo {
    flex: 0 0 38px; width: 38px; height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 3px;
    border: 1px solid var(--md-border);
}
.team-logo.empty { display: grid; place-items: center; color: var(--md-muted); background: var(--md-surface-2); }
.match-score {
    min-width: 76px;
    text-align: center;
    font-weight: 800;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    padding: .35rem .7rem;
    border-radius: .6rem;
    background: var(--md-pitch);
    color: #fff;
    letter-spacing: .04em;
}
a.match-score { text-decoration: none; }
a.match-score:hover { color: #fff; filter: brightness(1.25); }
.match-score.upcoming { background: var(--md-surface-2); color: var(--bs-body-color); font-size: .95rem; font-weight: 700; border: 1px solid var(--md-border); }
.match-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.match-actions .btn { border-radius: 999px; font-size: .82rem; padding: .35rem .8rem; }

@media (max-width: 575.98px) {
    .match-team { flex-direction: column-reverse; gap: .35rem; text-align: center !important; font-size: .9rem; }
    .match-team.away { flex-direction: column; }
    .match-team.home { justify-content: center; }
    .match-actions .btn { flex: 1 1 auto; }
}
@media (min-width: 992px) {
    .match { grid-template-columns: 200px 1fr auto; align-items: center; gap: 1.25rem; }
    .match-meta { flex-direction: column; align-items: flex-start; gap: .15rem; }
    .match-actions { justify-content: flex-end; flex-wrap: nowrap; }
}
.match[hidden] { display: none; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--md-muted); }
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: .75rem; opacity: .6; }

/* ---------- Generátor ---------- */
.preview-frame {
    position: relative;
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
    background:
        conic-gradient(var(--md-surface-2) 25%, var(--md-surface) 0 50%, var(--md-surface-2) 0 75%, var(--md-surface) 0) 0 0 / 24px 24px;
    border: 1px solid var(--md-border);
}
.preview-frame canvas { display: block; width: 100%; height: auto; }
.preview-frame.is-story { max-width: 440px; margin: 0 auto; }
.post-text { font-size: .85rem; line-height: 1.45; resize: vertical; }
.preview-loading {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--md-surface) 70%, transparent);
    backdrop-filter: blur(4px);
}
.template-switch .btn { display: flex; align-items: center; justify-content: center; gap: .45rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .9rem; }
.kv dt { color: var(--md-muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Editor šablón ---------- */
.editor-wrap { --panel-w: 380px; }
.stage-card { position: sticky; top: 84px; }
.stage-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: .65rem .85rem;
    border-bottom: 1px solid var(--md-border);
}
.stage-toolbar .btn { padding: .3rem .6rem; }
.stage-outer { padding: clamp(.5rem, 2vw, 1.25rem); }
.stage {
    position: relative;
    margin: 0 auto;
    user-select: none;
    touch-action: none;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px -18px rgba(0,0,0,.6);
}
.stage canvas { display: block; width: 100%; height: 100%; }
.stage .overlay { position: absolute; inset: 0; }
.stage.show-grid .overlay {
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: var(--grid-size, 50px) var(--grid-size, 50px);
}
.el-box {
    position: absolute;
    border: 1.5px dashed rgba(255, 255, 255, .45);
    border-radius: 4px;
    cursor: grab;
    transition: border-color .12s, background .12s;
}
.el-box:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.el-box.selected {
    border: 2px solid var(--md-accent-2);
    background: rgba(244, 180, 0, .08);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .0);
}
.el-box.dragging { cursor: grabbing; }
.el-box .el-tag {
    position: absolute; left: -2px; top: -22px;
    font-size: 11px; font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px 4px 4px 0;
    color: #111; background: var(--md-accent-2);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}
.el-box.selected .el-tag, .el-box:hover .el-tag { opacity: 1; }
.el-box .el-anchor {
    position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; background: var(--md-accent-2); border: 2px solid #111;
    pointer-events: none; display: none;
}
.el-box.selected .el-anchor { display: block; }
.el-box .el-resize {
    position: absolute; right: -7px; bottom: -7px;
    width: 14px; height: 14px;
    border-radius: 3px;
    background: #fff; border: 2px solid var(--md-accent-2);
    cursor: nwse-resize; display: none;
}
.el-box.selected .el-resize { display: block; }
.maxy-line {
    position: absolute; height: 0;
    border-top: 2px dashed rgba(255, 90, 102, .9);
    pointer-events: none;
}
.maxy-line span {
    position: absolute; right: 0; top: -20px;
    font-size: 10px; font-weight: 700; color: #fff;
    background: rgba(230, 57, 70, .9); padding: 1px 5px; border-radius: 3px;
}
.guide { position: absolute; background: #22d3ee; pointer-events: none; display: none; z-index: 5; }
.guide.v { width: 1px; top: 0; bottom: 0; }
.guide.h { height: 1px; left: 0; right: 0; }

.layer-list .list-group-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem .75rem;
    cursor: pointer;
    background: transparent;
    border-color: var(--md-border);
}
.layer-list .list-group-item:hover { background: var(--md-surface-2); }
.layer-list .list-group-item.active {
    background: rgba(var(--md-accent-rgb), .1);
    color: var(--bs-body-color);
    border-color: var(--md-border);
    box-shadow: inset 3px 0 0 var(--bs-primary);
}
.layer-list .layer-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--md-surface-2); color: var(--md-muted); flex: 0 0 28px; }
.layer-list .layer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 500; }
.layer-list .layer-btn { border: 0; background: transparent; color: var(--md-muted); width: 28px; height: 28px; border-radius: 6px; padding: 0; }
.layer-list .layer-btn:hover { background: var(--md-surface-2); color: var(--bs-body-color); }
.layer-list .is-hidden .layer-name { opacity: .45; text-decoration: line-through; }

.props .form-label { font-size: .78rem; font-weight: 600; color: var(--md-muted); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .03em; }
.props .form-control, .props .form-select { font-size: .9rem; }
.props .form-control-color { width: 100%; height: 38px; padding: .25rem; }
.props-section { border-top: 1px dashed var(--md-border); padding-top: .9rem; margin-top: .9rem; }
.props-section h6 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--md-muted); }
.token-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.token-list .badge { cursor: pointer; font-weight: 500; background: var(--md-surface-2); color: var(--bs-body-color); border: 1px solid var(--md-border); }
.token-list .badge:hover { border-color: var(--bs-primary); color: var(--bs-primary); }

.bg-thumb {
    width: 100%; aspect-ratio: 1 / 1;
    border-radius: .75rem;
    background: var(--md-surface-2) center / cover no-repeat;
    border: 1px solid var(--md-border);
    position: relative;
}
.bg-drop {
    border: 2px dashed var(--md-border);
    border-radius: .85rem;
    padding: 1rem;
    text-align: center;
    color: var(--md-muted);
    transition: border-color .15s, background .15s;
    cursor: pointer;
}
.bg-drop.drag { border-color: var(--bs-primary); background: rgba(var(--md-accent-rgb), .06); }

.nav-templates { gap: .4rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-templates .nav-link {
    white-space: nowrap; border-radius: 999px; font-weight: 600;
    color: var(--bs-body-color); background: var(--md-surface); border: 1px solid var(--md-border);
}
.nav-templates .nav-link.active { color: #fff; border-color: transparent; }

.save-indicator { font-size: .8rem; color: var(--md-muted); display: inline-flex; align-items: center; gap: .3rem; }
.save-indicator.saved i { color: #4ade80; }
.hero .nav-templates .nav-link { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.hero .nav-templates .nav-link.active { background: var(--bs-primary); }

/* ---------- Footer ---------- */
.app-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--md-border);
    background: var(--md-surface);
    font-size: .9rem;
}

/* ---------- Toast ---------- */
.app-toast { background: var(--md-surface); color: var(--bs-body-color); box-shadow: var(--md-shadow); border: 1px solid var(--md-border) !important; }
.app-toast-success i { color: var(--md-win); }
.app-toast-danger i { color: var(--bs-primary); }
.app-toast-info i { color: #0dcaf0; }

/* ---------- Písma ---------- */
.font-select { font-size: 1rem !important; }
.font-showcase {
    max-height: 420px; overflow-y: auto;
    border: 1px solid var(--md-border); border-radius: .85rem;
    padding: .5rem;
    background: var(--md-surface-2);
}
.font-group-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--md-muted); padding: .6rem .5rem .3rem; }
.font-item {
    display: flex; flex-direction: column; align-items: flex-start; width: 100%;
    gap: .1rem; padding: .55rem .7rem; margin-bottom: .3rem;
    border: 1px solid transparent; border-radius: .6rem;
    background: var(--md-surface); color: inherit; text-align: left;
}
.font-item:hover { border-color: rgba(var(--md-accent-rgb), .4); }
.font-item.active { border-color: var(--bs-primary); box-shadow: inset 3px 0 0 var(--bs-primary); }
.font-item .font-sample { font-size: 1.3rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.font-item .font-name { font-size: .75rem; color: var(--md-muted); }

/* ---------- Späť hore ---------- */
.back-to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    color: #fff; font-size: 1.25rem;
    background: linear-gradient(135deg, var(--md-accent), #a5162a);
    box-shadow: 0 10px 24px -8px rgba(var(--md-accent-rgb), .8);
    opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid rgba(var(--md-accent-rgb), .4); outline-offset: 3px; }
@media (max-width: 575.98px) { .back-to-top { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 44px; height: 44px; } }

/* ---------- Inštalácia PWA ---------- */
.install-btn { white-space: nowrap; }
@media (display-mode: standalone) { .install-btn { display: none !important; } }

/* ---------- Uloženie na server ---------- */
.server-save { border: 1px solid var(--md-border); border-radius: .9rem; padding: .85rem 1rem; background: var(--md-surface-2); }
.server-save-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--md-surface); color: var(--md-muted); }
.server-save-icon.is-ok { color: var(--md-win); background: var(--md-win-bg); }
.server-save-icon.is-err { color: var(--bs-primary); background: rgba(var(--md-accent-rgb), .1); }
.server-save-icon.is-busy { color: var(--bs-primary); }
.min-w-0 { min-width: 0; }

/* ---------- Galéria ---------- */
.gallery-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.gallery-card:hover { transform: translateY(-2px); }
.gallery-thumb { position: relative; display: block; background: var(--md-surface-2); aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumb .badge { position: absolute; left: .6rem; top: .6rem; }
.gallery-card .card-body { padding: .9rem 1rem !important; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.gallery-card .g-title { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.gallery-card .g-meta { font-size: .78rem; color: var(--md-muted); }
.gallery-card .g-actions { display: flex; gap: .35rem; margin-top: auto; padding-top: .6rem; }
.gallery-card .g-actions .btn { flex: 1; padding: .3rem .4rem; font-size: .8rem; }
.gallery-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.gallery-toolbar-right { display: flex; gap: .5rem; flex: 1 1 320px; max-width: 520px; }
.gallery-toolbar-right .input-group { flex: 1 1 auto; }
.gallery-toolbar-right .form-select { flex: 0 0 auto; width: auto; }
@media (max-width: 575.98px) { .gallery-toolbar-right { flex-direction: column; max-width: none; } .gallery-toolbar-right .form-select { width: 100%; } }

button.gallery-thumb { width: 100%; border: 0; padding: 0; cursor: zoom-in; }
.gallery-thumb:focus-visible { outline: 3px solid var(--bs-primary); outline-offset: -3px; }
.gallery-thumb .g-hidden-badge { left: auto; right: .6rem; }
.gallery-zoom {
    position: absolute; right: .6rem; bottom: .6rem; width: 34px; height: 34px;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s;
}
.gallery-thumb:hover .gallery-zoom, .gallery-thumb:focus-visible .gallery-zoom { opacity: 1; transform: none; }
@media (hover: none) { .gallery-zoom { display: none; } }
.gallery-card.is-hidden .gallery-thumb img { opacity: .55; }

/* ---------- Lightbox ---------- */
.lightbox .modal-content { background: var(--md-surface); border: 1px solid var(--md-border); border-radius: 1.1rem; overflow: hidden; }
.lightbox .modal-header, .lightbox .modal-footer { border-color: var(--md-border); }
.lightbox-stage {
    position: relative; display: grid; place-items: center; padding: 1rem 3.5rem;
    min-height: 50vh; background: #0b0f0d; user-select: none;
}
.lightbox-stage img { max-width: 100%; max-height: 72vh; object-fit: contain; opacity: 0; transition: opacity .2s; border-radius: .35rem; }
.lightbox-stage img.is-loaded { opacity: 1; }
.lightbox-spin { position: absolute; }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.3rem;
    background: rgba(255, 255, 255, .12); color: #fff; transition: background .15s;
}
.lightbox-nav:hover, .lightbox-nav:focus-visible { background: rgba(255, 255, 255, .25); }
.lightbox-nav.prev { left: .6rem; }
.lightbox-nav.next { right: .6rem; }
.lightbox-pos { position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%); font-size: .75rem; color: rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .4); padding: .1rem .6rem; border-radius: 999px; }
@media (max-width: 767.98px) {
    .lightbox-stage { padding: .5rem; min-height: 0; flex: 1; }
    .lightbox-stage img { max-height: calc(100vh - 230px); }
    .lightbox-nav { top: auto; bottom: .6rem; transform: none; width: 40px; height: 40px; }
    .lightbox .modal-footer .btn { padding-inline: .7rem; }
}

/* ---------- Tajný log ---------- */
.stat-tile { border: 1px solid var(--md-border); border-radius: .9rem; padding: .85rem 1rem; background: var(--md-surface-2); height: 100%; }
.stat-num { font-size: 1.8rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat-label { font-size: .78rem; color: var(--md-muted); margin-top: .25rem; }
.log-list .accordion-button { padding: .8rem 1.1rem; background: var(--md-surface); color: var(--bs-body-color); box-shadow: none; }
.log-list .accordion-button:not(.collapsed) { background: var(--md-surface-2); }
.log-list .accordion-item { background: var(--md-surface); border-color: var(--md-border); }
.log-row { display: grid; grid-template-columns: auto auto 1fr; gap: .3rem .75rem; align-items: center; width: 100%; padding-right: .75rem; }
.log-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .88rem; }
.log-type { font-size: .72rem; }
.log-match { font-weight: 600; font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-who { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8rem; color: var(--md-muted); }
.log-pre { margin: 0; padding: 1rem 1.25rem; font-size: .78rem; line-height: 1.55; background: #0d1410; color: #d5e2da; white-space: pre-wrap; word-break: break-word; max-height: 520px; overflow: auto; }
@media (min-width: 992px) { .log-row { grid-template-columns: 110px 90px minmax(0, 1fr) auto; } .log-who { grid-column: auto; justify-content: flex-end; } }

/* záložky panela editora v jednom riadku */
.editor-wrap .card-header-tabs { flex-wrap: nowrap; }
.editor-wrap .card-header-tabs .nav-link { padding: .5rem .7rem; font-size: .9rem; white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .editor-wrap .card-header-tabs .nav-link .bi { display: none; } }

/* ---------- Návod ---------- */
.guide-toc-card { position: sticky; top: 84px; }
@media (max-width: 991.98px) { .guide-toc-card { position: static; } }
.guide-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.guide-toc a {
    display: flex; align-items: center; gap: .55rem; padding: .42rem .65rem; border-radius: .6rem;
    color: var(--md-muted); text-decoration: none; font-size: .88rem; font-weight: 500; line-height: 1.25;
}
.guide-toc a .bi { flex: 0 0 auto; opacity: .8; }
.guide-toc a:hover { color: var(--bs-body-color); background: var(--md-surface-2); }
.guide-toc a.active { color: var(--bs-primary); background: rgba(var(--md-accent-rgb), .1); }
@media (min-width: 992px) { #guideToc { max-height: calc(100vh - 130px); overflow-y: auto; } }
.guide-toc-toggle {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    border: 0; background: none; padding: .25rem .25rem; font-weight: 600; color: var(--bs-body-color);
}
.guide-toc-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.guide-toc-toggle + #guideToc.show, .guide-toc-toggle + #guideToc.collapsing { margin-top: .6rem; }

.howto .card-body { padding: clamp(1.1rem, 3vw, 2.25rem) !important; }
.howto section { scroll-margin-top: 90px; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--md-border); }
.howto section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.howto h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.howto h2 > .bi {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem;
    color: var(--bs-primary); background: rgba(var(--md-accent-rgb), .1);
}
.howto h3 { font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 .7rem; }
.howto p, .howto li, .howto dd { line-height: 1.65; }
.howto code { font-size: .86em; padding: .1em .35em; border-radius: .35rem; background: var(--md-surface-2); color: inherit; }
.howto kbd { font-size: .8em; padding: .15em .45em; border-radius: .35rem; background: var(--md-surface-2); color: var(--bs-body-color); border: 1px solid var(--md-border); box-shadow: 0 1px 0 var(--md-border); }

.guide-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.guide-steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; min-height: 1.9rem; }
.guide-steps > li::before {
    content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: var(--bs-primary);
}
.guide-list { padding-left: 1.2rem; margin-bottom: 1rem; }
.guide-list li { margin-bottom: .4rem; }
.guide-list li::marker { color: var(--bs-primary); }

.guide-dl { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: .7rem 1.2rem; margin-bottom: 1rem; }
.guide-dl dt { font-weight: 600; display: flex; gap: .5rem; align-items: baseline; }
.guide-dl dt .bi { color: var(--bs-primary); }
.guide-dl dd { margin: 0; color: var(--md-muted); }
@media (max-width: 575.98px) { .guide-dl { grid-template-columns: 1fr; gap: .2rem; } .guide-dl dd { margin-bottom: .6rem; } }

.guide-note, .guide-tip, .guide-warn {
    display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: .9rem; margin: 1.2rem 0; font-size: .93rem;
    border: 1px solid var(--md-border); background: var(--md-surface-2);
}
.guide-note > .bi, .guide-tip > .bi, .guide-warn > .bi { font-size: 1.15rem; line-height: 1.4; flex: 0 0 auto; }
.guide-note > .bi { color: #0ea5e9; }
.guide-tip { background: rgba(244, 180, 0, .09); border-color: rgba(244, 180, 0, .35); }
.guide-tip > .bi { color: #e0a300; }
.guide-warn { background: rgba(var(--md-accent-rgb), .07); border-color: rgba(var(--md-accent-rgb), .3); }
.guide-warn > .bi { color: var(--bs-primary); }

.guide-card { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--md-border); border-radius: .9rem; background: var(--md-surface-2); font-size: .92rem; height: 100%; }
.guide-card > .bi { font-size: 1.35rem; color: var(--bs-primary); flex: 0 0 auto; }
.guide-card span { color: var(--md-muted); }

.guide-table { font-size: .9rem; --bs-table-bg: transparent; border-color: var(--md-border); }
.guide-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--md-muted); font-weight: 600; }
.guide-table td:first-child { white-space: nowrap; }

.guide-shot { margin: 1.25rem 0 1.5rem; }
.guide-shot-btn {
    display: block; width: 100%; padding: 0; border: 1px solid var(--md-border); border-radius: .9rem; overflow: hidden;
    background: var(--md-surface-2); position: relative; cursor: zoom-in;
    box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .45); transition: transform .15s, box-shadow .15s;
}
.guide-shot-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -26px rgba(0, 0, 0, .5); }
.guide-shot-btn:focus-visible { outline: 3px solid var(--bs-primary); outline-offset: 2px; }
.guide-shot img { display: block; width: 100%; height: auto; }
.guide-zoom {
    position: absolute; right: .6rem; top: .6rem; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .15s;
}
.guide-shot-btn:hover .guide-zoom, .guide-shot-btn:focus-visible .guide-zoom { opacity: 1; }
@media (hover: none) { .guide-zoom { opacity: .85; } }
.guide-shot figcaption { margin-top: .55rem; font-size: .85rem; color: var(--md-muted); text-align: center; }
.guide-shot-narrow { max-width: 460px; margin-inline: auto; }
.guide-shot-tile { margin: 0; height: 100%; }
.guide-shot-tile figcaption { text-align: left; }
.guide-shot-phone { margin: 0; }
.guide-shot-phone .guide-shot-btn { border-radius: 1.4rem; border-width: 4px; border-color: #1f2937; }

.guide-faq .accordion-item { background: var(--md-surface); border-color: var(--md-border); }
.guide-faq .accordion-button { font-weight: 600; background: var(--md-surface); color: var(--bs-body-color); box-shadow: none; }
.guide-faq .accordion-button:not(.collapsed) { background: var(--md-surface-2); color: var(--bs-primary); }
.guide-faq .accordion-body { color: var(--md-muted); line-height: 1.65; }

.guide-zoom-content { background: var(--md-surface); border: 1px solid var(--md-border); border-radius: 1rem; }
#guideZoomImg { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: .5rem; }

/* ---------- Hráči v generátore ---------- */
.players-preview { max-height: 280px; overflow-y: auto; border: 1px solid var(--md-border); border-radius: .8rem; padding: .35rem .75rem .5rem; background: var(--md-surface-2); }
.players-preview:empty { display: none; }
.players-mini { list-style: none; margin: 0; padding: 0; font-size: .86rem; columns: 2; column-gap: 1rem; }
.players-mini li { break-inside: avoid; padding: .12rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.players-mini .nr { display: inline-block; min-width: 1.8rem; font-weight: 700; color: var(--bs-primary); font-variant-numeric: tabular-nums; }
.players-mini .badge { font-size: .62rem; vertical-align: middle; }
@media (max-width: 400px) { .players-mini { columns: 1; } }
.players-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--md-muted); font-weight: 600; }
.players-table td { padding-top: .3rem; padding-bottom: .3rem; }
#sideSwitch .btn { min-width: 0; }
#sideSwitch .btn.active { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }

/* ---------- Družstvo, hráč, zápis ---------- */
.hero-logo { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); flex: 0 0 auto; }
.team-tabs { gap: .25rem; }
.team-tabs .nav-link { border-radius: 999px; font-weight: 500; color: var(--md-muted); padding: .45rem 1rem; }
.team-tabs .nav-link.active { color: #fff; }
.form-badge { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: .35rem; font-size: .72rem; font-weight: 700; margin-right: 2px; }
.leader-list { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.leader-list li { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--md-border); counter-increment: l; }
.leader-list li:last-child { border-bottom: 0; }
.leader-list li::before { content: counter(l) "."; width: 1.4rem; color: var(--md-muted); font-size: .8rem; font-weight: 600; }
.leader-list a { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.leader-list a:hover .nm { color: var(--bs-primary); }
.leader-list .nr { min-width: 1.7rem; font-weight: 700; color: var(--bs-primary); font-variant-numeric: tabular-nums; }
.leader-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.leader-list .val { font-weight: 800; font-variant-numeric: tabular-nums; }
.leader-list .val small { font-weight: 500; color: var(--md-muted); }
.data-table { --bs-table-bg: transparent; font-size: .9rem; }
.data-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--md-muted); font-weight: 600; white-space: nowrap; background: var(--md-surface-2) !important; }
.data-table td, .data-table th { padding: .65rem .75rem; border-color: var(--md-border); }
.data-table img { object-fit: contain; }
.sortable th[data-sort] { cursor: pointer; user-select: none; }
.sortable th.asc::after { content: " ▲"; font-size: .6rem; }
.sortable th.desc::after { content: " ▼"; font-size: .6rem; }
.standings tr.is-own td { background: rgba(var(--md-accent-rgb), .08) !important; }
.standings tr.is-own td:first-child { box-shadow: inset 3px 0 0 var(--bs-primary); }
.round-pager { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .15rem; scrollbar-width: thin; }
.round-pager .btn { min-width: 2.4rem; flex: 0 0 auto; }
.round-list { list-style: none; margin: 0; padding: 0; }
.round-list li { display: grid; grid-template-columns: 9rem 1fr auto 1fr; gap: .75rem; align-items: center; padding: .75rem 1.25rem; border-top: 1px solid var(--md-border); }
.round-list li.is-own { background: rgba(var(--md-accent-rgb), .06); }
.round-list .when { font-size: .8rem; color: var(--md-muted); }
.round-list .h { text-align: right; font-weight: 600; }
.round-list .a { font-weight: 600; }
.round-list .sc { min-width: 3.6rem; text-align: center; font-weight: 800; padding: .25rem .5rem; border-radius: .5rem; background: #0b2a1a; color: #fff; text-decoration: none; }
.round-list .sc.upcoming { background: var(--md-surface-2); color: var(--bs-body-color); font-weight: 600; border: 1px solid var(--md-border); }
@media (max-width: 575.98px) { .round-list li { grid-template-columns: 1fr auto 1fr; padding: .7rem .9rem; font-size: .88rem; } .round-list .when { grid-column: 1 / -1; text-align: center; } }

.player-hero { display: flex; align-items: center; gap: 1.5rem; }
.player-photo { position: relative; width: 168px; height: 168px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, var(--bs-primary), #8d0f1a); box-shadow: 0 18px 40px -14px rgba(0,0,0,.7), 0 0 0 4px rgba(255,255,255,.95), 0 0 0 8px rgba(255,209,102,.55); }
.player-photo .player-nr { font-family: "Barlow Condensed", "Inter", sans-serif; font-size: 3.6rem; color: #fff; line-height: 1; }
.player-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; background: #0b2a1a; }
@media (max-width: 575.98px) {
    .player-hero { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
    .player-photo { width: 136px; height: 136px; } .player-photo .player-nr { font-size: 3rem; }
}
.card-ic { display: inline-block; width: .6rem; height: .85rem; border-radius: .12rem; margin-left: 2px; vertical-align: -1px; }
.card-ic.yellow { background: #facc15; }
.card-ic.red { background: #dc2626; }

.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: .75rem; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; font-weight: 700; font-size: clamp(.95rem, 2.4vw, 1.3rem); }
.sb-team img { width: clamp(48px, 9vw, 72px); height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.sb-score { font-family: "Barlow Condensed", "Inter", sans-serif; font-size: clamp(2.6rem, 8vw, 4.5rem); line-height: 1; text-align: center; }
.sb-score span { opacity: .6; margin: 0 .15em; }
.sb-score small { font-size: .45em; }
.sb-half { font-family: "Inter", sans-serif; font-size: .85rem; opacity: .75; margin-top: .35rem; }
.ev-goal { color: var(--bs-primary); font-size: .8rem; }
.ev-sub { color: var(--md-muted); }
.nav-templates .nav-group-label { flex: 0 0 auto; align-self: center; white-space: nowrap; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); font-weight: 600; margin: 0 .1rem 0 .9rem; }
.nav-templates .nav-group-label:first-child { margin-left: 0; }
.nav-templates .nav-item { flex: 0 0 auto; }
.player-photo.small-photo { width: 72px; height: 72px; border-width: 2px; box-shadow: none; }
.player-photo.small-photo .player-nr { font-size: 1.7rem; }

/* =====================================================================
 * Globálne hľadanie (menu) a hľadanie na úvodnej stránke
 * ===================================================================== */
.gsearch { position: relative; }
.gsearch-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--md-muted); pointer-events: none; z-index: 1; }
.gsearch-input {
    padding-left: 2.4rem; padding-right: 2.2rem;
    border-radius: 999px;
    background: var(--md-surface-2);
    border-color: var(--md-border);
}
.gsearch-input::-webkit-search-cancel-button { cursor: pointer; }
.gsearch-kbd {
    position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
    font-size: .7rem; padding: .05rem .4rem; border-radius: .35rem;
    background: var(--md-surface); color: var(--md-muted); border: 1px solid var(--md-border);
    pointer-events: none;
}
.gsearch-input:focus ~ .gsearch-kbd, .gsearch-input:not(:placeholder-shown) ~ .gsearch-kbd { display: none; }
.gsearch-nav { order: 2; flex: 1 1 100%; margin-top: .55rem; }
@media (min-width: 768px) {
    .gsearch-nav { order: 0; flex: 1 1 auto; max-width: 420px; margin: 0 1rem 0 1.25rem; }
}
@media (max-width: 767.98px) { .gsearch-kbd { display: none; } }
.gsearch-menu {
    position: absolute; left: 0; right: 0; top: calc(100% + .4rem); z-index: 1060;
    background: var(--md-surface); border: 1px solid var(--md-border); border-radius: 1rem;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .4);
    padding: .35rem; max-height: min(70vh, 480px); overflow-y: auto;
    color: var(--bs-body-color);
}
@media (min-width: 768px) { .gsearch-nav .gsearch-menu { min-width: 380px; } }
.gsearch-group { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--md-muted); padding: .55rem .7rem .25rem; }
.gsearch-item { display: flex; align-items: center; gap: .7rem; padding: .45rem .6rem; border-radius: .7rem; color: inherit; text-decoration: none; }
.gsearch-item:hover, .gsearch-item.active { background: rgba(var(--md-accent-rgb), .1); color: inherit; }
.gsearch-item .pic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--md-surface-2); border: 1px solid var(--md-border); color: var(--md-muted); overflow: hidden; }
.gsearch-item .pic img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 2px; }
.gsearch-item .txt { display: flex; flex-direction: column; min-width: 0; }
.gsearch-item .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsearch-item .s { font-size: .78rem; color: var(--md-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsearch-note { padding: .9rem .8rem; color: var(--md-muted); font-size: .9rem; }

/* veľké hľadanie na úvodnej stránke */
.gsearch-hero { max-width: 40rem; }
.gsearch-hero .gsearch-input { height: 3.5rem; font-size: 1.1rem; padding-left: 3rem; background: var(--md-surface); color: var(--bs-body-color); border: 0; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.gsearch-hero .gsearch-icon { left: 1.15rem; font-size: 1.15rem; }
.hero-season { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.hero-season .form-select { width: auto; border-radius: 999px; background-color: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); font-weight: 600; }
.hero-season .form-select option { color: #111; }

.step-card { display: flex; gap: .85rem; align-items: flex-start; }
.step-no { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(var(--md-accent-rgb), .12); color: var(--bs-primary); }

/* =====================================================================
 * Stránka klubu: hlavička, záložky družstiev, najbližší / posledný zápas
 * ===================================================================== */
.club-head { display: flex; align-items: center; gap: 1rem; }
.club-logo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 18px; background: #fff; padding: 6px; object-fit: contain; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); }
.club-logo.empty { display: grid; place-items: center; font-size: 2rem; color: var(--md-muted); }
.season-pill { width: auto; border-radius: 999px; font-weight: 600; background-color: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }
.season-pill option { color: #111; }

.club-tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .3rem; background: var(--md-surface); border: 1px solid var(--md-border); border-radius: 999px; box-shadow: var(--md-shadow); scrollbar-width: thin; }
.club-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px; color: var(--md-muted); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.club-tab:hover { color: var(--bs-body-color); background: var(--md-surface-2); }
.club-tab.active { background: var(--bs-primary); color: #fff; }
.club-tab .count { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(127, 127, 127, .18); }
.club-tab.active .count { background: rgba(255, 255, 255, .25); }

.spotlight .spot-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bs-primary); }
.spot-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; }
.spot-team { display: flex; align-items: center; gap: .55rem; font-weight: 700; min-width: 0; }
.spot-team span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.spot-team img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; border: 1px solid var(--md-border); }
.spot-team.away { flex-direction: row-reverse; text-align: right; }
.spot-score { font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; padding: .3rem .7rem; border-radius: .6rem; background: var(--md-pitch); color: #fff; }
.list-toolbar { padding: .75rem 1.25rem; border-bottom: 1px solid var(--md-border); }
.btn-more { width: 34px; padding-inline: 0 !important; }
.match-actions .dropdown { display: inline-flex; }
@media (max-width: 575.98px) { .match-actions .btn-more { flex: 0 0 34px; } }
.players-mini .pm-in, .players-mini .pm-out { font-size: .78rem; font-weight: 600; margin-left: .35rem; white-space: nowrap; }
.players-mini .pm-in { color: var(--md-win); }
.players-mini .pm-out { color: var(--bs-danger); }
.players-mini li.is-bench { opacity: .55; }
/* úvodná stránka: ponuka hľadania musí prekryť karty pod hlavičkou */
.hero-home { overflow: visible; }
.hero-home .container-xxl { z-index: 5; }

/* =====================================================================
 * Stránka zápasu: navigácia sekcií, porovnanie, forma, mini zoznamy
 * ===================================================================== */
a.sb-team { color: #fff; text-decoration: none; }
a.sb-team:hover span { text-decoration: underline; }
.sb-team small { font-family: "Inter", sans-serif; font-weight: 500; font-size: .75rem; opacity: .7; margin-top: -.3rem; }
.hero-link { color: #fff; text-decoration: none; }
.hero-link:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.player-link { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(127, 127, 127, .6); }
.player-link:hover { color: var(--bs-primary); border-bottom-color: currentColor; }

.section-nav { position: sticky; top: 70px; z-index: 10; display: flex; gap: .3rem; overflow-x: auto; align-items: center;
    padding: .35rem; background: var(--md-surface); border: 1px solid var(--md-border); border-radius: 999px; box-shadow: var(--md-shadow); scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav > a { flex: 0 0 auto; padding: .4rem .85rem; border-radius: 999px; color: var(--md-muted); font-weight: 600; font-size: .86rem; text-decoration: none; white-space: nowrap; }
.section-nav > a:hover, .section-nav > a.active { background: rgba(var(--md-accent-rgb), .1); color: var(--bs-primary); }
.club-mini { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: inherit; text-decoration: none; border: 1px solid var(--md-border); white-space: nowrap; }
.club-mini:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
@media (max-width: 767.98px) { .section-nav { top: 118px; } }
.match-section { scroll-margin-top: 140px; }
.sec-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }

.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--md-border); }
.cmp-head a { justify-self: center; }
.cmp-head img { width: 56px; height: 56px; object-fit: contain; }
.cmp-total { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.cmp-row { padding: .7rem 0; border-bottom: 1px solid var(--md-border); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-vals { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; margin-bottom: .35rem; }
.cmp-vals span { color: var(--md-muted); }
.cmp-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cmp-bars > div { height: 7px; border-radius: 99px; background: var(--md-surface-2); border: 1px solid var(--md-border); overflow: hidden; display: flex; }
.cmp-bars .l { justify-content: flex-end; }
.cmp-bars i { display: block; height: 100%; border-radius: 99px; }
.cmp-bars .l i { background: var(--bs-primary); }
.cmp-bars .r i { background: rgba(var(--md-accent-rgb), .35); }

.form-tabs .nav-link { border-radius: 999px; padding: .35rem .9rem; font-size: .88rem; font-weight: 600; border: 1px solid var(--md-border); margin-right: .35rem; color: var(--md-muted); }
.form-tabs .nav-link.active { background: transparent; color: var(--bs-primary); border-color: var(--bs-primary); }
.form-list { display: grid; gap: .5rem; }
.form-item { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .9rem; align-items: center; padding: .7rem 1rem; border: 1px solid var(--md-border); border-radius: .9rem; background: var(--md-surface-2); color: inherit; text-decoration: none; }
.form-item:hover { border-color: rgba(var(--md-accent-rgb), .45); color: inherit; }
.form-item .when { font-size: .82rem; color: var(--md-muted); display: flex; flex-direction: column; }
.form-item .teams { display: grid; gap: .35rem; min-width: 0; }
.form-item .teams > span { display: flex; align-items: center; gap: .5rem; font-size: .9rem; min-width: 0; }
.form-item .teams em { font-style: normal; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-item .teams img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
.form-item .teams b { min-width: 1.5rem; text-align: right; }
.res { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; background: #94a3b8; }
.res-V { background: #22a06b; } .res-R { background: #f2a516; } .res-P { background: #d93a3a; }
@media (max-width: 575.98px) { .form-item { grid-template-columns: 1fr auto; } .form-item .when { grid-column: 1 / -1; flex-direction: row; gap: .4rem; } }

.mini-matches { list-style: none; margin: 0; padding: 0; }
.mini-matches a { display: grid; grid-template-columns: 9.5rem 1fr auto 1fr; gap: .75rem; align-items: center; padding: .7rem 1.25rem; border-top: 1px solid var(--md-border); color: inherit; text-decoration: none; }
.mini-matches li:first-child a { border-top: 0; }
.mini-matches a:hover { background: var(--md-surface-2); }
.mini-matches .when { font-size: .8rem; color: var(--md-muted); display: flex; flex-direction: column; min-width: 0; }
.mini-matches .when small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-matches .h { text-align: right; font-weight: 600; }
.mini-matches .a { font-weight: 600; }
.mini-matches .sc { min-width: 3.4rem; text-align: center; font-weight: 800; padding: .2rem .5rem; border-radius: .5rem; background: var(--md-pitch); color: #fff; }
@media (max-width: 575.98px) { .mini-matches a { grid-template-columns: 1fr auto 1fr; font-size: .88rem; padding: .7rem .9rem; } .mini-matches .when { grid-column: 1 / -1; text-align: center; } }
.spot-score:hover{color:#fff;filter:brightness(1.3)} a.spot-score{color:#fff}

/* =====================================================================
 * Prehľad družstva: výsledky / program, súpiska
 * ===================================================================== */
.nav-pills.team-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nav-pills.team-tabs::-webkit-scrollbar { display: none; }
.nav-pills.team-tabs .nav-link { white-space: nowrap; border-radius: 999px; }
.tm-list { list-style: none; margin: 0; padding: 0; }
.tm-row { display: grid; grid-template-columns: 8.5rem 1fr auto 1fr auto; gap: .75rem; align-items: center; padding: .7rem 1.25rem; border-top: 1px solid var(--md-border); }
.tm-row:first-child { border-top: 0; }
.tm-row:hover { background: var(--md-surface-2); }
.tm-row a { color: inherit; text-decoration: none; }
.tm-row .when { font-size: .82rem; color: var(--md-muted); display: flex; flex-direction: column; min-width: 0; }
.tm-row .when small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-row .h, .tm-row .a { display: flex; align-items: center; gap: .5rem; min-width: 0; font-weight: 500; }
.tm-row .h { justify-content: flex-end; text-align: right; }
.tm-row .h span, .tm-row .a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-row .own { font-weight: 700; }
.tm-row img { width: 26px; height: 26px; object-fit: contain; flex: 0 0 26px; }
.tm-row .sc { min-width: 3.6rem; text-align: center; font-weight: 800; padding: .25rem .5rem; border-radius: .5rem; background: var(--md-pitch); color: #fff !important; }
.tm-row .sc.res-V { background: #22a06b; } .tm-row .sc.res-R { background: #d4900f; } .tm-row .sc.res-P { background: #d93a3a; }
.tm-row .sc.upcoming { background: var(--md-surface-2); color: var(--bs-body-color) !important; font-weight: 600; border: 1px solid var(--md-border); }
.tm-row .acts { display: flex; gap: .35rem; justify-content: flex-end; }
@media (max-width: 767.98px) {
    .tm-row { grid-template-columns: 1fr auto 1fr; padding: .8rem .9rem; font-size: .9rem; }
    .tm-row .when { grid-column: 1 / -1; flex-direction: row; gap: .4rem; justify-content: center; }
    .tm-row .acts { grid-column: 1 / -1; justify-content: center; }
}
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .65rem; }
.squad-card { display: flex; align-items: center; gap: .85rem; padding: .7rem .85rem; border: 1px solid var(--md-border); border-radius: 1rem; background: var(--md-surface-2); color: inherit; text-decoration: none; transition: transform .12s, border-color .12s; }
.squad-card:hover { border-color: rgba(var(--md-accent-rgb), .5); color: inherit; transform: translateY(-1px); }
.sq-ava { position: relative; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(145deg, var(--bs-primary), #8d0f1a); box-shadow: 0 0 0 2px var(--md-surface), 0 0 0 3px rgba(var(--md-accent-rgb), .35); }
.sq-ava img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; background: #0b2a1a; }
.sq-ini { font-family: "Barlow Condensed", "Inter", sans-serif; font-size: 1.6rem; color: #fff; line-height: 1; }
.sq-nr { position: absolute; right: -4px; bottom: -4px; min-width: 24px; height: 24px; padding: 0 .3rem; border-radius: 99px; display: none; place-items: center;
    font-family: "Barlow Condensed", "Inter", sans-serif; font-weight: 700; font-size: .9rem; line-height: 1; color: #0b2a1a; background: #ffd166; box-shadow: 0 0 0 2px var(--md-surface); }
.squad-card.has-photo .sq-nr { display: grid; }
.squad-card.has-photo .sq-ini { visibility: hidden; }
.sq-txt { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.sq-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-stats { display: flex; flex-wrap: wrap; gap: .3rem; }
.sq-stats span { font-size: .74rem; line-height: 1; padding: .3rem .5rem; border-radius: 99px; background: var(--md-surface); border: 1px solid var(--md-border); color: var(--md-muted); white-space: nowrap; }
.sq-stats b { color: var(--bs-body-color); font-weight: 800; }

/* ---------- Značka klubu ---------- */
.brand-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; max-height: 22rem; overflow-y: auto; padding: 3px; margin: -3px; }
.brand-preset { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--md-border); border-radius: .7rem; overflow: hidden; background: var(--md-surface); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.bp-mini { position: relative; display: block; height: 46px; overflow: hidden;
    background: radial-gradient(60px 40px at 85% 0%, color-mix(in srgb, var(--p) 45%, transparent), transparent), linear-gradient(160deg, color-mix(in srgb, var(--b) 80%, #fff 8%), var(--b)); }
.bp-title { position: absolute; left: 8px; top: 5px; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: 1.15rem; line-height: 1; color: #fff; text-shadow: 0 2px 0 var(--p); letter-spacing: -.5px; }
.bp-pill { position: absolute; left: 40px; top: 22px; padding: 1px 6px 2px; border-radius: 4px; background: var(--a); font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: .7rem; line-height: 1; transform: rotate(-5deg); box-shadow: 0 0 8px color-mix(in srgb, var(--a) 60%, transparent); }
.bp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--p) 0 55%, var(--a) 55% 78%, #fff 78%); }
.brand-preset small { font-size: .7rem; padding: .3rem .35rem; color: var(--md-text-2, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.brand-preset:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.brand-preset.active { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.brand-thumb { width: 84px; height: 84px; flex: 0 0 84px; border-radius: .8rem; display: grid; place-items: center; font-size: 2rem; color: var(--md-border);
    background: conic-gradient(var(--md-surface-2) 25%, var(--md-surface) 0 50%, var(--md-surface-2) 0 75%, var(--md-surface) 0) 0 0 / 14px 14px; border: 1px solid var(--md-border); overflow: hidden; }
.brand-thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }
.brand-strip { min-height: 70px; border: 1px dashed var(--md-border); border-radius: .8rem; display: grid; place-items: center; padding: .5rem; text-align: center; background: #fff; }
.brand-strip img { max-width: 100%; max-height: 90px; object-fit: contain; }
@media (min-width: 992px) { .brand-preview-card { position: sticky; top: 84px; } }
@media (max-width: 420px) { .brand-presets { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Môj klub (úvod) ---------- */
.fav-card { border-top: 4px solid var(--bs-warning, #ffd166); }
.fav-club { display: flex; align-items: center; gap: .75rem; color: inherit; }
.fav-logo { width: 52px; height: 52px; object-fit: contain; }
.fav-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-style: italic; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.fav-head { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--md-text-2, #6c757d); font-weight: 700; margin-bottom: .5rem; }
.fav-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem 1rem; padding: .65rem 0; border-top: 1px solid var(--md-border); }
.fav-teams { min-width: 0; }
.fav-cat { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--md-surface-2); border-radius: 99px; padding: .05rem .5rem; margin-bottom: .2rem; }
.fav-match { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: inherit; text-decoration: none; flex-wrap: wrap; }
.fav-match:hover { color: var(--bs-primary); }
.fav-match img { width: 22px; height: 22px; object-fit: contain; }
.fav-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
@media (max-width: 480px) { .fav-row { grid-template-columns: 1fr; } .fav-side { flex-direction: row; justify-content: space-between; align-items: center; } }
.fav-score { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.35rem; padding: 0 .55rem; border-radius: .45rem; background: var(--md-surface-2); }
.fav-score.res-V { background: #22a06b; color: #fff; } .fav-score.res-P { background: #d93a3a; color: #fff; } .fav-score.res-R { background: #f2a516; color: #fff; }
.fav-time { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.fav-btn.is-on { background: #ffd166; color: #0b2a1a; border-color: #ffd166; }

/* ---------- Vytvoriť obrázok: plávajúce tlačidlo a panel ---------- */
.md-fab {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1031;
    display: inline-flex; align-items: center; gap: .55rem;
    height: 56px; padding: 0 1.35rem 0 1.15rem; border: 0; border-radius: 999px;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-style: italic; font-size: 1.2rem; letter-spacing: .02em; text-transform: uppercase;
    color: #0b2a1a; background: #ffd166;
    box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 0 0 3px #fff;
    transition: transform .15s, box-shadow .15s;
}
.md-fab i { font-size: 1.35rem; }
.md-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.32), 0 0 0 3px #fff; }
.md-fab:focus-visible { outline: 3px solid rgba(var(--md-accent-rgb), .5); outline-offset: 3px; }
.md-fab-badge { min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 99px; display: inline-grid; place-items: center; font-style: normal; font-size: .85rem;
    background: var(--md-accent, #e63946); color: #fff; animation: mdPulse 2s ease-in-out infinite; }
@keyframes mdPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,.5); } 50% { box-shadow: 0 0 0 6px rgba(230,57,70,0); } }
@media (prefers-reduced-motion: reduce) { .md-fab-badge { animation: none; } }
body.has-fab .back-to-top { bottom: calc(1.25rem + 68px); }
body.has-fab .app-footer { padding-bottom: 5rem; }
@media (max-width: 575.98px) {
    .md-fab { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); height: 54px; padding: 0 1.1rem; }
    body.has-fab .back-to-top { bottom: calc(1rem + 66px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) { .md-fab-label { display: none; } .md-fab { padding: 0 1rem; } }

.md-create { --bs-offcanvas-width: 460px; }
.md-create .offcanvas-header { border-bottom: 1px solid var(--md-border); }
.md-create .offcanvas-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.5rem; }
@media (max-width: 575.98px) {
    .md-create.offcanvas-end { top: auto; left: 0; right: 0; width: 100%; height: 86vh; border-left: 0; border-radius: 22px 22px 0 0; transform: translateY(100%); }
    .md-create.offcanvas-end.showing, .md-create.offcanvas-end.show:not(.hiding) { transform: none; }
}
.mdc-sec { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--md-text-2, #6c757d); margin-bottom: .6rem; }
.mdc-rec { margin-bottom: 1.25rem; }
.mdc-group { margin-bottom: 1.25rem; }
.mdc-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .55rem; }
.mdc-head.is-focus { padding: .6rem .7rem; border-radius: .9rem; background: var(--md-surface-2); }
.mdc-logos { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; min-width: 34px; height: 34px; justify-content: center; border-radius: .6rem; background: var(--md-surface-2); color: var(--md-text-2, #6c757d); font-size: 1.1rem; padding: 0 3px; }
.mdc-logos img { width: 28px; height: 28px; object-fit: contain; }
.mdc-title { display: block; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdc-grid { display: grid; gap: .4rem; }
.mdc-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1px solid var(--md-border); border-radius: .8rem; color: inherit; text-decoration: none; background: var(--md-surface); transition: border-color .12s, transform .12s, box-shadow .12s; }
.mdc-item:hover { border-color: var(--bs-primary); transform: translateX(2px); box-shadow: 0 4px 14px rgba(0,0,0,.06); color: inherit; }
.mdc-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: .65rem; display: grid; place-items: center; font-size: 1.15rem; background: rgba(var(--md-accent-rgb), .1); color: var(--md-accent, #e63946); }
.mdc-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.mdc-label { font-weight: 700; line-height: 1.2; }
.mdc-txt small { color: var(--md-text-2, #6c757d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdc-why { font-size: .75rem; font-weight: 700; color: #b7791f; margin-top: .1rem; }
.mdc-go { color: var(--md-text-2, #adb5bd); }
.mdc-item.is-rec { border-color: #ffd166; background: linear-gradient(90deg, rgba(255,209,102,.16), transparent 70%); }
.mdc-item.is-big { padding: .75rem .85rem; margin-bottom: .45rem; }
.mdc-item.is-big .mdc-ic { background: #ffd166; color: #0b2a1a; }
[data-bs-theme="dark"] .mdc-why { color: #ffd166; }

/* ---------- Výpadok Sportnetu ---------- */
.sportnet-down { background: #fff3cd; color: #664d03; border-bottom: 1px solid #ffe69c; font-size: .9rem; padding: .55rem 0; }
[data-bs-theme="dark"] .sportnet-down { background: #332701; color: #ffda6a; border-color: #664d03; }

/* ---------- Stránka klubu: odkaz na detail družstva ---------- */
.team-bar { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; border-radius: 1rem; background: var(--md-surface); border: 1px solid var(--md-border);
    box-shadow: 0 6px 20px -12px rgba(0,0,0,.25); color: inherit; text-decoration: none; transition: border-color .12s, transform .12s; }
.team-bar:hover { border-color: rgba(var(--md-accent-rgb), .5); transform: translateY(-1px); color: inherit; }
.team-bar-ic { flex: 0 0 42px; height: 42px; border-radius: .8rem; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: linear-gradient(145deg, var(--bs-primary), #8d0f1a); }
.team-bar-title { display: block; font-family: "Barlow Condensed", "Inter", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.25rem; line-height: 1.1; }
.team-bar-sub { display: block; font-size: .8rem; color: var(--md-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-bar-go { flex: 0 0 auto; font-weight: 700; font-size: .9rem; color: var(--bs-primary); white-space: nowrap; }
@media (max-width: 575.98px) { .team-bar-go { font-size: .8rem; } }
@media (max-width: 340px) { .team-bar-go { font-size: 0; } .team-bar-go i { font-size: 1.1rem; } }

/* ---------- Nastavenia správcu ---------- */
.set-nav { position: sticky; top: 84px; }
.set-nav-link { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: .7rem; color: inherit; text-decoration: none; font-weight: 600; font-size: .92rem; }
.set-nav-link:hover { background: var(--md-surface-2); color: var(--bs-primary); }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: .6rem 1.5rem; padding: .9rem 0; border-top: 1px solid var(--md-border); align-items: start; }
.set-row:first-child { border-top: 0; padding-top: 0; }
.set-row.is-locked .set-input { opacity: .75; }
.set-key code { font-size: .7rem; color: var(--md-muted); }
.set-extra { margin-top: .5rem; padding: .9rem 1rem; border-radius: .9rem; background: var(--md-surface-2); }
.set-code { padding: .5rem .7rem; border-radius: .6rem; background: var(--md-surface); border: 1px solid var(--md-border); font-size: .8rem; word-break: break-all; }
.set-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 1rem; justify-content: flex-end; padding: .8rem 1rem;
    margin: 0 -.25rem; border-radius: 1rem 1rem 0 0; background: color-mix(in srgb, var(--md-surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--md-border); border-bottom: 0; box-shadow: 0 -8px 24px -16px rgba(0,0,0,.3); }
@media (max-width: 767.98px) { .set-row { grid-template-columns: 1fr; } }

/* ---------- Profil hráča: filter zápasov ---------- */
.player-filter { display: flex; flex-wrap: wrap; gap: .5rem .75rem; padding: .85rem 1rem .4rem; border-bottom: 1px solid var(--md-border); }
.pf-group { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--md-border); border-radius: 999px; background: var(--md-surface-2); padding: 2px; }
.pf-group.pf-toggles { border: 0; background: none; padding: 0; gap: .4rem; }
.pf-btn { border: 0; background: none; color: inherit; font-size: .82rem; font-weight: 500; padding: .3rem .75rem; border-radius: 999px; line-height: 1.3; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; transition: background .15s, color .15s; }
.pf-toggles .pf-btn { border: 1px solid var(--md-border); background: var(--md-surface-2); padding: .32rem .8rem; }
.pf-btn:hover { background: rgba(var(--md-accent-rgb), .1); }
.pf-btn.active { background: var(--bs-primary); color: #fff; box-shadow: 0 2px 8px -2px rgba(var(--md-accent-rgb), .55); }
.pf-btn.pf-w.active { background: var(--bs-success); box-shadow: none; }
.pf-btn.pf-d.active { background: var(--bs-secondary); box-shadow: none; }
.pf-btn.pf-l.active { background: var(--bs-danger); box-shadow: none; }
.pf-toggles .pf-btn.active { border-color: transparent; }
.pf-btn.pf-reset { color: var(--bs-danger); border-style: dashed; }
.pf-btn.pf-reset:hover { background: rgba(var(--bs-danger-rgb), .08); }
.pf-btn .card-ic { margin: 0; }
.pf-sum { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; padding: .6rem 1rem; font-size: .88rem; background: rgba(var(--md-accent-rgb), .05); border-bottom: 1px solid var(--md-border); }
.pf-sum .sep { opacity: .4; }
.pf-sum .card-ic { margin: 0 .15rem 0 0; vertical-align: -1px; }
.pf-wdl b { font-weight: 700; } .pf-wdl .w { color: var(--bs-success); } .pf-wdl .l { color: var(--bs-danger); } .pf-wdl .d { opacity: .7; }
@media (max-width: 575.98px) { .player-filter { padding: .75rem .75rem .35rem; } .pf-btn { padding: .28rem .6rem; } }

/* ---------- Priebeh zápasu – časová os (domáci vľavo, hostia vpravo) ---------- */
.tl { list-style: none; margin: 0; padding: .75rem 1.25rem 1.25rem; --tl-line: var(--md-border); }
.tl > li { display: grid; grid-template-columns: minmax(0, 1fr) 2rem 2.9rem 1px 2rem minmax(0, 1fr); column-gap: .55rem; align-items: center; padding: .55rem 0; min-height: 3.1rem; }
.tl > li::before { content: ""; grid-column: 4; grid-row: 1; align-self: stretch; margin: -.55rem 0; background: var(--tl-line); }
.tl > li:first-child::before { margin-top: 1.4rem; }
.tl > li:last-child::before { margin-bottom: 1.4rem; }
.tl .tl-head { min-height: 0; padding: 0 0 .5rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--md-muted); }
.tl .tl-head::before { margin: 1.2rem 0 -.55rem; }
.tl .tl-head .home { grid-column: 1 / 3; text-align: right; }
.tl .tl-head .away { grid-column: 5 / 7; }
.tl .tl-min { grid-column: 3; grid-row: 1; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9rem; }
.tl .tl-ic { grid-row: 1; display: grid; place-items: center; }
.tl .tl-tx { grid-row: 1; min-width: 0; line-height: 1.25; }
.tl .tl-tx strong { display: block; font-weight: 700; font-size: .92rem; }
.tl .tl-tx strong a { color: inherit; text-decoration: none; }
.tl .tl-tx strong a:hover { color: var(--bs-primary); text-decoration: underline; }
.tl .tl-tx small { display: block; color: var(--md-muted); font-size: .8rem; margin-top: .15rem; overflow-wrap: anywhere; }
.tl .tl-tx small a { color: inherit; }
.tl .home .tl-ic { grid-column: 2; }
.tl .home .tl-tx { grid-column: 1; text-align: right; }
.tl .away .tl-ic, .tl .tl-phase .tl-ic { grid-column: 5; }
.tl .away .tl-tx, .tl .tl-phase .tl-tx { grid-column: 6; }
.tl .tl-phase .tl-tx strong { font-weight: 500; }
.tl .tl-phase .tl-tx small { font-variant-numeric: tabular-nums; }
.tl .tl-phase.is-ht .tl-tx small, .tl .tl-phase.is-ft .tl-tx small { font-weight: 700; color: var(--md-text, inherit); }
.tl .tl-phase.is-ft .tl-tx strong { font-weight: 700; }
.tl-phase-ic { font-size: 1.15rem; color: var(--md-muted); }
.tl-ball { width: 1.25rem; height: 1.25rem; color: #1f2937; }
[data-bs-theme="dark"] .tl-ball circle { fill: #e5e7eb; }
.tl-card { display: inline-block; width: .78rem; height: 1.05rem; border-radius: .16rem; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.tl-card.y { background: linear-gradient(160deg, #fde68a, #facc15); }
.tl-card.r { background: linear-gradient(160deg, #f87171, #dc2626); }
.tl-card.yr { background: linear-gradient(135deg, #facc15 0 50%, #dc2626 50% 100%); }
.tl-sub { display: inline-flex; font-size: .78rem; line-height: 1; letter-spacing: -.18em; }
.tl-sub .bi-caret-down-fill { color: #dc2626; } .tl-sub .bi-caret-up-fill { color: #16a34a; }
.tl > li.tl-ev:hover { background: linear-gradient(90deg, transparent, rgba(var(--md-accent-rgb), .045), transparent); }
.tl > li.tl-k-goal .tl-tx strong { font-weight: 800; }
@media (max-width: 575.98px) {
    .tl { padding: .5rem .6rem 1rem; }
    .tl > li { grid-template-columns: minmax(0, 1fr) 1.45rem 2.3rem 1px 1.45rem minmax(0, 1fr); column-gap: .35rem; }
    .tl .tl-tx strong { font-size: .84rem; } .tl .tl-tx small { font-size: .72rem; } .tl .tl-min { font-size: .8rem; }
}
.tl .player-link { border-bottom: 0; color: inherit; }
.tl .tl-tx strong .player-link:hover { color: var(--bs-primary); text-decoration: underline; }
.tl .tl-tx small .player-link { text-decoration: underline dotted rgba(127,127,127,.6); text-underline-offset: 2px; }
.tl > li.tl-k-goal .tl-min { color: var(--bs-primary); }
/* profil hráča – komentáre zo zápisu pod súperom */
.pev { list-style: none; margin: .25rem 0 0; padding: 0; font-size: .76rem; color: var(--md-muted); line-height: 1.3; }
.pev li { display: flex; align-items: baseline; gap: .35rem; }
.pev li + li { margin-top: .1rem; }
.pev .bi-circle-fill { font-size: .5rem; }
.pev .card-ic { margin: 0; width: .5rem; height: .7rem; flex: 0 0 auto; align-self: center; }
.pev .m { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bs-body-color); }
.card-ic.yr { background: linear-gradient(135deg, #facc15 0 50%, #dc2626 50% 100%); }
