﻿/* Proměnné a pozadí */
:root {
    --bg-banik: linear-gradient(90deg, #004d26, #2e7d32);
    --bg-banik-reverse: linear-gradient(270deg, #004d26, #2e7d32);
    --bg-banik-light: linear-gradient(90deg, #1b5e20, #388e3c);
    --bg-banik-light-reverse: linear-gradient(270deg, #1b5e20, #388e3c);
    --bg-banik-solid: #2e7d32;
    --color-banik: #004d26;
    --color-banik-rgb: 0, 77, 38;
    --color-banik-light: #1b5e20;
    --color-banik-dark: #006400;
    --match-win: #2e7d32;
    --match-loss: #8b1c1c;
    --header-height: 135px;
}

.bg-banik {
    background: var(--bg-banik) !important;
}

.bg-banik-reverse {
    background: var(--bg-banik-reverse) !important;
}

.bg-banik-light {
    background: var(--bg-banik-light) !important;
}

.bg-banik-light-reverse {
    background: var(--bg-banik-light-reverse) !important;
}

.bg-banik-solid {
    background-color: var(--bg-banik-solid) !important;
    color: #fff !important;
}

.text-banik {
    color: var(--color-banik) !important;
}
.pagination-banik {
    --bs-pagination-color: var(--color-banik);
    --bs-pagination-hover-color: var(--color-banik);
    --bs-pagination-focus-color: var(--color-banik);
    --bs-pagination-active-bg: var(--bg-banik-solid);
    --bs-pagination-active-border-color: var(--bg-banik-solid);
    --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--color-banik-rgb), .25);
}

    .pagination-banik .page-link:hover {
        background-color: rgba(var(--color-banik-rgb), .08);
    }

    .pagination-banik .page-item.active .page-link {
        color: #fff;
    }

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    height: 100%;
}

body {
    font-family: 'Mukta', sans-serif;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
}

    body.with-header {
        padding-top: var(--header-height);
        /*padding-top: 170px;*/
    }

    body.no-header {
        padding-top: 0;
    }

        body.no-header header {
            display: none !important;
        }

    body.no-partners .partners-section {
        display: none !important;
    }

    body.no-footer footer,
    body.no-footer .partners-section {
        display: none !important;
    }

main {
    flex: 1;
}

.table td.fit, .table th.fit {
    white-space: nowrap;
    width: 1%;
}

.facebook-column {
    flex: 0 0 500px;
    width: 500px;
    max-width: 100%;
    min-width: 180px;
}

    .facebook-column .fb-page {
        width: 500px;
        max-width: 100%;
    }

@media (max-width: 991.98px) {
    .facebook-column {
        flex: 0 0 100%;
        width: 100%;
    }
}

.article-category-badge {
    border-radius: 0 5px 0 0;
}

.section-title {
    font-weight: 800;
    text-transform: uppercase;
    padding-left: 15px;
    margin-bottom: 2rem;
}

.partner-logo {
    max-height: 50px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: 0.4s;
    object-fit: contain;
}

    .partner-logo:hover {
        filter: grayscale(0);
        opacity: 1;
        transform: scale(1.05);
    }

@media (max-width: 991.98px) {
    .partner-logo {
        filter: grayscale(0);
        opacity: 1;
    }
}

/* Tlačítka */
.btn-banik {
    background: var(--bg-banik) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    border-radius: 0.375rem !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
}

    .btn-banik:hover,
    .btn-banik:focus {
        background: var(--bg-banik-light) !important;
        color: #fff !important;
        transform: scale(1.02) !important;
    }

.btn-outline-banik {
    color: var(--color-banik-light) !important;
    border: 1px solid var(--color-banik-light) !important;
    background-color: transparent !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    border-radius: 0.375rem !important;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
}

    .btn-outline-banik:hover,
    .btn-outline-banik:focus {
        background: var(--bg-banik-light) !important;
        color: #fff !important;
        transform: scale(1.02) !important;
        border-color: var(--color-banik) !important;
    }

/*Sub bar*/
.subbar .banik-logo {
    height: 70px;
    margin-right: 15px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.subbar .banik-title {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

.subbar .banik-subtitle {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.2;
}

.subbar .year-display {
    font-weight: 900;
    font-size: 2.5rem;
    font-family: 'Poppins', 'Arial', sans-serif;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4), 0 0 6px rgba(255,255,255,0.3);
    line-height: 1;
}

@media (max-width: 768px) {
    .subbar .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .subbar .year-display {
        font-size: 2rem;
        text-align: left;
    }
}


/* Navbar */
.navbar-brand img {
    height: 80px !important;
    margin-right: 10px !important;
}

.navbar .banik-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar .banik-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.navbar .banik-subtitle {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
}

.navbar-brand span {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.navbar-nav .nav-link {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease-in-out !important;
}

    .navbar-nav .nav-link.dropdown-toggle {
        cursor: pointer !important;
    }

    .navbar-nav .nav-link:hover {
        color: #fff !important;
        /*background-color: #006400 !important;*/
        border-radius: 4px !important;
        opacity: 0.7;
    }

.navbar .dropdown-menu {
    background: var(--bg-banik-light) !important;
    border: none !important;
}

    .navbar .dropdown-menu .dropdown-item {
        color: #fff !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        transition: background-color 0.2s ease-in-out !important;
        padding: 0.75rem 1rem !important;
        line-height: 1.4 !important;
    }

        .navbar .dropdown-menu .dropdown-item:hover {
            background-color: var(--color-banik-dark) !important;
            color: #fff !important;
        }

.offcanvas .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0;
}

.offcanvas .dropdown-item {
    color: #fff;
}

@media (max-width: 991.98px) {
    .mobile-menu {
        background: var(--bg-banik) !important;
        max-width: 250px !important;
    }

    .navbar .mobile-menu .dropdown-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        background: var(--bg-banik-light) !important;
        border: none !important;
    }

    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Login */
.login .dropdown-item:active,
.login .dropdown-item:focus {
    background-color: transparent !important;
    color: inherit !important;
}

/* Karty */
.card {
    border: 1px solid #ccc !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.card-title a {
    color: var(--bg-banik-solid) !important;
    transition: color 0.2s ease !important;
}

    .card-title a:hover {
        color: var(--color-banik-dark) !important;
        text-decoration: none !important;
    }

.card-text {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

/* Sub navigace */
.sub-nav .nav-pills .nav-link.active {
    background: var(--bg-banik) !important;
    color: #fff !important;
}

.sub-nav .nav-pills .nav-link:not(.active):hover {
    background: rgba(var(--color-banik-rgb), 0.2) !important;
}

.dropdown-menu {
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

    .dropdown-menu.show {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

footer p {
    font-size: 0.85rem !important;
    margin: 0 !important;
}

select option:hover {
    background-color: #198754 !important;
    color: #fff !important;
}


/* Focus efekty */
.btn-success:focus,
.btn-success:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #66bb6a !important;
}

.btn-danger:focus,
.btn-danger:active:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #dc3545 !important;
}

.btn-secondary:focus,
.btn-secondary:active:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #6c757d !important;
}


.form-check-input:checked {
    background-color: #66bb6a !important;
    border-color: #66bb6a !important;
}

/* SweetAlert */
.swal-banik-popup {
    font-family: 'Mukta', sans-serif;
    font-weight: 500;
    border-radius: 0.375rem !important;
    padding: 2rem !important;
}

.swal-banik-input {
    border: 1px solid #66bb6a !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem !important;
    color: #004d26 !important;
    font-size: 1rem !important;
    background-color: #f9f9f9 !important;
}

/* Video wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    /*margin: 1rem auto;*/
    aspect-ratio: 16 / 9;
}

    .video-wrapper iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }


/* Nepřečtené zprávy */
.notification-unread {
    font-weight: 600;
    border-left: 4px solid #198754;
    background-color: rgba(25, 135, 84, 0.08);
}


/* Hráči */
.player {
    position: relative;
}

    .player img {
        width: 100px;
        height: 100px;
        max-width: 100px;
        max-height: 100px;
        border-radius: 50%;
        object-fit: cover;
        object-position: center;
        margin-bottom: 20px;
    }

    .player .team-number {
        position: absolute;
        top: 0;
        left: 0;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .player h2 {
        font-size: 20px;
        letter-spacing: .2em;
        text-transform: uppercase;
    }

    .player .position {
        font-size: 14px;
        color: #b3b3b3;
        text-transform: uppercase;
    }


/* Náhledy */
.image-thumb {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 10px auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .image-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .image-thumb .delete-btn {
        position: absolute;
        top: 0;
        left: 0;
        width: 28px;
        height: 28px;
        border: none;
        border-radius: 50%;
        background: #f23a2e;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .image-thumb .delete-btn:hover {
            background: #c62820;
        }


/* Messenger */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: background 0.15s;
    position: relative;
}

    .chat-item:hover {
        background: #f7f7f7;
    }

    .chat-item.unread {
        background: #e8f0ff;
        font-weight: 600;
    }

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

    .chat-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .chat-avatar i {
        font-size: 24px;
        color: #6c757d;
    }

.chat-avatar2 {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

    .chat-avatar2 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .chat-avatar2 i {
        font-size: 17.5px;
        color: #6c757d;
    }


.chat-body {
    flex-grow: 1;
    min-width: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-name {
    font-weight: 600;
    font-size: 15px;
}

.chat-time {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.chat-preview {
    font-size: 14px;
    color: #555;
    margin-top: 2px;
}

.chat-unread-badge {
    width: 10px;
    height: 10px;
    background: #007bff;
    border-radius: 50%;
    margin-left: 10px;
}

.chat-read-icon {
    font-size: 13px;
}

    .chat-read-icon.text-primary {
        color: #0b93f6 !important;
    }

.thread-menu {
    cursor: pointer;
    font-size: 1.4rem;
    padding: 4px 8px;
}

    .thread-menu:hover {
        background: #f1f1f1;
        border-radius: 6px;
    }

.dropdown-danger {
    color: #dc3545 !important;
}

    .dropdown-danger:hover {
        background-color: rgba(220, 53, 69, 0.12) !important;
        color: #dc3545 !important;
    }

/* Layout stránky s chatem */
.chat-page-layout {
    display: flex;
    flex-direction: column;
}

    .chat-page-layout .chat-card {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .chat-page-layout .chat-container {
        flex-grow: 1;
        overflow-y: auto;
        max-height: none !important;
        position: relative;
    }

.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    position: relative;
}

    .chat-bubble.mine {
        background: #e3f2fd;
        border: 1px solid #cfe0f5;
    }

    .chat-bubble.deleted {
        background: #f1f1f1;
        color: #999;
        font-style: italic;
    }

.chat-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    text-align: right;
}

.msg-delete-btn {
    position: absolute;
    bottom: -12px;
    right: -18px;
    background: white;
    border-radius: 50%;
    padding: 3px 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 0.8rem;
    color: #dc3545;
}

    .msg-delete-btn:hover {
        background: #f8d7da;
    }



/* Zápasy */
.matches .match-card {
    position: relative;
    -webkit-transition: .2s all ease-in-out;
    -o-transition: .2s all ease-in-out;
    transition: .2s all ease-in-out;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .matches .match-card:hover {
        -webkit-transform: scale(1.02);
        -ms-transform: scale(1.02);
        transform: scale(1.02);
        z-index: 90;
        -webkit-box-shadow: 0 5px 40px -5px rgba(0, 0, 0, 0.1);
        box-shadow: 0 5px 40px -5px rgba(0, 0, 0, 0.1);
    }

.matches-card .dropdown-item:active,
.matches-card .dropdown-item:focus {
    background-color: transparent !important;
    color: inherit !important;
}

@media (max-width: 991.98px) {
    .matches .image {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.matches .image img {
    border-radius: 50%;
}

.matches .image.image-small {
    width: 50px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50px;
    flex: 0 0 50px;
}

.matches .match-badge {
    display: inline-block;
    min-width: 80px;
    text-align: center;
    padding: .5rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .15em;
    border-radius: 6px;
    background: #f1f1f1;
    color: #222;
}

.matches .match-win {
    background: var(--match-win);
    color: #fff;
}

.matches .match-loss {
    background: var(--match-loss);
    color: #fff;
}

.matches .match-draw {
    background: transparent;
    color: #444;
    border: 2px solid rgba(0,0,0,.25);
}

.match-filter-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: nowrap;
}

.match-type-switch {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem;
    background: #f1f3f2;
    border-radius: 999px;
    flex: 0 0 auto;
    width: auto;
}

.match-type-option {
    border: 0;
    background: transparent;
    color: #4a4a4a;
    font-weight: 600;
    padding: .45rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

    .match-type-option.active {
        background: var(--bg-banik);
        color: #fff;
    }

.match-season-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

.match-season-filter {
    width: 100%;
    min-width: 0;
    border-radius: 8px;
}

.match-search {
    width: 100%;
}

@media (min-width: 768px) {
    .match-search {
        width: 260px;
    }
}



/* Karty s taby */
.site-tabs .nav-item {
    margin: 0 15px;
}

    .site-tabs .nav-item:first-child {
        margin-left: 0 !important;
    }

    .site-tabs .nav-item > a {
        padding-left: 0 !important;
        background: none !important;
        padding-right: 0 !important;
        border-bottom: 2px solid transparent;
        border-radius: 0 !important;
        font-weight: bold;
        color: #919191;
    }

        .site-tabs .nav-item > a:hover, .site-tabs .nav-item > a.active:not(.external-link) {
            border-bottom: 3px solid var(--color-banik-light);
            color: #000;
        }


/* Hero sekce */

.hero-lastmatch {
    background: rgba(0, 0, 0, 0.35);
    padding: 25px 10px;
    border-radius: 14px;
    backdrop-filter: blur(4px);
    display: inline-block;
    /*box-shadow: 0 6px 24px rgba(0,0,0,0.45);*/
}

    .hero-lastmatch .category-title {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .hero-lastmatch img {
        max-height: 40px;
        filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4)) drop-shadow(0 0 4px rgba(46, 125, 50, 0.35));
    }

.hero-lastmatch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.hero-lastmatch-team {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .hero-lastmatch-team img {
        max-width: 50px;
        max-height: 50px;
        object-fit: contain;
    }

    .hero-lastmatch-team span {
        max-width: 150px;
    }

.hero-lastmatch-score {
    text-align: center;
    white-space: nowrap;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    text-decoration: none;
    background: #fff;
    color: #212529;
    max-width: 500px;
    margin: 0 auto;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .category-card i {
        color: #198754;
    }

    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
        border-color: #198754;
    }

.category-name {
    font-weight: 600;
}

/* HLAVIČKA KATEGORIE */

.category-header {
    margin-bottom: 1.5rem;
}

.category-breadcrumb .breadcrumb {
    margin-bottom: .75rem;
}


/* Název vlevo + realizační tým vpravo */

.category-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.category-title {
    flex-shrink: 0;
    margin-bottom: 0;
}


/* REALIZAČNÍ TÝM */

.category-staff {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2.5rem;
    padding: 1.1rem 1.3rem;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .05);
}

.category-staff-group {
    min-width: 140px;
}

.category-staff-role {
    margin-bottom: .4rem;
    color: #7a7a7a;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.category-staff-person {
    min-width: 0;
    margin-bottom: .5rem;
}

    .category-staff-person:last-child {
        margin-bottom: 0;
    }

.category-staff-name {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.category-staff-phone {
    display: block;
    margin-top: .3rem;
    color: #777;
    font-size: .78rem;
    line-height: 1.2;
    text-decoration: none;
}
.category-staff-phone {
    white-space: nowrap;
}

    .category-staff-phone:hover {
        color: var(--color-banik);
    }


/* MOBIL */

@media (max-width: 767.98px) {

    .category-header {
        margin-bottom: 1rem;
    }

    .category-breadcrumb .breadcrumb {
        margin-bottom: .75rem;
    }

    .category-header-row {
        display: block;
    }

    .category-title {
        margin-bottom: 1rem;
    }

    .category-staff {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        padding: .9rem 1rem;
        gap: 1rem;
        width: 100%;
    }

    .category-staff-group {
        min-width: 0;
    }

    .category-staff-role {
        font-size: .85rem;
        font-weight: 600;
    }

    .category-staff-name {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.25;
    }

    .category-staff-phone {
        display: block;
        margin-top: .4rem;
        font-size: .9rem;
    }
    .category-staff-phone {
        white-space: nowrap;
    }
}


.tournament-sticky {
    top: var(--header-height);
}

/* Přepínač Baník / Akademie v login liště */
.site-switcher {
    gap: .7rem;
    padding: .4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.site-switcher-link {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: .55;
    transform: scale(.9);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

    .site-switcher-link:hover,
    .site-switcher-link:focus-visible {
        opacity: 1;
        transform: scale(1);
        background: rgba(255, 255, 255, .12);
    }

    .site-switcher-link.active {
        opacity: 1;
        transform: scale(1);
        background: rgba(255, 255, 255, .22);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
    }

.site-switcher-logo {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

#logoutForm {
    margin: 0;
}

@media (max-width: 575.98px) {
    .login-bar {
        gap: .65rem !important;
    }

    .site-switcher-link {
        width: 25px;
        height: 25px;
    }

    .site-switcher-logo {
        width: 24px;
        height: 24px;
    }

    .login-links {
        gap: .65rem !important;
    }

        .login-links a {
            font-size: .9rem;
        }
}

.gallery-card {
    transition: transform .18s, box-shadow .18s;
}

    .gallery-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }

.gallery-hero {
    min-height: 180px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden
}

    .gallery-hero img.object-fit-cover {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.gallery-badge {
    top: 10px;
    left: 10px;
    opacity: 0.95
}

.gallery-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px
}

.gallery-overlay-inner {
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.55);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 0.75rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end
}

.gallery-hero > a.d-block {
    display: block;
    height: 100%;
}

.gallery-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
    .gallery-thumbnail:hover {
        transform: scale(1.04);
    }

.card .card-body {
    position: relative;
    z-index: 2;
}

@media (max-width:576px) {
    .gallery-hero {
        min-height: 130px
    }

    .gallery-overlay-inner {
        padding: 0.5rem
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform .18s, box-shadow .18s;
}

    .gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

.profile-avatar {
    width: 20px;
    height: 20px;
    object-fit: cover;
    vertical-align: text-bottom;
}

.dropdown-submenu {
    position: relative;
}

@media (min-width: 992px) {
    .submenu-categories-menu {
        width: max-content;
        min-width: 210px;
        border-radius: .375rem 0 0 .375rem !important;
    }

    .dropdown-submenu {
        position: relative;
    }

        .dropdown-submenu > .submenu-toggle {
            display: flex !important;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            min-width: 210px;
            padding-right: 1rem !important;
            white-space: nowrap;
        }

            .dropdown-submenu > .submenu-toggle::after {
                content: "";
                position: static;
                flex: 0 0 auto;
                width: 0;
                height: 0;
                margin: 0;
                border-top: .3em solid transparent;
                border-bottom: .3em solid transparent;
                border-left: .3em solid currentColor;
                border-right: 0;
            }

        .dropdown-submenu > .submenu {
            position: absolute !important;
            top: 0 !important;
            left: 100% !important;
            display: none;
            width: max-content;
            min-width: 170px;
            margin: 0 !important;
            padding-left: 0;
            opacity: 0 !important;
            visibility: hidden;
            transform: none !important;
            z-index: 1100;
            border-radius: 0 .375rem .375rem 0 !important;
        }

        .dropdown-submenu:hover > .submenu,
        .dropdown-submenu:focus-within > .submenu {
            display: block !important;
            opacity: 1 !important;
            visibility: visible;
            transform: none !important;
        }
}

@media (max-width: 991.98px) {
    .dropdown-submenu > .submenu-toggle {
        position: relative;
        padding-right: 2rem !important;
    }

        .dropdown-submenu > .submenu-toggle::after {
            content: "";
            position: absolute;
            top: 50%;
            right: .8rem;
            width: 0;
            height: 0;
            margin: 0;
            transform: translateY(-50%);
            border-right: .3em solid transparent;
            border-left: .3em solid transparent;
            border-top: .3em solid currentColor;
        }

    .dropdown-submenu > .submenu {
        position: static !important;
        display: block;
        width: 100%;
        min-width: 100%;
        margin: 0 !important;
        padding: 0 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0 !important;
        visibility: hidden;
        transform: none !important;
        transition: max-height .25s ease, opacity .2s ease, visibility .2s ease;
    }

        .dropdown-submenu > .submenu.show {
            max-height: 250px;
            opacity: 1 !important;
            visibility: visible;
        }

    .offcanvas .submenu-toggle,
    .offcanvas .submenu-toggle:hover,
    .offcanvas .submenu-toggle:focus,
    .offcanvas .submenu-toggle:active {
        background: transparent !important;
        color: #fff !important;
        box-shadow: none !important;
        outline: none !important;
    }
}

.season-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-banik);
    font-weight: 700;
    text-transform: uppercase;
}

    .season-divider::before,
    .season-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(var(--color-banik-rgb), .35);
    }

    .season-divider span {
        white-space: nowrap;
    }

.recipient-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.recipient-avatar-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
}

.partners-text {
    margin-bottom: 0.5rem;
    padding: .25rem 0 .25rem 1.25rem;
    border-left: 3px solid var(--bg-banik-solid);
    line-height: 1.65;
    max-width: 1100px;
}

    .partners-text p:last-child {
        margin-bottom: 0;
    }

.match-detail-link {
    left: calc(50% + 45px);
    color: var(--bg-banik);
    font-size: .9rem;
    text-decoration: none;
    opacity: .75;
}

.match-upcoming-detail-link {
    left: calc(50% + 30px);
    color: var(--bg-banik);
    font-size: .9rem;
    text-decoration: none;
    opacity: .75;
}

    .match-detail-link:hover {
        color: var(--bg-banik);
        opacity: 1;
    }

.match-admin-edit {
    color: #adb5bd;
    font-size: .8rem;
    text-decoration: none;
}

    .match-admin-edit:hover {
        color: var(--bg-banik);
    }


.person-header {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.person-profile-image {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    border-radius: 50%;
    object-fit: cover;
}

.person-profile-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #adb5bd;
    font-size: 2rem;
}

.person-contact {
    font-size: .9rem;
}

    .person-contact a {
        color: #6c757d;
    }

        .person-contact a:hover {
            color: var(--bg-banik);
        }

.person-role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem .75rem;
    margin-top: .4rem;
    border-radius: .4rem;
    background: #f8f9fa;
    color: #212529;
    text-decoration: none;
}

    .person-role-item:hover {
        color: var(--bg-banik);
        background: #f1f3f5;
    }

    .person-role-item i {
        font-size: .7rem;
        color: #adb5bd;
    }

.person-assistant-item {
    padding: .65rem .75rem;
    margin-top: .4rem;
    border-radius: .4rem;
    background: #f8f9fa;
}



/*DETAIL ZAPASU*/

.match-detail-header {
    padding: 2rem 1rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.match-detail-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.match-detail-team {
    font-size: 1.1rem;
    font-weight: 600;
}

.match-detail-date {
    font-size: .85rem;
    font-weight: 600;
    color: #6c757d;
}

.match-detail-time {
    margin-top: .15rem;
    font-size: .8rem;
    color: #adb5bd;
}

.match-detail-score {
    margin-top: .5rem;
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 700;
    color: var(--bg-banik);
}


/* události */

.match-event {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 0;
}

.match-minute {
    min-width: 30px;
    font-weight: 700;
    color: var(--bg-banik);
}


/* sestavy */

.match-lineup > div:not(.match-lineup-divider) {
    padding: .45rem .25rem;
    border-bottom: 1px solid #eee;
}

.match-lineup > div:last-child {
    border-bottom: 0;
}

.match-lineup-divider {
    margin: .65rem 0;
    border-top: 1px dashed #adb5bd;
}

.match-lineup-substitute {
    color: #6c757d;
}

.match-substitution {
    display: block;
    margin-top: .15rem;
    color: #6c757d;
    font-size: .78rem;
}

    .match-substitution i {
        margin-right: .25rem;
        font-size: .7rem;
    }


/* karty */

.match-card-event {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
}

.football-card {
    display: inline-block;
    width: 11px;
    height: 16px;
    flex: 0 0 11px;
    border-radius: 1px;
}

.football-card-yellow {
    background: #ffc107;
}

.football-card-red {
    background: #dc3545;
}


/* komentáře */

.match-comment {
    line-height: 1.65;
}


/* informace */

.match-info-label {
    margin-bottom: .25rem;
    color: #6c757d;
    font-size: .78rem;
}

.match-info-value {
    font-weight: 600;
}

.match-detail-playground {
    margin-top: .65rem;
    color: #6c757d;
    font-size: .85rem;
    font-weight: 500;
}

    .match-detail-playground i {
        color: var(--bg-banik);
    }


@media (max-width: 575.98px) {

    .match-detail-header {
        padding: 1.25rem .5rem;
    }

    .match-detail-logo {
        width: 58px;
        height: 58px;
    }

    .match-detail-team {
        font-size: .8rem;
        line-height: 1.2;
    }

    .match-detail-date {
        font-size: .75rem;
    }

    .match-detail-time {
        font-size: .75rem;
    }

    .match-detail-score {
        font-size: 1.8rem;
    }
    .match-detail-playground {
        margin-top: .5rem;
        font-size: .7rem;
        line-height: 1.2;
    }
}

.category-tab-loading {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-event-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .6rem;
    border-radius: 50rem;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-event-badge-match {
    background: var(--bg-banik);
    color: #fff;
}

.dashboard-event-badge-training {
    background-color: rgba(var(--color-banik-rgb), .08);
    color: var(--color-banik);
    border: 1px solid rgba(var(--color-banik-rgb), .2);
}


/* TEAM CALENDAR */

.team-calendar-card {
    position: relative;
    padding: 1.25rem;
    border-radius: .75rem;
    overflow: hidden;
    background: linear-gradient( rgba(var(--color-banik-rgb), .30), rgba(var(--color-banik-rgb), .40) ), url('/images/academy/calendar-field.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
}


/* =========================
   HORNÍ ČÁST
   ========================= */

.team-calendar-top {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    margin-bottom: .75rem;
    color: #fff;
}

.team-calendar-category {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}
.team-calendar-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.team-calendar-category-button {
    min-width: 58px;
    padding: .5rem .9rem;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: .4rem;
    background: rgba(0, 0, 0, .18);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease;
}

    .team-calendar-category-button:hover {
        background: rgba(255, 255, 255, .18);
        color: #fff;
    }

    .team-calendar-category-button.active {
        background: #fff;
        border-color: #fff;
        color: var(--color-banik);
    }

.team-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: .9rem;
    transition: background-color .15s ease;
}

    .team-calendar-nav:hover {
        background: rgba(255, 255, 255, .3);
    }

    .team-calendar-nav:focus {
        outline: none;
        box-shadow: 0 0 0 .15rem rgba(255, 255, 255, .25);
    }

.team-calendar-month {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
}

.team-calendar-month-title {
    min-width: 110px;
    text-align: center;
    font-family: 'Mukta', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: .85;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}

    .team-calendar-month-title span {
        display: block;
        margin-top: .3rem;
        font-size: 1.5rem;
    }

.team-calendar-month-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(0, 0, 0, .15);
    color: #fff;
    transition: .15s ease;
}

    .team-calendar-month-button:hover {
        background: #fff;
        color: var(--color-banik);
    }


/* =========================
   TĚLO KALENDÁŘE
   ========================= */

.team-calendar-body {
    position: relative;
}


/* Velké FA logo uprostřed */

.team-calendar-watermark {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 52%;
    width: 42%;
    height: 82%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    opacity: .16;
    pointer-events: none;
}


/* =========================
   GRID
   ========================= */

.team-calendar {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}


/* =========================
   DNY V TÝDNU
   ========================= */

.team-calendar-header {
    min-width: 0;
    padding: .45rem .25rem;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: .3rem;
    background: rgba(0, 60, 40, .55);
    color: #fff;
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
}


/* =========================
   JEDNOTLIVÝ DEN
   ========================= */

.team-calendar-day {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 110px;
    padding: .45rem;
    border-radius: .35rem;
    background: rgba(255, 255, 255, .91);
    color: #111;
    overflow: hidden;
}


/*
    Obsah musí být nad watermarkem.
    Watermark má z-index 2 a samotná buňka 1.
*/

.team-calendar-date,
.team-calendar-match,
.team-calendar-training {
    position: relative;
    z-index: 3;
}


/* Datum */

.team-calendar-date {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    color: #344054;
}


/* Jiný měsíc */

.team-calendar-other-month {
    background: rgba(240, 244, 243, .82);
}

    .team-calendar-other-month .team-calendar-date,
    .team-calendar-other-month .team-calendar-match,
    .team-calendar-other-month .team-calendar-training {
        opacity: .4;
    }


/* Dnešek */

.team-calendar-today {
    box-shadow: inset 0 0 0 2px #fff;
}


/* =========================
   ZÁPAS
   ========================= */

.team-calendar-match {
    position: absolute;
    left: .45rem;
    right: .45rem;
    top: 1rem;
    bottom: .45rem;
    z-index: 3;
}

.team-calendar-match-info {
    position: absolute;
    left: 0;
    right: 38%;
    bottom: 0;
    line-height: 1.15;
}

.team-calendar-event-title {
    font-size: .82rem;
    font-weight: 800;
}

.team-calendar-team {
    margin-top: .15rem;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}


/* Logo soupeře */

.team-calendar-logo-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 44px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
}

    .team-calendar-logo-wrapper img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: top right;
    }


/* =========================
   TRÉNINK
   ========================= */

.team-calendar-training {
    position: absolute;
    left: .45rem;
    right: .45rem;
    bottom: .45rem;
    z-index: 3;
    line-height: 1.2;
}

.team-calendar-training-time {
    margin-top: .15rem;
    font-size: .76rem;
    font-weight: 500;
}

.team-calendar-location {
    margin-top: .1rem;
    font-size: .72rem;
}


/* =========================
   MOBIL
   ========================= */

@media (max-width: 767.98px) {

    .team-calendar-card {
        padding: .4rem;
        border-radius: .5rem;
    }


    /* Horní část */

    .team-calendar-top {
        min-height: 55px;
        margin-bottom: .4rem;
        padding: 0 .15rem;
    }

    .team-calendar-category {
        gap: .3rem;
        font-size: 1.25rem;
    }

    .team-calendar-categories {
        flex-wrap: nowrap;
        gap: .3rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

        .team-calendar-categories::-webkit-scrollbar {
            display: none;
        }

    .team-calendar-category-button {
        flex: 0 0 auto;
        min-width: 48px;
        padding: .4rem .65rem;
        font-size: .7rem;
    }

    .team-calendar-nav {
        width: 1.5rem;
        height: 1.5rem;
        font-size: .6rem;
    }

    .team-calendar-month {
        gap: .25rem;
    }

    .team-calendar-month-title {
        min-width: 62px;
        font-size: 1rem;
    }

        .team-calendar-month-title span {
            margin-top: .15rem;
            font-size: .8rem;
        }

    .team-calendar-month-button {
        width: 26px;
        height: 26px;
        font-size: .65rem;
    }


    /* Grid */

    .team-calendar {
        gap: 2px;
    }


    /* Po–Ne */

    .team-calendar-header {
        padding: .25rem 0;
        border-radius: .2rem;
        font-size: .55rem;
    }


    /* Den */

    .team-calendar-day {
        min-height: 82px;
        padding: .22rem;
        border-radius: .22rem;
    }

    .team-calendar-date {
        font-size: .62rem;
    }


    /* Zápas */

    .team-calendar-match {
        left: .22rem;
        right: .22rem;
        top: 1rem;
        bottom: .22rem;
    }

    .team-calendar-match-info {
        right: 32%;
    }

    .team-calendar-event-title {
        font-size: .48rem;
        line-height: 1.05;
    }

    .team-calendar-team {
        margin-top: .08rem;
        font-size: .42rem;
        line-height: 1.05;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }


    /* Logo soupeře */

    .team-calendar-logo-wrapper {
        width: 24px;
        height: 28px;
    }


    /* Trénink */

    .team-calendar-training {
        left: .22rem;
        right: .22rem;
        bottom: .22rem;
        line-height: 1.05;
    }

    .team-calendar-training-time {
        margin-top: .08rem;
        font-size: .43rem;
    }

    .team-calendar-location {
        margin-top: .08rem;
        font-size: .4rem;
    }


    /* Watermark */

    .team-calendar-watermark {
        width: 65%;
        height: 75%;
        opacity: .13;
    }
}