/* ==========================================================================
   👑 LIVEPOOL PRO: MASTER TOURNAMENT UNIFIED SHEET (v70000)
   Zawiera: Tabele tradycyjne, Widok zawodników, Drabinki oraz Systemy LSB TV
   ========================================================================== */

/* ==========================================================================
   SEKCJA A: GLOBALNE TRADYCYJNE TABELE MECZÓW I PUNKTACJI (LIVE TABLE)
   ========================================================================== */

.match-table td {
    font-size: 0.8rem;
    color: #eee;
}

/* ==========================================================================
   SEKCJA B: GŁÓWNE MENU PIGUŁEK TURNIEJU (INFO / MECZE / ZAWODNICY)
   ========================================================================== */

#tournamentMainTabs {
    background-color: #16191c !important;
}
#tournamentMainTabs .nav-link {
    transition: all 0.2s ease-in-out;
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid transparent;
}
#tournamentMainTabs .nav-link:hover {
    color: #fff !important;
}
#tournamentMainTabs .nav-link.active {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}

/* ====================================================================== */
/* 👑 LIVEPOOL PRO: INDESTRUCTIBLE ONCLICK-TARGETED FILTER MATRIX (v71100) */
/* 🚀 FIX PRODUKCYJNY: OMIJAMY ZATOR JS POPRZEZ RIGID INTERCEPTOR ATRIBUTÓW */
/* ====================================================================== */

/* 🔘 A. BAZOWY GABARYT: Wyjściowe, mroczne tło i rzeszowskie zaokrąglenie */
#matchFiltersButtonGroup button,
#matchFiltersButtonGroup .btn {
    background-color: rgba(20, 22, 25, 0.5) !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    font-size: 0.7rem !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

/* ====================================================================== */
/* 🔵 1. FILTR: WSZYSTKIE (Namierzanie po unikalnym atrybucie onclick='all') */
/* ====================================================================== */
#matchFiltersButtonGroup button[onclick*="'all'"],
#matchFiltersButtonGroup button[onclick*='"all"'] {
    border: 2px solid #0d6efd !important; /* Sztywna, nasycona niebieska ramka */
    color: rgba(13, 110, 253, 0.9) !important;
}
/* 🚀 AKTYWACJA: Gdy ta pigułka dostaje od JS klasę aktywnej tarczy, zalewamy ją niebieskim solid-bg! */
#matchFiltersButtonGroup button[onclick*="'all'"].active-filter-shield,
#matchFiltersButtonGroup button[onclick*='"all"'].active-filter-shield {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

/* ====================================================================== */
/* 🔴 2. FILTR: NA ŻYWO (Namierzanie po unikalnym atrybucie onclick='w grze') */
/* ====================================================================== */
#matchFiltersButtonGroup button[onclick*="'w grze'"],
#matchFiltersButtonGroup button[onclick*='"w grze"'] {
    border: 2px solid #dc3545 !important; /* Sztywna, nasycona czerwona ramka */
    color: rgba(220, 53, 69, 0.9) !important;
}
/* 🚀 AKTYWACJA: Gdy ta pigułka dostaje od JS klasę aktywnej tarczy, zalewamy ją czerwoną turniejową krwią! */
#matchFiltersButtonGroup button[onclick*="'w grze'"].active-filter-shield,
#matchFiltersButtonGroup button[onclick*='"w grze"'].active-filter-shield {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

/* ====================================================================== */
/* 🟢 3. FILTR: ZAKOŃCZONE (Namierzanie po unikalnym atrybucie onclick='zakończony') */
/* ====================================================================== */
#matchFiltersButtonGroup button[onclick*="'zakończony'"],
#matchFiltersButtonGroup button[onclick*='"zakończony"'] {
    border: 2px solid #198754 !important; /* Sztywna, nasycona zielona ramka */
    color: rgba(25, 135, 84, 0.9) !important;
}
/* 🚀 AKTYWACJA: Gdy ta pigułka dostaje od JS klasę aktywnej tarczy, zalewamy ją głęboką zielenią! */
#matchFiltersButtonGroup button[onclick*="'zakończony'"].active-filter-shield,
#matchFiltersButtonGroup button[onclick*='"zakończony"'].active-filter-shield {
    background-color: #198754 !important;
    color: #ffffff !important;
}

/* ====================================================================== */
/* 🔘 4. FILTR: OCZEKUJĄCE (Namierzanie po unikalnym atrybucie onclick='oczekuje') */
/* ====================================================================== */
#matchFiltersButtonGroup button[onclick*="'oczekuje'"],
#matchFiltersButtonGroup button[onclick*='"oczekuje"'] {
    border: 2px solid rgba(255, 255, 255, 0.25) !important; /* Sztywna szaro-grafitowa ramka */
    color: rgba(255, 255, 255, 0.6) !important;
}
/* 🚀 AKTYWACJA: Gdy ta pigułka dostaje od JS klasę aktywnej tarczy, zalewamy ją e-sportowym grafitem! */
#matchFiltersButtonGroup button[onclick*="'oczekuje'"].active-filter-shield,
#matchFiltersButtonGroup button[onclick*='"oczekuje"'].active-filter-shield {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* ✨ EFEKT HOVER (Najazd myszką dla nieaktywnych stanów) */
#matchFiltersButtonGroup button:not(.active-filter-shield):hover {
    color: #ffffff !important;
    opacity: 0.95 !important;
}



/* ====================================================================== */
/* 👑 LIVEPOOL PRO: UNIFIED NATIVE SWITCHER SHIELD (MECZE + ZAWODNICY)   */
/* 🚀 FIX: 100% SPRZĘTOWEGO PRZEŁĄCZANIA BEZ OPÓŹNIEŃ I BEZ UDZIAŁU JQUERY */
/* ====================================================================== */

/* ⚪ STAN DOMYŚLNY (NIEAKTYWNY): Przyciski w obu zakładkach są przezroczyste i wygaszone */
#playersViewTogglerGroup .btn-check + .btn,
#arenaViewTogglerGroup .btn-check + .btn {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.4) !important;
    border: 0 !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important; /* Rozmiar fs-7 z paska */
    transition: all 0.15s ease-in-out !important;
}

/* 🟡 STAN AKTYWNY (ZAZNACZONY): Potężny, złoty rozbłysk wybranego widoku z automatu przeglądarki! */
#playersViewTogglerGroup .btn-check:checked + .btn,
#arenaViewTogglerGroup .btn-check:checked + .btn {
    background-color: #ffc107 !important; /* Drapieżne klubowe złoto LivePool */
    color: #141415 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* Efekt najazdu myszką (Hover Effect) dla wygaszonych przycisków */
#playersViewTogglerGroup .btn-check + .btn:hover,
#arenaViewTogglerGroup .btn-check + .btn:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}



/* ==========================================================================
   SEKCJA C: DYNAMICZNY PASEK NARZĘDZIOWY (SZUKAJKA + SWITCH W WIERSZU)
   ========================================================================== */

.lp-card-main-row {
    flex-direction: column;
}

.lp-toolbar-row {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
}

.lp-global-card-number {
    position: absolute;
    width: 24px; 
    height: 24px; 
    left: 5px; 
    top: 5px;
    z-index: 50; 
    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
}

#playerDisplayWrapper:not(.view-as-list) .lp-avatar-holder img {
    height: 100px;
    width: 100px;
}

#playerDisplayWrapper:not(.view-as-list) .lp-left-meta-zone {
    flex-direction: column;
}

.lp-country-line,
.lp-player-city-text.lp-city-line {
    font-size: 0.75rem;
}

/* ====================================================================== */
/* SEKCJA D: ZAWODNICY - WIDOK RESPONSYWNEJ LISTY (DOMYŚLNIE MOBILNIE)    */
/* ====================================================================== */

/* 👑 POPRAWKA: Każdy selektor otrzymał twardą spację po .view-as-list! */

.view-as-list .lp-player-responsive-card {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px !important;
    display: flex !important;
    position: relative !important;
}

/* 📱 Mobilny rdzeń wiersza: Układa elementy w pionie (column) dla smartfona */

.view-as-list .lp-searchable-player-card {
    padding-left: 0;
    padding-right: 0;
}

.view-as-list .lp-card-main-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
}

.view-as-list .lp-left-meta-zone {
    display: flex !important;
    flex-direction: row;
    align-items: center !important;
    text-align: left !important;
    width: 100% !important;
    padding-right: 45px !important;
}

.view-as-list .lp-text-meta-zone {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 3px !important;
    width: auto !important;
}

.view-as-list .lp-player-name-text,
.view-as-list .lp-js-search-name {
    margin: 0 !important;
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}

.view-as-list .lp-player-city-text,
.view-as-list .lp-city-line {
    margin: 0 !important;
    display: block !important;
    font-size: 0.82rem !important;
}

.view-as-list .lp-country-line {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* ====================================================================== */
/* SEKCJA E: ADAPTACJA WIDOKU LISTY POD MONITOR DESKTOP (>= 768px)        */
/* ====================================================================== */

@media (min-width: 768px) {

    .lp-left-meta-zone {
        flex-direction: column;
    }

    .view-as-list .lp-card-main-row {
        flex-direction: row;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px !important;
    }

    .view-as-list .lp-left-meta-zone {
        width: auto !important;
        padding-right: 0 !important;
        gap: 20px !important;
    }

    .view-as-list .lp-text-meta-zone {
        flex-direction: row !important;
        align-items: center !important;
        gap: 60px !important;
    }

    .view-as-list .lp-player-name-text,
    .view-as-list .lp-js-search-name {
        min-width: 220px !important;
        max-width: 220px !important;
    }

    .view-as-list .lp-player-city-text,
    .view-as-list .lp-city-line {
        min-width: 160px !important;
        max-width: 160px !important;
    }

    .view-as-list .lp-country-line {
        position: static !important;
        transform: none !important;
        justify-content: flex-start !important;
        min-width: 120px !important;
    }
    
    .view-as-list .lp-referee-action-zone {
        position: static !important;
        transform: none !important;
        width: auto !important;
        display: inline-flex !important;
        justify-content: flex-end !important;
    }

    .view-as-list .lp-avatar-holder img {
        height: 48px !important;
        width: 48px !important;
    }
}


/* ==========================================================================
   SEKCJA F: AUTONOMICZNA RELOKACJA FLAGI DLA SMARTFONÓW (< 768px)
   ========================================================================== */

@media (max-width: 767.98px) {
    .view-as-list .lp-country-line {
        position: absolute !important;
        font-size: 0.8rem;
        right: 14px !important;
        top: 36px !important;
        transform: translateY(-50%) !important;
        justify-content: flex-end !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    .view-as-list .lp-country-line small {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }
    .view-as-list .lp-country-line .lp-flag-icon {
        margin-right: 0 !important;
    }
}

#playerDisplayWrapper:not(.view-as-list) .lp-country-line small {
    display: inline-block !important;
    visibility: visible !important;
    width: auto !important;
}

.view-as-list .lp-referee-action-zone {
    position: static !important;
    transform: none !important;
    margin-top: 4px !important;
    width: 100%;
    display: flex !important;
    justify-content: center;
    z-index: 10 !important;
}

.view-as-list .lp-avatar-holder {
    margin-left: 30px !important;
}

.view-as-list .lp-avatar-holder img {
    height: 48px;
    width: 48px;
}

/* ==========================================================================
   SEKCJA G: MATRYCE MEDIA-QUERIES POD HELIX I COMPACT ENGINE
   ========================================================================== */
@media (max-width: 575.98px) {
    .lp-main-tabs-wrapper {
        width: 100% !important;
        padding: 0 2px !important;
    }
    #tournamentMainTabs {
        width: 100% !important;
        gap: 2px !important;
        border-radius: 8px !important;
    }
    #tournamentMainTabs .nav-link i {
        font-size: 0.75rem !important;
    }
}

@media (min-width: 768px) {
    #tournamentMainTabs .nav-item {
        width: auto !important;
        min-width: auto !important;
        flex: 1 1 auto !important;
    }
}

.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
    -webkit-overflow-scrolling: touch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.livepool-results-wrapper {
    padding-left: 2px !important;
    padding-right: 2px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}
.lp-live-table {
    min-width: 520px !important;
    width: 520px !important;
    table-layout: fixed !important;
}
.lp-live-table td {
    padding: 6px 3px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.lp-live-table td:first-child {
    width: 32px !important;
    font-size: 0.7rem !important;
    color: #6c757d !important;
    text-align: center !important;
}
.lp-live-table .p1-name {
    width: 165px !important;
    padding-right: 4px !important;
}
.lp-live-table td:nth-child(3) {
    width: 85px !important;
}
.lp-live-table td:nth-child(3).badge {
    min-width: 25px !important;
    padding: 4px 6px !important;
    font-size: 0.8rem !important;
}
.lp-live-table td:nth-child(3) span.fw-bold {
    font-size: 0.75rem !important;
    padding: 0 1px !important;
}
.lp-live-table .p2-name {
    width: 165px !important;
    padding-left: 4px !important;
}
.lp-live-table td:nth-last-child(2) {
    width: 48px !important;
    font-size: 0.68rem !important;
}
.lp-live-table td:nth-last-child(2).badge {
    font-size: 0.6rem !important;
    padding: 2px 4px !important;
}
.lp-live-table .status-cell {
    width: 25px !important;
    text-align: center !important;
    padding: 0 !important;
}
.lp-live-table .status-cell i {
    font-size: 0.85rem !important;
}

/* ==========================================================================
   👑 SEKCJA H: LIVEPOOL PRO: MASTER COMPACT FLOWCHART BRACKET SHIELD (v220.PRO)
   🚀 FIX OSTATECZNY: APTEKARSKI TUNING GÓRNEJ BELKI + OCHRONA GEOMETRII KAFELKA
   ========================================================================== */

/* 🍏 1. GŁÓWNY PANCERZ KAFELKA DRABINKI (Uporządkowanie struktury pod ciemny pas) */
.livepool-match-box,
[class*="match-box"],
.livepool-flowchart-container .livepool-match-box,
.flowchart-match-box,
.card.flowchart-match-box {
    min-height: auto !important;
    height: auto !important;
    padding: 0 0 8px 0 !important; /* Wyzerowany top i boki, aby górna belka siadła idealnie od krawędzi do krawędzi! */
    margin-bottom: 20px;
    width: 300px !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    overflow: hidden !important; /* Zabezpieczenie przed uciekaniem zaokrąglonych rogów tła belki */
}

#livepool-flowchart-zone .built-in-bracket-potok {
    justify-content: space-around !important;
}

.flowchart-match-box > div:not(:first-child),
.card.flowchart-match-box > div:not(:first-child),
.livepool-match-box > div:not(:first-child) {
    padding-left: 12px !important;  /* Luksusowy boczny margines od lewej ramki */
    padding-right: 12px !important; /* Luksusowy boczny margines od prawej ramki */
    width: 100% !important;
    margin-top: 0px !important;
}

#lsb-tv-grid-wrapper .card.lsb-tv-live {
    background-color: #dc354545!important;
    border-color: #dc354591 !important;
}

#lsb-tv-grid-wrapper .card.lsb-tv-awaiting {
    background-color: #6c757d!important;
    border-color: #ccc !important;
}



/* 🍏 2. TUNING GÓRNEJ BELKI LOGISTYCZNEJ (Ciemniejszy pas z dolnym borderem) */
.livepool-match-box > .d-flex.flex-row.align-items-center.justify-content-between,
.flowchart-match-box > .d-flex.flex-row.align-items-center.justify-content-between,
.card.flowchart-match-box > .d-flex.flex-row.align-items-center.justify-content-between,
.match-box-header {
    background-color: #0b0b0d !important; /* Głęboki, luksusowy onyxowy grafit */
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important; /* Neonowy, sterylny separator dolny */
    padding: 6px 12px !important; /* Eleganckie napowietrzenie wnętrza pasa logistycznego */
    margin-bottom: 8px !important; /* Zrzucamy zawodników delikatnie w dół */
    width: 100% !important;
}

/* 🍏 3. DOPASOWANIE WNĘTRZA DLA DOLNEJ STREFY POJEDYNKU (Powrót paddingów bocznych) */
.livepool-match-box > .p-2,
.flowchart-match-box > .p-2,
.card.flowchart-match-box > .p-2,
.livepool-match-box > .d-flex.flex-column:not(.match-box-header) {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* 🍏 4. WYPROSTOWANIE I UNIFIKACJA TEKSTÓW BELKI (Numer pojedynku i Czas) */
.livepool-match-box .fw-bold.font-monospace.fs-7,
.flowchart-match-box .fw-bold.font-monospace.fs-7,
[class*="match-box"] .fw-bold.font-monospace.fs-7 {
    color: #ffc107 !important; /* Drapieżne złoto dla numeru walki (#1) */
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
}

.livepool-match-box .text-muted-2.font-monospace.fs-7,
.flowchart-match-box .text-muted-2.font-monospace.fs-7,
[class*="match-box"] .text-muted-2.font-monospace.fs-7 {
    color: rgba(255, 255, 255, 0.65) !important; /* Rozjaśnienie i uczytelnienie godziny startu */
    font-weight: 600 !important;
}


/* ====================================================================== */
/* 👑 LIVEPOOL PREMIUM: HIGH-SPEED E-SPORT IMPACT FLASHES                 */
/* ====================================================================== */

@keyframes lsbNeonPulse {
    0% { 
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.4), inset 0 0 10px rgba(220, 53, 69, 0.15) !important;
        border-color: rgba(220, 53, 69, 0.5) !important;
    }
    50% { 
        box-shadow: 0 0 35px rgba(220, 53, 69, 0.8), inset 0 0 25px rgba(220, 53, 69, 0.4) !important;
        border-color: rgba(220, 53, 69, 1) !important;
    }
    100% { 
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.4), inset 0 0 10px rgba(220, 53, 69, 0.15) !important;
        border-color: rgba(220, 53, 69, 0.5) !important;
    }
}

/* 📺 ANIMACJA 2: Błyskawiczny, uderzeniowy rozbłysk tła kafelka TV (LSB) przy zmianie wyniku */
@keyframes lsbTvCardFlash {
    0% { background-color: #1a1112 !important; }
    15% { background-color: #3b1619 !important; box-shadow: 0 0 40px rgba(220, 53, 69, 0.6) !important; }
    100% { background-color: #1a1112 !important; }
}

/* 📺 ANIMACJA 3: Agresywny, złoty neonowy wybuch dla samej cyfry wyniku na TV */
@keyframes lsbTvDigitFlash {
    0% { color: #fff; text-shadow: none; background-color: transparent; }
    20% { color: #ffc107 !important; text-shadow: 0 0 30px #ffc107 !important; background-color: rgba(255, 193, 7, 0.15) !important; }
    100% { color: inherit; text-shadow: inherit; background-color: transparent; }
}

/* 📱 ANIMACJA 4: Sterylny, neonowy rozbłysk poświaty dla kostki wyniku na telefonie (BEZ SZARPANIA RAMKI!) */
@keyframes lsbListScoreFlash {
    0% { box-shadow: 0 0 0px transparent; }
    20% { background-color: #ffc107 !important; color: #000000 !important; box-shadow: 0 0 25px #ffc107 !important; border-color: #ffc107 !important; }
    100% { }
}

/* ====================================================================== */
/* 🚀 AKTYWACJA KLAS CENTRAL SCORE AUTO-REFRESH MATRIX                    */
/* ====================================================================== */

/* Kanał A: Kafelki i Cyfry na Telewizorze — czas skrócony do 1.2s, aby zdążyć przed przeładowaniem HTML! */
.lsb-card-changed {
    animation: lsbTvCardFlash 1.2s ease-in-out !important;
}
.lsb-score-changed {
    animation: lsbTvDigitFlash 1.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Kanał B: Małe kostki na smartfonie — czysty błysk światła bez dotykania geometrii przycisku */
.lsb-list-score-flash-active {
    animation: lsbListScoreFlash 1.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Upewniamy się, że cyfry na TV i kostki na telefonie mają pełną gotowość transition */
.lsb-tv-score-digit, .score-box-1, .score-box-2 {
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}


/* ====================================================================== */
/* 📺 WIDOK TABLICY TELEWIZYJNEJ (LIVESCOREBOARD FULLSCREEN HUD)           */
/* ====================================================================== */
.lsb-tv-content-root {
    background-color: #0b0b0c !important;
    padding: 24px 24px 30px 24px !important;
    overflow-y: auto !important;
}

/* Podbicie priorytetu warstw nad paskami Helix Ultimate */
.lsb-custom-modal { z-index: 10050 !important; }
.lsb-custom-modal .modal-content { z-index: 10060 !important; }
.lsb-custom-modal .btn-close-white { filter: invert(1) brightness(2) !important; opacity: 0.7; transition: all 0.2s ease; }
.lsb-custom-modal .btn-close-white:hover { transform: scale(1.15); opacity: 1 !important; }

/* GEOMETRIA KAFELKA KLUBU BILARDOWEGO */
.lsb-tv-table-card { border-radius: 20px !important; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.lsb-tv-table-card .lsb-tv-table-title { font-size: 1rem; font-weight: 900 !important; }

/* Awatary LSB powiększone do 56px */
.lsb-tv-avatar-container {
    width: 56px;
    height: 56px;
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
    background: #141415;
}
.lsb-tv-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nazwiska graczy na dużym ekranie */
.lsb-tv-player-name-capsule {
    font-size: 0.85rem !important;
    letter-spacing: 0.1px;
    font-weight: 700 !important;
    color: #fff !important;
}

/* CYFROWY SCORE-DIGIT DLA TV */
.lsb-tv-score-digit {
    font-size: 3.5rem !important;
    line-height: 1;
    font-weight: 900 !important;
    letter-spacing: -1px;
    transition: all 0.3s ease !important;
}
.lsb-tv-score-digit.text-warning {
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.5) !important;
}

/* POWIĘKSZONY WYMIAR CZCIONKI PASA DOLNEGO KAFELKA LSB */
.lsb-tv-footer-block small {
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
}

/* ====================================================================== */
/* 👑 DEDYKOWANE STATUSY I NEONÓWKI KAFELKÓW (Zsynchronizowane z HTML v69100) */
/* ====================================================================== */

/* 🌑 STATUS 1: STÓŁ WOLNY LUB MECZ ZAKOŃCZONY (Wyciszony szary) */
.card.lsb-tv-free { 
    background-color: #121213 !important; 
    border-color: rgba(255, 255, 255, 0.02) !important; 
}
.card.lsb-tv-free .lsb-tv-table-title { 
    color: #444449 !important; 
}

div.card.shadow-lg.lsb-tv-live {
    background-color: #1a1112 !important;
    border-color: rgba(220, 53, 69, 0.5) !important;
    
    /* 🪓 KLUCZ SUKCESU: Całkowicie wyłączamy transition Bootstrapa, aby nie paraliżowało klatek animacji! */
    transition: none !important;
    transition-property: none !important;
    
    /* Wtryskujemy dynamiczny, e-sportowy rytm pulsowania neonówek */
    animation: lsbNeonPulse 1.8s infinite ease-in-out !important;
}

/* Wzmocnienie tekstu i poświaty tytułu stołu LIVE */
div.card.shadow-lg.lsb-tv-live .lsb-tv-table-title { 
    color: #dc3545 !important; 
    text-shadow: 0 0 12px rgba(220, 53, 69, 0.6) !important; 
}

/* 🟡 STATUS 3: STÓŁ W STANIE PAUZY (Ostrzegawczy, głęboki bursztynowy neon) */
.card.lsb-tv-pause {
    background-color: #1a160d !important;
    border-color: rgba(255, 193, 7, 0.35) !important;
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.12) !important;
}
.card.lsb-tv-pause .lsb-tv-table-title { 
    color: #ffc107 !important; 
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.25) !important; 
}

/* 🔵 STATUS 4: STÓŁ W STANIE OCZEKIWANIA (Elegancki e-sportowy błękit) */
.card.lsb-tv-awaiting {
    background-color: #0d161a !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    box-shadow: 0 0 25px rgba(13, 202, 240, 0.1) !important;
}
.card.lsb-tv-awaiting .lsb-tv-table-title { 
    color: #0dcaf0 !important; 
}

/* STATUS ARCY-FINISZU (Szmaragd bilardowy) */
.card.lsb-tv-finished {
    background-color: #0f1712 !important;
    border-color: rgba(40, 167, 69, 0.35) !important;
    box-shadow: 0 0 25px rgba(40, 167, 69, 0.12) !important;
}
.card.lsb-tv-finished .lsb-tv-table-title { 
    color: #28a745 !important; 
}

/* Tradycyjne małe kostki na liście smartfona kibica (Zabezpieczenie) */
.score-box-1, .score-box-2 {
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.3s ease !important;
}

/* Bazowy, uodporniony profil Twojego tagu span w artykule */
.lsb-flash-shifter {
    display: inline-block !important;
    position: relative !important;
    z-index: 5 !important;
    transition: transform 0.15s ease-in-out !important;
}

/* 👑 POTRÓJNY STROBOSKOP E-SPORTOWY DLA KOSTEK WYNIKU (3 PEŁNE BŁYSKI) */
@keyframes lsbPureTagFlash {
    0%   { background-color: rgba(255, 193, 7, 0); color: inherit; transform: scale(1); box-shadow: none; padding: 0; }
    16%  { background-color: #ffc107; color: #000000; transform: scale(1.4); border-radius: 4px; box-shadow: 0 0 20px #ffc107; padding: 0 6px; }
    33%  { background-color: rgba(255, 193, 7, 0); color: inherit; transform: scale(1); box-shadow: none; padding: 0; }
    50%  { background-color: #ffc107; color: #000000; transform: scale(1.4); border-radius: 4px; box-shadow: 0 0 20px #ffc107; padding: 0 6px; }
    66%  { background-color: rgba(255, 193, 7, 0); color: inherit; transform: scale(1); box-shadow: none; padding: 0; }
    83%  { background-color: #ffc107; color: #000000; transform: scale(1.4); border-radius: 4px; box-shadow: 0 0 20px #ffc107; padding: 0 6px; }
    100% { background-color: rgba(255, 193, 7, 0); color: inherit; transform: scale(1); box-shadow: none; padding: 0; }
}

.lsb-tag-igniter {
    animation: lsbPureTagFlash 1.4s ease-in-out !important; /* Wydłużone do 1.4s na 3 piękne błyski */
    z-index: 999 !important;
}


/* ====================================================================== */
/* 👑 LIVEPOOL PRO: INDESTRUCTIBLE E-SPORT FORM-SWITCH MATRIX (v70500)    */
/* 🚀 FIX KRYTYCZNY: PRZYWRÓCENIE KULEK (BIAŁA / CZARNA) W BASE64 SVG      */
/* ====================================================================== */

/* ⚪ STAN WYŁĄCZONY: Wyraźny szary suwak z luksusową, idealnie białą kulką po lewej stronie */
#favListContainer .fav-checkbox {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 42px !important;
    height: 24px !important;
    background-color: #2a2e33 !important; /* Wyraziste, ciemnoszare tło suwaka */
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50px !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, background-image 0.15s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
    filter: none !important; /* Całkowicie kasujemy niszczycielskie filtry! */
}

/* 🟡 STAN WŁĄCZONY: Potężny, złoty rozbłysk, a w środku kontrastowa, czarna kulka przeskakuje w prawo! */
#favListContainer .fav-checkbox:checked {
    background-color: #ffc107 !important; /* Charakterystyczne złoto LivePool */
    border-color: #ffc107 !important;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.5) !important; /* Subtelny e-sportowy neon poświaty */
    filter: none !important; /* Całkowicie kasujemy niszczycielskie filtry! */
}

/* Eliminacja brzydkiej, niebieskiej obwódki focusu */
#favListContainer .fav-checkbox:focus {
    outline: none !important;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.2) !important;
    border-color: rgba(255, 193, 7, 0.5) !important;
}

/* Dynamiczne podświetlenie całej kapsuły zawodnika po najechaniu myszką */
#favListContainer .d-flex.align-items-center.justify-content-between:hover {
    background-color: #212529 !important;
    border-color: rgba(255, 193, 7, 0.2) !important;
}

/* ====================================================================== */
/* 👑 LIVEPOOL PRO: MASTER SWITCH MINIATURIZATION DOCK (v70600)           */
/* 🚀 FIX OSTATECZNY: SKALOWANIE FABRYCZNYCH KULEK BOOTSTRAPA DO ROZMIARU UX */
/* ====================================================================== */

#favListContainer .fav-checkbox {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 38px !important;
    height: 18px !important;
    background-color: #6e6f70 !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50px !important;
    
    /* 👑 CHIRURGICZNY HIT: Zmniejszamy samą kulkę do 12px, dając jej luksusowy oddech od ramki! */
    background-size: 12px 12px !important;
    background-position: calc(0% + 4px) center !important; /* Idealny margines startowy od lewej */
    background-repeat: no-repeat !important;    
    transition: background-color 0.2s ease, border-color 0.2s ease, background-position 0.15s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
}

#favListContainer .fav-checkbox:checked {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;    
    background-size: 12px 12px !important;
    background-position: calc(100% - 4px) center !important;     
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4) !important; /* Subtelny e-sportowy neon */
}

#favListContainer .fav-checkbox:focus {
    outline: none !important;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.2) !important;
}
