body {
    background: #fff;
}

header, .card, .main-footer, .form-control, .form-select, .btn, .table, .dropzone {
    border-radius: 12px !important;
}

header .text-bg-dark {
    background: #102e6a !important;
}

header .border-bottom, .main-footer {
    border-color: #e60039 !important;
}

.nav-link {
    color: #005eeb !important;
    transition: color 0.2s;
}

.nav-link.text-secondary, .nav-link.active {
    color: #e60039 !important;
}

.nav-link:hover {
    color: #e60039 !important;
}

.btn-primary {
    background: #e60039;
    border-color: #e60039;
}

.btn-primary:hover {
    background: #102e6a;
    border-color: #102e6a;
}

.btn-light {
    background: #005eeb;
    color: #fff !important;
    border: none;
}

.btn-light:hover {
    background: #102e6a;
    color: #fff !important;
}

.table {
    box-shadow: 0 4px 24px rgba(16, 46, 106, 0.08);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.card {
    box-shadow: 0 4px 24px rgba(16, 46, 106, 0.08);
    border: none;
    background: #fff;
}

.form-control, .form-select {
    border-radius: 8px;
    border-color: #102e6a;
}

.dropzone {
    border: 2px dashed #102e6a !important;
    background: #f4f8ff !important;
    color: #102e6a !important;
}

.video-status.ok {
    color: #102e6a;
}

.video-status.missing {
    color: #e60039;

}

/* Globální odkazy */
.nav-link {
    transition: color 0.2s;
}

/* Odkazy a ikony v hlavičce bílé, při hoveru červené */
header .nav-link,
header .nav-link i {
    color: #fff !important;
}

header .nav-link:hover,
header .nav-link:focus,
header .nav-link.active,
header .nav-link.text-secondary {
    color: #e60039 !important;
}

header .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 12px;
}

header .nav-link i {
    margin-bottom: 4px;
}
h1{
    color: #e60039;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tabulka bez stínu, pouze šedý rámeček a zaoblení */
.table {
    box-shadow: none !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fff;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.italic {
    font-style: italic;
}
.uppercase {
    text-transform: uppercase;
}
.font-bold {
    font-weight: 700;
}
.table-wrapper {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    background: #fff;
}
.table {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0;
}
.table thead th,
.table tbody td,
.table tbody th,
.table thead td {
    border-color: #e2e8f0 !important;
}
.main-footer {
    background: #e9eef6 !important;
    color: #102e6a !important;
    border-top: 2px solid #bfc9db !important;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}
.main-footer b, .main-footer strong {
    color: #e60039;
}

/* Zvýraznění záhlaví tabulky */
.table thead th {
    background: #f4f8ff !important;
    color: #102e6a !important;
    font-weight: 700;
    border-bottom: 2px solid #bfc9db !important;
}

/* Stylování ikonek ve sloupci Video */
.video-status.missing i {
    color: #e60039 !important;
}
.video-status.ok i {
    color: #102e6a !important;
}
.clickable-row { cursor: pointer; }

/* Specifické prvky z původního style.css */
#set {
    background-color: #49D681;
    margin-bottom: 10px;
}
#score-card {
    border-radius: 10px;
    padding: 10px;
    /*margin: 10px;*/
    text-align: center;
    white-space: nowrap;
}
.obsah {
    background-image: linear-gradient(to bottom, #FCFCFD, #EBEBEF);
}
.penalty {
    padding: 3px;
    text-align: center;
    white-space: nowrap;
}
.yellow-red {
    position: relative;
    display: inline-block;
    width: 1em; /* Nastavíme šířku ikony */
}
.yellow-red::before {
    content: "";
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    color: rgb(250,53,69); /* První půlka ikony bude červená */
}
.yellow-red::after {
    position: absolute;
    content: "";
    top: 0;
    left: 60%;
    width: 40%;
    height: 100%;
    border-bottom-right-radius: 2px ;
    border-top-right-radius: 2px ;
    background-color: rgb(255,193,7) /* Druhá půlka ikony bude žlutá */
}
.libero {
    float: right;
}
.hriste, .hriste tbody tr td {
    background-color: #fd7e14;
}

.login-circle {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 2px solid #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-size: 0.95rem;
}

/* Modrý horní pruh */
.bg-primary-dark {
    background-color: #102e6a;
}

.header-separator {
    height: 1px;
    background-color: rgba(230, 0, 57, 0.8);
}

/* Navigace */
header .nav-link {
    font-weight: 500;
    transition: color 0.2s;
}
header .nav-link:hover {
    color: #e60039 !important;
}

/* Login tlačítko */
.login-circle {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid #e60039;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 400;
    color: #102e6a;
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-size: 0.9rem;
}

.login-circle:hover {
    background: #e60039;
    border-color: #e60039;
    color: #fff !important;
}

/* Na mobilech: decentní plná výplň */
@media (max-width: 576px) {
    .login-circle {
        background: #e60039;
        border-color: #e60039;
        color: #fff !important;
        padding: 5px 14px;
    }
}
.main-footer {
    background: #fff;
    border-top: 1px solid rgba(230, 0, 57, 0.8);
    font-size: 0.9rem;
}

.footer-link {
    color: #102e6a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #e60039;
}
@media (max-width: 576px) {
    /* Logo a název na mobilu */
    header .d-flex.align-items-center.text-white.text-decoration-none {
        justify-content: center;
        width: 100%;
    }
    header .fs-4 {
        font-size: 1.6rem !important;
    }
    header .fs-4 + .fw-bold {
        font-size: 1.4rem;
    }

    /* Menu vystředěné pod logem */
    header .nav {
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Menší padding pro odkazy na mobilu */
    header .nav-link {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
        font-size: 0.9rem;
    }
}

.bg-primary-dark {
    background-color: #102e6a;
}

/* Hamburger ikonka */
.navbar-toggler {
    font-size: 1.3rem;
}

/* Tenká červená linka */
.header-separator {
    height: 1px;
    background-color: rgba(230, 0, 57, 0.8);
}

/* Menu odkazy */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}
.navbar-nav .nav-link:hover {
    color: #e60039 !important;
    border-bottom: 2px solid #e60039;
}
/* Donutí odkaz držet ikonu a text v jedné řadě */
.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-nav .nav-link i {
    margin-right: 0.4rem;
    flex-shrink: 0;
}
@media (max-width: 576px) {
    #mainMenu .navbar-nav {
        align-items: center;
    }
}

.match-table thead th {
    border-bottom: 2px solid #e60039;
    color: #102e6a;
    font-weight: 600;
}

.match-table tbody td {
    padding: 0.6rem 0.8rem;
}

.match-table tr:hover {
    background-color: rgba(230, 0, 57, 0.05);
    cursor: pointer;
}

/* Badge LIVE */
.badge-live {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background-color: #e60039;
    border-radius: 12px;
    padding: 2px 8px;
    margin-left: 6px;
}
.badge-live i {
    font-size: 0.6rem;
    margin-right: 4px;
}

/* Badge PLAY/PAUSE */
.badge-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    background-color: #6c757d;
    border-radius: 12px;
    padding: 2px 8px;
    margin-left: 6px;
}
.badge-status i {
    font-size: 0.7rem;
    margin-right: 4px;
}

/* Klikací řádky */
.clickable-row {
    transition: background-color 0.2s;
}
.clickable-row:hover {
    background-color: rgba(230, 0, 57, 0.05);
}

/* Na mobilu trochu větší text a padding */
@media (max-width: 576px) {
    .match-table tbody td {
        padding: 0.5rem;
        font-size: 0.95rem;
    }
}
.badge-live {
    position: relative;
    display: inline-block;
    padding: 2px 10px 2px 20px; /* místo vlevo na bod */
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background-color: #e60039;
    border-radius: 12px;
    margin-left: 6px;
}

.live-dot {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.6); opacity: 0.6; }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

.filter-form {
    min-width: 200px;
}

.filter-form .form-select {
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
    padding: 4px 8px;
}

.filter-form .form-select:focus {
    border-color: #e60039;
    box-shadow: 0 0 0 0.15rem rgba(230, 0, 57, 0.25);
}

@media (max-width: 576px) {
    .d-flex.flex-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-form {
        width: 100%;
        margin-top: 0.5rem;
    }
}
.match-result .score {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #102e6a;
    background-color: rgba(16, 46, 106, 0.05);
    font-size: 0.9rem;
}

.match-result .score-empty {
    color: #999;
    font-weight: 400;
    background: transparent;
}

.match-result .pdf-link i {
    color: #e60039;
    font-size: 1rem;
    vertical-align: middle;
    transition: color 0.2s;
}

.match-result .pdf-link:hover i {
    color: #b8002f;
}
/* Hover a klik */
/* Klikací řádky */
.clickable-row {
    transition: background-color 0.2s;
    cursor: pointer;
}
.clickable-row:hover {
    background-color: rgba(230, 0, 57, 0.05);
}
.clickable-row:active {
    background-color: rgba(230, 0, 57, 0.15);
}

/* Kompaktní mobilní vzhled */
@media (max-width: 576px) {
    .match-table thead th,
    .match-table tbody td {
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
    }

    .match-table .score {
        font-size: 0.8rem;
        padding: 1px 6px;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.badge-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    background-color: #6c757d; /* neutrální šedá */
    border-radius: 12px;
    padding: 2px 8px;
    margin-left: 6px;
}
.badge-status i {
    font-size: 0.7rem;
    margin-right: 4px;
}

.main-footer {
    background: #fff;
    border-top: 1px solid rgba(230, 0, 57, 0.8);
    font-size: 0.9rem;
    color: #102e6a;
}
.main-footer i {
    color: #e60039;
}
.main-footer .text-muted {
    color: #6c757d !important;
}
/* Logo a název */
header .fs-4 {
    font-size: 1.2rem !important;
}
header .fs-4 + .fw-bold {
    font-size: 1.2rem;
}

/* Navigace */
.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}
.navbar-nav .nav-link:hover {
    color: #e60039 !important;
    border-bottom: 2px solid #e60039;
}

/* Barvy */
.bg-primary-dark {
    background-color: #102e6a;
}

/* Hamburger */
.navbar-toggler {
    font-size: 1.3rem;
}

/* Červená linka */
.header-separator {
    height: 1px;
    background-color: rgba(230, 0, 57, 0.8);
}

/* Login tlačítko */
.login-circle {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid #e60039;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 400;
    color: #102e6a;
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-size: 0.9rem;
}

.login-circle:hover {
    background: #e60039;
    border-color: #e60039;
    color: #fff !important;
}

@media (max-width: 576px) {
    .login-circle {
        background: #e60039;
        border-color: #e60039;
        color: #fff !important;
        padding: 5px 14px;
    }
}

/* Footer */
.main-footer {
    background: #fff;
    border-top: 1px solid rgba(230, 0, 57, 0.8);
    font-size: 0.9rem;
}
.footer-link {
    color: #102e6a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #e60039;
}
.filter-form input {
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
    padding: 4px 8px;
}
.reset-filter {
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.reset-filter:hover {
    text-decoration: none;
    background: rgba(0,0,0,0.05);
}
.no-matches {
    text-align: center;
    font-size: 1rem;
    color: #666;
    font-style: italic;
    padding: 1rem 0;
}

















