/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Hlavní barvy */
    --primary-blue: #1e40af;
    --primary-red: #dc2626;
    --dark-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --light-red: #ef4444;

    /* Neutrální barvy */
    --dark: #0f172a;
    --dark-gray: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;

    /* Gradienty */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);

    /* Stíny */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ===== Header / Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition-base);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.admin-link {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    background-image:
        var(--gradient-hero),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231e40af" width="1200" height="600"/><circle cx="200" cy="150" r="80" fill="white" opacity="0.05"/><circle cx="800" cy="400" r="120" fill="white" opacity="0.05"/><circle cx="1000" cy="200" r="60" fill="white" opacity="0.05"/></svg>');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 var(--spacing-sm);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--light-gray);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== Section Styles ===== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
}

/* ===== Features Section ===== */
.features {
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-icon.blue {
    background: var(--primary-blue);
}

.feature-icon.red {
    background: var(--primary-red);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--gray);
    line-height: 1.7;
}

/* ===== Current Tournament Section ===== */
.tournament-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.tournament-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.tournament-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-md);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.tournament-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.tournament-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tournament-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0.95;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tournament-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: var(--spacing-md);
    background: var(--light-gray);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

.tournament-actions {
    padding: var(--spacing-md);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: var(--gray);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
}

.footer-contact i {
    color: var(--primary-blue);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* ===== Animations ===== */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .tournament-header {
        flex-direction: column;
        text-align: center;
    }

    .tournament-title {
        font-size: 1.5rem;
    }

    .tournament-meta {
        justify-content: center;
    }

    .tournament-actions {
        flex-direction: column;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Logo as link ===== */
a.logo {
    text-decoration: none;
}

/* ===== Page Hero (sub-pages) ===== */
.page-hero {
    background: var(--gradient-hero);
    color: var(--white);
    text-align: center;
    padding: 8rem 1rem 3rem;
}

.page-hero-small {
    padding: 7rem 1rem 2.5rem;
}

.page-hero-live {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(30, 64, 175, 0.95) 100%);
}

.page-hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), var(--banner-url) center/cover no-repeat !important;
}

.page-hero-banner .page-hero-content {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-hero-content h1 i {
    margin-right: 0.5rem;
}

.page-hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Page Content ===== */
.page-content {
    padding: var(--spacing-lg) 0;
    min-height: 40vh;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition-base);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--primary-blue);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 600;
}

.tab-count {
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
}

/* ===== Tournament List Card ===== */
.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tournament-list-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition-base);
}

.tournament-list-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.tlc-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

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

.tlc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.tlc-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
}

.tlc-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--gray);
}

.tlc-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tlc-meta i {
    color: var(--primary-blue);
    font-size: 0.8rem;
}

.tlc-desc {
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 0.35rem;
    line-height: 1.5;
}

.tlc-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ===== Status Badges ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-live {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-red);
}

.status-live i {
    font-size: 0.45rem;
    color: var(--primary-red);
}

.status-upcoming {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-blue);
}

.status-finished {
    background: rgba(100, 116, 139, 0.1);
    color: var(--gray);
}

/* ===== Button Sizes ===== */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-sm);
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.4;
}

.empty-state p {
    font-size: 1.125rem;
}

/* ===== Multiple tournament cards on homepage ===== */
.current-tournament .tournament-card + .tournament-card {
    margin-top: 1.5rem;
}

/* ===== Nav Live Link ===== */
.nav-link-live {
    color: var(--primary-red) !important;
    font-weight: 600 !important;
}

.nav-link-live::after {
    background: var(--primary-red) !important;
}

/* ===== Responsive - sub-pages ===== */
@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 1.75rem;
    }

    .tournament-list-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .tlc-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.25rem;
    }

    .tlc-actions {
        flex-direction: row;
        width: 100%;
    }

    .tlc-actions .btn {
        flex: 1;
        justify-content: center;
        width: auto;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== Loading Spinner ===== */
.page-loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-size: 1.25rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--gray);
}

/* ===== Info Card (Tournament Detail) ===== */
.info-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.info-section {
    margin-bottom: 1.25rem;
}

.info-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.info-section h3 i {
    color: var(--primary-blue);
}

.info-section p {
    color: var(--gray);
    line-height: 1.7;
    white-space: pre-line;
}

.info-sidebar {
    display: flex;
    flex-direction: column;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.info-row > i {
    color: var(--primary-blue);
    width: 18px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-row div {
    display: flex;
    flex-direction: column;
}

.info-row strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.info-row span {
    color: var(--dark);
}

.info-row a {
    color: var(--primary-blue);
    text-decoration: none;
}

.info-row a:hover {
    text-decoration: underline;
}

/* ===== Price Highlight ===== */
.price-highlight {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.price-amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.price-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.price-tiers {
    margin-bottom: 1rem;
}

.price-tiers h4 {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.35rem;
}

.price-tiers ul {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
}

.price-tiers li {
    padding: 0.25rem 0;
    color: var(--gray);
}

.price-tiers li.current-tier {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===== Sub-Tabs (Detail Tabs) ===== */
.sub-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.sub-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.sub-tab-btn:hover {
    color: var(--primary-blue);
}

.sub-tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 600;
}

/* ===== Groups List ===== */
.groups-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.group-card-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.group-card-header:hover {
    background: var(--light-gray);
}

.group-card-header h3 {
    font-size: 1.1rem;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-card-header h3 i {
    color: var(--primary-blue);
}

.group-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.group-toggle-icon {
    color: var(--gray);
    transition: var(--transition-fast);
}

.group-card-body {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--light-gray);
}

/* ===== Public Tables ===== */
.table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.pub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pub-table th {
    background: var(--light-gray);
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray);
    white-space: nowrap;
}

.pub-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--light-gray);
}

.pub-table tbody tr:hover {
    background: rgba(30, 64, 175, 0.03);
}

.pub-table .text-center {
    text-align: center;
}

/* Standings Table */
.standings-table td:first-child,
.standings-table th:first-child {
    width: 30px;
    text-align: center;
}

.standings-table td:last-child {
    font-weight: 700;
    color: var(--primary-blue);
}

.standings-mobile-stats {
    display: none;
}

/* Cross Table */
.cross-table th,
.cross-table td {
    text-align: center;
    width: 50px;
    min-width: 50px;
    padding: 0.4rem;
}

.cross-table td:first-child,
.cross-table th:first-child {
    text-align: left;
    width: auto;
    min-width: auto;
}

.cross-self {
    background: var(--light-gray);
    color: var(--gray);
}

.cross-result:hover {
    background: rgba(30, 64, 175, 0.1);
}

.cross-live {
    animation: pulse 1.5s infinite;
}

.cross-empty {
    color: var(--gray);
}

/* Schedule Table */
.schedule-table tbody tr {
    transition: var(--transition-fast);
}

.schedule-table tbody tr:hover {
    background: rgba(30, 64, 175, 0.05);
}

.match-row-live {
    background: rgba(220, 38, 38, 0.04) !important;
}

.match-row-live td {
    border-bottom-color: rgba(220, 38, 38, 0.15);
}

.score-cell {
    font-size: 1rem;
    white-space: nowrap;
}

/* ===== Schedule Filters ===== */
.schedule-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.schedule-filters select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--dark);
    background: var(--white);
    min-width: 140px;
}

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

/* ===== Match Status Badges ===== */
.match-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--gray);
}

.badge-live {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-red);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.badge-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-red);
}

.badge-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-red);
    animation: pulse 1.5s infinite;
}

/* ===== Match Scoreboard ===== */
.match-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.match-team {
    flex: 1;
    max-width: 250px;
}

.match-team-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.match-team-fouls {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

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

.match-status-top {
    margin-bottom: 0.25rem;
}

.match-score {
    font-size: 3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-score .score-sep {
    color: var(--gray);
}

.match-result-suffix {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

.match-timer-wrap {
    margin-top: 0.25rem;
}

.match-timer {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--dark);
}

.match-timer.timer-running {
    color: var(--primary-red);
}

.match-period {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ===== Match Sections ===== */
.match-section {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.match-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.match-section h3 i {
    color: var(--primary-blue);
}

/* ===== Events List ===== */
.match-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.match-event-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.match-event-row:hover {
    background: var(--light-gray);
}

.event-time {
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.event-icon {
    min-width: 20px;
    text-align: center;
}

.event-desc .text-muted {
    color: var(--gray);
    font-size: 0.85rem;
}

/* ===== Rosters ===== */
.match-rosters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.roster-panel h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--primary-blue);
}

.roster-list {
    display: flex;
    flex-direction: column;
}

.roster-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
}

.roster-number {
    background: var(--primary-blue);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.roster-name {
    flex: 1;
}

.roster-pos {
    color: var(--gray);
    font-size: 0.8rem;
}

/* ===== Teams Grid ===== */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.team-card-pub {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-base);
}

.team-card-pub:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.team-card-icon {
    margin-bottom: 0.75rem;
}

.team-card-icon img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.team-card-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: var(--gray);
}

.team-card-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.team-card-short {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ===== Live Matches Bar ===== */
.live-bar {
    background: var(--white);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.live-bar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.live-bar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-red);
    animation: pulse 1.5s infinite;
}

.live-bar-matches {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.live-bar-match {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition-fast);
}

.live-bar-match:hover {
    background: rgba(30, 64, 175, 0.08);
}

.live-bar-team {
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-bar-team:first-child {
    text-align: right;
}

.live-bar-team:nth-child(3) {
    text-align: left;
}

.live-bar-score {
    font-size: 1.1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.live-bar-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-red);
    background: rgba(220, 38, 38, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== Text Utils ===== */
.text-muted {
    color: var(--gray);
}

/* ===== Team Profile ===== */
.team-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.team-profile-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light-gray);
}

.team-profile-fallback {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gray);
    flex-shrink: 0;
}

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

.team-profile-info h1 {
    font-size: 1.75rem;
    margin: 0;
    color: var(--dark);
}

.team-profile-short {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.fav-btn {
    background: none;
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gray);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.fav-btn:hover {
    border-color: #facc15;
    color: #facc15;
}

.fav-btn.fav-active {
    border-color: #facc15;
    color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

.team-groups-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.team-group-card {
    display: block;
    background: var(--light-gray);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.team-group-card:hover {
    border-color: var(--primary-blue);
    background: rgba(30, 64, 175, 0.05);
}

.team-group-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-group-type {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.team-group-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.team-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: inherit;
    transition: color 0.15s ease;
}

.team-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ===== Responsive - Detail Pages ===== */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .match-scoreboard {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .match-team {
        max-width: none;
    }

    .match-score {
        font-size: 2.5rem;
    }

    .match-rosters {
        grid-template-columns: 1fr;
    }

    .schedule-filters {
        flex-direction: column;
    }

    .schedule-filters select {
        width: 100%;
    }

    .team-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .team-profile-info h1 {
        font-size: 1.35rem;
    }

    .team-groups-list {
        grid-template-columns: 1fr;
    }

    .sub-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sub-tab-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }

    .group-card-header {
        flex-wrap: wrap;
    }

    .group-card-meta {
        flex-basis: 100%;
    }

    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .live-bar-match {
        gap: 0.5rem;
        padding: 0.4rem 0.5rem;
    }

    .live-bar-team {
        font-size: 0.8rem;
    }

    .live-bar-score {
        font-size: 1rem;
    }

    /* ===== Schedule Table → Card Layout ===== */
    .schedule-table thead {
        display: none;
    }

    .schedule-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .schedule-table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto auto;
        gap: 0;
        background: var(--white);
        border: 1px solid var(--light-gray);
        border-radius: var(--radius-lg);
        padding: 0.75rem;
        align-items: center;
    }

    .schedule-table tbody tr:hover {
        background: var(--white);
        border-color: var(--primary-blue);
        box-shadow: var(--shadow-sm);
    }

    .schedule-table .match-cell-time {
        grid-column: 1 / 2;
        grid-row: 1;
        font-size: 0.8rem;
        color: var(--gray);
        border-bottom: none;
        padding: 0 0 0.25rem 0;
    }

    .schedule-table .match-cell-time::before {
        content: '\f017';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-right: 0.3rem;
        font-size: 0.7rem;
    }

    .schedule-table .match-cell-field {
        grid-column: 3 / 4;
        grid-row: 1;
        text-align: right;
        font-size: 0.8rem;
        color: var(--gray);
        border-bottom: none;
        padding: 0 0 0.25rem 0;
    }

    .schedule-table .match-cell-field:not(:empty)::before {
        content: '\f3c5';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-right: 0.3rem;
        font-size: 0.7rem;
    }

    .schedule-table .match-cell-home {
        grid-column: 1 / 2;
        grid-row: 2;
        text-align: right;
        font-weight: 600;
        font-size: 0.95rem;
        border-bottom: none;
        padding: 0.35rem 0.5rem 0.35rem 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .schedule-table .match-cell-score {
        grid-column: 2 / 3;
        grid-row: 2;
        font-size: 1.1rem;
        padding: 0.35rem 0.75rem;
        border-bottom: none;
        white-space: nowrap;
    }

    .schedule-table .match-cell-away {
        grid-column: 3 / 4;
        grid-row: 2;
        text-align: left;
        font-weight: 600;
        font-size: 0.95rem;
        border-bottom: none;
        padding: 0.35rem 0 0.35rem 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .schedule-table .match-cell-group {
        grid-column: 1 / 2;
        grid-row: 3;
        font-size: 0.75rem;
        color: var(--gray);
        border-bottom: none;
        padding: 0.25rem 0 0 0;
    }

    .schedule-table .match-cell-status {
        grid-column: 3 / 4;
        grid-row: 3;
        text-align: right;
        border-bottom: none;
        padding: 0.25rem 0 0 0;
    }

    /* Live match card accent */
    .schedule-table tbody tr.match-row-live {
        border-left: 3px solid var(--primary-red);
        background: rgba(220, 38, 38, 0.03);
    }

    .schedule-table tbody tr.match-row-finished {
        opacity: 0.85;
    }

    /* ===== Standings Table → Compact ===== */
    .standings-table {
        font-size: 0.82rem;
    }

    .standings-table th,
    .standings-table td {
        padding: 0.4rem 0.35rem;
    }

    .standings-hide-mobile {
        display: none;
    }

    .standings-mobile-stats {
        display: block;
        font-size: 0.72rem;
        font-weight: 400;
        color: var(--gray);
        margin-top: 0.1rem;
    }

    .standings-cell-team {
        max-width: 140px;
    }

    .standings-cell-team strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ===== Cross Table → Sticky First Column ===== */
    .cross-table-wrap {
        position: relative;
    }

    .cross-table th,
    .cross-table td {
        min-width: 38px;
        width: 38px;
        padding: 0.3rem;
        font-size: 0.75rem;
    }

    .cross-sticky-col {
        position: sticky;
        left: 0;
        background: var(--white);
        z-index: 2;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
        min-width: auto !important;
        width: auto !important;
    }

    thead .cross-sticky-col {
        background: var(--light-gray);
        z-index: 3;
    }

    /* ===== Match Events → Responsive ===== */
    .match-event-row {
        flex-wrap: wrap;
        font-size: 0.82rem;
        gap: 0.4rem;
    }

    .event-desc {
        flex-basis: 100%;
        padding-left: 3.25rem;
        font-size: 0.82rem;
        margin-top: -0.2rem;
    }

    .event-time {
        min-width: 36px;
        font-size: 0.82rem;
    }
}

/* ===== Additional Mobile Polish (480px) ===== */
@media (max-width: 480px) {
    .match-scoreboard {
        padding: 1rem;
        gap: 0.75rem;
    }

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

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

    .schedule-table .match-cell-home,
    .schedule-table .match-cell-away {
        font-size: 0.85rem;
    }

    .schedule-table .match-cell-score {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
    }

    .match-section {
        padding: 1rem;
    }

    .match-section h3 {
        font-size: 1rem;
    }
}

/* ===== WYSIWYG Content Display ===== */

.wysiwyg-content {
    line-height: 1.7;
    color: var(--gray);
}

.wysiwyg-content p {
    margin-bottom: 0.75rem;
}

.wysiwyg-content p:last-child {
    margin-bottom: 0;
}

.wysiwyg-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0 0.75rem;
}

.wysiwyg-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.25rem 0 0.5rem;
}

.wysiwyg-content ul,
.wysiwyg-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.wysiwyg-content li {
    margin-bottom: 0.25rem;
}

.wysiwyg-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.wysiwyg-content a:hover {
    opacity: 0.8;
}

.wysiwyg-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 0.75rem 0;
}

.wysiwyg-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding: 0.5rem 1rem;
    margin: 0.75rem 0;
    background: #f8fafc;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #475569;
}

/* ===== Document Attachment Cards ===== */

.attachment-block {
    margin: 0.75rem 0;
}

.attachment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    transition: var(--transition-fast);
}

.attachment-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.attachment-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

.attachment-icon.fa-file-pdf {
    color: #dc2626;
}

.attachment-icon.fa-file-word {
    color: #2563eb;
}

.attachment-icon.fa-file-excel {
    color: #16a34a;
}

.attachment-icon.fa-file-powerpoint {
    color: #ea580c;
}

.attachment-icon.fa-file-alt {
    color: #64748b;
}

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

.attachment-name {
    display: block;
    font-weight: 600;
    color: var(--dark);
    word-break: break-all;
    font-size: 0.95rem;
}

.attachment-size {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.15rem;
}

.attachment-actions {
    flex-shrink: 0;
}

.attachment-actions .btn {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .attachment-card {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .attachment-actions {
        width: 100%;
    }

    .attachment-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== Statistics Tab ===== */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stats-metric-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 1rem 0.75rem;
    text-align: center;
}

.stats-metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.stats-metric-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.stats-biggest-win {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-biggest-win i { color: #f59e0b; }

.stats-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stats-section-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stats-section-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

.stats-section-header:hover {
    background: var(--light-gray);
}

.stats-section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-section-header h3 i { color: var(--primary-blue); }

.stats-section-header .toggle-icon {
    color: var(--gray);
    transition: var(--transition-fast);
}

.stats-section-body {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--light-gray);
}

.stats-section-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1rem 0 0.5rem;
}

.stats-section-body h4 i {
    margin-right: 0.3rem;
    color: var(--gray);
}

.stats-table .rank-col {
    width: 30px;
    text-align: center;
    color: var(--gray);
    font-weight: 600;
}

.stats-table .player-number-badge {
    display: inline-block;
    background: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 4px;
    padding: 0 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.3rem;
    min-width: 1.4rem;
    text-align: center;
}

.stats-table .goals-highlight {
    font-weight: 700;
    color: var(--primary-blue);
}

.stats-table .card-icon-yellow {
    display: inline-block;
    width: 12px;
    height: 16px;
    background: #facc15;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 0.2rem;
}

.stats-table .card-icon-red {
    display: inline-block;
    width: 12px;
    height: 16px;
    background: #ef4444;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 0.2rem;
}

.stats-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.stats-table th.sortable:hover {
    background: rgba(30, 64, 175, 0.08);
}

.stats-table th.sorted-asc::after {
    content: ' ▲';
    font-size: 0.65rem;
}

.stats-table th.sorted-desc::after {
    content: ' ▼';
    font-size: 0.65rem;
}

.stats-team-link {
    color: var(--primary-blue);
    text-decoration: none;
}

.stats-team-link:hover {
    text-decoration: underline;
}

.stats-empty {
    text-align: center;
    color: var(--gray);
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Roster stat badges */
.roster-stats {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}

.roster-stat-badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.3;
}

.roster-stat-badge.goal {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-blue);
}

.roster-stat-badge.yellow {
    background: rgba(250, 204, 21, 0.15);
    color: #92400e;
}

.roster-stat-badge.red {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

@media (max-width: 768px) {
    .stats-overview-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .stats-metric-value {
        font-size: 1.4rem;
    }

    .stats-hide-mobile {
        display: none;
    }

    .stats-section-header {
        padding: 0.75rem 1rem;
    }

    .stats-section-body {
        padding: 0 0.75rem 1rem;
    }

    .stats-table th, .stats-table td {
        padding: 0.35rem 0.4rem;
    }
}
