/* Import fontů - MUSÍ být na začátku */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

:root {
    /* Klubové barvy */
    --brand-blue: #1b98e0;
    --brand-blue-dark: #1577b8;
    --brand-blue-light: #4db3e8;
    --brand-white: #ffffff;
}

/* Tmavý režim (výchozí) */
:root,
[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1f2937;
    --card-bg: #1f2937;
    --card-background: #1f2937;
    --card-bg-hover: #2d3748;
    --card-bg-gradient: linear-gradient(135deg, #1b98e0 0%, #1f2937 100%);
    --input-background: #0d1117;
    --background-color: #0d1117;

    --text-primary: #f0f6fc;
    --text-secondary: #c9d1d9;
    --text-muted: #8b949e;

    --border-color: #30363d;
    --border-color-light: #21262d;

    --primary-color: var(--brand-blue);
    --primary-hover: var(--brand-blue-light);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
}

/* Světlý režim */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #ffffff;
    --card-bg: #ffffff;
    --card-background: #ffffff;
    --card-bg-hover: #f6f8fa;
    --card-bg-gradient: linear-gradient(135deg, #1b98e0 0%, #e3f2fd 100%);
    --input-background: #ffffff;
    --background-color: #f6f8fa;

    --text-primary: #24292f;
    --text-secondary: #57606a;
    --text-muted: #6e7781;

    --border-color: #d0d7de;
    --border-color-light: #e5e9ed;

    --primary-color: var(--brand-blue);
    --primary-hover: var(--brand-blue-dark);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mobile font sizes */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }

    h1 {
        font-size: 1.3rem !important;
    }

    h2 {
        font-size: 1.1rem !important;
    }

    h3,
    h5 {
        font-size: 1rem !important;
    }

    h4 {
        font-size: 0.95rem !important;
    }

    p,
    .text-muted {
        font-size: 0.8rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Removed - 9th column hiding on mobile */

/* Header & Navigation */
.navbar {
    background: var(--bg-secondary) !important;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.navbar .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    color: var(--text-primary) !important;
    transition: color 0.3s ease;
}

.navbar-brand img {
    margin-right: 0;
}

.navbar-brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-blue);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

[data-theme="light"] .navbar-brand-text {
    color: var(--brand-blue-dark);
}

/* Desktop Menu */
.desktop-menu {
    display: none;
}

.desktop-menu .nav-link,
.desktop-menu .dropdown-item {
    color: var(--text-primary) !important;
    padding: 0.25rem 1rem;
    transition: all 0.3s;
    border-radius: 0.25rem;
    font-size: 0.95rem;
}

.desktop-menu .nav-link:hover {
    background: rgba(27, 152, 224, 0.15);
    color: var(--primary-color) !important;
}

.desktop-menu .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0;
}

.desktop-menu .dropdown-item {
    padding: 0.4rem 1.25rem;
    color: var(--text-primary);
    transition: all 0.3s;
    font-size: 0.95rem;
}

.desktop-menu .dropdown-item:hover {
    background: rgba(27, 152, 224, 0.1);
    color: var(--primary-color);
}

.desktop-menu .dropdown-divider {
    border-color: var(--border-color);
    margin: 0.5rem 0;
}

/* Nested dropdown submenu for desktop */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>.dropdown-toggle::after {
    content: "▶";
    border: none;
    float: right;
    margin-top: 0.6em;
    font-size: 0.6em;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.25rem;
    line-height: 1;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: rgba(27, 152, 224, 0.15);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Theme Toggle Button Mobile */
#themeToggleMobile {
    background: none;
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
}

#themeToggleMobile:hover {
    background: rgba(27, 152, 224, 0.1);
    color: var(--primary-color);
}

#themeToggleMobile:active {
    background: rgba(27, 152, 224, 0.2);
}

/* Logo switching based on theme */
.logo-dark {
    display: inline-block;
}

.logo-light {
    display: none;
}

[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: inline-block;
}

/* Search form */
.desktop-menu .form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.desktop-menu .form-control::placeholder {
    color: var(--text-muted);
}

.desktop-menu .form-control:focus {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(27, 152, 224, 0.15);
}

.desktop-menu .btn-search {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.desktop-menu .btn-search:hover {
    background: rgba(27, 152, 224, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Show desktop menu on large screens */
@media (min-width: 992px) {
    .desktop-menu {
        display: flex !important;
    }

    .navbar-toggler {
        display: none;
    }
}

/* Navbar toggler icon */
.navbar-toggler {
    border-color: var(--text-primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240, 246, 252, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(36, 41, 47, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile navbar adjustments */
@media (max-width: 991px) {
    .navbar .container-fluid {
        padding-right: 1rem;
    }

    .navbar-toggler {
        margin-left: auto;
        order: 3;
    }

    .navbar-brand {
        order: 1;
        margin-right: auto;
    }
}

/* Adjust brand text on small screens */
@media (max-width: 575px) {
    .navbar-brand-text {
        font-size: 1rem;
    }
}

/* Offcanvas Menu */
.offcanvas {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.offcanvas-end {
    border-left: 1px solid var(--border-color);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-title {
    color: var(--text-primary);
    font-weight: bold;
}

.btn-close {
    filter: brightness(0) invert(var(--btn-close-invert, 1));
}

[data-theme="light"] .btn-close {
    --btn-close-invert: 0;
}

.offcanvas-body {
    padding: 0;
}

.offcanvas-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-menu > li {
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-menu > li > a,
.offcanvas-menu > li > button {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s;
}

.offcanvas-menu > li > a:hover,
.offcanvas-menu > li > button:hover {
    background: rgba(27, 152, 224, 0.1);
    color: var(--primary-color);
}

.offcanvas-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(27, 152, 224, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.offcanvas-submenu.show {
    max-height: 2000px;
}

.offcanvas-submenu li a {
    display: block;
    padding: 10px 20px 10px 40px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.offcanvas-submenu li a:hover {
    background: rgba(27, 152, 224, 0.1);
    color: var(--primary-color);
}

.dropdown-arrow {
    float: right;
    transition: transform 0.3s;
}

.dropdown-arrow.rotate {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--brand-blue-light));
    color: white;
    padding: 56px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}

/* Hero s fotografií na pozadí - FOTKA v ::before */
.hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Vyvážený overlay přes fotku - fotka viditelná na 50% */
.hero-with-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(27, 152, 224, 0.50) 0%,
        rgba(21, 119, 184, 0.50) 50%,
        rgba(13, 17, 23, 0.50) 100%
    );
    z-index: 1;
}

/* Nastavení min-height pro hero s fotkou */
.hero-with-image {
    min-height: 350px;
}

/* Obsah hero musí být nad overlay */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Responzivní background position */
@media (max-width: 768px) {
    .hero {
        padding: 35px 0;
        min-height: 196px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-with-image {
        min-height: 280px;
    }

    .hero-with-image::before {
        background-position: center center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding: 45px 0;
        min-height: 238px;
    }

    .hero-with-image {
        min-height: 315px;
    }

    .hero-with-image::before {
        background-position: center 30%;
    }
}

@media (min-width: 1025px) {
    .hero {
        padding: 56px 0;
        min-height: 280px;
    }

    .hero-with-image {
        min-height: 350px;
    }

    .hero-with-image::before {
        background-position: center 40%;
    }
}

/* Fallback pattern pokud není fotka - pouze pro .hero BEZ .hero-with-image */
.hero:not(.hero-with-image)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero .btn-light {
    background: white;
    border-color: white;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.hero .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline-light {
    border-color: white;
    color: white;
    border-width: 2px;
    position: relative;
    z-index: 1;
}

.hero .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}


/* Cards */
.card {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border-radius: 0.75rem;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--card-bg-hover);
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Match Cards */
.match-card {
    border-left: 4px solid var(--primary-color);
    background: var(--bg-secondary);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--text-primary);
    transition: background 0.3s, transform 0.3s;
}

.match-card:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.match-time {
    color: var(--primary-color);
    font-weight: 600;
}

/* Article Card */
.article-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.article-icon:hover {
    transform: scale(1.1);
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tag {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* Sidebar Cards */
.nabor-card {
    background: var(--card-bg-gradient);
    color: white;
    border: none;
}

.nabor-card .btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.nabor-card .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.birthday-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.birthday-item:last-child {
    border-bottom: none;
}

.birthday-date {
    color: var(--primary-color);
    font-weight: 600;
}

.tournament-item {
    background: var(--bg-secondary);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.3s, transform 0.3s;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.tournament-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.tournament-item .text-blue {
    color: var(--primary-color);
}

/* Kompaktní zobrazení info z Word HTML */
.tournament-info {
    line-height: 1.4;
}

.tournament-info p,
.tournament-info .MsoNormal {
    margin: 0 0 0.25rem 0 !important;
    padding: 0 !important;
}

.tournament-info p:last-child,
.tournament-info .MsoNormal:last-child {
    margin-bottom: 0 !important;
}

.partner-badge {
    background: var(--bg-secondary);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: background 0.3s, transform 0.3s;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.partner-badge:hover {
    background: var(--bg-tertiary);
    transform: scale(1.02);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s;
    position: relative;
}

/* Logo na čáře footeru - přesně uprostřed čáry */
.footer-logo-wrapper {
    position: absolute;
    top: -37px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.footer-logo {
    max-width: 75px;
    height: auto;
    display: block;
}

footer h5 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

footer .text-muted {
    color: var(--text-muted) !important;
}

footer .border-secondary {
    border-color: var(--border-color) !important;
}

/* Icons */
.icon {
    display: inline-block;
    font-style: normal;
}

.icon::before {
    font-size: inherit;
}


/* Utility */
.text-blue {
    color: var(--primary-color);
}

.bg-blue {
    background-color: var(--primary-color);
}

.text-decoration-none:hover {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Main content width matching */
main .container {
    max-width: 1200px;
}

/* Offcanvas submenu button (nahrazuje inline style pro Muži) */
.offcanvas-submenu-btn {
    padding: 10px 20px 10px 40px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: background 0.3s;
}

.offcanvas-submenu-btn:hover {
    background: rgba(27, 152, 224, 0.1);
    color: var(--celestial-blue);
}

/* Vnořené submenu uvnitř submenu */
.offcanvas-submenu .offcanvas-submenu {
    background: rgba(27, 152, 224, 0.08);
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Zobrazení vnořeného submenu, když má třídu show */
.offcanvas-submenu .offcanvas-submenu.show {
    max-height: 2000px;
}

/* Offcanvas submenu link (nahrazuje padding-left: 60px) */
.offcanvas-submenu-link {
    padding-left: 60px !important;
    color: var(--text-main) !important;
}

/* Offcanvas divider (nahrazuje inline border a margin) */
.offcanvas-divider {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 0.5rem 0;
    padding-top: 0.5rem;
    list-style: none;
}

/* Offcanvas search input (nahrazuje inline style) */
.offcanvas-search-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.offcanvas-search-input::placeholder {
    color: var(--text-muted);
}

.offcanvas-search-input:focus {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(27,152,224,0.15);
}

/* Offcanvas search button (nahrazuje inline style) */
.offcanvas-search-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.offcanvas-search-btn:hover {
    background: rgba(27,152,224,0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   TEAM PAGE STYLES - Modern Bayern Munich Style
   ============================================ */

/* Breadcrumb Navigation */
.container.mt-4:has(.breadcrumb) {
    margin-top: 1rem !important;
}

.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    font-size: 0.75rem !important;
}

.breadcrumb-item {
    font-size: 0.75rem !important;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.75rem !important;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-size: 0.75rem !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    font-size: 0.75rem !important;
}

/* Team Header - Simple & Clean */
.team-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.team-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.team-season {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .team-title {
        font-size: 1.5rem;
    }

    .team-season {
        font-size: 0.875rem;
    }
}

/* Team Photo */
.team-photo-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.team-photo-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .team-photo-wrapper {
        border-radius: 0.5rem;
    }
}

/* Section Titles */

/* Position Group Titles */
.position-group {
    margin-bottom: 3rem;
}

.position-group-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Player Cards - Modern Grid Layout */
.player-card {
    background: var(--card-bg);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.player-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--card-bg-hover);
    text-decoration: none;
    color: inherit;
}

/* Player Photo - 3:4 Aspect Ratio (Portrait) */
.player-photo {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4 aspect ratio (4/3 * 100 = 133.33%) */
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue-light));
    overflow: hidden;
}

.player-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.player-card:hover .player-photo img {
    transform: scale(1.05);
}

/* Player Photo Placeholder */
.player-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.player-photo-placeholder .player-number-large {
    font-size: 6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
}

/* Player Number Badge */
.player-number-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(27, 152, 224, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Player Info Section */
.player-info {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.2;
}

.player-position {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-age {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
}

.player-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Coaches Section - Same Style as Players */
.player-card.coach-card .player-info {
    text-align: left;
}

/* Responsive Grid - Bayern Style */
@media (max-width: 575.98px) {
    /* Mobile: 2 columns */
    .row.g-3 > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Small tablets: 3 columns */
    .row.g-3 > [class*="col-"] {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablets: 3 columns */
    .row.g-3 > [class*="col-"] {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (min-width: 992px) {
    /* Desktop: 4 columns */
    .row.g-3 > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .position-group-title {
        font-size: 1.1rem;
    }

    .player-info {
        padding: 0.5rem;
    }

    .player-name {
        font-size: 0.85rem;
    }

    .player-age {
        font-size: 0.75rem;
    }

    .player-position {
        font-size: 0.75rem;
    }

    .player-number-badge {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .player-photo-placeholder .player-number-large {
        font-size: 4rem;
    }
}

/* Players Grid */
.players-grid {
    margin-top: 0;
}

.player-item {
    transition: opacity 0.3s ease;
}

/* Training Cards */
.training-card {
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.training-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(27, 152, 224, 0.2);
}

.training-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Coach Card Horizontal Layout */
.coach-card-horizontal {
    display: flex;
    background: var(--card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.coach-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(27, 152, 224, 0.3);
}

.coach-photo-wrapper {
    flex-shrink: 0;
    width: 120px;
    position: relative;
    background: linear-gradient(135deg, var(--lapis-lazuli), var(--alice-blue));
}

.coach-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

.coach-info-wrapper {
    flex-grow: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.coach-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.coach-position {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.coach-contact {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.coach-contact:last-child {
    margin-bottom: 0;
}

.coach-contact strong {
    color: var(--text-main);
    display: inline-block;
    min-width: 70px;
}

.coach-contact a {
    color: var(--celestial-blue);
    text-decoration: none;
    word-break: break-word;
}

.coach-contact a:hover {
    text-decoration: underline;
}

/* Minimální velikost karty pouze na velkých PC */
@media (min-width: 992px) {
    .coach-card-horizontal {
        min-width: 500px;
    }
}

/* Document Cards */
.document-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(27, 152, 224, 0.2);
}

.document-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.document-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.document-card .btn {
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-hero {
        padding: 40px 0 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .position-filters {
        padding: 1rem 0;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .member-name {
        font-size: 1rem;
    }

    .player-number-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .document-icon {
        font-size: 2rem;
    }

    .document-card .card-body {
        flex-direction: column;
        text-align: center;
    }

    .document-card .document-icon {
        margin-bottom: 1rem;
    }

    .document-card .btn {
        margin-top: 1rem;
        width: 100%;
    }

}

/* ============================================
   PLAYER PAGE STYLES - Bayern München Style
   ============================================ */

/* Player Hero Section */
/* Profil hráče - jednoduchý styl */
.player-profile-header {
    padding: 1.5rem 0;
}

.player-profile-photo {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.player-profile-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.player-profile-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-profile-placeholder .player-number-large {
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.player-icon-large {
    font-size: 8rem;
    opacity: 0.6;
}

.player-profile-info {
    padding: 1rem 0;
}

.player-profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Simple text sections - minimalist style */
.simple-text-section {
    max-width: 800px;
}

.simple-text-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.simple-text-section p strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Loading spinner */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Player Tabs - Modern Style */
.player-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.player-tabs .tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.player-tabs .tab-button svg {
    stroke: currentColor;
}

.player-tabs .tab-button:hover {
    color: var(--text-primary);
    background: rgba(27, 152, 224, 0.05);
}

.player-tabs .tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Responsive - Player Page */
@media (max-width: 768px) {
    .player-profile-photo {
        margin-bottom: 1.5rem;
    }

    .player-profile-placeholder .player-number-large {
        font-size: 6rem;
    }

    .player-icon-large {
        font-size: 6rem;
    }

    .player-profile-name {
        font-size: 2rem;
    }


    .player-profile-info {
        text-align: center;
    }
}

@media (min-width: 769px) {
    .player-profile-info {
        padding-left: 2rem;
    }
}

/* ============================================
   TEMPLATE DESIGN SYSTEM
   ============================================ */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--brand-blue);
    padding: 1rem 1.5rem 1rem 0;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-left: 4px solid var(--brand-blue);
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left: 3px solid var(--brand-blue-light);
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    background: transparent;
    color: var(--brand-blue);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--brand-blue-light);
}

h5 {
    font-size: 1.1rem;
    line-height: 1.5;
    background: transparent;
    color: var(--text-primary);
    padding: 0.5rem 0;
    border-left: 2px solid var(--text-muted);
    padding-left: 1rem;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    font-weight: 600;
}

/* Text and Typography */
p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

strong, b {
    font-weight: 600;
    color: var(--text-primary);
}

em, i {
    font-style: italic;
}

mark {
    background-color: var(--brand-blue-light);
    color: var(--text-primary);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

/* Notes and Alerts */
.note {
    padding: 1rem 1.25rem;
    border-left: 4px solid;
    font-size: 1rem;
    line-height: 1.6;
}

.note-info {
    background-color: rgba(27, 152, 224, 0.1);
    border-left-color: var(--brand-blue);
    color: var(--text-primary);
}

.note-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: var(--text-primary);
}

.note-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: var(--text-primary);
}

.note-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: var(--text-primary);
}

/* Bootstrap Alert overrides for dark mode */
[data-theme="dark"] .alert-success,
:root .alert-success {
    background-color: rgba(40, 167, 69, 0.15) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
    color: #d4edda !important;
}

[data-theme="dark"] .alert-success .alert-heading,
:root .alert-success .alert-heading {
    color: #d4edda !important;
}

[data-theme="dark"] .alert-success hr,
:root .alert-success hr {
    border-top-color: rgba(40, 167, 69, 0.3) !important;
}

[data-theme="dark"] .alert-success a,
:root .alert-success a {
    color: #d4edda !important;
    text-decoration: underline;
}

[data-theme="dark"] .alert-danger,
:root .alert-danger {
    background-color: rgba(220, 53, 69, 0.15) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    color: #f8d7da !important;
}

[data-theme="dark"] .alert-danger .alert-heading,
:root .alert-danger .alert-heading {
    color: #f8d7da !important;
}

[data-theme="dark"] .alert-warning,
:root .alert-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    color: #fff3cd !important;
}

[data-theme="dark"] .alert-info,
:root .alert-info {
    background-color: rgba(27, 152, 224, 0.15) !important;
    border-color: rgba(27, 152, 224, 0.3) !important;
    color: #d1ecf1 !important;
}

/* Light mode alert overrides */
[data-theme="light"] .alert-success {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

[data-theme="light"] .alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

[data-theme="light"] .alert-warning {
    background-color: #fff3cd !important;
    border-color: #ffeaa7 !important;
    color: #856404 !important;
}

[data-theme="light"] .alert-info {
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

/* Info blocks */
.info-block {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.info-block p {
    margin-bottom: 0.75rem;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block strong {
    color: var(--text-secondary);
    font-weight: 600;
    display: inline-block;
    min-width: 150px;
}

/* Buttons - Remove border-radius */
.btn {
    border-radius: 0 !important;
}

/* Tables - Dark style */
.table {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
    background-color: transparent !important;
    font-size: 1rem;
}

.table thead {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--brand-blue) !important;
}

.table thead th {
    padding: 1rem 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid var(--brand-blue) !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.table tbody tr {
    background: var(--bg-primary) !important;
    background-color: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.table tbody tr:hover {
    background: var(--bg-secondary) !important;
    background-color: var(--bg-secondary) !important;
}

.table tbody tr:hover td {
    background-color: var(--bg-secondary) !important;
}

.table tbody td {
    padding: 0.875rem 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color) !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.table tfoot {
    background: var(--bg-primary) !important;
    background-color: var(--bg-primary) !important;
    border-top: 2px solid var(--brand-blue) !important;
}

.table tfoot td {
    padding: 1rem 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Override Bootstrap striped table */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-primary) !important;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: var(--bg-primary) !important;
}

/* Override Bootstrap hover */
.table-hover tbody tr:hover {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* Compact table */
.table-sm tbody td,
.table-sm thead th,
.table-sm tfoot td {
    padding: 0.5rem 0.75rem;
}

/* Section spacing */
.template-section {
    padding: 0 0 2rem 0;
}

.template-section:first-child {
    padding-top: 0;
}

/* Match result highlighting */
.result-win {
    color: #28a745 !important;
    font-weight: 600;
    white-space: nowrap;
}

.result-draw {
    color: #ffc107 !important;
    font-weight: 600;
    white-space: nowrap;
}

.result-loss {
    color: #dc3545 !important;
    font-weight: 600;
    white-space: nowrap;
}

/* Match result backgrounds (optional alternative) */
.bg-result-win {
    background-color: rgba(40, 167, 69, 0.15) !important;
    color: #28a745 !important;
    font-weight: 600;
    padding: 0 0.15rem;
}

.bg-result-draw {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: #ffc107 !important;
    font-weight: 600;
    padding: 0 0.15rem;
}

.bg-result-loss {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #dc3545 !important;
    font-weight: 600;
    padding: 0 0.15rem;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-control,
.form-select {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-size: 1rem;
    padding: 0.625rem 0.875rem;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--card-bg-hover) !important;
    border-color: var(--brand-blue) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(27, 152, 224, 0.25) !important;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Checkboxes and radios */
.form-check-input {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
}

.form-check-input:checked {
    background-color: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
}

.form-check-input:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(27, 152, 224, 0.25) !important;
}

.form-check-label {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Validation states */
.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745 !important;
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Horizontal rule */
hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Mobile responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        padding: 0.75rem 1rem 0.75rem 0;
    }

    h2 {
        font-size: 1.75rem;
        padding: 0.6rem 1rem;
    }

    h3 {
        font-size: 1.4rem;
        padding: 0.5rem 1rem;
    }

    h4 {
        font-size: 1.2rem;
        padding: 0.4rem 0;
    }

    h5 {
        font-size: 1.05rem;
        padding: 0.4rem 0 0.4rem 0.75rem;
    }

    p, .note, .info-block {
        font-size: 0.8rem;
    }

    .info-block strong {
        min-width: auto;
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }

    .info-block p {
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   MATCH DISPLAY - Large View
   ============================================ */

/* Match Large Container */
.match-large {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.match-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Match Header - První řádek */
.match-header {
    background: var(--bg-secondary);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.match-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Match Footer - Třetí řádek (datum a čas) */
.match-footer {
    background: var(--bg-secondary);
    padding: 0.5rem 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.match-datetime {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Match Content - Druhý řádek */
.match-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem;
}

/* Match Team - Domácí a hosté */
.match-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.match-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
}

.match-team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Match Score - Výsledek */
.match-score {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.match-score-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-score-halftime {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.score-home,
.score-away {
    min-width: 50px;
    text-align: center;
    white-space: nowrap;
}

.score-separator {
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .match-header {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .match-date {
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .match-category-line,
    .match-competition-line {
        display: block;
    }

    .match-content {
        gap: 1rem;
        padding: 1rem;
    }

    .match-logo {
        width: 60px;
        height: 60px;
    }

    .match-team-name {
        font-size: 0.95rem;
    }

    .match-score-main {
        font-size: 2rem;
    }

    .match-score-halftime {
        font-size: 1rem;
    }

    .score-home,
    .score-away {
        min-width: 40px;
        white-space: nowrap;
    }

    /* Tabulka soutěže - mobilní optimalizace */
    .table th[style*="width: 40px"],
    .table td[style*="width: 40px"] {
        width: 28px !important;
        padding: 0.3rem 0.2rem !important;
        font-size: 0.7rem !important;
    }

    .table th[style*="width: 60px"],
    .table td[style*="width: 60px"] {
        width: 40px !important;
        padding: 0.3rem 0.2rem !important;
        font-size: 0.75rem !important;
    }

    .table th[style*="width: 80px"],
    .table td[style*="width: 80px"] {
        width: 60px !important;
        font-size: 0.7rem !important;
    }

    .table th[style*="width: 20px"],
    .table td[style*="width: 20px"] {
        width: 18px !important;
        padding: 0.3rem 0.1rem !important;
        font-size: 0.7rem !important;
    }

    .table-mobile-hide-form {
        display: none !important;
    }

    /* Příští utkání - mobilní optimalizace */
    .upcoming-row {
        grid-template-columns: 40px 1fr 70px 30px !important;
        gap: 0.5rem !important;
    }

    .upcoming-meta {
        width: 40px;
        flex-shrink: 0;
    }

    .upcoming-competition {
        font-size: 0.6rem;
        line-height: 1.1;
        word-wrap: break-word;
    }

    .online-text {
        display: none !important;
    }

    .online-dot {
        display: inline-block !important;
        width: 12px;
        height: 12px;
        border-radius: 50%;
    }

    .online-future .online-dot {
        background-color: #6b7280;
    }

    .online-live .online-dot {
        background-color: #22c55e;
        animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    .online-badge {
        padding: 0.25rem;
        background-color: transparent !important;
    }

    .upcoming-online {
        width: 30px;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Výsledky utkání - mobilní optimalizace */
    .result-row {
        grid-template-columns: 45px 1fr 60px 20px !important;
        gap: 0.5rem !important;
    }

    .result-meta {
        width: 45px;
        flex-shrink: 0;
        gap: 0.15rem;
    }

    .result-date {
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.1;
    }

    .result-competition {
        font-size: 0.65rem;
        line-height: 1.1;
    }

    .result-scores {
        gap: 0.25rem;
    }

    .score-row {
        font-size: 1rem;
        min-width: 28px;
    }

    .result-detail-icon {
        width: 20px;
    }

    .result-detail-icon svg {
        width: 12px;
        height: 12px;
    }

    /* Template section - mobilní optimalizace */
    .template-section ul li {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .match-content {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .match-logo {
        width: 50px;
        height: 50px;
    }

    .match-team-name {
        font-size: 0.85rem;
    }

    .match-score-main {
        font-size: 1.75rem;
    }

    .match-score-halftime {
        font-size: 0.9rem;
    }
}

/* ==================================================
   Player Profile Page Styles
   ================================================== */

/* Tab Navigation */
.nav-tabs .nav-link {
    color: var(--bs-heading-color, inherit);
}

.nav-tabs .nav-link.active {
    background-color: var(--bs-dark, #212529);
    color: var(--bs-light, #f8f9fa);
    border-color: var(--bs-border-color);
}

.nav-tabs .nav-link:hover {
    border-color: var(--bs-border-color);
}

/* Season Select */
#seasonSelect {
    padding-right: 2rem;
    background-size: 16px 12px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

[data-bs-theme="dark"] #seasonSelect {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

#seasonSelect:hover {
    background-color: var(--bs-secondary-bg);
}

@media (max-width: 767px) {
    #seasonSelect {
        padding: 0.25rem 1.75rem 0.25rem 0.5rem;
        font-size: 0.9rem !important;
    }
}

/* Table Styles */
.table .table-primary,
.table tr.table-primary td {
    background-color: var(--bg-secondary) !important;
    color: var(--bs-heading-color) !important;
    font-weight: bold !important;
}

.table tr.table-primary td {
    border-color: var(--bs-border-color) !important;
}

.table tr.table-primary .text-muted {
    opacity: 0.7;
}

/* Match Footer */
.match-footer {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0.5rem;
    color: var(--bs-heading-color);
}

.match-footer strong {
    font-size: 1rem;
    color: var(--bs-heading-color);
}

/* Season Stats */
.season-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1rem;
}

.season-stats .stat-item {
    text-align: center;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
}

.season-stats .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--bs-heading-color);
    margin-bottom: 0.5rem;
}

.season-stats .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

@media (max-width: 767px) {
    .season-stats {
        padding: 1.5rem 0.5rem;
    }

    .season-stats .stat-value {
        font-size: 1.5rem;
    }

    .season-stats .stat-label {
        font-size: 0.75rem;
    }

    .stats-table-mobile,
    .match-stats-table {
        font-size: 0.75rem !important;
    }

    .stats-table-mobile th,
    .stats-table-mobile td,
    .match-stats-table th,
    .match-stats-table td {
        padding: 0.25rem !important;
        font-size: 0.75rem !important;
    }
}

/* Dark mode fix for stat-label - must be after media queries */
[data-bs-theme="dark"] .match-large .stat-label,
[data-bs-theme="dark"] .stat-label {
    color: #dee2e6 !important;
    opacity: 1 !important;
}

/* ===== TÝMOVÉ STATISTIKY (TEAM.PHP) ===== */

.team-stats-sidebar {
    /* Odstraněno sticky - vše se roluje společně */
}

.team-stats-sidebar h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.team-stats-sidebar > p.text-muted {
    margin-bottom: 1.5rem;
}

.stat-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.stat-item:hover {
    background: var(--card-bg-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.stat-rank {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    min-width: 24px;
    text-align: center;
}

.stat-player {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    min-width: 40px;
    text-align: right;
}

/* Responzivní zobrazení - mobil: statistiky pod sestavou */
@media (max-width: 991.98px) {
    .team-stats-sidebar {
        position: static;
        max-height: none;
        margin-top: 2rem;
    }

    .stat-section {
        margin-bottom: 1rem;
    }
}

/* Pro malé obrazovky - kompaktnější layout */
@media (max-width: 576px) {
    .stat-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .stat-rank {
        font-size: 1rem;
        min-width: 20px;
    }

    .stat-player {
        font-size: 0.9rem;
    }

    .stat-number {
        min-width: 20px !important;
        height: 20px !important;
        font-size: 0.7rem !important;
        padding: 0 !important;
    }

    .stat-value {
        font-size: 1rem;
        min-width: 35px;
    }

    /* Mobilní optimalizace pro tabulku utkání */
    .table-sm td {
        padding: 0.4rem 0.3rem;
        font-size: 0.75rem;
        vertical-align: middle;
        line-height: 1.3;
    }

    .table-sm th {
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
        font-weight: 600;
    }

    /* Tabulka sestav - stejné jako v online.php */
    .match-lineup-table td {
        font-size: 0.75rem !important;
    }

    .match-lineup-table th {
        font-size: 0.7rem !important;
    }

    .penalty-badge {
        font-size: 0.65rem !important;
        padding: 0.1rem 0.25rem !important;
        min-width: 18px !important;
    }

    /* Kompaktní zobrazení log na mobilu */
    .table-sm img {
        height: 16px !important;
        width: 16px !important;
        margin-right: 3px !important;
        margin-left: 0 !important;
    }

    /* Menší font v selectech a labelech na mobilu */
    .form-select {
        font-size: 0.85rem;
    }

    .form-label {
        font-size: 0.85rem;
    }
}

/* ===== TRESTNÉ IKONY V SESTAVÁCH ===== */

/* Vertikální zarovnání buněk s tresty */
.match-lineup-table td {
    vertical-align: middle;
}

.penalty-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.penalty-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    border-radius: 0.25rem;
    color: white;
    min-width: 24px;
}

/* 2minuty - šedý background */
.penalty-2m {
    background-color: #6c757d;
    color: white;
}

/* ŽK - žlutý background */
.penalty-zk {
    background-color: #ffc107;
    color: #000;
}

/* ČK - červený background */
.penalty-ck {
    background-color: #dc3545;
    color: white;
}

/* DI - černý background */
.penalty-di {
    background-color: #000000;
    color: white;
}

/* Styly pro události v timeline (online přenos) */
/* Všechny badge mají stejnou velikost jako skóre badge */
.event-2m,
.event-zk,
.event-ck,
.event-di {
    padding: 0 0.35rem;
    border-radius: 0.25rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    line-height: 1.2;
}

.event-2m {
    background-color: #6c757d;
    color: white;
}

.event-zk {
    background-color: #ffc107;
    color: #000;
}

.event-ck {
    background-color: #dc3545;
    color: white;
}

.event-di {
    background-color: #000000;
    color: white;
}

/* Timeout a neproměněná 7m - pouze ikony bez pozadí */
.event-missed-7m,
.event-timeout {
    padding: 0;
    background: none;
    border: none;
    font-size: 1.3em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.event-missed-7m {
    color: #fd7e14;
}

.event-timeout {
    color: #0d6efd;
}

/* Ikona přeškrtnuté 7m */
.event-icon-missed {
    position: relative;
    display: inline-block;
}

.event-icon-missed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    right: -10%;
    height: 2px;
    background-color: currentColor;
    transform: translateY(-50%) rotate(-45deg);
}

/* Klikatelné řádky v sestavě Bělé */
.match-lineup-table tbody tr.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.match-lineup-table tbody tr.clickable-row:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

[data-bs-theme="dark"] .match-lineup-table tbody tr.clickable-row:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Odkazy v sestavě - bez podtržení */
.match-lineup-table a {
    color: inherit;
    text-decoration: none;
}

.match-lineup-table a:hover {
    color: inherit;
    text-decoration: none;
}

/* Mobilní optimalizace pro trestné ikony */
@media (max-width: 576px) {
    .penalty-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.25rem;
        min-width: 18px;
    }

    .penalty-icons {
        gap: 0.2rem;
    }
}

/* ============================================
   PARTNEŘI A SPONZOŘI STYLES
   ============================================ */

/* Partner Card Link - Odstranění podtržení a zajištění správného zobrazení */
.partner-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.partner-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Partner Card - Použití stejného stylu jako player-card */
.partner-card {
    cursor: pointer;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Partner Logo - Stejné jako player-photo, ale s obsahem na "contain" místo "cover" */
.partner-logo {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio pro loga */
    background: var(--bg-secondary);
    overflow: hidden;
}

.partner-logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.partner-card:hover .partner-logo img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Partner Logo Placeholder */
.partner-placeholder {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Partner Info - Stejné jako player-info */
.partner-info {
    padding: 1rem;
    text-align: center;
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.partner-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .partner-name {
        font-size: 0.9rem;
    }

    .partner-description {
        font-size: 0.75rem;
    }

    .partner-logo img {
        width: 85%;
        height: 85%;
    }
}

/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Home Page Styles */
.home-wrapper {
    background-color: var(--bg-primary);
    min-height: calc(100vh - 200px);
    padding: 1rem 0;
}

.home-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 1rem;
}

/* Base section styling */
.home-section {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    min-height: 100px;
    position: relative;
    transition: all 0.3s ease;
}

.home-section:hover {
    box-shadow: var(--shadow-md);
}

.home-section-content {
    padding: 1.5rem;
}

.home-section h2,
.home-section h3 {
    text-align: center;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.home-section h2 {
    font-size: 1.5rem;
}

.home-section h3 {
    font-size: 1.25rem;
}

.home-section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
}

/* Indicators (dots) */
.banner-indicators,
.results-indicators,
.upcoming-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: var(--brand-blue);
}

.indicator:hover {
    background: var(--brand-blue-light);
}

/* Links */
.home-link {
    display: block;
    text-align: right;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
}

.home-link:hover {
    color: var(--brand-blue-light);
    text-decoration: underline;
}

/* Specific section heights for mobile/tablet */
.home-banner {
    min-height: 180px;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.banner-slide.active {
    display: block;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.banner-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.home-results,
.home-upcoming {
    min-height: 200px;
}

.home-articles {
    min-height: 300px;
}

.home-birthdays {
    min-height: 200px;
}

.home-links {
    min-height: 150px;
}

.home-partners {
    min-height: 150px;
}

/* Content placeholders */
.articles-content,
.birthdays-content,
.partners-content {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Mobile Layout (default) */
@media (max-width: 767px) {
    .home-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "banner"
            "results"
            "upcoming"
            "articles"
            "birthdays"
            "links"
            "partners";
    }

    .home-banner {
        grid-area: banner;
    }

    .home-results {
        grid-area: results;
    }

    .home-upcoming {
        grid-area: upcoming;
    }

    .home-articles {
        grid-area: articles;
    }

    .home-birthdays {
        grid-area: birthdays;
    }

    .home-links {
        grid-area: links;
    }

    .home-partners {
        grid-area: partners;
    }

    /* Využití 100% prostoru na mobilu */
    .home-wrapper {
        padding: 0;
    }

    .home-container {
        padding: 0;
        gap: 0;
    }

    /* Karty bez okrajů na mobilu */
    .home-section {
        border: none;
        border-radius: 0;
        margin-bottom: 0.25rem;
    }

    .home-section-content {
        padding: 0.5rem;
    }
}

/* Tablet Layout - stejný jako PC */
@media (min-width: 768px) and (max-width: 1199px) {
    .home-container {
        grid-template-columns: repeat(6, 1fr);
        grid-template-areas:
            "banner banner banner banner banner banner"
            "results results results upcoming upcoming upcoming"
            "articles articles articles articles birthdays birthdays"
            "articles articles articles articles links links"
            "partners partners partners partners partners partners";
    }

    .home-banner {
        grid-area: banner;
    }

    .home-results {
        grid-area: results;
    }

    .home-upcoming {
        grid-area: upcoming;
    }

    .home-articles {
        grid-area: articles;
    }

    .home-birthdays {
        grid-area: birthdays;
    }

    .home-links {
        grid-area: links;
    }

    .home-partners {
        grid-area: partners;
    }

    /* Využití 100% prostoru na tabletu */
    .home-wrapper {
        padding: 0;
    }

    .home-container {
        padding: 0;
        gap: 0;
    }

    /* Karty bez okrajů na tabletu */
    .home-section {
        border: none;
        border-radius: 0;
        margin-bottom: 0.25rem;
    }

    .home-section-content {
        padding: 0.5rem;
    }
}

/* Desktop Layout (PC) - 50/50 a 66/33 */
@media (min-width: 1200px) {
    .home-container {
        grid-template-columns: repeat(6, 1fr);
        grid-template-areas:
            "banner banner banner banner banner banner"
            "results results results upcoming upcoming upcoming"
            "articles articles articles articles birthdays birthdays"
            "articles articles articles articles links links"
            "partners partners partners partners partners partners";
    }

    .home-banner {
        grid-area: banner;
    }

    /* Výsledky a Příští utkání - 50% / 50% */
    .home-results {
        grid-area: results;
    }

    .home-upcoming {
        grid-area: upcoming;
    }

    /* Články - 66%, Oslavenci a Odkazy - 33% */
    .home-articles {
        grid-area: articles;
    }

    .home-birthdays {
        grid-area: birthdays;
    }

    .home-links {
        grid-area: links;
    }

    .home-partners {
        grid-area: partners;
    }
}

/* Results List Styles for Desktop */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.result-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.result-item {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    height: 70px;
    display: flex;
    align-items: center;
}

.result-item-link:hover .result-item {
    background-color: var(--card-bg-hover);
    border-radius: 4px;
}

.result-row {
    display: grid;
    grid-template-columns: 120px 1fr 70px 20px 24px;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

/* Kolona 4: Online tečka */
.result-online {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
}

/* Kolona 1: Kategorie + Datum | Soutěž */
.result-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-category {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.result-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.result-competition {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Kolona 2: Týmy (2 řádky) */
.result-teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-team-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-logo {
    height: 20px;
    width: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Kolona 3: Výsledky (2 řádky) */
.result-scores {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.score-row {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
}

/* Kolona 4: Ikona detailu */
.result-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}

.result-item-link:hover .result-detail-icon {
    opacity: 1;
    color: var(--brand-blue);
}

/* Upcoming Matches Styles - Desktop */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.upcoming-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.upcoming-item {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    height: 70px;
    display: flex;
    align-items: center;
}

.upcoming-item-link:hover .upcoming-item {
    background-color: var(--card-bg-hover);
    border-radius: 4px;
}

.upcoming-row {
    display: grid;
    grid-template-columns: 100px 1fr 70px 60px;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.upcoming-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.upcoming-category {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.upcoming-competition {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upcoming-teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upcoming-team-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upcoming-logo {
    height: 20px;
    width: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.upcoming-tournament {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tournament-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.tournament-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.upcoming-time {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.time-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.time-hour {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-primary);
}

.upcoming-online {
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.online-future {
    background-color: #e5e7eb;
    color: #6b7280;
}

.online-live {
    background-color: #22c55e;
    color: white;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.online-dot {
    display: none;
}

/* Online dot - pouze zelená tečka pro výsledky */
.online-dot-live {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Upcoming Matches - Mobile */
.upcoming-carousel {
    position: relative;
    overflow: hidden;
}

.match-time-mobile {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}


/* Mobile Carousel Styles */
.results-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    opacity: 0.6;
}

.carousel-arrow:hover {
    color: var(--brand-blue);
    opacity: 1;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

.carousel-arrow-left {
    left: -5px;
}

.carousel-arrow-right {
    right: -5px;
}

.match-card-mobile-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    padding: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.match-card-mobile {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin: 0.25rem 0;
}

.match-header-mobile {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.team-logo-mobile {
    height: 32px;
    width: 32px;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.score-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    white-space: nowrap;
}

.score-half {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Result colors */
.result-win {
    color: #22c55e !important;
}

.result-draw {
    color: #eab308 !important;
}

.result-loss {
    color: #ef4444 !important;
}

/* Nový layout pro mobilní utkání */
.match-content-mobile {
    margin-top: 1rem;
}

.match-teams-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.team-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.team-name-mobile {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-primary);
}

.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.match-vs-mobile {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Turnaj layout */
.tournament-info-mobile {
    text-align: center;
    margin-bottom: 0.75rem;
}

.tournament-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Tournament detail header */
.tournament-detail-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1.25rem;
    border-left: 3px solid var(--brand-blue-light);
    border-radius: 0.25rem;
}

.tournament-detail-header h3 {
    background: transparent !important;
    padding: 0 !important;
    border-left: none !important;
}

.match-online-center {
    text-align: center;
    margin-top: 0.5rem;
}

/* Articles Section */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
}

.article-item-link:hover .article-item {
    transform: translateY(-2px);
}

.article-item-link:hover .article-image img {
    transform: scale(1.05);
}

.article-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Overlay s gradientem pro lepší čitelnost textu */
.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-meta-overlay {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.article-category-badge {
    background-color: var(--brand-blue);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date-overlay {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
}

.article-title-overlay {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .article-image {
        height: 240px;
    }

    .article-overlay {
        padding: 1rem 0.75rem 0.75rem;
    }

    .article-title-overlay {
        font-size: 1rem;
    }

    .article-category-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .article-date-overlay {
        font-size: 0.7rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1199px) {
    .article-image {
        height: 220px;
    }

    .article-title-overlay {
        font-size: 1.05rem;
    }
}

/* Tlačítko pro další články */
.articles-more {
    margin-top: 1.5rem;
    text-align: center;
}

/* Birthdays (Oslavenci) Section */
.birthdays-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.birthday-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.birthday-item:last-child {
    border-bottom: none;
}

.birthday-item:hover {
    background-color: var(--card-bg-hover);
}

.birthday-date {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    min-width: 50px;
}

.birthday-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
    flex: 1;
}

.birthday-age {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

/* Zvýraznění dnešních narozenin */
.birthday-today {
    background: linear-gradient(90deg, rgba(27, 152, 224, 0.15) 0%, rgba(27, 152, 224, 0.05) 100%);
    border-left: 4px solid var(--brand-blue);
    padding-left: calc(1rem - 4px);
}

.birthday-today .birthday-date {
    color: var(--brand-blue);
    font-size: 1rem;
}

.birthday-today .birthday-name {
    font-weight: 700;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .birthday-item {
        padding: 0.5rem 0;
    }

    .birthday-date {
        font-size: 0.85rem;
    }

    .birthday-name {
        font-size: 0.85rem;
    }

    .birthday-age {
        font-size: 0.8rem;
    }
}

/* Partners (Partneři) Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.partner-logo-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.partner-logo-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

.partner-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.partner-logo-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--brand-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.partners-more {
    margin-top: 1.5rem;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .partner-logo-img {
        padding: 0.75rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1199px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Indicators pro carousely výsledků a příštích utkání */
.results-indicators,
.upcoming-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background-color: var(--brand-blue);
    width: 24px;
    border-radius: 4px;
}

/* ===== ARTICLE PAGE STYLES ===== */

/* Article Wrapper */
.article-wrapper {
    min-height: 100vh;
    background-color: var(--bg-primary);
    padding-bottom: 2rem;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Article Hero Section */
.article-hero {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.article-hero-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1) 85%, transparent 100%);
    padding: 2rem;
}

.article-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.article-hero-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Meta informace článku - výchozí pro hero s obrázkem */
.article-hero .article-author,
.article-hero .article-date,
.article-hero .article-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.article-hero .article-author svg,
.article-hero .article-date svg,
.article-hero .article-views svg {
    flex-shrink: 0;
}

/* Hero bez obrázku */
.article-hero-no-image {
    width: 100%;
    min-height: 200px;
    background: var(--card-bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.article-hero-no-image .article-hero-content {
    text-align: center;
}

.article-hero-no-image .article-hero-title {
    color: var(--text-primary);
    text-shadow: none;
}

.article-hero-no-image .article-author,
.article-hero-no-image .article-date,
.article-hero-no-image .article-views {
    color: var(--text-secondary);
}

.article-hero-no-image .article-author svg,
.article-hero-no-image .article-date svg,
.article-hero-no-image .article-views svg {
    stroke: var(--text-secondary);
}

.article-hero-no-image .article-hero-meta {
    justify-content: center;
}

/* Article Content Section */
.article-content-section {
    background-color: var(--bg-primary);
    padding: 2rem 1rem;
}

/* Grid layout pro PC - 66% obsah / 33% galerie */
.article-content-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1200px) {
    .article-content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
}

.article-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 500;
    border-left: 4px solid var(--brand-blue);
    padding-left: 1.5rem;
    font-style: italic;
}

.article-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: normal;
}

/* Inline fotky v textu článku */
.article-inline-image {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-inline-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Pozice left - fotka vlevo, text obtéká vpravo */
.article-inline-image-left {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    max-width: 45%;
    align-items: flex-start;
}

/* Pozice right - fotka vpravo, text obtéká vlevo */
.article-inline-image-right {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    max-width: 45%;
    align-items: flex-end;
}

/* Pozice center - fotka na střed, žádné obtékání */
.article-inline-image-center {
    clear: both;
    max-width: 100%;
    align-items: center;
}

.article-inline-image-center img {
    max-width: 90%;
}

/* Gallery Section - v hlavním obsahu článku */
.article-gallery-section-main {
    margin-top: 3rem;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.article-gallery-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* Na mobilu menší náhledy */
@media (max-width: 768px) {
    .article-gallery-main {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: var(--bg-secondary);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay svg {
    color: white;
    width: 32px;
    height: 32px;
}

.gallery-item-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 0.5rem;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.3;
    white-space: pre-wrap;
}

/* Inline image descriptions */
.image-description {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding: 0.25rem 0.5rem;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    width: 100%;
}

/* Popisky pro fotky zarovnané doleva */
.article-inline-image-left .image-description {
    text-align: left;
}

/* Popisky pro fotky zarovnané doprava */
.article-inline-image-right .image-description {
    text-align: right;
}

/* Files Section - v hlavním obsahu článku */
.article-files-section-main {
    margin-top: 2rem;
}

.files-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.article-files {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    position: relative;
}

.file-item:hover {
    background: var(--card-bg-hover);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.file-icon {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue-light);
    border-radius: 8px;
    color: var(--brand-blue);
}

.file-ext {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--brand-blue);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.file-download {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    transition: transform 0.2s;
}

.file-item:hover .file-download {
    transform: translateY(2px);
}

/* Related Articles Section - v sidebaru */
.related-articles-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 1rem;
}

.related-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article-item {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.related-article-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.related-article-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-item:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 1rem;
    color: white;
}

.related-article-badge {
    display: inline-block;
    background: var(--brand-blue);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.related-article-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.related-article-no-image {
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-article-no-image .related-article-badge {
    margin-bottom: 0.75rem;
}

.related-article-no-image .related-article-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.related-article-no-image .related-article-date {
    color: var(--text-secondary);
}

/* Na mobilu a tabletu zobrazit související články horizontálně */
@media (max-width: 1199px) {
    .related-articles-section {
        position: static;
        margin-top: 2rem;
    }

    .related-articles {
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .related-article-item {
        flex: 0 0 300px;
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    .related-article-item {
        flex: 0 0 250px;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
}

.lightbox-description {
    color: white;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    max-width: 80vw;
    text-align: center;
    line-height: 1.5;
    display: none;
    margin-top: 0.5rem;
}

/* Back Button Section */
.article-back-section {
    padding: 2rem 1rem;
    text-align: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--card-bg-hover);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .article-hero {
        height: 300px;
    }

    .article-hero-overlay {
        padding: 1.5rem;
    }

    .article-hero-title {
        font-size: 1.5rem !important;
    }

    .article-hero-meta {
        gap: 1rem;
    }

    .article-date,
    .article-views {
        font-size: 0.85rem;
    }

    .article-content-section {
        padding: 1.5rem 1rem;
    }

    .article-intro {
        font-size: 1rem;
        padding-left: 1rem;
    }

    .article-text {
        font-size: 0.95rem;
    }

    /* Inline fotky na mobilu - vždy na celou šířku */
    .article-inline-image-left,
    .article-inline-image-right {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
        justify-content: center;
    }

    .article-inline-image-center img {
        max-width: 100%;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    /* Soubory ke stažení - mobilní úpravy */
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .file-icon {
        width: 40px;
        height: 40px;
    }

    .file-ext {
        font-size: 0.55rem;
        padding: 1px 2px;
    }

    .file-name {
        font-size: 0.85rem;
        white-space: normal;
        word-break: break-word;
    }

    .file-size {
        font-size: 0.75rem;
    }

    .file-download {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        width: 28px;
        height: 28px;
    }

    .file-info {
        width: 100%;
        padding-right: 2rem;
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1199px) {
    .article-hero {
        height: 350px;
    }

    .article-hero-title {
        font-size: 2rem;
    }
}

/* ============================================
   ARTICLE ARCHIVE PAGE STYLES
   ============================================ */

/* Archive wrapper */
.archive-wrapper {
    min-height: calc(100vh - 80px);
    background: var(--background-color);
    padding: 2rem 0;
}

.archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Archive header */
.archive-header {
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--border-color);
}

.archive-header-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.archive-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Archive filters */
.archive-filters {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Search input */
.filter-search {
    flex: 1;
}

.search-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

[data-theme="dark"] .search-input {
    background-color: #1f2937 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

[data-theme="light"] .search-input {
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
    color: #24292f !important;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

[data-theme="dark"] .search-input:focus {
    background-color: #2d3748 !important;
    border-color: #1b98e0 !important;
}

[data-theme="light"] .search-input:focus {
    background-color: #f6f8fa !important;
    border-color: #1b98e0 !important;
}

/* Placeholder text styling */
.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

[data-theme="dark"] .search-input::placeholder {
    color: #8b949e;
    opacity: 0.7;
}

[data-theme="light"] .search-input::placeholder {
    color: #6e7781;
    opacity: 0.7;
}

.btn-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-search:hover {
    background: var(--primary-color-dark);
}

.btn-search svg {
    width: 20px;
    height: 20px;
}

/* Toggle filters button */
.filter-row-toggle {
    margin-top: 0.5rem;
}

.btn-toggle-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle-filters:hover {
    background: var(--primary-color);
    color: white;
}

.btn-toggle-filters .toggle-icon {
    transition: transform 0.3s;
}

/* Advanced filters */
.filter-row-advanced {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.advanced-filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: border-color 0.2s;
    cursor: pointer;
}

[data-theme="dark"] .filter-select {
    background-color: #1f2937 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

[data-theme="light"] .filter-select {
    background-color: #ffffff !important;
    border-color: #d0d7de !important;
    color: #24292f !important;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

[data-theme="dark"] .filter-select:focus {
    background-color: #2d3748 !important;
    border-color: #1b98e0 !important;
}

[data-theme="light"] .filter-select:focus {
    background-color: #f6f8fa !important;
    border-color: #1b98e0 !important;
}

/* Option elements in select */
[data-theme="dark"] .filter-select option {
    background-color: #1f2937;
    color: #f0f6fc;
}

[data-theme="light"] .filter-select option {
    background-color: #ffffff;
    color: #24292f;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Active filters */
.active-filters {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.active-filters-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-tag-remove {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s;
}

.filter-tag-remove:hover {
    color: var(--primary-color-dark);
}

.filter-tag-clear-all {
    background: var(--danger-color);
    color: white;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.filter-tag-clear-all:hover {
    background: #c82333;
}

/* Results header */
.results-header {
    margin-bottom: 1.5rem;
}

.results-count {
    color: var(--text-secondary);
    font-size: 1rem;
}

.results-count strong {
    color: var(--text-primary);
}

/* Articles grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: var(--background-color);
}

.article-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-no-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: linear-gradient(135deg, var(--primary-color), var(--brand-blue-light));
}

.article-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.article-meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    margin: 3rem 0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-link:hover:not(.pagination-disabled):not(.pagination-current) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: var(--text-secondary);
    padding: 0 0.25rem;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

/* No results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.no-results svg {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.no-results h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .archive-header-content h1 {
        font-size: 2rem;
    }

    .archive-subtitle {
        font-size: 1rem;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
        justify-content: center;
    }

    .advanced-filters-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pagination-container {
        flex-wrap: wrap;
    }

    .pagination-prev,
    .pagination-next {
        order: -1;
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .archive-wrapper {
        padding: 1rem 0;
    }

    .archive-header {
        padding: 1rem 0;
    }

    .archive-header-content h1 {
        font-size: 1.75rem;
    }

    .archive-filters {
        padding: 1rem;
    }

    .article-card-content {
        padding: 1rem;
    }

    .pagination-numbers .pagination-link {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    /* Filter grid for player archive */
    .filter-search-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions-inline {
        width: 100%;
    }
}

/* Filter grid layout for player archive */
.filter-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-actions-inline {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.filter-actions-inline .btn {
    flex: 1 1 0;
    min-width: 100px;
    max-width: 100%;
    padding: 0.375rem 0.75rem;
}

/* Clickable table rows */
.clickable-row {
    cursor: pointer;
}

/* Links (Odkazy) Section - vždy 2 vedle sebe */
.links-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

.link-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .links-list {
        gap: 0.75rem;
    }

    .link-item img {
        padding: 0.75rem;
    }

    .footer-logo {
        max-width: 75px;
    }

    .footer-logo-wrapper {
        top: -37px;
    }
}

/* ============================================
   HOMETEAM (Úvodní stránka kategorie) STYLES
   ============================================ */

/* Hometeam Wrapper and Container */
.hometeam-wrapper {
    width: 100%;
    background-color: var(--bg-primary);
    min-height: 100vh;
}

.hometeam-container {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hometeam Section */
.hometeam-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.hometeam-section-content {
    padding: 1rem;
}

.hometeam-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Min heights */
.hometeam-banner {
    min-height: 150px;
}

.hometeam-banner .hometeam-section-content {
    position: relative;
}

.hometeam-articles {
    min-height: 300px;
}

.hometeam-upcoming,
.hometeam-results {
    min-height: auto;
}

.hometeam-training,
.hometeam-birthdays {
    min-height: 150px;
}

.hometeam-partners {
    min-height: 150px;
}

/* Vertical lists for upcoming/results */
.upcoming-list-vertical,
.results-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Training Card */
.training-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.training-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.training-day,
.training-time,
.training-place {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.training-day svg,
.training-time svg,
.training-place svg {
    color: var(--brand-blue);
    flex-shrink: 0;
}

/* Mobile Layout (default) */
@media (max-width: 767px) {
    .hometeam-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "banner"
            "upcoming"
            "results"
            "articles"
            "training"
            "birthdays"
            "partners";
        padding: 0;
        gap: 0;
    }

    .hometeam-banner {
        grid-area: banner;
    }

    .hometeam-upcoming {
        grid-area: upcoming;
    }

    .hometeam-results {
        grid-area: results;
    }

    .hometeam-articles {
        grid-area: articles;
    }

    .hometeam-training {
        grid-area: training;
    }

    .hometeam-birthdays {
        grid-area: birthdays;
    }

    .hometeam-partners {
        grid-area: partners;
    }

    .hometeam-section {
        border: none;
        border-radius: 0;
        margin-bottom: 0.25rem;
    }

    .hometeam-section-content {
        padding: 0.5rem;
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1199px) {
    .hometeam-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "banner"
            "upcoming"
            "results"
            "articles"
            "training"
            "birthdays"
            "partners";
        padding: 0;
        gap: 0;
    }

    .hometeam-banner {
        grid-area: banner;
    }

    .hometeam-upcoming {
        grid-area: upcoming;
    }

    .hometeam-results {
        grid-area: results;
    }

    .hometeam-articles {
        grid-area: articles;
    }

    .hometeam-training {
        grid-area: training;
    }

    .hometeam-birthdays {
        grid-area: birthdays;
    }

    .hometeam-partners {
        grid-area: partners;
    }

    .hometeam-section {
        border: none;
        border-radius: 0;
        margin-bottom: 0.25rem;
    }

    .hometeam-section-content {
        padding: 0.5rem;
    }
}

/* Desktop Layout (PC) - 50/50 layout pro články a utkání/výsledky */
@media (min-width: 1200px) {
    .hometeam-container {
        grid-template-columns: repeat(6, 1fr);
        grid-template-areas:
            "banner banner banner banner banner banner"
            "articles articles articles upcoming upcoming upcoming"
            "articles articles articles results results results"
            "birthdays birthdays birthdays training training training"
            "partners partners partners partners partners partners";
    }

    .hometeam-banner {
        grid-area: banner;
    }

    .hometeam-articles {
        grid-area: articles;
    }

    .hometeam-upcoming {
        grid-area: upcoming;
    }

    .hometeam-results {
        grid-area: results;
    }

    .hometeam-birthdays {
        grid-area: birthdays;
    }

    .hometeam-training {
        grid-area: training;
    }

    .hometeam-partners {
        grid-area: partners;
    }
}

/* Kompaktní zobrazení turnajů v hometeam.php */
.tournaments-list-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tournament-compact-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tournament-compact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 152, 224, 0.15);
}

.tournament-date-column {
    flex-shrink: 0;
    width: 60px;
    text-align: left;
}

.tournament-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.tournament-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.tournament-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tournament-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.tournament-status {
    font-size: 0.8rem;
    color: var(--brand-green);
    font-weight: 500;
}

/* === GALERIE === */

/* Gallery header */
.gallery-header {
    text-align: center;
    padding: 0.75rem 0 0;
    margin-top: 1rem;
}

.gallery-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.gallery-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Gallery filters */
.gallery-filters {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-search {
    grid-column: 1 / -1;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-actions .btn {
    flex: 1;
    min-width: fit-content;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    display: block;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.05);
}

.gallery-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.5);
}

.gallery-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-card-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-card-body {
    padding: 1.25rem;
}

.gallery-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.gallery-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.gallery-card-meta {
    font-size: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    margin-bottom: 2rem;
}

.pagination .page-link {
    color: var(--primary-color);
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.pagination .page-link:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-secondary);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1rem 0.75rem;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-caption {
    opacity: 1;
}

/* Gallery info panel */
.gallery-info-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.info-left,
.info-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-date,
.info-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-date i,
.info-count i {
    font-size: 1rem;
    color: var(--primary-color);
}

.gallery-description {
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #1b98e0;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #1b98e0;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.lightbox-counter {
    text-align: center;
    color: #ccc;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* File preview for upload */
.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.file-preview-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem;
    font-size: 0.7rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-item .file-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
}

.file-preview-item .file-remove:hover {
    background: rgb(220, 53, 69);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-header {
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }

    .gallery-title {
        font-size: 1.3rem;
    }

    .gallery-subtitle {
        font-size: 0.85rem;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .filter-search {
        grid-column: 1;
    }

    .filter-actions {
        grid-column: 1;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-card-image {
        height: 180px;
    }

    .gallery-info-panel {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .info-date,
    .info-count {
        font-size: 0.85rem;
    }

    .gallery-description {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }

    .lightbox-close {
        font-size: 35px;
        top: 10px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-title {
        font-size: 1.5rem;
    }

    .gallery-header {
        padding: 0.5rem 0 0;
        margin-top: 0.5rem;
    }

    .gallery-subtitle {
        font-size: 0.85rem;
    }

    .gallery-filters {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .filter-label {
        font-size: 0.85rem;
    }

    .form-select,
    .form-control {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .filter-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card-body {
        padding: 1rem;
    }

    .gallery-card-title {
        font-size: 1rem;
    }

    .gallery-card-description {
        font-size: 0.85rem;
    }

    .gallery-info-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-left,
    .info-right {
        width: 100%;
        justify-content: space-between;
    }
}
