.bkv-home-games { color:#173c60; min-width:0; }
.bkv-home-games [hidden] { display:none !important; }
.bkv-home-games__header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; background:#f4f9fd; color:#173c60; border-radius:10px 10px 0 0; }
.bkv-home-games__header strong { font-size:18px; }
.bkv-home-games__header a { color:white !important; font-size:13px; }
.bkv-home-games__controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; background:#f4f9fd; padding:8px; }
.bkv-home-games__controls [role="tablist"] { display:flex; flex:1; min-width:230px; }
body .bkv-home-games__controls button { appearance:none; border:1px solid #cfdfeb; border-radius:5px; padding:10px 8px; margin:0; background:#edf6fc; color:#175785; font:inherit; font-size:13px; text-transform:none; min-width:0; width:auto; box-shadow:none; }
body .bkv-home-games__controls [role="tab"] { flex:1; border:0; border-radius:0; border-bottom:3px solid transparent; background:transparent; }
body .bkv-home-games__controls [aria-selected="true"] { background:white; border-bottom-color:#0879bd; font-weight:700; }
body .bkv-home-games__controls button:disabled { opacity:.45; }
.bkv-home-games__controls button:focus-visible { outline:2px solid #0879bd; outline-offset:2px; }
.bkv-home-games__countdown { font-size:11px; min-width:100px; }
.bkv-home-games__progress { height:5px; margin:10px 8px; overflow:hidden; border-radius:5px; background:#d8e2ed; }
.bkv-home-games__progress span { display:block; width:100%; height:100%; background:#0879bd; transform:scaleX(0); transform-origin:left; transition:transform .1s linear; }
.bkv-home-games__stage { display:grid; }
.bkv-home-games__stage > [role="tabpanel"] { grid-area:1/1; min-width:0; animation:bkv-games-in .3s ease-out; }
.bkv-home-games__list { margin:6px 0; border:1px solid #cfdfeb; border-radius:7px; }
body .bkv-home-games__list h3 { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; margin:0; padding:8px; font-size:13px; color:#173c60; background:#e4f0f8; border-radius:7px 7px 0 0; }
.bkv-home-games__list h3 small { font-size:11px; font-weight:400; }
body .bkv-home-games table { width:100%; table-layout:fixed; margin:0; border:0; border-collapse:collapse; box-shadow:none; }
body .bkv-home-games table th, body .bkv-home-games table td { padding:6px 4px; font-size:13px; vertical-align:middle; border:0; border-bottom:1px solid #dce5ed; text-align:left; }
body .bkv-home-games table th { font-size:10px; background:#f0f5fa; text-transform:uppercase; }
.bkv-home-games th:first-child { width:82px; }
.bkv-home-games th:nth-child(2) { width:72px; }
.bkv-home-games th:nth-child(5) { width:66px; }
.bkv-home-games th:last-child { width:32px; }
.bkv-home-games time span { display:block; color:#63788a; }
.bkv-home-games__pairing { color:#26394c !important; font-weight:400; overflow-wrap:anywhere; }
.bkv-home-games .is-winner { font-weight:700; }
.bkv-home-games__score { display:block; padding:5px 2px; text-align:center; white-space:nowrap; background:transparent; color:#175785 !important; border-radius:0; font-weight:700; }
.bkv-home-games .bkv-gamehint { margin:0; }
@keyframes bkv-games-in { from { opacity:.3; transform:translateY(4px); } to { opacity:1; transform:none; } }
@media(max-width:575.98px) {
    .bkv-home-games__header { padding:12px; }
    .bkv-home-games__controls { gap:6px; }
    .bkv-home-games__controls [role="tablist"] { flex-basis:100%; }
    body .bkv-home-games table td { font-size:12px; padding:6px 3px; }
    .bkv-home-games th:first-child { width:66px; }
    .bkv-home-games th:nth-child(2) { width:56px; }
    .bkv-home-games th:nth-child(5) { width:54px; }
    .bkv-home-games th:last-child { width:28px; }
}
@media(prefers-reduced-motion:reduce) {
    .bkv-home-games__stage > [role="tabpanel"] { animation:none; }
    .bkv-home-games__progress span { transition:none; }
}

/* One compact matchday table, with a narrow class column instead of class cards. */

.bkv-home-games abbr { text-decoration:none; border:0; }
.bkv-home-games__list tbody tr:last-child td { border-bottom:0; }
@media(max-width:575.98px) {

    .bkv-home-games th:nth-child(5) { width:48px; }
    .bkv-home-games th:last-child { width:24px; }
    .bkv-home-games__list h3 small { font-size:10px; }
}

body .bkv-home-games__header .bkv-home-games__pause {
    display:inline-flex; align-items:center; justify-content:center; gap:7px;
    width:auto; min-width:0; min-height:32px; margin:0; padding:6px 10px;
    border:1px solid #c5ddec; border-radius:5px; background:#e4f0f8;
    color:#175785; font:inherit; font-size:12px; font-weight:400;
    line-height:1.3; text-transform:none; box-shadow:none; cursor:pointer;
}
body .bkv-home-games__header .bkv-home-games__pause:hover { background:#fff; }
.bkv-home-games__header .bkv-home-games__pause:focus-visible { outline:2px solid white; outline-offset:3px; }
.bkv-home-games__controls [role="tab"] i { margin-right:4px; }

/* The active tab underline is the only countdown indicator. */
body .bkv-home-games__controls [role="tab"] { position:relative; }
body .bkv-home-games__controls [aria-selected="true"] { border-bottom-color:#cfdfeb; }
body .bkv-home-games__controls [role="tab"]::after {
    content:""; position:absolute; bottom:-3px; left:0; right:0; height:3px;
    background:#0879bd; transform:scaleX(0); transform-origin:left;
    transition:transform .1s linear;
}
body .bkv-home-games__controls [aria-selected="true"]::after {
    transform:scaleX(var(--games-progress, 0));
}
@media(prefers-reduced-motion:reduce) {
    body .bkv-home-games__controls [role="tab"]::after { transition:none; }
}

.bkv-home-games__scroll {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #0879bd #e4f0f8;
}
.bkv-home-games__scroll::-webkit-scrollbar { width: 7px; }
.bkv-home-games__scroll::-webkit-scrollbar-track { background: #e4f0f8; }
.bkv-home-games__scroll::-webkit-scrollbar-thumb { background: #0879bd; border-radius: 4px; }
.bkv-home-games__scroll thead th { position: sticky; top: 0; z-index: 1; }
.bkv-home-games__scroll:focus-visible { outline: 2px solid #0879bd; outline-offset: 2px; }

/* Independent accessible playback button sits beside the active tab label. */
.bkv-home-games__tab-slot { position:relative; display:flex; flex:1; min-width:0; align-items:stretch; }
body .bkv-home-games__controls .bkv-home-games__tab-slot [role="tab"] { width:100%; padding-left:8px; }
body .bkv-home-games__controls .bkv-home-games__tab-slot.is-active [role="tab"] { padding-left:32px; }
body .bkv-home-games__tab-slot.is-active [role="tab"] > i { display:none; }
body .bkv-home-games__controls .bkv-home-games__toggle {
    position:absolute; left:2px; top:50%; transform:translateY(-50%); z-index:2;
    width:30px; min-width:30px; height:32px; padding:4px; border:0;
    background:transparent; color:#175785; border-radius:4px; cursor:pointer;
}
body .bkv-home-games__controls [role="tab"]::after { transition:none; }
.bkv-home-games__scroll { scroll-behavior:auto !important; }

.bkv-home-games__class {
    display:inline-block; padding:4px 6px; border-radius:4px;
    background:#e4f0f8; color:#175785; font-size:11px; font-weight:600;
    line-height:1.25; white-space:nowrap;
}
@media(max-width:575.98px) {
    .bkv-home-games__class { padding:4px; font-size:10px; }
}

/* Today's fixtures: quiet emphasis across the complete row. */
body .bkv-home-games table tr.bkv-home-games__today > td {
    background: #eaf5fc;
}
body .bkv-home-games table tr.bkv-home-games__today > td:first-child {
    box-shadow: inset 3px 0 #8bbddd;
}
