/* =========================================================
   Sistem Futsal - tema korporat MAAB
   Navy #2C3790 · Merah #EA232A · Kelabu #A7A9AC
   ========================================================= */
:root {
    --m-navy: #2c3790;
    --m-navy-dark: #1f2870;
    --m-navy-soft: #eef0fa;
    --m-red: #ea232a;
    --m-red-dark: #c8161d;
    --m-red-soft: #fdecec;
    --m-grey: #a7a9ac;
    --m-grey-soft: #f1f2f4;

    --f-bg: #f4f5f9;
    --f-surface: #ffffff;
    --f-surface-2: #f8f9fc;
    --f-line: #e6e8f0;
    --f-line-strong: #cfd3e0;
    --f-text: #1a1f45;
    --f-muted: #6c7190;
    --f-gold: #d29b00;
    --f-bronze: #b5672c;
    --f-radius: 14px;
    --f-shadow: 0 1px 2px rgba(26, 31, 69, .04), 0 4px 16px rgba(26, 31, 69, .05);
    --f-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

[data-bs-theme=light] {
    --bs-body-bg: var(--f-bg);
    --bs-body-color: var(--f-text);
    --bs-border-color: var(--f-line-strong);
    --bs-secondary-color: var(--f-muted);
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-primary: var(--m-navy);
    --bs-primary-rgb: 44, 55, 144;
    --bs-link-color-rgb: 44, 55, 144;
    --bs-link-hover-color-rgb: 234, 35, 42;
}

body {
    background-color: var(--f-bg);
    color: var(--f-text);
    font-size: .925rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

/* ---------- Bekas halaman awam (lebih lebar, ruang sisi kecil) ---------- */
.container-wide { width: 100%; max-width: 1880px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1200px) { .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; } }

/* ---------- Header ---------- */
.hero {
    background: var(--f-surface);
    padding: 1rem 0;
    margin-bottom: 1.75rem;
    box-shadow: var(--f-shadow);
    position: relative;
}
.hero::after {           /* jalur warna logo */
    content: '';
    position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
    background: linear-gradient(90deg, var(--m-navy) 0 62%, var(--m-red) 62% 88%, var(--m-grey) 88% 100%);
}
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.org-logo { height: 54px; width: auto; flex: none; }
.org-logo.sm { height: 34px; }
.org-logos { display: flex; align-items: center; gap: .75rem; flex: none; }
.org-logo.club { height: 50px; }
.org-logo.sm.club { height: 34px; }
.brand-divider { width: 1px; align-self: stretch; background: var(--f-line-strong); flex: none; }
.brand h1 {
    font-family: var(--f-head); font-weight: 800; text-transform: uppercase;
    letter-spacing: .03em; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1; margin: 0;
    color: var(--m-navy);
}
.brand p { margin: .3rem 0 0; color: var(--f-muted); font-size: .88rem; }

.hero-meta { display: flex; align-items: center; gap: 1rem; color: var(--f-muted); font-size: .8rem; }
.live-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .25rem .65rem; border-radius: 999px;
    background: var(--m-red-soft); color: var(--m-red);
    font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem;
}
.clock { font-family: var(--f-head); font-size: 1.6rem; font-weight: 700; color: var(--m-navy); font-variant-numeric: tabular-nums; }

.dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; margin-right: .35rem;
    animation: pulse 1.4s infinite;
    vertical-align: middle;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(234, 35, 42, .55); }
    70% { box-shadow: 0 0 0 7px rgba(234, 35, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 35, 42, 0); }
}

/* ---------- Tajuk seksyen ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1rem; row-gap: .4rem; }
.sec-head .sub, .sec-head .legend { white-space: nowrap; }
.sec-head h2 {
    font-family: var(--f-head); font-weight: 800; text-transform: uppercase;
    letter-spacing: .04em; font-size: 1.65rem; margin: 0; line-height: 1; color: var(--m-navy);
}
.sec-head .sub { color: var(--f-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.sec-head .bar { width: 5px; height: 24px; border-radius: 2px; background: var(--m-red); flex: none; }
.sec-head .bar.men { background: var(--m-navy); }
.sec-head .bar.women { background: var(--m-red); }
.legend { color: var(--f-muted); font-size: .75rem; display: inline-flex; align-items: center; gap: .4rem; }
.q-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--m-red); display: inline-block; }

/* ---------- Kad ---------- */
.fcard {
    background: var(--f-surface);
    border: 1px solid var(--f-line);
    border-radius: var(--f-radius);
    box-shadow: var(--f-shadow);
    overflow: hidden;
}
.fcard-head {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--f-line);
    font-family: var(--f-head); font-weight: 700; font-size: 1.1rem;
    text-transform: uppercase; letter-spacing: .06em; color: var(--m-navy);
}
.grp-letter {
    width: 28px; height: 28px; border-radius: 8px; flex: none;
    display: grid; place-items: center;
    background: var(--m-navy); color: #fff;
    font-weight: 800; font-size: 1rem;
}
.grp-letter.women { background: var(--m-red); font-size: .85rem; }

/* ---------- Lencana pasukan ---------- */
.tb {
    width: 24px; height: 24px; border-radius: 50%; flex: none;
    object-fit: cover; background: var(--m-grey-soft);
    display: inline-block;
}
.tb-init {
    display: inline-grid; place-items: center;
    font-size: .58rem; font-weight: 700; color: #fff; letter-spacing: .02em;
    background: hsl(var(--hue, 230) 45% 42%);
}
.tb.tb-lg { width: 36px; height: 36px; font-size: .75rem; }
.tb-empty { border: 1px dashed var(--f-line-strong); background: transparent; }

/* ---------- Grid peringkat kumpulan (semua card sama saiz) ---------- */
.std-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: stretch; }
.std-grid > .sec-head { grid-column: 1 / -1; margin-bottom: 0; margin-top: .5rem; align-self: start; }
.std-grid > .sec-head:first-child { margin-top: 0; }
.std-card { display: flex; flex-direction: column; }
@media (min-width: 768px) {
    .std-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .std-grid.single { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .std-grid.split { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1rem; }
    .std-grid.split > * { grid-column: var(--c); grid-row: var(--r); }
    .std-grid.split > .sec-head { margin-top: 0; }
    .std-grid.single { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tbl-std tr.pad td { color: transparent; border-top-color: transparent; background: transparent; }
.tbl-std tr.pad:hover { background: transparent; }
.tb-ghost { visibility: hidden; }
/* 4 lajur pada skrin 1200-1599px: table lebih padat supaya nama pasukan muat */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .std-grid.split .tbl-std { font-size: .84rem; }
    .std-grid.split .tbl-std th, .std-grid.split .tbl-std td { padding-left: .22rem; padding-right: .22rem; }
    .std-grid.split .tbl-std .pos { width: 26px; }
    .std-grid.split .tname { gap: .4rem; }
    .std-grid.split .tbl-std .tb { width: 20px; height: 20px; font-size: .5rem; }
    .std-grid.split .fcard-head { padding: .6rem .8rem; font-size: 1rem; }
}
@media (max-width: 991.98px) {
    .tbl-std tr.pad { display: none; }
}

/* ---------- Table kedudukan ---------- */
.tbl-std { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl-std th {
    font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--f-muted); text-align: center; padding: .55rem .35rem; white-space: nowrap;
    background: var(--f-surface-2);
}
.tbl-std td { text-align: center; padding: .5rem .35rem; border-top: 1px solid var(--f-line); }
.tbl-std .pos { width: 34px; color: var(--f-muted); font-weight: 600; }
.tbl-std th.name, .tbl-std td.name { text-align: left; width: 100%; max-width: 0; }
.tbl-std .pts { font-weight: 800; color: var(--m-navy); }
.tbl-std th.pts { color: var(--m-navy); background: var(--m-navy-soft); }
.tbl-std td.pts { background: var(--m-navy-soft); }
.tbl-std tbody tr { transition: background .15s; }
.tbl-std tbody tr:hover { background: var(--f-surface-2); }
.tbl-std tr.q td.pos { box-shadow: inset 3px 0 0 var(--m-red); color: var(--m-red); }
.tbl-std .gd-pos { color: #16833a; }
.tbl-std .gd-neg { color: var(--m-red); }
.tname { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.tname span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.empty { color: var(--f-muted); text-align: center !important; padding: 1.5rem !important; }

/* ---------- Kad boleh buka/tutup (details/summary) ---------- */
.collapsible > summary {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem 1rem; cursor: pointer; list-style: none; user-select: none;
}
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary::after {
    content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto;
    color: var(--m-navy); transition: transform .2s;
}
.collapsible[open] > summary::after { transform: rotate(180deg); }
.collapsible[open] > summary { border-bottom: 1px solid var(--f-line); }
.collapsible > summary:hover { background: var(--f-surface-2); }
.collapsible .fcard-head-title {
    display: flex; align-items: center; gap: .6rem;
    font-family: var(--f-head); font-weight: 700; font-size: 1.1rem;
    text-transform: uppercase; letter-spacing: .06em; color: var(--m-navy);
}
.collapsible .summary-hint { color: var(--f-muted); font-size: .78rem; letter-spacing: .04em; }
.collapsible[open] .summary-hint { display: none; }

/* ---------- Penerangan markah ---------- */
.legend-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem 1.25rem;
    padding: 1rem;
}
@media (min-width: 576px) { .legend-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .legend-grid { grid-template-columns: repeat(4, 1fr); } }
.legend-item { display: flex; gap: .7rem; align-items: flex-start; }
.legend-item .abbr {
    flex: none; min-width: 42px; height: 30px; padding: 0 .4rem;
    display: grid; place-items: center;
    border-radius: 8px; background: var(--m-navy-soft); color: var(--m-navy);
    font-family: var(--f-head); font-weight: 800; font-size: 1rem; letter-spacing: .03em;
}
.legend-item .abbr.is-pts { background: var(--m-navy); color: #fff; }
.lg-title { font-weight: 600; font-size: .88rem; line-height: 1.2; }
.lg-en { color: var(--f-muted); font-weight: 400; font-size: .75rem; font-style: italic; }
.lg-desc { color: var(--f-muted); font-size: .8rem; margin-top: .15rem; }
.legend-foot {
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
    padding: .7rem 1rem; border-top: 1px solid var(--f-line);
    background: var(--f-surface-2); color: var(--f-muted); font-size: .78rem;
}
.legend-foot strong { color: var(--f-text); font-weight: 600; }
.legend-foot .q-dot { vertical-align: -1px; }

/* ---------- Bracket kalah mati ---------- */
.bracket-wrap { padding: 1.25rem 1rem 1.5rem; }
.bracket-scroll { overflow-x: auto; padding-bottom: .25rem; }
.bracket {
    --gap: 32px;
    display: grid;
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    column-gap: var(--gap);
    min-width: 1080px;
}
.bracket.start-sf { grid-template-columns: repeat(3, minmax(200px, 1fr)); min-width: 680px; max-width: 980px; margin: 0 auto; }
.bracket.start-sf .b-single.left > .bm::before,
.bracket.start-sf .b-single.right > .bm::after { display: none; }
.b-col { display: flex; flex-direction: column; }
.b-round {
    text-align: center; color: var(--m-navy);
    font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
    margin-bottom: .8rem;
}
.b-pair, .b-single { flex: 1; display: flex; flex-direction: column; justify-content: space-around; position: relative; min-height: 400px; }
.b-pair > .bm { margin: .5rem 0; }

.bm {
    position: relative;
    background: var(--f-surface);
    border: 1px solid var(--f-line-strong);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26, 31, 69, .05);
}
.bm.is-live { border-color: var(--m-red); box-shadow: 0 0 0 3px rgba(234, 35, 42, .12); }
.bm-label {
    display: flex; justify-content: space-between; gap: .5rem;
    padding: .35rem .6rem;
    border-bottom: 1px solid var(--f-line);
    background: var(--f-surface-2);
    border-radius: 10px 10px 0 0;
    font-size: .64rem; color: var(--f-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
}
.bm-label span:last-child { overflow: hidden; text-overflow: ellipsis; }
.bm.is-live .bm-label span:last-child { color: var(--m-red); font-weight: 700; }
.bm-team { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; font-size: .86rem; }
.bm-team + .bm-team { border-top: 1px solid var(--f-line); }
.bm-team .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-team .sc { font-weight: 800; min-width: 1.4rem; text-align: right; font-variant-numeric: tabular-nums; font-size: .95rem; }
.bm-team .pen { color: var(--f-muted); font-size: .72rem; }
.bm-team.win .nm { font-weight: 700; color: var(--m-navy); }
.bm-team.win .sc { color: var(--m-red); }
.bm-team.lose { opacity: .5; }
.bm-team.tbd .nm { color: var(--f-muted); font-style: italic; font-size: .8rem; }

/* penyambung garisan */
.b-pair > .bm::after,
.b-single > .bm::before, .b-single > .bm::after {
    content: ''; position: absolute; top: 50%;
    width: calc(var(--gap) / 2 + 1px); border-top: 2px solid var(--f-line-strong);
}
.b-pair.left > .bm::after, .b-single > .bm::after { right: calc(var(--gap) / -2 - 1px); }
.b-pair.right > .bm::after, .b-single > .bm::before { left: calc(var(--gap) / -2 - 1px); }
.b-pair::after {
    content: ''; position: absolute; top: 25%; bottom: 25%;
    border-left: 2px solid var(--f-line-strong);
}
.b-pair.left::after { right: calc(var(--gap) / -2 - 1px); }
.b-pair.right::after { left: calc(var(--gap) / -2 - 1px); }

/* lajur akhir */
.b-final-grid { flex: 1; display: grid; grid-template-rows: 1fr auto 1fr; min-height: 400px; }
.b-final-grid .b-single { min-height: 0; flex: none; }
.bm-final { border: 2px solid var(--m-navy); box-shadow: 0 6px 20px rgba(44, 55, 144, .15); }
.bm-final .bm-label { background: var(--m-navy); color: #fff; border-radius: 8px 8px 0 0; }
.champ { align-self: end; text-align: center; padding-bottom: 1rem; }
.champ .bi { font-size: 2.1rem; color: var(--m-grey); }
.champ.has .bi { color: var(--f-gold); filter: drop-shadow(0 2px 8px rgba(210, 155, 0, .35)); }
.champ-lbl { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--f-muted); margin-top: .1rem; font-weight: 600; }
.champ-name {
    font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: .45rem; letter-spacing: .03em;
    color: var(--m-navy);
}
.third { align-self: start; padding-top: 1.75rem; }
.bm-third { border-color: rgba(181, 103, 44, .45); }
.bm-third .bm-label { color: var(--f-bronze); }
.third-win { text-align: center; font-size: .78rem; color: var(--f-muted); margin-top: .55rem; }
.third-win .bi { color: var(--f-bronze); }

/* ---------- Jadual perlawanan ---------- */
.tbl-sched { width: 100%; border-collapse: collapse; }
.tbl-sched th {
    font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--f-muted); padding: .7rem 1rem; white-space: nowrap; background: var(--f-surface-2);
}
.tbl-sched td { padding: .6rem 1rem; border-top: 1px solid var(--f-line); vertical-align: middle; }
.tbl-sched th.t-time { width: 80px; }
.tbl-sched td.t-time { width: 80px; font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--m-navy); }
.tbl-sched th.t-court { width: 140px; }
.tbl-sched td.t-court { width: 140px; color: var(--f-muted); white-space: nowrap; font-size: .85rem; }
.tbl-sched .t-stage { width: 160px; }
.tbl-sched .t-status { width: 130px; }
.tbl-sched .date-row td {
    background: var(--m-navy); color: #fff;
    font-family: var(--f-head); font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; padding: .45rem 1rem;
}
.m-row.is-live { background: var(--m-red-soft); }
.m-row.is-live td.t-time { color: var(--m-red); }
.m-row.is-done td.t-time { color: var(--f-muted); }

.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .9rem; min-width: 320px; }
.vs-a, .vs-b { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.vs-a { justify-content: flex-end; text-align: right; }
.vs .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.vs .win .nm { font-weight: 700; color: var(--m-navy); }
.vs .tbd .nm { color: var(--f-muted); font-style: italic; font-size: .82rem; }
.score-box {
    min-width: 70px; text-align: center;
    background: var(--m-navy); color: #fff;
    border-radius: 8px; padding: .25rem .6rem;
    font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.score-box .sep { opacity: .6; margin: 0 .1rem; }
.score-box.is-vs { background: var(--m-grey-soft); color: var(--f-muted); font-size: .8rem; letter-spacing: .12em; padding: .4rem .6rem; }
.m-row.is-live .score-box { background: var(--m-red); }
.pen-line { font-family: 'Inter', sans-serif; font-size: .62rem; opacity: .8; font-weight: 500; }

.stage {
    font-size: .7rem; font-weight: 600; letter-spacing: .04em;
    padding: .2rem .55rem; border-radius: 6px; white-space: nowrap;
}
.stage.men { background: var(--m-navy-soft); color: var(--m-navy); }
.stage.women { background: var(--m-red-soft); color: var(--m-red-dark); }
.stage.ko { background: var(--m-grey-soft); color: #4a4d55; border: 1px solid #dcdee2; }

.st {
    display: inline-flex; align-items: center;
    font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .25rem .6rem; border-radius: 999px; white-space: nowrap;
}
.st-live { background: var(--m-red); color: #fff; }
.st-done { background: var(--m-grey-soft); color: var(--f-muted); }
.st-soon { background: var(--m-navy-soft); color: var(--m-navy); }

/* butang tapis */
.fpills { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
.fpills button {
    background: var(--f-surface); color: var(--f-muted);
    border: 1px solid var(--f-line-strong); border-radius: 999px;
    padding: .25rem .8rem; font-size: .78rem; font-weight: 500;
    transition: all .15s;
}
.fpills button:hover { color: var(--m-navy); border-color: var(--m-navy); }
.fpills button.active { background: var(--m-navy); color: #fff; border-color: var(--m-navy); font-weight: 600; }

/* ---------- Footer ---------- */
.site-foot { background: var(--f-surface); border-top: 1px solid var(--f-line); padding: .9rem 0; color: var(--f-muted); font-size: .78rem; }
.site-foot strong { color: var(--m-navy); }
.foot-logo { height: 22px; width: auto; }
.foot-link { color: var(--f-muted); text-decoration: none; }
.foot-link:hover { color: var(--m-red); }

/* ---------- Responsif ---------- */
@media (max-width: 767.98px) {
    .org-logo { height: 38px; }
    .org-logo.club { height: 50px; }
    .hero-meta { width: 100%; justify-content: space-between; }
    .hero-meta .updated { display: none; }
    .sec-head { flex-wrap: wrap; }
    .sec-head .legend { width: 100%; margin-left: 0 !important; }
    .sec-head .fpills { margin-left: 0 !important; width: 100%; }
    .tbl-std { font-size: .82rem; }
    .tbl-std th, .tbl-std td { padding-left: .2rem; padding-right: .2rem; }
    .tbl-std .pos { width: 26px; }
    .tbl-std .tb { display: none; }
    .tbl-sched td, .tbl-sched th { padding-left: .6rem; padding-right: .6rem; }
    .tbl-sched .t-court { width: auto; font-size: .75rem; }
    .vs { min-width: 260px; gap: .5rem; }
    .vs .tb { display: none; }
}
@media (max-width: 479.98px) {
    .brand { flex-wrap: wrap; row-gap: .6rem; }
    .brand-divider { display: none; }
    .brand > div { width: 100%; }
}

/* =========================================================
   Admin
   ========================================================= */
.admin-bar {
    background: var(--f-surface);
    border-bottom: 1px solid var(--f-line);
    box-shadow: var(--f-shadow);
    position: sticky; top: 0; z-index: 1020;
}
.admin-bar::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
    background: linear-gradient(90deg, var(--m-navy) 0 62%, var(--m-red) 62% 88%, var(--m-grey) 88% 100%);
}
.admin-bar .title { font-family: var(--f-head); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; color: var(--m-navy); line-height: 1.1; }
.admin-tabs { gap: .35rem; flex-wrap: nowrap; overflow-x: auto; }
.admin-tabs .nav-link {
    color: var(--f-muted); border-radius: 10px; padding: .5rem .9rem; font-weight: 500; white-space: nowrap;
}
.admin-tabs .nav-link:hover { color: var(--m-navy); background: var(--m-navy-soft); }
.admin-tabs .nav-link.active { background: var(--m-navy); color: #fff; font-weight: 600; }

.fcard-body { padding: 1rem; }
.fcard-head .small-actions { margin-left: auto; font-family: 'Inter', sans-serif; text-transform: none; letter-spacing: 0; font-size: .8rem; }

.btn-accent {
    --bs-btn-bg: var(--m-navy); --bs-btn-color: #fff; --bs-btn-border-color: var(--m-navy);
    --bs-btn-hover-bg: var(--m-navy-dark); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--m-navy-dark);
    --bs-btn-active-bg: var(--m-navy-dark); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--m-navy-dark);
    font-weight: 600;
}
.btn-outline-primary {
    --bs-btn-color: var(--m-navy); --bs-btn-border-color: var(--m-navy);
    --bs-btn-hover-bg: var(--m-navy); --bs-btn-hover-border-color: var(--m-navy); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--m-navy-dark); --bs-btn-active-border-color: var(--m-navy-dark);
}
.form-control:focus, .form-select:focus { border-color: var(--m-navy); box-shadow: 0 0 0 .2rem rgba(44, 55, 144, .15); }
.form-label { font-size: .78rem; color: var(--f-muted); font-weight: 500; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--m-navy); border-color: var(--m-navy); }
.form-check-input:focus { border-color: var(--m-navy); box-shadow: 0 0 0 .2rem rgba(44, 55, 144, .15); }
.modal-content { border: 0; border-radius: var(--f-radius); }

.tbl-admin { width: 100%; border-collapse: collapse; }
.tbl-admin th { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--f-muted); padding: .6rem .75rem; font-weight: 600; white-space: nowrap; background: var(--f-surface-2); }
.tbl-admin td { padding: .55rem .75rem; border-top: 1px solid var(--f-line); vertical-align: middle; }
.tbl-admin tbody tr:hover { background: var(--f-surface-2); }
.data-action { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .75rem 0; border-top: 1px solid var(--f-line); }
.data-action:first-of-type { border-top: 0; padding-top: 0; }
.data-action-text { flex: 1 1 260px; }
.data-action-ctrl { display: flex; gap: .4rem; flex: 0 1 300px; }
.data-action-ctrl .form-control { min-width: 130px; }
.court-cols { display: flex; gap: .5rem; padding-bottom: .35rem; margin-bottom: .5rem; border-bottom: 1px solid var(--f-line);
    font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--f-muted); }
.court-cols .bi { font-size: .65rem; }
.flex-none { flex: none; }
.match-filter { padding: .8rem 1rem; border-bottom: 1px solid var(--f-line); background: var(--f-surface-2); }
.match-filter .form-label { margin-bottom: .2rem; }
.score-in { width: 58px; text-align: center; font-weight: 700; display: inline-block; }

.logo-preview { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px dashed var(--f-line-strong); display: grid; place-items: center; color: var(--f-muted); overflow: hidden; flex: none; background: var(--f-surface-2); }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }

.ko-card .fcard-head { justify-content: space-between; }
.ko-card .round-tag { font-size: .7rem; padding: .15rem .5rem; border-radius: 6px; background: var(--m-red); color: #fff; font-family: 'Inter', sans-serif; letter-spacing: .04em; }
.ko-side { display: grid; grid-template-columns: 1fr 64px 64px; gap: .4rem; align-items: end; }
.ko-side .form-label .bi-info-circle { font-size: .7rem; opacity: .7; }
.ko-side [data-ko-pen]:disabled { background: var(--m-grey-soft); opacity: .55; cursor: not-allowed; }
.ko-hint { font-size: .75rem; line-height: 1.35; border-radius: 8px; padding: .4rem .6rem; margin: .1rem 0 .8rem; background: var(--f-surface-2); color: var(--f-muted); }
.ko-hint:empty { display: none; }
.ko-hint.is-win { background: #eaf6ee; color: #146c2e; }
.ko-hint.is-warn { background: #fff4e0; color: #8a5300; }
.ko-guide { overflow: hidden; }
.ko-guide > summary { cursor: pointer; padding: .75rem 1rem; font-weight: 600; color: var(--m-navy); list-style: none; }
.ko-guide > summary::-webkit-details-marker { display: none; }
.ko-guide > summary::after { content: '\F282'; font-family: 'bootstrap-icons'; float: right; transition: transform .2s; }
.ko-guide[open] > summary::after { transform: rotate(180deg); }
.ko-guide[open] > summary { border-bottom: 1px solid var(--f-line); }
.ko-guide-body { padding: 1rem; }
.ko-guide-body p { font-size: .82rem; color: var(--f-muted); margin: .35rem 0 0; }
.ko-guide-step { display: flex; align-items: center; gap: .5rem; color: var(--m-navy); }
.ko-guide-step span { width: 24px; height: 24px; border-radius: 50%; background: var(--m-navy); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex: none; }
.ko-guide-table { max-width: 520px; font-size: .82rem; border: 1px solid var(--f-line); }

.vis-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-top: 1px solid var(--f-line); cursor: pointer; }
.vis-item:first-of-type { border-top: 0; }
.vis-item .form-check-input { width: 2.6em; height: 1.35em; cursor: pointer; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: 100%; max-width: 400px; }
.login-logos { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.login-logo { max-width: 200px; width: 55%; height: auto; }
.login-logo.club { width: auto; height: 96px; }
.login-title { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; color: var(--m-navy); font-size: 1.7rem; margin: 0; }
