/* =========================================================
   FutsalPoint — vizualni sustav
   Smjer: dvorana — plavi teren, žuta linija, tamna tinta.
   Tipografija: Barlow (tekst) + Barlow Condensed (naslovi, brojevi).
   ========================================================= */

:root {
    --fp-ink: #10213a;
    --fp-ink-2: #1b3358;
    --fp-court: #1b5fcf;
    --fp-court-dark: #154ba3;
    --fp-court-tint: #e9f0fb;
    --fp-line: #f2a900;
    --fp-line-tint: #fff4d6;
    --fp-bg: #f4f6f9;
    --fp-surface: #ffffff;
    --fp-border: #dde3eb;
    --fp-border-strong: #c5ced9;
    --fp-text: #10213a;
    --fp-muted: #5b6b7f;
    --fp-success: #1f8a4c;
    --fp-success-tint: #e4f4ea;
    --fp-danger: #c8323c;
    --fp-danger-tint: #fbe7e9;
    --fp-warn: #b97600;
    --fp-radius: 6px;
    --fp-radius-lg: 10px;
    --fp-font: 'Barlow', 'Segoe UI', system-ui, sans-serif;
    --fp-font-display: 'Barlow Condensed', 'Barlow', 'Segoe UI', system-ui, sans-serif;

    /* Bootstrap premošćenja */
    --bs-body-font-family: var(--fp-font);
    --bs-body-color: var(--fp-text);
    --bs-link-color: var(--fp-court);
    --bs-link-hover-color: var(--fp-court-dark);
    --bs-border-color: var(--fp-border);
}

html, body {
    font-family: var(--fp-font);
    background-color: var(--fp-bg);
    color: var(--fp-text);
    font-size: 15px;
    line-height: 1.45;
    font-feature-settings: "tnum" 1;
}

h1, h2, h3, .display-font {
    font-family: var(--fp-font-display);
    letter-spacing: 0.005em;
    color: var(--fp-ink);
}

h1 { font-size: 2rem; font-weight: 700; line-height: 1.1; margin: 0; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 600; }
h5, h6 { font-weight: 600; }
h1:focus { outline: none; }

a { color: var(--fp-court); text-decoration: none; }
a:hover { color: var(--fp-court-dark); text-decoration: underline; }

/* ---------- Zaglavlje stranice ---------- */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

    .page-header .page-title {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .page-header .page-title i { color: var(--fp-court); font-size: 1.4rem; }

    .page-header .page-sub {
        color: var(--fp-muted);
        margin: 0.25rem 0 0;
        font-size: 0.95rem;
    }

    .page-header .page-actions {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    --bs-breadcrumb-divider-color: var(--fp-border-strong);
}

    .breadcrumb a { color: var(--fp-muted); }
    .breadcrumb a:hover { color: var(--fp-court); }
    .breadcrumb .active { color: var(--fp-text); }

/* ---------- Igrač: broj dresa, avatar, link ---------- */
.shirt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 0.3rem;
    border-radius: 4px;
    background: var(--fp-ink);
    color: var(--fp-line);
    font-family: var(--fp-font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

    .shirt.shirt-empty {
        background: transparent;
        color: var(--fp-muted);
        border: 1px dashed var(--fp-border-strong);
    }

    .shirt.shirt-lg { min-width: 3rem; height: 3rem; font-size: 1.8rem; border-radius: 6px; }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--fp-court-tint);
    color: var(--fp-court);
    font-family: var(--fp-font-display);
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    flex-shrink: 0;
}

    .avatar img { width: 100%; height: 100%; object-fit: cover; }
    .avatar.avatar-lg { width: 5rem; height: 5rem; font-size: 1.9rem; }

.player-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fp-text);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .player-link:hover { color: var(--fp-court); text-decoration: none; }
    .player-link:hover .player-link-name { text-decoration: underline; text-underline-offset: 2px; }

.entity-link {
    color: var(--fp-text);
    font-weight: 600;
}

    .entity-link:hover { color: var(--fp-court); }

/* ---------- Semafor (zaglavlje utakmice) ---------- */
.scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--fp-ink);
    color: #fff;
    border-radius: var(--fp-radius-lg);
    margin-bottom: 1.5rem;
}

    .scoreboard .team { font-family: var(--fp-font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
    .scoreboard .team.home { text-align: right; }
    .scoreboard .team .team-role { display: block; font-family: var(--fp-font); font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.6); margin-bottom: 0.15rem; }
    .scoreboard .team.ours { color: var(--fp-line); }

    .scoreboard .score {
        font-family: var(--fp-font-display);
        font-weight: 700;
        font-size: 3.25rem;
        line-height: 1;
        letter-spacing: 0.02em;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .scoreboard .score small { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.6); display: block; text-align: center; letter-spacing: 0; margin-top: 0.25rem; }

    .scoreboard .meta {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 1.25rem;
        font-size: 0.85rem;
        color: rgba(255,255,255,0.75);
        border-top: 1px solid rgba(255,255,255,0.12);
        padding-top: 0.75rem;
    }

    .scoreboard .meta i { color: var(--fp-line); margin-right: 0.3rem; }

@media (max-width: 640px) {
    .scoreboard { grid-template-columns: 1fr; text-align: center; gap: 0.5rem; }
    .scoreboard .team.home { text-align: center; }
}

/* ---------- Statistički pločice ---------- */
.stat-tile {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-lg);
    padding: 0.9rem 1.1rem;
    height: 100%;
}

    .stat-tile .stat-label { font-size: 0.8rem; color: var(--fp-muted); }
    .stat-tile .stat-value { font-family: var(--fp-font-display); font-size: 2.1rem; font-weight: 700; line-height: 1.05; color: var(--fp-ink); font-variant-numeric: tabular-nums; }
    .stat-tile .stat-foot { font-size: 0.8rem; color: var(--fp-muted); margin-top: 0.15rem; }

/* ---------- Gumbi ---------- */
.btn {
    border-radius: var(--fp-radius);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
}

.btn-sm { font-size: 0.8rem; padding: 0.3rem 0.6rem; }

.btn-primary {
    color: #fff;
    background-color: var(--fp-court);
    border-color: var(--fp-court);
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:disabled {
        background-color: var(--fp-court-dark) !important;
        border-color: var(--fp-court-dark) !important;
    }

.btn-outline-primary { color: var(--fp-court); border-color: var(--fp-court); }
    .btn-outline-primary:hover { background-color: var(--fp-court); border-color: var(--fp-court); color: #fff; }

.btn-outline-secondary { border-color: var(--fp-border-strong); color: var(--fp-text); background: var(--fp-surface); }
    .btn-outline-secondary:hover { background-color: var(--fp-bg); border-color: var(--fp-border-strong); color: var(--fp-text); }

.btn-outline-info { color: var(--fp-court); border-color: var(--fp-border-strong); }
    .btn-outline-info:hover { background: var(--fp-court-tint); border-color: var(--fp-court); color: var(--fp-court); }

.btn-outline-danger { color: var(--fp-danger); border-color: var(--fp-border-strong); }
    .btn-outline-danger:hover { background: var(--fp-danger); border-color: var(--fp-danger); color: #fff; }

.btn-outline-warning { color: var(--fp-warn); border-color: var(--fp-border-strong); }
    .btn-outline-warning:hover { background: var(--fp-line-tint); border-color: var(--fp-line); color: var(--fp-warn); }

.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus, a:focus-visible {
    outline: 2px solid var(--fp-court);
    outline-offset: 2px;
    box-shadow: none;
}

.form-control:focus, .form-select:focus { border-color: var(--fp-court); outline-offset: 0; }

/* Akcije u redu tablice: tiho dok ne prijeđeš mišem */
.row-actions { white-space: nowrap; }
    .row-actions .btn { border-color: transparent; background: transparent; }
    tr:hover .row-actions .btn { border-color: var(--fp-border-strong); background: var(--fp-surface); }

/* ---------- Kartice ---------- */
.card {
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-lg);
    box-shadow: none;
    background: var(--fp-surface);
}

.card.shadow-sm { box-shadow: none !important; }

.card-header {
    background-color: var(--fp-surface);
    border-bottom: 1px solid var(--fp-border);
    font-weight: 600;
    padding: 0.8rem 1.1rem;
    border-radius: var(--fp-radius-lg) var(--fp-radius-lg) 0 0 !important;
}

    .card-header i { color: var(--fp-court); }

/* ---------- Tablice ---------- */
.table-responsive {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-lg);
}

.table {
    margin-bottom: 0;
    font-size: 0.9rem;
    --bs-table-hover-bg: var(--fp-court-tint);
    --bs-table-border-color: var(--fp-border);
}

    .table thead.table-dark {
        --bs-table-bg: var(--fp-bg);
        --bs-table-color: var(--fp-muted);
        --bs-table-border-color: var(--fp-border);
    }

    .table thead th {
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: none;
        letter-spacing: 0;
        padding: 0.65rem 0.9rem;
        border-bottom: 1px solid var(--fp-border);
        white-space: nowrap;
    }

    .table tbody td {
        padding: 0.6rem 0.9rem;
        border-color: var(--fp-border);
        vertical-align: middle;
    }

    .table tbody tr:last-child td { border-bottom: 0; }

    .table .num { text-align: right; font-variant-numeric: tabular-nums; }
    .table th.num { text-align: right; }

.table-sm thead th, .table-sm tbody td { padding: 0.4rem 0.6rem; }

/* Prazno stanje u tablici / kartici */
.empty {
    text-align: center;
    color: var(--fp-muted);
    padding: 2.5rem 1rem;
}

    .empty i { display: block; font-size: 1.8rem; color: var(--fp-border-strong); margin-bottom: 0.4rem; }
    .empty .btn { margin-top: 0.75rem; }

/* ---------- Forme ---------- */
.form-label {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--fp-muted);
    margin-bottom: 0.25rem;
}

.form-control, .form-select {
    border-radius: var(--fp-radius);
    border-color: var(--fp-border-strong);
    font-size: 0.9rem;
}

.form-check-input:checked { background-color: var(--fp-court); border-color: var(--fp-court); }

/* ---------- Značke ---------- */
.badge {
    font-weight: 600;
    border-radius: 4px;
    padding: 0.3em 0.55em;
    font-size: 0.75rem;
}

.badge.bg-success { background-color: var(--fp-success) !important; }
.badge.bg-danger { background-color: var(--fp-danger) !important; }
.badge.bg-secondary { background-color: var(--fp-muted) !important; }
.badge.bg-dark { background-color: var(--fp-ink) !important; }
.badge.bg-warning { background-color: var(--fp-line) !important; color: var(--fp-ink) !important; }
.badge.bg-info { background-color: var(--fp-court-tint) !important; color: var(--fp-court) !important; }
.badge.bg-primary { background-color: var(--fp-court) !important; }

.alert { border-radius: var(--fp-radius-lg); }

/* ---------- Sadržaj ---------- */
.content {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    max-width: 1280px;
}

/* ---------- Landing ---------- */
.hero {
    background: var(--fp-ink);
    color: #fff;
    border-radius: var(--fp-radius-lg);
    padding: 4rem 2rem !important;
    position: relative;
    overflow: hidden;
}

    /* linije terena */
    .hero::before {
        content: "";
        position: absolute;
        inset: 1.25rem;
        border: 2px solid rgba(242, 169, 0, 0.35);
        border-radius: 4px;
        pointer-events: none;
    }

    .hero::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 1.25rem;
        bottom: 1.25rem;
        width: 2px;
        background: rgba(242, 169, 0, 0.35);
        pointer-events: none;
    }

    .hero h1 {
        font-size: 4rem;
        color: #fff;
        position: relative;
        z-index: 1;
    }

    .hero .lead { color: rgba(255,255,255,0.78); position: relative; z-index: 1; max-width: 42rem; margin-left: auto; margin-right: auto; }
    .hero .btn { position: relative; z-index: 1; }
    .hero .btn-outline-secondary { color: #fff; border-color: rgba(255,255,255,0.4); background: transparent; }
    .hero .btn-outline-secondary:hover { background: rgba(255,255,255,0.1); }

/* ---------- Blazor zadano ---------- */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--fp-success); }
.invalid { outline: 1px solid var(--fp-danger); }
.validation-message { color: var(--fp-danger); font-size: 0.8rem; }

.blazor-error-boundary {
    background: var(--fp-danger);
    padding: 1rem 1.25rem;
    color: white;
    border-radius: var(--fp-radius);
}

    .blazor-error-boundary::after { content: "Došlo je do greške."; }

.darker-border-checkbox.form-check-input { border-color: #929292; }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
.text-primary { color: var(--fp-court) !important; }

/* ---------- Video analiza (tagging) ---------- */

.video-stage {
    position: relative;
    background: #000;
    border-radius: var(--fp-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

    .video-stage video { width: 100%; height: 100%; display: block; background: #000; }

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: var(--fp-ink);
    color: #fff;
    text-align: center;
    padding: 1rem;
}

    .video-overlay i { font-size: 2.5rem; color: var(--fp-line); }
    .video-overlay .text-muted { color: rgba(255,255,255,0.65) !important; }

.video-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.6rem 0.25rem;
}

    .video-controls .clock { display: flex; align-items: center; gap: 0.75rem; }

.video-time {
    font-family: var(--fp-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--fp-ink);
    line-height: 1;
}

.match-clock {
    font-family: var(--fp-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fp-court);
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--fp-border-strong);
    border-radius: 4px;
    white-space: nowrap;
}

kbd {
    font-family: var(--fp-font);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--fp-text);
    background: var(--fp-bg);
    border: 1px solid var(--fp-border-strong);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 0.05rem 0.35rem;
}

.hotkeys summary { cursor: pointer; }

.tag-panel {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-lg);
    padding: 0.9rem;
    margin-bottom: 0.75rem;
}

.tag-panel-title {
    font-family: var(--fp-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

    .type-grid .btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

.chip-grid { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem 0.2rem 0.2rem;
    border: 1px solid var(--fp-border-strong);
    border-radius: 999px;
    background: var(--fp-surface);
    color: var(--fp-text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

    .chip:hover { border-color: var(--fp-court); color: var(--fp-court); }
    .chip.chip-on { background: var(--fp-court); border-color: var(--fp-court); color: #fff; }
    .chip .shirt { min-width: 1.6rem; height: 1.6rem; font-size: 0.9rem; }

.tag-list {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-lg);
    max-height: 60vh;
    overflow-y: auto;
}

.tag-list-head {
    position: sticky;
    top: 0;
    background: var(--fp-surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--fp-border);
    font-weight: 600;
    z-index: 1;
}

.tag-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--fp-border);
    font-size: 0.85rem;
}

    .tag-row:last-child { border-bottom: 0; }
    .tag-row.tag-row-marker { background: var(--fp-bg); color: var(--fp-muted); }
    .tag-row.tag-row-opp .tag-type { color: var(--fp-muted); }

.tag-time {
    font-family: var(--fp-font-display);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--fp-court);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

    .tag-time:hover { text-decoration: underline; }

.tag-min { color: var(--fp-muted); font-variant-numeric: tabular-nums; min-width: 2.2rem; }
.tag-body { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.tag-type { font-weight: 600; }
.tag-player { display: inline-flex; align-items: center; gap: 0.25rem; }
.tag-player .shirt { min-width: 1.4rem; height: 1.4rem; font-size: 0.8rem; }
.tag-del { border-color: transparent; }
.tag-row:hover .tag-del { border-color: var(--fp-border-strong); }

@media (min-width: 992px) {
    /* (zamijenjeno .tagging-side pravilima niže) */
}

/* ---------- Prijedlog prve petorke ---------- */
.lineup-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (max-width: 768px) { .lineup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lineup-slot {
    position: relative;
    background: var(--fp-bg);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    padding: 0.6rem 0.6rem 0.5rem;
    min-width: 0;
}

    .lineup-slot.lineup-gk { background: var(--fp-line-tint); border-color: #f0d58a; }
    .lineup-slot .lineup-role { font-size: 0.72rem; color: var(--fp-muted); margin-bottom: 0.25rem; }
    .lineup-slot .player-link { white-space: normal; font-size: 0.9rem; }
    .lineup-slot .lineup-why { font-size: 0.72rem; color: var(--fp-muted); margin-top: 0.35rem; line-height: 1.3; }
    .lineup-slot .lineup-index {
        position: absolute;
        top: 0.4rem;
        right: 0.5rem;
        font-family: var(--fp-font-display);
        font-weight: 700;
        color: var(--fp-court);
        font-variant-numeric: tabular-nums;
    }

/* ---------- Video analiza: raspored za velike ekrane ---------- */
.content:has(.tagging-page) { max-width: none; }

.tagging-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (min-width: 992px) {
    .tagging-layout { grid-template-columns: minmax(0, 1fr) 380px; }
}

@media (min-width: 1600px) {
    .tagging-layout { grid-template-columns: minmax(0, 1fr) 440px; }
}

.tagging-main { min-width: 0; }

/* Video uzima svu visinu ekrana koja ostane nakon zaglavlja i kontrola. */
.tagging-main .video-stage {
    aspect-ratio: auto;
    height: calc(100vh - 15rem);
    min-height: 320px;
}

    .tagging-main .video-stage video { object-fit: contain; }

.tagging-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: calc(100vh - 7rem);
}

@media (min-width: 992px) {
    .tagging-side { position: sticky; top: 5rem; }
    .tagging-side .tag-panel { position: static; margin-bottom: 0; flex: 0 0 auto; }
    .tagging-side .tag-list { flex: 1 1 auto; min-height: 8rem; max-height: none; }
}

.segment-switch label { display: inline-flex; align-items: center; cursor: pointer; }

/* Široki prikaz: bez bočne navigacije, manji rubovi. */
body.tagging-wide .sidebar { display: none !important; }
body.tagging-wide .top-row, body.tagging-wide article { padding-left: 1rem !important; padding-right: 1rem !important; }
body.tagging-wide .tagging-main .video-stage { height: calc(100vh - 13rem); }

/* ---------- Usporedba ekipa ---------- */
.compare-row {
    display: grid;
    grid-template-columns: 7rem 1fr 7rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--fp-border);
}

    .compare-row:last-child { border-bottom: 0; }

.compare-val {
    font-family: var(--fp-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--fp-muted);
}

    .compare-val.right { text-align: right; }
    .compare-val.win { color: var(--fp-ink); }
    .compare-val small { display: block; font-family: var(--fp-font); font-size: 0.72rem; font-weight: 500; color: var(--fp-muted); margin-top: 0.2rem; }

.compare-mid { text-align: center; }
.compare-label { font-size: 0.8rem; color: var(--fp-muted); margin-bottom: 0.25rem; }

.compare-bar {
    height: 6px;
    background: var(--fp-border);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

    .compare-bar .ours { display: block; height: 100%; background: var(--fp-court); border-radius: 3px 0 0 3px; }

/* ---------- Postava i COMET događaji u video analizi ---------- */
.lineup-box { border-bottom: 1px solid var(--fp-border); padding-bottom: 0.5rem; }
.chip-title { font-size: 0.72rem; color: var(--fp-muted); margin: 0.25rem 0 0.25rem; }
.chip.chip-static { cursor: default; }
    .chip.chip-static:hover { border-color: var(--fp-border-strong); color: var(--fp-text); }
.tag-row.tag-row-comet { background: var(--fp-line-tint); }
.tag-link { padding: 0.1rem 0.4rem; }
.comet-events summary { cursor: pointer; list-style: none; }
    .comet-events summary::-webkit-details-marker { display: none; }

/* ---------- Upute ispod videa ---------- */
.guide { font-size: 0.85rem; max-width: 72rem; padding: 0.5rem 0 0; }
    .guide section { margin-top: 0.75rem; }
    .guide h6 { font-family: var(--fp-font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--fp-ink); }
    .guide ol { padding-left: 1.2rem; margin-bottom: 0; }
    .guide li { margin-bottom: 0.2rem; }
    .guide dl { display: grid; grid-template-columns: 11rem 1fr; gap: 0.3rem 0.75rem; margin: 0; }
    .guide dt { font-weight: 600; color: var(--fp-ink); }
    .guide dd { margin: 0; color: var(--fp-text); }
    .guide table td:first-child { color: var(--fp-muted); width: 45%; }
@media (max-width: 640px) { .guide dl { grid-template-columns: 1fr; } .guide dt { margin-top: 0.4rem; } }
.video-overlay .btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.4); }
    .video-overlay .btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.chip.chip-bench { border-color: var(--fp-court); color: var(--fp-court); background: var(--fp-court-tint); }
.chip.chip-demo { font-size: 0.7rem; padding: 0.05rem 0.4rem; }
.side-block { border-left: 3px solid var(--fp-court); padding-left: 0.5rem; margin-bottom: 0.5rem; }
    .side-block.side-dim { border-left-color: var(--fp-border-strong); }
    .side-block .side-title { font-size: 0.72rem; font-weight: 600; color: var(--fp-ink); margin-bottom: 0.15rem; }
    .side-block.side-dim .side-title { color: var(--fp-muted); }

/* ---------- Ocjene ---------- */
.rating-big {
    font-family: var(--fp-font-display);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--fp-ink);
    min-width: 5rem;
    text-align: center;
    padding: 0.4rem 0.6rem;
    border-radius: var(--fp-radius);
    background: var(--fp-bg);
}

    .rating-big.good { color: var(--fp-success); }
    .rating-big.bad { color: var(--fp-danger); }

.rating-row { display: grid; grid-template-columns: 5.5rem 1fr 2.5rem; gap: 0.25rem 0.6rem; align-items: center; font-size: 0.85rem; margin-bottom: 0.3rem; }
.rating-name { color: var(--fp-text); font-weight: 600; }
.rating-bar { height: 6px; background: var(--fp-border); border-radius: 3px; overflow: hidden; }
    .rating-bar span { display: block; height: 100%; background: var(--fp-court); }
.rating-val { font-family: var(--fp-font-display); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rating-note { grid-column: 2 / -1; font-size: 0.75rem; color: var(--fp-muted); margin-top: -0.2rem; }

.rating-chip {
    font-family: var(--fp-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 2.6rem;
    text-align: center;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: var(--fp-bg);
    color: var(--fp-ink);
    font-variant-numeric: tabular-nums;
}

    .rating-chip.good { background: var(--fp-success-tint); color: var(--fp-success); }
    .rating-chip.bad { background: var(--fp-danger-tint); color: var(--fp-danger); }

.list-group-item.potm { background: var(--fp-line-tint); }
