* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #7e0000 0%, #4a0000 100%);
    min-height: 100vh;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
}

header h1 {
    color: #7e0000;
    font-size: 2.5em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.subtitle {
    color: #666;
    font-size: 0.95em;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    margin: 20px 0;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    background: #7e0000;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(126, 0, 0, 0.6);
    background: #9e0000;
}

.nav-btn.active {
    background: white;
    color: #7e0000;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.nav-btn .icon {
    font-size: 1.1em;
}

/* Main Content */
main {
    margin: 30px auto;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers */
h2 {
    color: white;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

h3 {
    color: white;
    font-size: 1.2em;
    margin: 20px 0 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 30px;
    color: white;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Today Matches Competition Header */
.today-matches-competition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.today-matches-competition-header .competition-name {
    color: #7e0000;
    font-weight: bold;
    font-size: 1.2em;
}

.today-matches-competition-header .competition-age {
    color: white;
    background: #7e0000;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

/* Match Cards */
.matches-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 20px;
}

.match-card {
    background: white;
    border-radius: 0;
    padding: 12px 15px;
    border-left: 4px solid #7e0000;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-card:hover {
    background: #f5f5f5;
    border-left-width: 6px;
}

.match-competition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid #7e0000;
    margin-bottom: 10px;
}

.match-competition-header .competition-name {
    color: #7e0000;
    font-weight: bold;
    font-size: 0.95em;
}

.match-competition-header .competition-age {
    color: white;
    background: #7e0000;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.competition-name {
    color: #7e0000;
    font-weight: bold;
    font-size: 0.85em;
}

.match-date {
    color: #999;
    font-size: 0.85em;
    font-weight: normal;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.team {
    text-align: center;
    flex: 1;
}

.team-name {
    font-weight: 600;
    color: #000;
    font-size: 0.9em;
}

.team-score {
    font-size: 2em;
    font-weight: bold;
    color: #7e0000;
}

.vs {
    color: #999;
    font-weight: bold;
    font-size: 1.2em;
    padding: 0 15px;
}

/* New layout with logos */
.match-teams-with-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.team-side {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.team-side:last-child {
    flex-direction: row-reverse;
    text-align: left;
}

.team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-side .team-name {
    color: #000;
    font-weight: 600;
    font-size: 1em;
    white-space: pre-line;
}

.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    flex-shrink: 0;
}

.score-display {
    color: #7e0000;
    font-weight: bold;
    font-size: 1.4em;
    white-space: nowrap;
}

.match-time-display {
    color: #7e0000;
    font-weight: bold;
    font-size: 1em;
    white-space: nowrap;
}

.match-status {
    text-align: center;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: normal;
    display: inline-block;
    align-self: flex-start;
}

.status-finished {
    background: #d4edda;
    color: #155724;
}

.status-delayed {
    background: #f8d7da;
    color: #721c24;
}

.status-live {
    background: #fff3cd;
    color: #856404;
    animation: pulse 2s infinite;
}

.status-upcoming {
    background: #d1ecf1;
    color: #0c5460;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.match-venue {
    text-align: center;
    color: #666;
    font-size: 0.8em;
    margin-top: 8px;
}

.match-note {
    text-align: center;
    color: #7e0000;
    font-size: 0.8em;
    margin-top: 8px;
    font-weight: 500;
}

.match-below-score {
    text-align: center;
    color: #333;
    font-size: 0.9em;
    margin-top: 10px;
    font-weight: bold;
}

/* Section Header with See More */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    color: white;
    font-size: 1.5em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.see-more-btn {
    background: white;
    color: #7e0000;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.see-more-btn:hover {
    background: #7e0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(126, 0, 0, 0.4);
}

.latest-news {
    margin-bottom: 40px;
}

/* Quick Links */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.quick-link-card .icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
.quick-link-card h4 {
    color: #7e0000;
    font-size: 1.3em;
    margin-bottom: 10px;
}   font-size: 1.3em;
    margin-bottom: 10px;
}

.quick-link-card p {
    color: #666;
    font-size: 0.95em;
}

/* Competitions */
.season-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
.season-title {
    color: #7e0000;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: none;
}   text-align: center;
    text-shadow: none;
}

.competition-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.competition-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.competition-item h4 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.age-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
.age-badge {
    background: #7e0000;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}   font-size: 0.9em;
    font-weight: bold;
}

/* News Cards */
.news-grid {
    display: grid;
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.news-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f5f5f5;
    min-height: 200px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.news-image-container:hover {
    background: #e8e8e8;
}

.news-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: #7e0000;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.news-title {
    color: #333;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
}

.news-details {
    color: #666;
    line-height: 1.6;
    white-space: pre-line;
}

/* Venue Search */
.venue-search-container {
    margin: 20px 0;
    text-align: center;
}

.venue-search-input {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: right;
    direction: rtl;
}

.venue-search-input:focus {
    border-color: #7e0000;
    box-shadow: 0 0 15px rgba(126, 0, 0, 0.2);
}

.venue-search-input::placeholder {
    color: #999;
}

/* Venues Grid */
.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.venue-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.venue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.venue-name {
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    background: none !important;
}

.venue-link {
    display: inline-block;
    background: #7e0000;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.venue-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(126, 0, 0, 0.6);
    background: #9e0000;
}

/* Modal */
.modal {
    display: none;
    position: fixed !important;
    z-index: 9999 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    color: #7e0000;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.modal-group, .modal-week {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 4px;
    font-size: 0.85em;
    color: #666;
}

/* Modal Match Display */
.modal-match-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    gap: 10px;
}

.modal-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.modal-team-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.modal-team-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.modal-score {
    text-align: center;
}

.modal-score-numbers {
    font-size: 2.2em;
    font-weight: bold;
    color: #7e0000;
    line-height: 1;
}

.modal-match-time {
    margin-top: 10px;
    font-size: 1.1em;
    color: #666;
}

/* Modal Info Section */
.modal-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.modal-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.modal-info-item:last-child {
    border-bottom: none;
}

.modal-info-label {
    font-weight: 600;
    color: #666;
}

.modal-info-value {
    color: #333;
}

/* Modal Details Container - Two Columns */
.modal-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.modal-details-half {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.modal-team-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section h4 {
    color: #7e0000;
    margin-bottom: 12px;
    font-size: 1em;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    color: #333;
    font-size: 0.95em;
}

/* Removed mobile responsive - keep desktop layout for all devices */

/* Inline Scorers for Cards */
.scorers-list-inline {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.scorer-item-inline {
    padding: 5px 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
}

.scorer-item-inline .scorer-name {
    font-weight: bold;
    color: #333;
}

.scorer-item-inline .scorer-time {
    color: #7e0000;
    margin-right: 5px;
}

/* Back Button */
.back-btn {
    background: white;
    color: #7e0000;
    border: 2px solid white;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #7e0000;
    color: white;
    transform: translateX(-3px);
}

/* Clickable Age Badges */
.clickable-age {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-age:hover {
    background: #9e0000;
    transform: scale(1.05);
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 1.2em;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    nav .container {
        gap: 5px;
    }
    
    .nav-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .competition-tabs {
        gap: 5px;
        padding: 15px 10px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.85em;
    }
    
    .matches-with-sidebar {
        flex-direction: column;
    }
    
    .matches-content {
        width: 100%;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .venues-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-match-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-details-container {
        grid-template-columns: 1fr;
    }
    
    .standings-scroll-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .standings-table {
        min-width: 800px; /* Force table to be wider than the screen */
        font-size: 0.9em;
    }
    
    .standings-table .team-name {
        font-size: 0.85em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .standings-table .team-logo {
        width: 28px;
        height: 28px;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 10px 6px;
        font-size: 0.85em;
    }
    
    /* Match Cards Mobile Styles */
    .match-card {
        padding: 10px 12px;
    }
    
    /* Team Names - Handle Long Names */
    .match-teams-with-logos {
        gap: 5px;
    }
    
    .team-side {
        gap: 6px;
        min-width: 0; /* Allow flex items to shrink */
    }
    
    .team-side .team-name {
        font-size: 0.85em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .team-logo {
        width: 30px;
        height: 30px;
    }
    
    .match-center {
        min-width: 60px;
        flex-shrink: 0;
    }
    
    .score-display {
        font-size: 1.2em;
    }
    
    .match-time-display {
        font-size: 0.9em;
    }
    
    /* Competition Header Mobile */
    .today-matches-competition-header {
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .today-matches-competition-header .competition-name {
        font-size: 1em;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .today-matches-competition-header .competition-age {
        font-size: 0.85em;
        padding: 4px 12px;
    }
    
    .match-competition-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .match-competition-header .competition-name {
        font-size: 0.85em;
        word-wrap: break-word;
    }
    
    .match-venue {
        font-size: 0.75em;
    }
    
    .match-note {
        font-size: 0.75em;
    }
    
    .match-below-score {
        font-size: 0.85em;
    }
    
    /* Modal Mobile Styles */
    .modal-team-name {
        font-size: 0.9em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .modal-team-logo {
        width: 50px;
        height: 50px;
    }
    
    .modal-score-numbers {
        font-size: 1.8em;
    }
    
    /* Stats Lists Mobile */
    .stats-player-name {
        font-size: 0.95em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .stats-team-name {
        font-size: 0.8em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .stats-value {
        font-size: 1.2em;
        min-width: 50px;
    }
    
    .stats-item {
        padding: 15px 12px;
    }
    
    /* Competition Header Mobile */
    .competition-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    #competition-title {
        font-size: 1.3em;
        word-wrap: break-word;
        text-align: center;
    }
    
    /* Team Cards and Names */
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .team-card {
        padding: 20px;
        min-width: 0; /* Allow proper text wrapping */
    }
    
    .team-card h3 {
        font-size: 1em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        white-space: normal;
    }
    
    /* News and Other Cards */
    .news-card h3,
    .venue-card h3 {
        font-size: 1.1em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
    
    /* Team Details Page - CRITICAL for long names */
    .team-details-header {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }
    
    .team-details-logo {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
    
    .team-details-info h1 {
        font-size: 1.5em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        margin: 10px 0;
    }
    
    .team-city {
        font-size: 1em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        justify-content: center;
    }
    
    .team-header h2 {
        font-size: 1.2em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .team-header-logo {
        width: 80px;
        height: 80px;
    }
    
    .team-info-section {
        padding: 15px;
    }
    
    .team-info-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 12px 0;
    }
    
    .team-info-label,
    .team-info-value {
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    .team-card-name {
        font-size: 0.95em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        white-space: pre-line;
        max-width: 100%;
        background: transparent;
    }
    
    .team-card-logo {
        width: 80px;
        height: 80px;
    }
}

/* Global: Handle newlines and remove backgrounds in team and venue names */
.team-card-name,
.team-name,
.venue-name,
div.team-card-name,
div.team-name,
div.venue-name {
    white-space: pre-line !important;
    background: none !important;
    background-color: transparent !important;
}

footer {
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    color: #666;
    margin: 5px 0;
}

.small {
    font-size: 0.85em;
}

.footer-links {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-links a {
    color: #7e0000;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #a00000;
    text-decoration: underline;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-left {
    flex: 1;
    min-width: 250px;
    text-align: right;
}

.footer-left p {
    margin: 8px 0;
    line-height: 1.6;
}

.footer-right {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #7e0000 0%, #a00000 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(126, 0, 0, 0.3);
    border: 2px solid transparent;
}

.download-btn:hover {
    background: linear-gradient(135deg, #a00000 0%, #c00000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(126, 0, 0, 0.4);
}

.download-icon {
    font-size: 1.3em;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
    }
    
    .footer-left {
        text-align: center;
    }
}

/* View All Button */
.view-all-btn {
    background: white;
    color: #7e0000;
    border: 2px solid white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.view-all-btn:hover {
    background: #7e0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* Competitions Layout */
.competitions-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.season-selector {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    transition: transform 0.3s ease;
}

.season-toggle-btn {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    background: #7e0000;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.season-toggle-btn:hover {
    transform: scale(1.1);
    background: #9e0000;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .competitions-layout {
        flex-direction: column;
    }
    
    .season-selector {
        position: fixed;
        top: 0;
        right: -250px;
        height: 100vh;
        min-width: 250px;
        z-index: 998;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(0);
    }
    
    .season-selector.active {
        transform: translateX(-250px);
    }
    
    .season-toggle-btn {
        display: block;
    }
    
    .competitions-content {
        width: 100%;
    }
}

.season-selector h3 {
    color: #7e0000;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: none;
}

.season-btn {
    background: white;
    color: #7e0000;
    border: 2px solid #7e0000;
    padding: 12px 20px;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.season-btn:hover {
    background: #f0f0f0;
    transform: translateX(-3px);
}

.season-btn.active {
    background: #7e0000;
    color: white;
}

.competitions-content {
    flex: 1;
}

/* Competition Matches Page */
.competition-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-btn {
    background: #7e0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #9e0000;
    transform: translateX(3px);
}

#competition-title {
    color: #7e0000;
    margin: 0;
    text-shadow: none;
}

.matches-with-sidebar {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.weeks-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    min-width: 180px;
    max-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    max-height: 80vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.weeks-toggle-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #7e0000;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.weeks-toggle-btn:hover {
    transform: scale(1.1);
    background: #9e0000;
}

@media (max-width: 768px) {
    .weeks-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        min-width: 100%;
        max-width: 100%;
        z-index: 998;
        border-radius: 0;
        max-height: 100vh;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        padding: 60px 20px 20px;
    }
    
    .weeks-sidebar.active {
        transform: translateY(0);
    }
    
    .weeks-toggle-btn {
        display: block;
    }
}

.weeks-sidebar h3 {
    color: #7e0000;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: none;
}

.week-btn {
    background: white;
    color: #7e0000;
    border: 2px solid #7e0000;
    padding: 10px 15px;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.week-btn:hover {
    background: #f0f0f0;
    transform: translateX(-3px);
}

.week-btn.active {
    background: #7e0000;
    color: white;
}

.matches-content {
    flex: 1;
}

.date-section {
    margin-bottom: 20px;
}

.week-section {
    margin-bottom: 40px;
    scroll-margin-top: 20px;
}

.week-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 0;
    margin-bottom: 2px;
    border-left: 4px solid #7e0000;
}

.week-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.week-header h3.week-number {
    color: #333;
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
    text-shadow: none;
    flex: 0 0 auto;
}

.week-competition {
    color: #666;
    font-weight: 500;
    font-size: 0.8em;
    flex: 1;
    text-align: center;
}

.week-date {
    color: #999;
    font-weight: 400;
    font-size: 0.8em;
    flex: 0 0 auto;
}

/* Sector Container (for grouped competitions) */
.sector-container {
    margin-bottom: 2px;
}

.sector-header {
    background: #7e0000;
    padding: 10px 20px;
    border-radius: 0;
    margin-bottom: 2px;
    border-left: none;
}

.sector-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sector-header h3.sector-number {
    color: white;
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    text-shadow: none;
    flex: 0 0 auto;
}

.sector-competition {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 0.9em;
    flex: 1;
    text-align: center;
}

.sector-date {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 0.85em;
    flex: 0 0 auto;
}

/* Age Selection Modal */
.age-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.age-option-btn {
    background: white;
    color: #7e0000;
    border: 2px solid #7e0000;
    padding: 25px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.age-option-btn:hover {
    background: #7e0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(126, 0, 0, 0.3);
}

/* Competition Tabs */
.competition-tabs-wrapper {
    position: sticky;
    top: 10px;
    z-index: 1000;
    margin-bottom: 20px;
}

.competition-tabs {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.competition-tabs.collapsed {
    display: none;
}

.tabs-toggle-btn {
    display: none;
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background: white;
    border: none;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    font-size: 0.9em;
    color: #7e0000;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tabs-toggle-btn.visible {
    display: block;
}

.tabs-toggle-btn:hover {
    background: #f5f5f5;
}

.tabs-toggle-btn.collapsed {
    border-radius: 10px;
    margin-top: 0;
}

.tab-btn {
    background: white;
    color: #7e0000;
    border: 2px solid #7e0000;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #7e0000;
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #7e0000;
    color: white;
}

.competition-tab {
    display: none;
}

.competition-tab.active {
    display: block;
}

/* Statistics Sections */
.stats-sections {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.stats-btn {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stats-btn:hover {
    background: #e0e0e0;
}

.stats-btn.active {
    background: #7e0000;
    color: white;
}

/* Filter Buttons for Team Statistics */
.filter-btn {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    margin: 0 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    background: #e8e8e8;
    border-color: #7e0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(126, 0, 0, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #7e0000 0%, #a00000 100%);
    color: white;
    border-color: #7e0000;
    box-shadow: 0 4px 10px rgba(126, 0, 0, 0.3);
}

.filter-btn:active {
    transform: translateY(0);
}

/* Team Statistics Container */
.team-statistics-container {
    padding: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(126, 0, 0, 0.2);
}

.stat-label {
    color: #666;
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    color: #7e0000;
    font-size: 1.8em;
    font-weight: bold;
}

.stats-section {
    display: none;
}

.stats-section.active {
    display: block;
}

/* Comprehensive Analysis Styles */
.analysis-container {
    padding: 10px;
}

.analysis-title {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    margin: 20px 0 15px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 1.4em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.analysis-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-right: 5px solid #7e0000;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.analysis-label {
    font-size: 1em;
    color: #555;
    font-weight: 500;
}

.analysis-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    direction: ltr;
    text-align: left;
}

.analysis-card.highlight {
    background-color: #fff8e1;
    border-right-color: #ffab00;
}

.analysis-card.highlight .analysis-label {
    color: #795548;
}

.analysis-card.highlight .analysis-value {
    color: #c56200;
    font-size: 1.4em;
}

/* Group Header */
.group-header {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0 15px 0;
    text-align: center;
}

.group-header:first-child {
    margin-top: 0;
}

/* Standings Table */
.standings-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: #7e0000;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
}

.standings-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.standings-table tr:hover {
    background: #f8f8f8;
}

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.standings-table .team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.standings-table .team-name {
    font-weight: 600;
    flex: 1;
}

.standings-table .position-cell {
    font-weight: bold;
    color: #7e0000;
}

.standings-table .points-cell {
    font-weight: bold;
    font-size: 1.1em;
    color: #7e0000;
}

/* Statistics Lists */
.stats-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.stats-header {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.stats-item {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.stats-item:hover {
    background: #f8f8f8;
}

.stats-player-info {
    flex: 1;
}

.stats-player-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.stats-team-name {
    color: #666;
    font-size: 0.9em;
}

.stats-value {
    font-weight: bold;
    font-size: 1.5em;
    color: #7e0000;
    min-width: 60px;
    text-align: center;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #7e0000;
}

.team-card-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.team-card-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

/* Team Details */
.team-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.team-header-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.team-info-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.team-info-section h3 {
    color: #7e0000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.team-info-item {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.team-info-item:last-child {
    border-bottom: none;
}

.team-info-label {
    font-weight: bold;
    color: #666;
}

.team-info-value {
    color: #333;
}

.team-players-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.team-players-section h4 {
    color: #7e0000;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-item {
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Team Details Page */
.team-details-header {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.team-details-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(126, 0, 0, 0.15);
    border: 3px solid #7e0000;
}

.team-details-info h1 {
    color: #7e0000;
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.team-city {
    color: #555;
    font-size: 1.3em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.team-info-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.info-item {
    padding: 18px 20px;
    border-bottom: 2px solid #f5f5f5;
    font-size: 1.15em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: #fafafa;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.info-item:hover {
    background: #fff8f0;
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(126, 0, 0, 0.1);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    color: #7e0000;
    margin-left: 15px;
    font-weight: bold;
    min-width: 80px;
}

.team-players-section,
.team-matches-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.team-players-section h3,
.team-matches-section h3 {
    color: #7e0000;
    margin: 0 0 30px 0;
    padding: 0 0 20px 0;
    border-bottom: 4px solid #7e0000;
    font-size: 1.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.team-players-section h3::before {
    content: '👥';
    font-size: 1.2em;
}

.team-matches-section h3::before {
    content: '⚽';
    font-size: 1.2em;
}

.players-category {
    margin-bottom: 35px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
}

.players-category h4 {
    color: #7e0000;
    margin: 0 0 20px 0;
    padding: 0 0 12px 0;
    border-bottom: 3px solid #e0e0e0;
    font-size: 1.3em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.players-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.players-list li {
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #e8e8e8;
    font-size: 1.05em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.players-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #7e0000;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.players-list li:hover {
    background: linear-gradient(135deg, #7e0000 0%, #a00000 100%);
    color: white;
    transform: translateX(-8px) scale(1.02);
    border-color: #7e0000;
    box-shadow: 0 8px 20px rgba(126, 0, 0, 0.3);
}

.players-list li:hover::before {
    transform: scaleY(1);
}

.team-matches-section .week-section {
    margin-bottom: 25px;
}

.team-matches-section .sector-header {
    background: linear-gradient(135deg, #7e0000 0%, #a00000 100%);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(126, 0, 0, 0.2);
}

.team-matches-section .match-card {
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.team-matches-section .match-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(126, 0, 0, 0.2);
    border-color: #7e0000;
}

.team-matches-section .matches-grid {
    gap: 15px;
}

/* Team Statistics Section */
.team-stats-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-stats-section .section-title {
    color: #7e0000;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.team-stats-section .stats-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.team-stats-section .stats-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #7e0000;
    color: #7e0000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.team-stats-section .stats-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.team-stats-section .stats-btn.active {
    background: #7e0000;
    color: white;
}

#team-stats-container {
    min-height: 200px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-row:hover {
    background: #f9f9f9;
    border-color: #7e0000;
    transform: translateX(-5px);
    box-shadow: 0 2px 8px rgba(126, 0, 0, 0.1);
}

.stat-rank {
    font-size: 20px;
    font-weight: bold;
    color: #7e0000;
    min-width: 50px;
    text-align: center;
}

.stat-name {
    flex: 1;
    font-size: 16px;
    color: #333;
    padding: 0 15px;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #7e0000;
    min-width: 60px;
    text-align: center;
}

/* Stage Filter */
.stage-filter {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stage-filter label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.stage-filter select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #7e0000;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stage-filter select:hover {
    background: #f5f5f5;
}

.stage-filter select:focus {
    outline: none;
    border-color: #a00000;
    box-shadow: 0 0 0 3px rgba(126, 0, 0, 0.1);
}

/* ==================== ANALYSIS ==================== */
.analysis-container {
    padding: 10px;
}

.analysis-title {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    margin: 20px 0 15px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 1.4em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.analysis-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-right: 5px solid #7e0000;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.analysis-label {
    font-size: 1em;
    color: #555;
    font-weight: 500;
}

.analysis-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    direction: ltr;
    text-align: left;
}

.analysis-card.highlight {
    background-color: #fff8e1;
    border-right-color: #ffab00;
}

.analysis-card.highlight .analysis-label {
    color: #795548;
}

.analysis-card.highlight .analysis-value {
    color: #c56200;
    font-size: 1.4em;
}

/* Group Header */
.group-header {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0 15px 0;
    text-align: center;
}

.group-header:first-child {
    margin-top: 0;
}

/* Standings Table */
.standings-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: #7e0000;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
}

.standings-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.standings-table tr:hover {
    background: #f8f8f8;
}

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.standings-table .team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.standings-table .team-name {
    font-weight: 600;
    flex: 1;
}

.standings-table .position-cell {
    font-weight: bold;
    color: #7e0000;
}

.standings-table .points-cell {
    font-weight: bold;
    font-size: 1.1em;
    color: #7e0000;
}

/* Statistics Lists */
.stats-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.stats-header {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.stats-item {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.stats-item:hover {
    background: #f8f8f8;
}

.stats-player-info {
    flex: 1;
}

.stats-player-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.stats-team-name {
    color: #666;
    font-size: 0.9em;
}

.stats-value {
    font-weight: bold;
    font-size: 1.5em;
    color: #7e0000;
    min-width: 60px;
    text-align: center;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #7e0000;
}

.team-card-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.team-card-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

/* Team Details */
.team-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.team-header-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.team-info-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.team-info-section h3 {
    color: #7e0000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.team-info-item {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.team-info-item:last-child {
    border-bottom: none;
}

.team-info-label {
    font-weight: bold;
    color: #666;
}

.team-info-value {
    color: #333;
}

.team-players-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.team-players-section h4 {
    color: #7e0000;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-item {
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Team Details Page */
.team-details-header {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.team-details-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(126, 0, 0, 0.15);
    border: 3px solid #7e0000;
}

.team-details-info h1 {
    color: #7e0000;
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.team-city {
    color: #555;
    font-size: 1.3em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.team-info-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.info-item {
    padding: 18px 20px;
    border-bottom: 2px solid #f5f5f5;
    font-size: 1.15em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: #fafafa;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.info-item:hover {
    background: #fff8f0;
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(126, 0, 0, 0.1);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    color: #7e0000;
    margin-left: 15px;
    font-weight: bold;
    min-width: 80px;
}

.team-players-section,
.team-matches-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.team-players-section h3,
.team-matches-section h3 {
    color: #7e0000;
    margin: 0 0 30px 0;
    padding: 0 0 20px 0;
    border-bottom: 4px solid #7e0000;
    font-size: 1.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.team-players-section h3::before {
    content: '👥';
    font-size: 1.2em;
}

.team-matches-section h3::before {
    content: '⚽';
    font-size: 1.2em;
}

.players-category {
    margin-bottom: 35px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
}

.players-category h4 {
    color: #7e0000;
    margin: 0 0 20px 0;
    padding: 0 0 12px 0;
    border-bottom: 3px solid #e0e0e0;
    font-size: 1.3em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.players-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.players-list li {
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #e8e8e8;
    font-size: 1.05em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.players-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #7e0000;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.players-list li:hover {
    background: linear-gradient(135deg, #7e0000 0%, #a00000 100%);
    color: white;
    transform: translateX(-8px) scale(1.02);
    border-color: #7e0000;
    box-shadow: 0 8px 20px rgba(126, 0, 0, 0.3);
}

.players-list li:hover::before {
    transform: scaleY(1);
}

.team-matches-section .week-section {
    margin-bottom: 25px;
}

.team-matches-section .sector-header {
    background: linear-gradient(135deg, #7e0000 0%, #a00000 100%);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(126, 0, 0, 0.2);
}

.team-matches-section .match-card {
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.team-matches-section .match-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(126, 0, 0, 0.2);
    border-color: #7e0000;
}

.team-matches-section .matches-grid {
    gap: 15px;
}

/* Team Statistics Section */
.team-stats-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-stats-section .section-title {
    color: #7e0000;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.team-stats-section .stats-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.team-stats-section .stats-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #7e0000;
    color: #7e0000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.team-stats-section .stats-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.team-stats-section .stats-btn.active {
    background: #7e0000;
    color: white;
}

#team-stats-container {
    min-height: 200px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-row:hover {
    background: #f9f9f9;
    border-color: #7e0000;
    transform: translateX(-5px);
    box-shadow: 0 2px 8px rgba(126, 0, 0, 0.1);
}

.stat-rank {
    font-size: 20px;
    font-weight: bold;
    color: #7e0000;
    min-width: 50px;
    text-align: center;
}

.stat-name {
    flex: 1;
    font-size: 16px;
    color: #333;
    padding: 0 15px;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #7e0000;
    min-width: 60px;
    text-align: center;
}

/* Stage Filter */
.stage-filter {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stage-filter label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.stage-filter select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #7e0000;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stage-filter select:hover {
    background: #f5f5f5;
}

.stage-filter select:focus {
    outline: none;
    border-color: #a00000;
    box-shadow: 0 0 0 3px rgba(126, 0, 0, 0.1);
}

/* ==================== ANALYSIS ==================== */
.analysis-container {
    padding: 10px;
}

.analysis-title {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    margin: 20px 0 15px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 1.4em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.analysis-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-right: 5px solid #7e0000;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.analysis-label {
    font-size: 1em;
    color: #555;
    font-weight: 500;
}

.analysis-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    direction: ltr;
    text-align: left;
}

.analysis-card.highlight {
    background-color: #fff8e1;
    border-right-color: #ffab00;
}

.analysis-card.highlight .analysis-label {
    color: #795548;
}

.analysis-card.highlight .analysis-value {
    color: #c56200;
    font-size: 1.4em;
}

/* Group Header */
.group-header {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0 15px 0;
    text-align: center;
}

.group-header:first-child {
    margin-top: 0;
}

/* Standings Table */
.standings-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: #7e0000;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
}

.standings-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.standings-table tr:hover {
    background: #f8f8f8;
}

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.standings-table .team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.standings-table .team-name {
    font-weight: 600;
    flex: 1;
}

.standings-table .position-cell {
    font-weight: bold;
    color: #7e0000;
}

.standings-table .points-cell {
    font-weight: bold;
    font-size: 1.1em;
    color: #7e0000;
}

/* Statistics Lists */
.stats-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.stats-header {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.stats-item {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.stats-item:hover {
    background: #f8f8f8;
}

.stats-player-info {
    flex: 1;
}

.stats-player-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.stats-team-name {
    color: #666;
    font-size: 0.9em;
}

.stats-value {
    font-weight: bold;
    font-size: 1.5em;
    color: #7e0000;
    min-width: 60px;
    text-align: center;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #7e0000;
}

.team-card-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.team-card-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

/* Team Details */
.team-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.team-header-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.team-info-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.team-info-section h3 {
    color: #7e0000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.team-info-item {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.team-info-item:last-child {
    border-bottom: none;
}

.team-info-label {
    font-weight: bold;
    color: #666;
}

.team-info-value {
    color: #333;
}

.team-players-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.team-players-section h4 {
    color: #7e0000;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-item {
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Team Details Page */
.team-details-header {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.team-details-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(126, 0, 0, 0.15);
    border: 3px solid #7e0000;
}

.team-details-info h1 {
    color: #7e0000;
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.team-city {
    color: #555;
    font-size: 1.3em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.team-info-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.info-item {
    padding: 18px 20px;
    border-bottom: 2px solid #f5f5f5;
    font-size: 1.15em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: #fafafa;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.info-item:hover {
    background: #fff8f0;
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(126, 0, 0, 0.1);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    color: #7e0000;
    margin-left: 15px;
    font-weight: bold;
    min-width: 80px;
}

.team-players-section,
.team-matches-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.team-players-section h3,
.team-matches-section h3 {
    color: #7e0000;
    margin: 0 0 30px 0;
    padding: 0 0 20px 0;
    border-bottom: 4px solid #7e0000;
    font-size: 1.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.team-players-section h3::before {
    content: '👥';
    font-size: 1.2em;
}

.team-matches-section h3::before {
    content: '⚽';
    font-size: 1.2em;
}

.players-category {
    margin-bottom: 35px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
}

.players-category h4 {
    color: #7e0000;
    margin: 0 0 20px 0;
    padding: 0 0 12px 0;
    border-bottom: 3px solid #e0e0e0;
    font-size: 1.3em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.players-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.players-list li {
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #e8e8e8;
    font-size: 1.05em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.players-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #7e0000;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.players-list li:hover {
    background: linear-gradient(135deg, #7e0000 0%, #a00000 100%);
    color: white;
    transform: translateX(-8px) scale(1.02);
    border-color: #7e0000;
    box-shadow: 0 8px 20px rgba(126, 0, 0, 0.3);
}

.players-list li:hover::before {
    transform: scaleY(1);
}

.team-matches-section .week-section {
    margin-bottom: 25px;
}

.team-matches-section .sector-header {
    background: linear-gradient(135deg, #7e0000 0%, #a00000 100%);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(126, 0, 0, 0.2);
}

.team-matches-section .match-card {
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.team-matches-section .match-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(126, 0, 0, 0.2);
    border-color: #7e0000;
}

.team-matches-section .matches-grid {
    gap: 15px;
}

/* Team Statistics Section */
.team-stats-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-stats-section .section-title {
    color: #7e0000;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.team-stats-section .stats-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.team-stats-section .stats-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #7e0000;
    color: #7e0000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.team-stats-section .stats-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.team-stats-section .stats-btn.active {
    background: #7e0000;
    color: white;
}

#team-stats-container {
    min-height: 200px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-row:hover {
    background: #f9f9f9;
    border-color: #7e0000;
    transform: translateX(-5px);
    box-shadow: 0 2px 8px rgba(126, 0, 0, 0.1);
}

.stat-rank {
    font-size: 20px;
    font-weight: bold;
    color: #7e0000;
    min-width: 50px;
    text-align: center;
}

.stat-name {
    flex: 1;
    font-size: 16px;
    color: #333;
    padding: 0 15px;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #7e0000;
    min-width: 60px;
    text-align: center;
}

/* Stage Filter */
.stage-filter {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stage-filter label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.stage-filter select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #7e0000;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stage-filter select:hover {
    background: #f5f5f5;
}

.stage-filter select:focus {
    outline: none;
    border-color: #a00000;
    box-shadow: 0 0 0 3px rgba(126, 0, 0, 0.1);
}

/* ==================== ANALYSIS ==================== */
.analysis-container {
    padding: 10px;
}

.analysis-title {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    margin: 20px 0 15px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 1.4em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.analysis-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-right: 5px solid #7e0000;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.analysis-label {
    font-size: 1em;
    color: #555;
    font-weight: 500;
}

.analysis-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    direction: ltr;
    text-align: left;
}

.analysis-card.highlight {
    background-color: #fff8e1;
    border-right-color: #ffab00;
}

.analysis-card.highlight .analysis-label {
    color: #795548;
}

.analysis-card.highlight .analysis-value {
    color: #c56200;
    font-size: 1.4em;
}

/* Group Header */
.group-header {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0 15px 0;
    text-align: center;
}

.group-header:first-child {
    margin-top: 0;
}

/* Standings Table */
.standings-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: #7e0000;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
}

.standings-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.standings-table tr:hover {
    background: #f8f8f8;
}

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.standings-table .team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.standings-table .team-name {
    font-weight: 600;
    flex: 1;
}

.standings-table .position-cell {
    font-weight: bold;
    color: #7e0000;
}

.standings-table .points-cell {
    font-weight: bold;
    font-size: 1.1em;
    color: #7e0000;
}

/* Statistics Lists */
.stats-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.stats-header {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.stats-item {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.stats-item:hover {
    background: #f8f8f8;
}

.stats-player-info {
    flex: 1;
}

.stats-player-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.stats-team-name {
    color: #666;
    font-size: 0.9em;
}

.stats-value {
    font-weight: bold;
    font-size: 1.5em;
    color: #7e0000;
    min-width: 60px;
    text-align: center;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #7e0000;
}

.team-card-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.team-card-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

/* Team Details */
.team-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.team-header-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.team-info-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.team-info-section h3 {
    color: #7e0000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.team-info-item {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.team-info-item:last-child {
    border-bottom: none;
}

.team-info-label {
    font-weight: bold;
    color: #666;
}

.team-info-value {
    color: #333;
}

.team-players-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.team-players-section h4 {
    color: #7e0000;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-item {
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Team Details Page */
.team-details-header {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.team-details-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(126, 0, 0, 0.15);
    border: 3px solid #7e0000;
}

.team-details-info h1 {
    color: #7e0000;
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.team-city {
    color: #555;
    font-size: 1.3em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.team-info-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.info-item {
    padding: 18px 20px;
    border-bottom: 2px solid #f5f5f5;
    font-size: 1.15em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: #fafafa;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.info-item:hover {
    background: #fff8f0;
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(126, 0, 0, 0.1);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    color: #7e0000;
    margin-left: 15px;
    font-weight: bold;
    min-width: 80px;
}

.team-players-section,
.team-matches-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.team-players-section h3,
.team-matches-section h3 {
    color: #7e0000;
    margin: 0 0 30px 0;
    padding: 0 0 20px 0;
    border-bottom: 4px solid #7e0000;
    font-size: 1.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.team-players-section h3::before {
    content: '👥';
    font-size: 1.2em;
}

.team-matches-section h3::before {
    content: '⚽';
    font-size: 1.2em;
}

.players-category {
    margin-bottom: 35px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
}

.players-category h4 {
    color: #7e0000;
    margin: 0 0 20px 0;
    padding: 0 0 12px 0;
    border-bottom: 3px solid #e0e0e0;
    font-size: 1.3em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.players-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.players-list li {
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #e8e8e8;
    font-size: 1.05em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.players-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #7e0000;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.players-list li:hover {
    background: linear-gradient(135deg, #7e0000 0%, #a00000 100%);
    color: white;
    transform: translateX(-8px) scale(1.02);
    border-color: #7e0000;
    box-shadow: 0 8px 20px rgba(126, 0, 0, 0.3);
}

.players-list li:hover::before {
    transform: scaleY(1);
}

.team-matches-section .week-section {
    margin-bottom: 25px;
}

.team-matches-section .sector-header {
    background: linear-gradient(135deg, #7e0000 0%, #a00000 100%);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(126, 0, 0, 0.2);
}

.team-matches-section .match-card {
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.team-matches-section .match-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(126, 0, 0, 0.2);
    border-color: #7e0000;
}

.team-matches-section .matches-grid {
    gap: 15px;
}

/* Team Statistics Section */
.team-stats-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-stats-section .section-title {
    color: #7e0000;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.team-stats-section .stats-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.team-stats-section .stats-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #7e0000;
    color: #7e0000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.team-stats-section .stats-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.team-stats-section .stats-btn.active {
    background: #7e0000;
    color: white;
}

#team-stats-container {
    min-height: 200px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-row:hover {
    background: #f9f9f9;
    border-color: #7e0000;
    transform: translateX(-5px);
    box-shadow: 0 2px 8px rgba(126, 0, 0, 0.1);
}

.stat-rank {
    font-size: 20px;
    font-weight: bold;
    color: #7e0000;
    min-width: 50px;
    text-align: center;
}

.stat-name {
    flex: 1;
    font-size: 16px;
    color: #333;
    padding: 0 15px;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #7e0000;
    min-width: 60px;
    text-align: center;
}

/* Stage Filter */
.stage-filter {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stage-filter label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.stage-filter select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #7e0000;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stage-filter select:hover {
    background: #f5f5f5;
}

.stage-filter select:focus {
    outline: none;
    border-color: #a00000;
    box-shadow: 0 0 0 3px rgba(126, 0, 0, 0.1);
}

/* ==================== ANALYSIS ==================== */
.analysis-container {
    padding: 10px;
}

.analysis-title {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    margin: 20px 0 15px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 1.4em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.analysis-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-right: 5px solid #7e0000;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.analysis-label {
    font-size: 1em;
    color: #555;
    font-weight: 500;
}

.analysis-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    direction: ltr;
    text-align: left;
}

.analysis-card.highlight {
    background-color: #fff8e1;
    border-right-color: #ffab00;
}

.analysis-card.highlight .analysis-label {
    color: #795548;
}

.analysis-card.highlight .analysis-value {
    color: #c56200;
    font-size: 1.4em;
}

/* Group Header */
.group-header {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0 15px 0;
    text-align: center;
}

.group-header:first-child {
    margin-top: 0;
}

/* Standings Table */
.standings-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: #7e0000;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
}

.standings-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.standings-table tr:hover {
    background: #f8f8f8;
}

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.standings-table .team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.standings-table .team-name {
    font-weight: 600;
    flex: 1;
}

.standings-table .position-cell {
    font-weight: bold;
    color: #7e0000;
}

.standings-table .points-cell {
    font-weight: bold;
    font-size: 1.1em;
    color: #7e0000;
}

/* Statistics Lists */
.stats-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.stats-header {
    background: #7e0000;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.stats-item {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.stats-item:hover {
    background: #f8f8f8;
}

.stats-player-info {
    flex: 1;
}

.stats-player-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.stats-team-name {
    color: #666;
    font-size: 0.9em;
}

.stats-value {
    font-weight: bold;
    font-size: 1.5em;
    color: #7e0000;
    min-width: 60px;
    text-align: center;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #7e0000;
}

.team-card-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.team-card-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

/* Team Details */
.team-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.team-header-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.team-info-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.team-info-section h3 {
    color: #7e0000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.team-info-item {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.team-info-item:last-child {
    border-bottom: none;
}

.team-info-label {
    font-weight: bold;
    color: #666;
}

.team-info-value {
    color: #333;
}

.team-players-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.team-players-section h4 {
    color: #7e0000;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-item {
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 8px;
}
/* Standings Container - Mobile Horizontal Scroll */
.standings-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
}

.standings-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

#standings-container {
    min-width: 100%;
}

.standings-table table {
    min-width: 650px;
}

@media (max-width: 768px) {
    .standings-scroll-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .standings-table-wrapper {
        margin: 0 -15px 20px -15px;
        padding: 0 15px;
    }
    
    .standings-table th,
    .standings-table td {
        font-size: 0.8em;
        padding: 8px 5px;
        white-space: nowrap;
    }
}

/* Collapsible Section Styles */
.collapsible-section {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.collapsible-header {
    background: linear-gradient(135deg, #7e0000 0%, #9e0000 100%);
    color: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.collapsible-header:hover {
    background: linear-gradient(135deg, #9e0000 0%, #be0000 100%);
    transform: translateX(-3px);
}

.collapsible-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.collapsible-content.active {
    max-height: 5000px;
    padding: 25px;
}

.team-players-list,
.team-matches-list {
    background: transparent;
    padding: 0;
}

/* Fix team name column width in standings table to auto-fit */
.standings-table table {
    table-layout: auto !important;
    width: auto !important;
    min-width: 100% !important;
}

.standings-table th,
.standings-table td {
    padding: 12px 8px !important;
    white-space: nowrap !important;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
    text-align: right !important;
    width: 1% !important;
}

.standings-table .team-cell {
    white-space: nowrap !important;
    justify-content: flex-start !important;
}

.standings-table .team-logo {
    flex-shrink: 0 !important;
    width: 30px !important;
    height: 30px !important;
}

.standings-table .team-name {
    white-space: nowrap !important;
    flex: none !important;
}

/* Contact Page Styles */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.contact-intro {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-intro p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.8;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-top: 5px solid #7e0000;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(126, 0, 0, 0.3);
}

.whatsapp-card {
    border-top-color: #25D366;
}

.email-card {
    border-top-color: #7e0000;
}

.contact-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: #7e0000;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.contact-card p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.email-btn {
    background: linear-gradient(135deg, #7e0000 0%, #4a0000 100%);
    color: white;
}

.email-btn:hover {
    background: linear-gradient(135deg, #9e0000 0%, #6a0000 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(126, 0, 0, 0.4);
}

.btn-icon {
    font-size: 1.3em;
}

.contact-footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-footer p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Policy Pages Styling */
.content-section {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.content-section .date {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 20px;
}

.policy-section {
    margin: 30px 0;
    padding: 20px;
    border-right: 4px solid #7e0000;
    background: rgba(126, 0, 0, 0.02);
    border-radius: 8px;
}

.policy-section h3 {
    color: #7e0000;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.policy-section h4 {
    color: #a00000;
    font-size: 1.1em;
    margin: 15px 0 10px 0;
}

.policy-section p {
    color: #333;
    margin: 10px 0;
    text-align: justify;
}

.policy-section ul {
    margin: 15px 0;
    padding-right: 30px;
}

.policy-section li {
    color: #444;
    margin: 8px 0;
    line-height: 1.7;
}

.policy-section a {
    color: #7e0000;
    text-decoration: none;
    font-weight: 500;
}

.policy-section a:hover {
    text-decoration: underline;
}

.policy-section strong {
    color: #7e0000;
}

/* Page Intro Sections */
.intro-section,
.page-intro {
    background: rgba(255, 255, 255, 0.98);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-right: 5px solid #7e0000;
}

.intro-section h2 {
    color: #7e0000;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.intro-content p,
.page-intro p {
    color: #333;
    font-size: 1.1em;
    line-height: 1.8;
    margin: 12px 0;
    text-align: justify;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 25px;
    }
    
    .contact-icon {
        font-size: 3em;
    }
    
    .contact-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* Team Info List Styles */
.team-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.info-row:hover {
    background: #fff8f0;
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(126, 0, 0, 0.1);
}

.info-label {
    color: #7e0000;
    font-weight: bold;
    font-size: 1.1em;
}

.info-value {
    color: #333;
    font-size: 1.05em;
    line-height: 1.6;
}

.field-link {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.field-link:hover {
    color: #7e0000;
    text-decoration: underline;
}
