/* Matches Display Styles - Updated for Date Categorization */
.matches-container {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 400px;
    overflow-x: auto;
}

/* Mobile-specific overrides - CONSOLIDATED */
@media (max-width: 768px) {
    .matches-container {
        padding: 1rem 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
}

/* Matches Filters Section */
.matches-filters-section {
    background: var(--bg-color);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.matches-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.filter-row-main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.filter-row-secondary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-row-main .filter-group {
    width: 100%;
    max-width: 1100px;
    align-items: center;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-row-main .filter-group label {
    text-align: center;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: #01BE6E;
    outline: none;
    box-shadow: 0 0 0 2px rgba(1, 190, 110, 0.1);
}

.filter-group select option {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.5rem;
}

.filter-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: #01BE6E;
    color: #01BE6E;
}

.filter-pill.active {
    background: #01BE6E;
    border-color: #01BE6E;
    color: #02150c;
    box-shadow: 0 8px 16px rgba(1, 190, 110, 0.35);
}

.multi-select-container {
    position: relative;
}

.multi-select-display {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.multi-select-display:hover {
    border-color: #01BE6E;
    box-shadow: 0 0 0 2px rgba(1, 190, 110, 0.1);
}

.multi-select-display i {
    transition: transform 0.3s ease;
}

.multi-select-display.open i {
    transform: rotate(180deg);
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.multi-select-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.multi-select-option {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.multi-select-option:hover {
    background: rgba(1, 190, 110, 0.1);
}

.multi-select-option input[type="checkbox"] {
    margin: 0;
}

.multi-select-option label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}

@media (max-width: 768px) {
    .matches-filters {
        gap: 1rem;
    }
    
    .filter-row-secondary {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .filter-group {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
}

/* Live Matches Section - REVAMPED */
.live-matches-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Mobile-specific overrides - CONSOLIDATED */
@media (max-width: 768px) {
    .live-matches-section {
        padding: 1.5rem 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .live-matches-section .section-header {
        margin-bottom: 1rem !important;
    }
    
    .live-matches-section .section-title {
        font-size: 1.5rem !important;
    }
}


.live-matches-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4444, transparent);
    animation: liveBorderPulse 3s ease-in-out infinite;
}

@keyframes liveBorderPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.live-matches-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.live-matches-section .section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.live-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.live-pulse {
    color: #ff4444 !important;
    font-size: 1.2rem;
    animation: livePulseDot 2s ease-in-out infinite;
}

.live-text {
    color: #ff4444 !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: liveTextPulse 2s ease-in-out infinite;
}

/* Ensure live indicators are visible in both themes */
[data-theme="light"] .live-pulse,
[data-theme="light"] .live-text {
    color: #dc2626 !important; /* Darker red for light mode */
}

[data-theme="dark"] .live-pulse,
[data-theme="dark"] .live-text {
    color: #ff6b6b !important; /* Lighter red for dark mode */
}

@keyframes liveTextPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes livePulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(1, 190, 110, 0.1);
    border: 1px solid rgba(1, 190, 110, 0.3);
    border-radius: 25px;
    font-size: 0.9rem;
}

.live-count {
    color: #01BE6E;
    font-weight: 700;
    font-size: 1.1rem;
}

.live-label {
    color: var(--text-color);
    opacity: 0.8;
}

.live-matches-container {
    position: relative;
    min-height: 200px;
}

.live-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.no-live-matches {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.no-live-matches.show {
    display: block;
}

.no-live-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-live-content i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.no-live-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.no-live-content p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 1rem;
    line-height: 1.5;
}

/* Watch with Falcons Section */
.watch-with-falcons {
    padding: 3.5rem 0;
    background: linear-gradient(160deg, rgba(8, 14, 18, 0.95), rgba(12, 19, 25, 0.85));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.watch-with-falcons .container {
    max-width: 1200px;
    margin: 0 auto;
}

.watch-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.watch-head-text {
    max-width: 640px;
    text-align: center;
}

.watch-with-falcons .section-eyebrow {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #01BE6E;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.watch-head-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    color: var(--text-color);
    margin: 0;
}

.watch-head-text p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.watch-follow-note {
    text-align: center;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.7);
    max-width: 620px;
    font-size: 0.90rem;
}

.watch-head-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    width: 100%;
}

.watch-featured-player {
    width: 50%;
    max-width: 720px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 10, 14, 0.75);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    display: none;
}

.watch-featured-player.active {
    display: block;
}

.watch-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.watch-featured-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #01BE6E;
    margin: 0 0 0.25rem;
}

.watch-featured-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}

.watch-featured-platform {
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.watch-featured-frame {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #05090d;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-featured-frame iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

.watch-featured-fallback {
    padding: 1.5rem;
    text-align: center;
}

.watch-featured-fallback p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.watch-featured-fallback a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.watch-featured-fallback a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #01BE6E;
}

.watch-refresh-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.watch-refresh-btn:hover {
    border-color: #01BE6E;
    color: #01BE6E;
}

.watch-refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.watch-streamers {
    margin-top: 2.5rem;
    position: relative;
}

/* Streamers Loading State */
.watch-streamers-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 280px;
}

.watch-streamers-loading p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.loading-spinner--streamers {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #01BE6E;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

/* Show loading state and hide grid when loading */
.watch-with-falcons[data-loading="true"] .watch-streamers-loading {
    display: flex;
}

.watch-with-falcons[data-loading="true"] .watch-cards-grid {
    display: none;
}

.watch-with-falcons[data-loading="true"] .watch-empty-state {
    display: none !important;
}

/* Light theme */
[data-theme="light"] .watch-streamers-loading p {
    color: rgba(11, 20, 29, 0.75);
}

[data-theme="light"] .loading-spinner--streamers {
    border-color: rgba(11, 20, 29, 0.1);
    border-top-color: #01BE6E;
}

.watch-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.1rem;
    justify-items: center;
}

.watch-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 220px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    align-items: center;
    text-align: center;
}

.watch-card.live {
    border-color: rgba(255, 80, 80, 0.5);
    box-shadow: 0 15px 30px rgba(255, 80, 80, 0.15);
}

.watch-card:hover {
    transform: translateY(-6px);
    border-color: rgba(1, 190, 110, 0.5);
}

.watch-card:focus-visible {
    outline: 2px solid #01BE6E;
    outline-offset: 3px;
}

.watch-card-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.watch-status-pill {
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 700;
}

.watch-status-pill.live {
    background: rgba(255, 78, 78, 0.15);
    border-color: rgba(255, 78, 78, 0.4);
    color: #ff8484;
}

.watch-status-pill.offline {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

/* Platform name colors in live status */
.watch-status-pill .platform-name {
    font-weight: 700;
}

.watch-status-pill.live .platform-youtube,
.watch-status-pill.offline .platform-youtube {
    color: #FF0000 !important;
}

.watch-status-pill.live .platform-twitch,
.watch-status-pill.offline .platform-twitch {
    color: #9146FF !important;
}

.watch-status-pill.live .platform-kick,
.watch-status-pill.offline .platform-kick {
    color: #53FC18 !important;
}

.watch-status-pill.live .platform-x,
.watch-status-pill.offline .platform-x {
    color: #1DA1F2 !important;
}

.watch-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

.watch-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(1, 190, 110, 0.35);
    background: #0b141a;
}

.watch-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
}

.watch-info p {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
}

.watch-platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
    margin-top: auto;
    justify-content: center;
}

.watch-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 14px;
    border: none;
    padding: 0.55rem 1.15rem;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 46px;
    font-weight: 600;
    color: #ffffff;
}

.watch-platform-badge:hover {
    transform: translateY(-2px);
}

.watch-platform-badge.platform-twitch {
    background: linear-gradient(135deg, #6f2cfa, #9146ff);
    box-shadow: 0 12px 24px rgba(110, 44, 250, 0.35);
}

.watch-platform-badge.platform-twitch:hover {
    box-shadow: 0 16px 28px rgba(110, 44, 250, 0.45);
}

.watch-platform-badge.platform-youtube {
    background: linear-gradient(135deg, #ff2e2e, #ff5f5f);
    box-shadow: 0 12px 24px rgba(255, 46, 46, 0.35);
}

.watch-platform-badge.platform-youtube:hover {
    box-shadow: 0 16px 28px rgba(255, 46, 46, 0.45);
}

.watch-platform-badge.platform-kick {
    background: #00ff95;
    color: #032818;
    box-shadow: 0 12px 24px rgba(0, 255, 149, 0.35);
}

.watch-platform-badge.platform-kick:hover {
    box-shadow: 0 16px 30px rgba(0, 255, 149, 0.45);
}

.watch-platform-badge.platform-x {
    background: linear-gradient(135deg, #111111, #1f1f1f);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.watch-platform-badge.platform-x:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}

.watch-platform-badge.live {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 18px 36px rgba(255, 80, 80, 0.25);
}

.watch-platform-badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
}

.watch-platform-badge.platform-kick img {
    width: 20px;
    height: 20px;
}


.watch-empty-state {
    display: none;
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.watch-empty-state.active {
    display: block;
}

.watch-empty-content {
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(0);
}

.watch-empty-state i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.6rem;
    display: block;
}

.watch-empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--text-color);
    text-transform: capitalize;
}

.watch-empty-state p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.watch-empty-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(6, 12, 18, 0.55);
    z-index: 2;
}

.loading-spinner--watch {
    width: 78px;
    height: 78px;
    border-width: 5px;
    margin: 0;
}

.watch-with-falcons[data-loading="true"] {
    pointer-events: none;
}

.watch-with-falcons[data-loading="true"] .watch-empty-state {
    position: relative;
}

.watch-with-falcons[data-loading="true"] .watch-empty-state.active .watch-empty-loader {
    display: flex;
}

.watch-with-falcons[data-loading="true"] .watch-empty-state.active .watch-empty-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.watch-with-falcons[data-loading="true"] .watch-refresh-btn {
    opacity: 0.6;
    pointer-events: none;
}

[data-theme="light"] .watch-with-falcons {
    background: linear-gradient(160deg, rgba(243, 246, 250, 0.98), rgba(233, 239, 244, 0.92));
    border-bottom: 1px solid rgba(11, 20, 29, 0.08);
}

[data-theme="light"] .watch-head-text h2 {
    color: #0b141d;
}

[data-theme="light"] .watch-head-text p,
[data-theme="light"] .watch-follow-note {
    color: rgba(11, 20, 29, 0.75);
}

[data-theme="light"] .filter-pill {
    border-color: rgba(11, 20, 29, 0.15);
    background: rgba(11, 20, 29, 0.04);
    color: rgba(11, 20, 29, 0.75);
}

[data-theme="light"] .filter-pill.active {
    color: #03150c;
}

[data-theme="light"] .watch-featured-player {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(11, 20, 29, 0.08);
    box-shadow: 0 16px 36px rgba(11, 20, 29, 0.12);
}

[data-theme="light"] .watch-featured-header h3 {
    color: #0b141d;
}

[data-theme="light"] .watch-featured-platform {
    border-color: rgba(11, 20, 29, 0.15);
    color: rgba(11, 20, 29, 0.75);
}

[data-theme="light"] .watch-featured-frame {
    background: rgba(8, 12, 16, 0.8);
    border-color: rgba(11, 20, 29, 0.08);
}

[data-theme="light"] .watch-featured-fallback p {
    color: rgba(11, 20, 29, 0.7);
}

[data-theme="light"] .watch-featured-fallback a {
    border-color: rgba(11, 20, 29, 0.2);
    color: #0b141d;
}

[data-theme="light"] .watch-featured-fallback a:hover {
    background: rgba(11, 20, 29, 0.05);
    color: #01BE6E;
}

[data-theme="light"] .watch-refresh-btn {
    border-color: rgba(11, 20, 29, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #0b141d;
}

[data-theme="light"] .watch-card {
    background: #ffffff;
    border-color: rgba(11, 20, 29, 0.08);
    box-shadow: 0 18px 38px rgba(13, 26, 34, 0.08);
}

[data-theme="light"] .watch-card.live {
    border-color: rgba(255, 80, 80, 0.35);
    box-shadow: 0 18px 38px rgba(255, 80, 80, 0.18);
}

[data-theme="light"] .watch-card-status {
    color: #0b141d;
}

[data-theme="light"] .watch-status-pill.offline {
    background: rgba(11, 20, 29, 0.07);
    border-color: rgba(11, 20, 29, 0.12);
    color: rgba(11, 20, 29, 0.7);
}

[data-theme="light"] .watch-info h3 {
    color: #071019;
}

[data-theme="light"] .watch-info p {
    color: rgba(11, 20, 29, 0.65);
}

[data-theme="light"] .watch-empty-state {
    border-color: rgba(11, 20, 29, 0.12);
    background: rgba(11, 20, 29, 0.02);
}

[data-theme="light"] .watch-empty-state h3,
[data-theme="light"] .watch-empty-state p {
    color: rgba(11, 20, 29, 0.75);
}

.watch-player-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(3, 6, 10, 0.85);
    backdrop-filter: blur(14px);
    z-index: 1300;
}

.watch-player-modal.open {
    display: flex;
}

.watch-player-dialog {
    width: min(960px, 100%);
    background: #060d13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 35px 80px rgba(3, 6, 10, 0.6);
    z-index: 2;
}

.watch-player-backdrop {
    position: absolute;
    inset: 0;
}

.watch-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.watch-player-eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #01BE6E;
    margin: 0 0 0.3rem;
}

.watch-player-header h3 {
    margin: 0;
    color: #ffffff;
}

.watch-player-platform {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.watch-player-close {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.watch-player-close:hover {
    border-color: #01BE6E;
    color: #01BE6E;
}

.watch-player-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

.watch-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.watch-player-fallback {
    position: absolute;
    inset: 0;
    background: rgba(6, 13, 19, 0.95);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}

.watch-player-fallback[hidden] {
    display: none !important;
}

.watch-player-fallback a {
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.watch-player-fallback a:hover {
    border-color: #01BE6E;
    color: #01BE6E;
}

body.watch-player-open {
    overflow: hidden;
}

[data-theme="light"] .watch-player-dialog h3 {
    color: #0b141d;
}

[data-theme="light"] .watch-player-modal {
    background: rgba(241, 244, 247, 0.9);
}

[data-theme="light"] .watch-player-dialog {
    background: #ffffff;
    border-color: rgba(11, 20, 29, 0.08);
    box-shadow: 0 35px 80px rgba(13, 26, 34, 0.2);
}

[data-theme="light"] .watch-player-header h3 {
    color: #0b141d;
}

[data-theme="light"] .watch-player-platform {
    border-color: rgba(11, 20, 29, 0.15);
    color: rgba(11, 20, 29, 0.8);
}

[data-theme="light"] .watch-player-close {
    border-color: rgba(11, 20, 29, 0.15);
    background: rgba(11, 20, 29, 0.05);
    color: #0b141d;
}

[data-theme="light"] .watch-player-close:hover {
    color: #01BE6E;
}

[data-theme="light"] .watch-player-fallback {
    background: rgba(250, 250, 250, 0.95);
    color: #0b141d;
}

[data-theme="light"] .watch-player-fallback a {
    border-color: rgba(11, 20, 29, 0.2);
    color: #0b141d;
}

[data-theme="light"] .watch-player-fallback a:hover {
    border-color: rgba(1, 190, 110, 0.5);
    color: #01BE6E;
}

@media (max-width: 768px) {
    .watch-player-dialog {
        padding: 1rem;
        border-radius: 18px;
    }
    
    .watch-player-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
    }
    
    html[dir="rtl"] .watch-player-header {
        align-items: flex-end;
        text-align: end;
    }

    .watch-featured-frame iframe {
        height: 320px;
    }
}

html[dir="rtl"] .watch-player-header {
    flex-direction: row-reverse;
}

@media (max-width: 1200px) {
    .watch-featured-player {
        width: 70%;
    }
}

@media (max-width: 992px) {
    .watch-head-actions {
        justify-content: center;
    }
    
    .watch-featured-player {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .watch-head-actions,
    .watch-featured-player,
    .watch-refresh-btn,
    .watch-follow-note {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .watch-cards-grid {
        grid-template-columns: 1fr;
    }
}

html[dir="rtl"] .watch-head {
    flex-direction: column;
}

html[dir="rtl"] .watch-head-text {
    text-align: center;
}

html[dir="rtl"] .watch-head-actions {
    justify-content: center;
}

html[dir="rtl"] .watch-follow-note {
    text-align: center;
}

/* Live Match Cards */
.live-match-card {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 68, 68, 0.05) 100%);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.live-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4444, #ff6666, #ff4444);
    animation: liveBorderPulse 2s ease-in-out infinite;
}

.live-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.5);
}

.live-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.live-match-game {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-match-game img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.game-name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.live-match-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid rgba(255, 68, 68, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-duration {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

.live-match-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.live-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.live-team.falcons {
    position: relative;
}

.live-team.falcons::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, rgba(1, 190, 110, 0.1), transparent);
    border-radius: 12px;
    z-index: -1;
}

.team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.live-team .team-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.live-team.falcons .team-name {
    color: #01BE6E;
    font-weight: 700;
}

.live-match-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-match-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-tournament,
.live-time,
.live-format {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.live-tournament i,
.live-time i,
.live-format i {
    color: #ff4444;
    width: 16px;
}

.live-match-stream {
    margin-top: 0.5rem;
}

.stream-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stream-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
    color: white;
}

.stream-link i {
    font-size: 1rem;
}

/* Mobile Responsive for Live Match Cards - CONSOLIDATED */
@media (max-width: 768px) {
    .live-match-card {
        padding: 1rem;
    }
    
    .live-match-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .live-match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .live-match-vs {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .team-logo {
        width: 40px;
        height: 40px;
    }
    
    .live-team .team-name {
        font-size: 0.9rem;
    }
    
    .live-match-details {
        padding: 0.75rem;
    }
    
    .live-tournament,
    .live-time,
    .live-format {
        font-size: 0.8rem;
    }
    
    .stream-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Matches Timeline Section */
.matches-timeline-section {
    padding: 2rem 0;
    background: var(--bg-color);
    min-height: 400px;
}

.matches-timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loading-spinner--timeline {
    width: 64px;
    height: 64px;
    border-width: 5px;
    margin: 0;
}

.loading-state p {
    font-size: 1.2rem;
    margin: 0;
}

/* Date Groups */
.date-group {
    margin-bottom: 3rem;
}

.date-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #01BE6E;
}

.date-indicator {
    width: 4px;
    height: 30px;
    background: #01BE6E;
    margin-right: 1rem;
    border-radius: 2px;
}

.rtl .date-indicator {
    margin-right: 0;
    margin-left: 1rem;
}

.match-date-title {
    color: #01BE6E;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Matches Container */
.matches-container-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Match Cards - Consolidated and Fixed */
.match-card {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.95));
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(1, 190, 110, 0.2);
    border-color: #01BE6E;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.match-status {
    background: #01BE6E;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-status.live {
    background: #ff4444;
    animation: pulse 2s ease-in-out infinite;
}

.match-countdown {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

.match-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.match-game {
    text-align: center;
    margin-bottom: 1rem;
}

.match-game-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex: 1;
}

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

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.team-name {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.match-vs {
    font-size: 1.2rem;
    color: #01BE6E;
    font-weight: 700;
    margin: 0 1rem;
}

.match-details {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.match-tournament {
    font-size: 0.9rem;
    color: #01BE6E;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.match-date-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #aaa;
}

.match-actions {
    margin-top: 1rem;
    text-align: center;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #01BE6E;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    background: #00a85a;
    transform: translateY(-2px);
}

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

.match-game-logo {
    /* Remove borders and clean up styling */
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Match Content */
.match-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Match Header */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    position: relative;
}

.match-date-container {
    flex: 1;
}

.match-time {
    color: #01BE6E;
    font-weight: 600;
    font-size: 1rem;
}

.match-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-status.upcoming {
    background: rgba(1, 190, 110, 0.1);
    color: #01BE6E;
    border: 1px solid #01BE6E;
}

.match-status.live {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
    animation: livePulse 2s ease-in-out infinite;
}

.match-status.completed {
    background: rgba(102, 102, 102, 0.1);
    color: #666;
    border: 1px solid #666;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
    }
}

/* Match Teams */
.match-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.team {
    flex: 1;
    text-align: center;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.team.falcons .team-name {
    color: #01BE6E;
    font-weight: 700;
}

.match-vs {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(1, 190, 110, 0.1);
    border: 1px solid rgba(1, 190, 110, 0.3);
}

.match-vs.live {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #01BE6E;
}

/* Match Details */
.match-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.match-tournament i {
    color: #01BE6E;
}

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

.match-format i {
    color: #01BE6E;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.2rem;
    margin: 0;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem;
    color: #ff4444;
}

.error-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-state p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.retry-button {
    padding: 0.75rem 1.5rem;
    background: #01BE6E;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: #00a85a;
    transform: translateY(-2px);
}

/* Responsive Design - CONSOLIDATED */
@media (max-width: 768px) {
    .matches-container {
        padding: 1rem 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .matches-filters-section {
        padding: 1rem 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .matches-timeline-section {
        padding: 1rem 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .matches-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .matches-timeline {
        padding: 0 1rem;
    }
    
    .match-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .match-game-logo {
        align-self: center;
    }
    
    .match-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .match-details {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .date-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .date-indicator {
        width: 30px;
        height: 4px;
        margin: 0;
    }
    
    /* Ensure timeline view displays properly */
    #timeline-view,
    #matches-timeline {
        min-height: auto !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .matches-timeline {
        padding: 0 0.5rem;
    }
    
    .match-card {
        padding: 1rem;
    }
    
    .match-date-title {
        font-size: 1.4rem;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .match-details {
        font-size: 0.8rem;
    }
}

/* RTL Support */
.rtl .matches-filters {
    direction: rtl;
}

.rtl .filter-group {
    text-align: right;
}

.rtl .multi-select-display {
    flex-direction: row-reverse;
}

.rtl .multi-select-option {
    flex-direction: row-reverse;
}

.rtl .match-card {
    flex-direction: row-reverse;
}

.rtl .match-header {
    flex-direction: row-reverse;
}

.rtl .match-details {
    flex-direction: row-reverse;
}

.rtl .match-tournament,
.rtl .match-format {
    flex-direction: row-reverse;
}

/* Legacy styles for backward compatibility */
.matches-section {
    margin-bottom: 3rem;
}

.matches-section h2 {
    color: #01BE6E;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.matches-section h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-left: 4px solid #01BE6E;
    padding-left: 1rem;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
    justify-content: center;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Match Cards - Removed duplicate definition - using consolidated version above */

/* Add a subtle overlay to ensure text readability */
.match-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.1), rgba(42, 42, 42, 0.1));
    pointer-events: none;
    z-index: 1;
}

/* Ensure all match card content appears above the background */
.match-card > * {
    position: relative;
    z-index: 2;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #01BE6E, #00a85a);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(1, 190, 110, 0.2);
    border-color: #01BE6E;
}

.match-card:hover::before {
    opacity: 1;
}

.match-card.upcoming {
    border-left: 4px solid #01BE6E;
}

.match-card.completed {
    border-left: 4px solid #666;
}

.match-card.live {
    border-left: 4px solid #ff4444;
    background: linear-gradient(135deg, rgba(42, 26, 26, 0.95), rgba(58, 42, 42, 0.95)), 
                url('/images/matches-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.6);
    }
}

/* Match Header */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    position: relative;
}

.match-date {
    color: #01BE6E;
    font-weight: 600;
    font-size: 0.9rem;
}

.match-game {
    background: transparent !important;
    color: #01BE6E !important;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.match-game img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    background: transparent !important;
}

/* Match Teams */
.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    gap: 1rem;
}

.team {
    flex: 1;
    text-align: center;
}

.team.falcons .team-name {
    color: #01BE6E;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(1, 190, 110, 0.3);
}

.team-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.match-vs {
    color: #888;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: #333;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.match-vs.live {
    background: #ff4444;
    color: white;
    animation: liveBadgePulse 2s ease-in-out infinite;
}

.match-vs.has-score {
    background: rgba(1, 190, 110, 0.2);
    border: 1px solid rgba(1, 190, 110, 0.4);
    padding: 0.5rem 0.75rem;
}

.match-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: #01BE6E;
    letter-spacing: 0.05em;
}

.match-card.completed .match-vs {
    background: rgba(100, 100, 100, 0.2);
    border: 1px solid rgba(100, 100, 100, 0.3);
}

.match-card.completed .match-score {
    color: #888;
}

@keyframes liveBadgePulse {
    0%, 100% {
        background: #ff4444;
    }
    50% {
        background: #ff6666;
    }
}

.result {
    color: #01BE6E;
    font-weight: 700;
}

/* Match Details */
.match-tournament {
    color: #01BE6E !important;
    font-size: 1em;
    margin-bottom: 4px; /* Reduced from 6px */
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-tournament i {
    color: #01BE6E;
}

.match-format {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 0.25rem; /* Reduced from 0.5rem */
}

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

.match-stream a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #01BE6E;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(1, 190, 110, 0.1);
    border: 1px solid #01BE6E;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
}

.match-stream a:hover {
    background: #01BE6E;
    color: #000;
    transform: translateY(-2px);
}

.match-stream a i {
    font-size: 1.1em;
}

.match-stream.live a {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-color: #ff4444;
}

.match-stream.live a:hover {
    background: #ff4444;
    color: #fff;
}

/* Match Status */
.match-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2; /* Ensure it's above other content */
    max-width: 80px; /* Prevent it from taking too much space */
    text-align: center;
}

.match-status.upcoming {
    background: rgba(1, 190, 110, 0.2);
    color: #01BE6E;
    border: 1px solid #01BE6E;
    box-shadow: none !important;
    text-shadow: none !important;
    margin-left: auto;
    margin-right: 0;
    z-index: 1;
    /* Remove magenta border if present */
    border-width: 1px !important;
    border-color: #01BE6E !important;
}

.match-status.upcoming:hover {
    box-shadow: 0 0 8px 2px #01BE6E, 0 0 2px #01BE6E;
    border-color: #01BE6E;
}

.match-status.completed {
    background: rgba(102, 102, 102, 0.2);
    color: #666;
    border: 1px solid #666;
}

.match-status.live {
    background: #ff4444;
    color: white;
    font-weight: 700;
    animation: liveStatusPulse 2s ease-in-out infinite;
    font-size: 0.7rem !important; /* Ensure consistent sizing with upcoming */
    padding: 0.25rem 0.5rem !important; /* Match upcoming status padding */
    max-width: 80px !important; /* Prevent oversizing */
}

@keyframes liveStatusPulse {
    0%, 100% {
        background: #ff4444;
        transform: scale(1);
    }
    50% {
        background: #ff6666;
        transform: scale(1.05);
    }
}

/* Live Status Indicators */
.live-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 68, 68, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    animation: liveDotPulse 1.5s ease-in-out infinite;
}

@keyframes liveDotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.match-live-status {
    color: #ff4444;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    animation: liveTextPulse 1.5s ease-in-out infinite;
}

@keyframes liveTextPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Tournament Cards */
.tournament-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tournament-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(1, 190, 110, 0.15);
    border-color: #01BE6E;
}

.tournament-title {
    margin-bottom: 1rem;
}

.tournament-title a {
    color: #01BE6E;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.tournament-title a:hover {
    color: #00a85a;
    text-decoration: underline;
}

.tournament-snippet {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tournament-date {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #01BE6E;
    font-size: 1.1rem;
    font-weight: 600;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid #01BE6E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 2rem;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 8px;
    color: #dc3545;
}

.error-details {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

.no-matches,
.no-tournaments {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.no-matches p,
.no-tournaments p {
    margin-bottom: 0.5rem;
}

/* Attribution */
.attribution {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

/* Responsive Design */
/* Mid-size screens (tablets and smaller desktops) */
@media (min-width: 769px) and (max-width: 1200px) {
    .matches-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        justify-content: center;
    }
    
    .match-card {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .tournaments-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .match-card {
        min-height: 240px;
    }
    
    /* Match header and teams styling handled by main rules */
    
    .team {
        flex: 1;
        text-align: center;
    }
    
    .team img, .team-logo {
        max-width: 60px; /* Slightly larger for readability */
        height: auto;
        margin: 0 auto 0.5rem auto;
    }
    
    .team-name {
        font-size: 1rem; /* Keep readable size */
    }
    
    /* Match VS styling handled by main rules */
    
    .matches-section h2 {
        font-size: 1.5rem;
    }
    
    .matches-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .matches-container {
        padding: 1rem 0;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .match-card {
        min-height: 220px;
        padding: 1rem;
    }
    
    .match-status {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .team img, .team-logo {
        max-width: 50px;
    }
    
    .team-name {
        font-size: 1rem;
    }
}

/* Game-specific styling */
.match-card[data-game="valorant"] .match-game {
    background: #ff4655;
}

.match-card[data-game="rocketleague"] .match-game {
    background: #0066cc;
}

.match-card[data-game="apexlegends"] .match-game {
    background: #ff6600;
}

/* Animation for new matches */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-card.animate-in {
    animation: slideInUp 0.6s ease-out;
}

/* Matches Page Styles */
.matches-page .page-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    border-bottom: 2px solid var(--primary-green);
}

@media (max-width: 768px) {
    .matches-page .page-header {
        padding: 1.5rem 0 !important;
    }
}

.live-matches-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 68, 68, 0.05) 100%);
    border-top: 2px solid #ff4444;
    border-bottom: 2px solid #ff4444;
}

.live-pulse {
    animation: livePulseDot 1.5s ease-in-out infinite;
    color: #ff4444;
}

@keyframes livePulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.live-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.matches-categories-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    color: var(--primary-green);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.matches-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-green);
    color: var(--white);
}

.filter-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.game-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.game-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.game-category-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-card) 100%);
    border-bottom: 2px solid var(--primary-green);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.game-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-green);
}

.game-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 0.75rem;
    background: transparent !important;
}

.game-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent !important;
}

.game-info h3 {
    color: var(--primary-green);
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.game-info .match-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.game-matches-container {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.game-matches-container::-webkit-scrollbar {
    width: 4px;
}

.game-matches-container::-webkit-scrollbar-track {
    background: var(--dark-card);
    border-radius: 2px;
}

.game-matches-container::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 2px;
}

.compact-match-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.compact-match-card > * {
    position: relative;
    z-index: 1;
}

.compact-match-card:last-child {
    margin-bottom: 0;
}

.compact-match-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.compact-match-card.live {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.compact-match-card.live::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #ff4444;
    animation: livePulse 2s ease-in-out infinite;
}

.compact-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    position: relative;
}

.compact-match-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.compact-match-status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.compact-match-status.upcoming {
    background: rgba(1, 190, 110, 0.1);
    color: #01BE6E;
}

.compact-match-status.live {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.compact-match-game {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    z-index: 10;
}

.compact-game-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(1, 190, 110, 0.1);
    padding: 4px;
    position: relative;
    z-index: 11;
}

.no-matches-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* List View Styles */
.game-categories-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.game-categories-grid.list-view .game-category-card {
    display: flex;
    flex-direction: row;
    min-height: auto;
}

.game-categories-grid.list-view .game-category-header {
    flex: 0 0 300px;
    border-bottom: none;
    border-right: 2px solid var(--primary-green);
}

.game-categories-grid.list-view .game-matches-container {
    flex: 1;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    align-content: start;
}

/* RTL Support */
.rtl .section-header {
    direction: rtl;
}

.rtl .matches-controls {
    direction: rtl;
}

.rtl .game-categories-grid.list-view .game-category-header {
    border-right: none;
    border-left: 2px solid var(--primary-green);
}

.rtl .compact-match-card:hover {
    transform: translateX(-5px);
}

/* Force LTR for match cards in RTL context */
.rtl .match-card {
    direction: ltr !important;
}

.rtl .match-card .match-header {
    direction: ltr !important;
}

.rtl .match-card .match-teams {
    direction: ltr !important;
}

.rtl .match-card .match-tournament {
    direction: ltr !important;
    text-align: left !important;
}

.rtl .match-card .match-status {
    left: auto !important;
    right: 1.1rem !important;
}

.rtl .match-card .match-date {
    text-align: left !important;
}

/* Force LTR for compact match cards in RTL context */
.rtl .compact-match-card {
    direction: ltr !important;
}

.rtl .compact-match-card .compact-match-header {
    direction: ltr !important;
}

.rtl .compact-match-card .compact-match-teams {
    direction: ltr !important;
}

.rtl .compact-match-card .compact-match-tournament {
    direction: ltr !important;
    text-align: left !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .matches-categories-section {
        padding: 2rem 0 !important;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .matches-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-options {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .game-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .game-categories-grid.list-view .game-category-card {
        flex-direction: column;
    }
    
    .game-categories-grid.list-view .game-category-header {
        flex: none;
        border-right: none;
        border-bottom: 2px solid var(--primary-green);
    }
    
    .game-categories-grid.list-view .game-matches-container {
        grid-template-columns: 1fr;
    }
    
    .compact-match-teams {
        gap: 0.5rem;
    }
    
    .compact-team-name {
        font-size: 0.8rem;
    }
}

.tournament-card {
    animation: slideInUp 0.6s ease-out;
}

/* Team Logos */
.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.team:hover .team-logo {
    transform: scale(1.1);
}

/* Game Logos */
.game-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 0.75rem;
    background: transparent !important;
}

.game-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent !important;
}

/* Stream Link */
.match-stream {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    text-align: center;
}

.match-stream a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #01BE6E;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(1, 190, 110, 0.1);
    border: 1px solid #01BE6E;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
}

.match-stream a:hover {
    background: #01BE6E;
    color: #000;
    transform: translateY(-2px);
}

.match-stream a i {
    font-size: 1.1em;
}

.match-stream.live a {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-color: #ff4444;
}

.match-stream.live a:hover {
    background: #ff4444;
    color: #fff;
}

/* RTL Support for Team Logos */
.rtl .team-logo {
    margin-left: 0;
    margin-right: 0;
}

.rtl .game-logo {
    margin-right: 0;
    margin-left: 0.75rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-logo {
        width: 32px;
        height: 32px;
    }
    
    .game-logo {
        width: 24px;
        height: 24px;
    }
    
    .match-game {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .match-game img {
        width: 14px;
        height: 14px;
    }
}

/* Background image override for compact match cards */
.compact-match-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.95)), 
                url('/images/matches-bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.compact-match-card > * {
    position: relative;
    z-index: 2;
}

.rtl .match-game {
    right: auto;
    left: 1rem;
}

/* Game Filter Logos */
.game-filter-logos {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.game-filter-logo-btn {
    border: none;
    background: rgba(1, 42, 103, 0.3);
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: relative;
}

.game-filter-logo-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-filter-logo-btn.active {
    opacity: 1;
    box-shadow: 0 4px 16px rgba(1, 190, 110, 0.3);
    outline: 2px solid #01BE6E;
    background: rgba(1, 42, 103, 0.6);
}

.game-filter-logo-btn .filter-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.game-filter-logo-btn.active .filter-text {
    color: #01BE6E;
}

.game-filter-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: transparent !important;
    padding: 0;
    filter: grayscale(1) brightness(0.7);
    transition: filter 0.2s;
}

.game-filter-logo-btn:hover .game-filter-logo-img,
.game-filter-logo-btn.active .game-filter-logo-img {
    filter: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-filter-logos {
        gap: 6px;
    }
    
    .game-filter-logo-btn {
        width: 45px;
        height: 45px;
    }
    
    .game-filter-logo-img {
        width: 44px;
        height: 44px;
        background: transparent !important;
        padding: 0;
    }
}

/* Matches Date Group Styling */
.matches-date-group {
    margin-bottom: 2rem;
}

.matches-date-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(1, 190, 110, 0.1), rgba(1, 42, 103, 0.1));
    border: 1px solid rgba(1, 190, 110, 0.2);
    border-radius: 16px;
    position: relative;
}

.matches-date-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(to bottom, #01BE6E, #012A67);
    border-radius: 2px;
}

.matches-date-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #01BE6E;
    margin: 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.matches-count {
    background: rgba(1, 190, 110, 0.2);
    color: #01BE6E;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(1, 190, 110, 0.3);
}

.matches-date-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Timeline Integration for Matches */
.matches-page {
    background-color: var(--timeline-bg, #122126);
    min-height: auto;
    color: var(--timeline-text, #ffffff);
}

/* Ensure main content and page header work properly */
.main-content {
    min-height: auto !important;
    height: auto !important;
}

.page-header {
    min-height: auto !important;
    height: auto !important;
    padding: 2rem 0 !important;
}

.page-header-content {
    min-height: auto !important;
    height: auto !important;
}

/* Ultra-strong header overrides to fix full-screen issue */
.matches-page .page-header,
body.matches-page .page-header,
html body.matches-page .page-header {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    padding: 2rem 0 !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.matches-page .page-header-content,
body.matches-page .page-header-content,
html body.matches-page .page-header-content {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.matches-page .page-title,
body.matches-page .page-title,
html body.matches-page .page-title {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-align: center !important;
}

/* Light theme filter dropdown text fix */
[data-theme="light"] .filter-dropdown,
[data-theme="light"] .status-filter .filter-option,
[data-theme="light"] .date-filter select {
    color: #0a0a0a !important;
    background: #fff !important;
}

[data-theme="light"] .filter-option {
    color: #0a0a0a !important;
}

[data-theme="light"] .filter-option:hover {
    background: rgba(1, 190, 110, 0.1) !important;
}

.matches-page .page-subtitle,
body.matches-page .page-subtitle,
html body.matches-page .page-subtitle {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    margin: 0.5rem 0 0 0 !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    color: var(--sea-color) !important;
}

/* Matches-specific timeline styling */
.matches-timeline-section .timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Match-specific event card styling */
.matches-timeline-section .event-card.live-event {
    border-left: 4px solid #ff4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.05), var(--timeline-card));
}

.matches-timeline-section .event-card.upcoming-event {
    border-left: 4px solid var(--timeline-accent);
}

.matches-timeline-section .event-card.past-event {
    border-left: 4px solid #666;
    opacity: 0.85;
}

/* Live match specific styling */
.matches-timeline-section .event-type-badge:contains("LIVE") {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    color: #ff4444;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
    }
}

/* Falcons team highlighting */
.matches-timeline-section .attendance-info strong {
    color: #01BE6E;
    font-weight: 700;
}

/* Stream link styling */
.matches-timeline-section .event-notes a {
    color: var(--timeline-accent) !important;
    text-decoration: none;
    font-weight: 600;
}

.matches-timeline-section .event-notes a:hover {
    text-decoration: underline;
}

/* Game filter integration with timeline theme */
.matches-filters-section {
    background: var(--timeline-bg);
    color: var(--timeline-text);
}

.matches-filters-section .filter-group label {
    color: var(--timeline-text);
}

.matches-filters-section .filter-group select {
    background: var(--timeline-card);
    color: var(--timeline-text);
    border: 1px solid var(--timeline-border);
}

/* Live matches section integration */
.live-matches-section {
    background: var(--timeline-bg);
    color: var(--timeline-text);
}

.live-matches-section .section-title {
    color: var(--timeline-header);
}

/* Fix: Ensure event cards are visible in matches page */
.matches-timeline-section .event-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* GO GREEN borders for non-EWC match cards */
.event-card:not(.ewc-match-card) {
    border: 2px solid #01BE6E;
    box-shadow: 0 4px 16px rgba(1, 190, 110, 0.15);
}

.event-card:not(.ewc-match-card):hover {
    border-color: #01BE6E;
    box-shadow: 0 8px 24px rgba(1, 190, 110, 0.25);
}

/* EWC Match Card Styling - Bronze Theme */
.event-card.ewc-match-card {
    border: 2px solid #bd9b5c;
    background: linear-gradient(135deg, 
        rgba(189, 155, 92, 0.05) 0%, 
        rgba(189, 155, 92, 0.02) 50%, 
        rgba(189, 155, 92, 0.05) 100%);
    box-shadow: 
        0 4px 15px rgba(189, 155, 92, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    position: relative;
}

.event-card.ewc-match-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 25px rgba(189, 155, 92, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.4);
    border-color: #bd9b5c;
}

.event-card.ewc-match-card::before {
    content: "EWC";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #bd9b5c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    z-index: 2;
}

.event-card.ewc-match-card .event-type-badge {
    background: linear-gradient(135deg, #bd9b5c, #a0855c);
    color: white;
    border: none;
}

.event-card.ewc-match-card .event-title {
    color: #bd9b5c;
    font-weight: 600;
}

.event-card.ewc-match-card .attendance-info strong {
    color: #bd9b5c;
}

.event-card.ewc-match-card .event-notes a {
    color: #bd9b5c;
    text-decoration: none;
    font-weight: 500;
}

.event-card.ewc-match-card .event-notes a:hover {
    color: #a0855c;
    text-decoration: underline;
}

/* EWC Match Cards in different layout views */
.matches-date-group .event-card.ewc-match-card {
    order: -1; /* Show EWC matches first in each date group */
}

/* Matches Cards Grid Layout */
.matches-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

@media (max-width: 768px) {
    .matches-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .matches-cards-grid {
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .event-card.ewc-match-card::before {
        top: 6px;
        right: 6px;
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .event-card.ewc-match-card {
        transform: translateY(-1px);
    }
    
    .event-card.ewc-match-card:hover {
        transform: translateY(-2px);
    }
}

/* Calendar View Styles */
.calendar-view {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.calendar-nav-btn {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    border-color: #01BE6E;
    background: rgba(1, 190, 110, 0.1);
}

.calendar-today-btn {
    background: #01BE6E;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #122126;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-today-btn:hover {
    background: #00a85e;
    transform: translateY(-1px);
}

.calendar-grid {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.calendar-weekdays > div {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px 8px 0 0;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    min-height: 100px;
    padding: 0.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: rgba(1, 190, 110, 0.05);
    border-color: rgba(1, 190, 110, 0.3);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background: rgba(1, 190, 110, 0.1);
    border-color: #01BE6E;
}

.calendar-day-number {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.calendar-event {
    font-size: 0.65rem;
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.2;
}

.calendar-event.match-event {
    background: rgba(1, 190, 110, 0.8);
    color: #ffffff;
    font-weight: 500;
}

.calendar-event.live-match {
    background: rgba(255, 68, 68, 0.8);
    color: #ff6b6b;
    animation: livePulse 2s infinite;
}

.calendar-event:hover {
    transform: scale(1.05);
}

/* ===== THEME OVERRIDES FOR CALENDAR ===== */

/* Calendar View Theme Support */
[data-theme="light"] .calendar-view {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .calendar-view {
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Calendar Header Theme Support */
[data-theme="light"] .calendar-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .calendar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Calendar Title Theme Support */
[data-theme="light"] .calendar-title {
    color: #122126 !important;
}

[data-theme="dark"] .calendar-title {
    color: #ffffff !important;
}

/* Calendar Navigation Buttons Theme Support */
[data-theme="light"] .calendar-nav-btn {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #122126 !important;
}

[data-theme="light"] .calendar-nav-btn:hover {
    background: rgba(1, 190, 110, 0.1);
    border-color: #01BE6E;
    color: #122126 !important;
}

[data-theme="dark"] .calendar-nav-btn {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

[data-theme="dark"] .calendar-nav-btn:hover {
    background: rgba(1, 190, 110, 0.2);
    border-color: #01BE6E;
    color: #ffffff !important;
}

/* Calendar Today Button Theme Support */
[data-theme="light"] .calendar-today-btn {
    background: #01BE6E;
    color: #ffffff !important;
}

[data-theme="dark"] .calendar-today-btn {
    background: #01BE6E;
    color: #ffffff !important;
}

/* Calendar Weekdays Theme Support */
[data-theme="light"] .calendar-weekdays > div {
    background: rgba(0, 0, 0, 0.05);
    color: #122126 !important;
}

[data-theme="dark"] .calendar-weekdays > div {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
}

/* Calendar Day Theme Support */
[data-theme="light"] .calendar-day {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .calendar-day:hover {
    background: rgba(1, 190, 110, 0.05);
    border-color: rgba(1, 190, 110, 0.3);
}

[data-theme="light"] .calendar-day.today {
    background: rgba(1, 190, 110, 0.1);
    border-color: #01BE6E;
}

[data-theme="dark"] .calendar-day {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .calendar-day:hover {
    background: rgba(1, 190, 110, 0.1);
    border-color: rgba(1, 190, 110, 0.3);
}

[data-theme="dark"] .calendar-day.today {
    background: rgba(1, 190, 110, 0.15);
    border-color: #01BE6E;
}

/* Calendar Day Number Theme Support */
[data-theme="light"] .calendar-day-number {
    color: #122126 !important;
}

[data-theme="dark"] .calendar-day-number {
    color: #ffffff !important;
}

/* Calendar Events Theme Support */
[data-theme="light"] .calendar-event.match-event {
    background: rgba(1, 190, 110, 0.9) !important;
    color: #ffffff !important;
}

[data-theme="light"] .calendar-event.live-match {
    background: rgba(255, 68, 68, 0.9) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .calendar-event.match-event {
    background: rgba(1, 190, 110, 0.8) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .calendar-event.live-match {
    background: rgba(255, 68, 68, 0.8) !important;
    color: #ff6b6b !important;
}

/* ===== EVENT POPUP MODAL STYLES ===== */

.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-modal.show {
    opacity: 1;
}

.event-modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.event-modal.show .event-modal-content {
    transform: scale(1);
}

.event-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.event-modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.event-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #01BE6E;
}

.event-modal-body {
    padding: 24px;
}

.event-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Match Popup Content */
.event-popup-match {
    text-align: center;
}

.event-popup-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.event-popup-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.event-popup-team img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(1, 190, 110, 0.3);
}

.event-popup-team h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.event-popup-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.event-popup-vs span {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.live-indicator {
    color: #ff0000;
    font-weight: bold;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

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

.event-popup-details {
    text-align: left;
}

.event-popup-info p {
    margin: 8px 0;
    color: var(--text-color);
    line-height: 1.5;
}

.event-popup-info strong {
    color: #01BE6E;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #01BE6E;
    color: white;
}

.btn-primary:hover {
    background: #00a05c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Theme support for modal */
[data-theme="light"] .event-modal-content {
    background: #ffffff;
    color: #122126;
}

[data-theme="light"] .event-modal-header,
[data-theme="light"] .event-modal-footer {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .event-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .event-modal-content {
    background: #1a1a1a;
    color: #ffffff;
}

[data-theme="dark"] .event-modal-header,
[data-theme="dark"] .event-modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .event-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Calendar Styles */
.mobile-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 1rem;
}

.mobile-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-calendar-day:hover {
    background: rgba(1, 190, 110, 0.1);
    border-color: rgba(1, 190, 110, 0.3);
}

.mobile-calendar-day.today {
    background: rgba(1, 190, 110, 0.2);
    border-color: #01BE6E;
}

.mobile-calendar-day.has-events {
    background: rgba(1, 190, 110, 0.1);
}

.mobile-day-number {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.mobile-day-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.7rem;
}

.mobile-day-events {
    padding: 1rem;
}

.mobile-back-btn {
    background: #01BE6E;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #122126;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.mobile-back-btn:hover {
    background: #00a85e;
}

.mobile-event-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.mobile-event-card:hover {
    border-color: rgba(1, 190, 110, 0.3);
    transform: translateY(-2px);
}

.mobile-event-card.live-match {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.mobile-event-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.mobile-event-icon {
    font-size: 1.2rem;
}

.mobile-event-info {
    flex: 1;
}

.mobile-event-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
}

.mobile-event-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-event-tournament {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
}

.mobile-event-stream {
    font-size: 0.8rem;
    color: #01BE6E;
    font-weight: 500;
}

.mobile-no-events {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-view {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .calendar-title {
        text-align: center;
    }
    
    .calendar-nav-btn,
    .calendar-today-btn {
        flex: 1;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
    
    .calendar-day-number {
        font-size: 0.8rem;
    }
    
    .calendar-event {
        font-size: 0.6rem;
        padding: 3px 4px;
        word-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Ensure all sections are visible on mobile */
    .live-matches-section,
    .matches-filters-section,
    .view-toggle-section,
    .matches-timeline-section {
        display: block !important;
    }
    
    .timeline-view,
    .calendar-view {
        display: none;
    }
    
    .timeline-view.active,
    .calendar-view.active {
        display: block;
    }
}

/* Game Filter Styles - Multi-select Dropdown */
.game-filter-container {
    position: relative;
}

.game-filter-display {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-width: 200px;
}

.game-filter-display:hover {
    border-color: #01BE6E;
    box-shadow: 0 0 0 2px rgba(1, 190, 110, 0.1);
}

.game-filter-display i {
    transition: transform 0.3s ease;
}

.game-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}

.game-filter-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.game-filter-option {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-filter-option:last-child {
    border-bottom: none;
}

.game-filter-option:hover {
    background: rgba(1, 190, 110, 0.1);
}

.game-filter-option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #01BE6E;
}

.game-filter-option label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.game-filter-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.game-filter-option:hover .game-filter-logo-img {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.game-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* RTL Support for Game Filter */
.rtl .game-filter-display {
    flex-direction: row-reverse;
}

.rtl .game-filter-option label {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .game-filter-display {
        min-width: 180px;
        padding: 0.6rem 0.8rem;
    }
    
    .game-filter-dropdown {
        max-height: 300px;
    }
    
    .game-filter-option {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }
    
    .game-filter-logo-img {
        width: 20px;
        height: 20px;
    }
    
    .game-name {
        font-size: 0.85rem;
    }
    
    .filter-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .game-filter-display {
        min-width: 160px;
        padding: 0.5rem 0.7rem;
    }
    
    .game-filter-option {
        padding: 0.5rem 0.7rem;
    }
    
    .game-filter-logo-img {
        width: 18px;
        height: 18px;
    }
}

/* Enhanced Live Matches Section */
.no-live-matches {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.no-live-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-live-matches h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-live-matches p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.next-match-info {
    background: linear-gradient(135deg, rgba(1, 190, 110, 0.1), rgba(1, 190, 110, 0.05));
    border: 1px solid rgba(1, 190, 110, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.next-match-info h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.next-match-game {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.next-match-teams {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.next-match-time {
    color: var(--primary-green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error {
    text-align: center;
    padding: 2rem;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    color: #dc3545;
}

.error i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.error h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.error p {
    opacity: 0.8;
}

/* Game Filter Section Styles */
.game-filter-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Visual Game Filter Buttons */
.filter-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: block;
}

.game-filter-logos {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Mobile responsive for enhanced live matches */
@media (max-width: 768px) {
    .next-match-details {
        gap: 0.5rem;
    }
    
    .next-match-game {
        font-size: 0.9rem;
    }
    
    .next-match-teams {
        font-size: 1rem;
    }
    
    .next-match-time {
        font-size: 0.9rem;
    }
}

/* Calendar View Styles */
.calendar-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.calendar-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.calendar-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: var(--primary-green);
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: var(--surface-color);
    min-height: 80px;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.calendar-day:hover {
    background: var(--hover-color);
    transform: scale(1.02);
}

.calendar-day.empty {
    background: var(--background-secondary);
    cursor: default;
}

.calendar-day.empty:hover {
    transform: none;
}

.calendar-day.today {
    background: rgba(1, 190, 110, 0.1);
    border: 2px solid var(--primary-green);
}

.calendar-day.has-matches {
    background: rgba(1, 190, 110, 0.05);
}

.calendar-day.has-matches:hover {
    background: rgba(1, 190, 110, 0.15);
}

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

.match-indicator {
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    box-shadow: 0 0 4px rgba(1, 190, 110, 0.5);
}

/* Modal Styles */
.matches-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}

.modal-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--hover-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.day-matches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mobile responsive for calendar */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
    
    .calendar-day-header {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .match-indicator {
        width: 4px;
        height: 4px;
        top: 0.25rem;
        right: 0.25rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* Matches Tape Styles */
.matches-tape {
    position: relative;
    overflow: visible;
    width: 100%;
    padding: 1rem 0 2rem 0;
}

.matches-tape-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    padding-bottom: 2rem;
}

.matches-tape-scroll {
    display: flex;
    gap: 2rem;
    transition: transform 0.3s ease;
    cursor: grab;
    user-select: none;
}

.matches-tape-scroll:active {
    cursor: grabbing;
}

/* Infinite scroll animation */
.matches-tape.scrolling .matches-tape-scroll {
    animation: scrollTape 120s linear infinite;
}

@keyframes scrollTape {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.matches-tape.scrolling:hover .matches-tape-scroll {
    animation-play-state: paused;
}

/* User drag controls */
.matches-tape.dragging .matches-tape-scroll {
    animation: none !important;
    transition: none;
}

/* Ensure smooth transition back to animation */
.matches-tape:not(.dragging) .matches-tape-scroll {
    transition: transform 0.3s ease-out;
}

/* Match card styles for tape */
.matches-tape .match-card {
    flex: 0 0 408px;
    min-width: 408px;
    min-height: 384px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.matches-tape .match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #01BE6E, #012A67);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.matches-tape .match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(1, 190, 110, 0.3);
    z-index: 20;
}

.matches-tape .match-card:hover::before {
    opacity: 1;
}

.matches-tape .match-card.live {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

.matches-tape .match-card.live::before {
    background: linear-gradient(90deg, #ff4444, #ff6666);
    opacity: 1;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .matches-tape .match-card {
        flex: 0 0 360px;
        min-width: 360px;
        min-height: 360px;
        padding: 1.4rem;
    }
    
    .matches-tape-scroll {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .matches-tape .match-card {
        flex: 0 0 336px;
        min-width: 336px;
        min-height: 350px;
        padding: 1.2rem;
    }
}

/* Game Icons Filter */
.game-icons-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    row-gap: 0.4rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    min-height: auto;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.matches-filters .game-icons-filter {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.game-icon-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 58px;
    min-height: 58px;
    position: relative;
}

.game-icon-filter:hover {
    border-color: #01BE6E;
    background: rgba(1, 190, 110, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 190, 110, 0.2);
}

.game-icon-filter.active {
    border-color: #01BE6E;
    background: rgba(1, 190, 110, 0.2);
    box-shadow: 0 0 0 2px rgba(1, 190, 110, 0.3);
}

.game-icon-filter img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.game-icon-filter span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    line-height: 1;
}

.game-icon-filter.active span { color: #01BE6E; }
.game-icon-filter[data-game="all"] span { color: #01BE6E; }

/* Mobile responsive for game icons */
@media (max-width: 768px) {
    .game-icons-filter {
        gap: 0.5rem;
        padding: 0;
        min-height: auto;
        justify-content: center;
    }
    
    .game-icon-filter {
        min-width: 48px;
        min-height: 48px;
        padding: 0.2rem;
    }
    
    .game-icon-filter img {
        width: 24px;
        height: 24px;
    }
    
    .game-icon-filter span {
        font-size: 0.6rem;
    }
    
    /* Fix container causing full-screen sections */
    .container {
        max-width: 1200px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Fix page header container specifically */
    .page-header .container,
    .matches-page .page-header .container {
        max-width: 1200px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        position: relative !important;
    }
    
    /* Ensure all sections are content-driven */
    .live-matches-section .container,
    .matches-filters-section .container,
    .matches-timeline-section .container {
        min-height: auto !important;
        height: auto !important;
        padding: 0 1rem !important;
    }
    
    /* Ultra-strong mobile header fixes */
    .matches-page .page-header,
    body.matches-page .page-header,
    html body.matches-page .page-header {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        padding: 1.5rem 0 !important;
        background-size: cover !important;
        background-position: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .matches-page .page-header-content,
    body.matches-page .page-header-content,
    html body.matches-page .page-header-content {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        padding: 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    .matches-page .page-title,
    body.matches-page .page-title,
    html body.matches-page .page-title {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 2rem !important;
        font-weight: 700 !important;
        color: #01BE6E !important;
    }
    
    .matches-page .page-subtitle,
    body.matches-page .page-subtitle,
    html body.matches-page .page-subtitle {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        margin: 0.5rem 0 0 0 !important;
        padding: 0 !important;
        font-size: 1rem !important;
        color: var(--sea-color) !important;
    }
}

@media (min-width: 1024px) {
    .matches-filters .game-icons-filter {
        justify-content: flex-start;
    }
}

/* Mobile Navigation Positioning Fix */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    background: linear-gradient(135deg, #0A1014 0%, #122126 100%) !important;
    border-top: 2px solid #01BE6E !important;
    padding: 8px 0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 60px !important;
}

/* Force mobile navigation to be visible on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1001 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        width: 100vw !important;
        height: auto !important;
        min-height: 60px !important;
    }
}

.mobile-nav-container {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    overflow: visible !important;
    position: relative !important;
}

.mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #ccc !important;
    transition: all 0.3s ease !important;
    padding: 8px 4px !important;
    border-radius: 12px !important;
    min-width: 50px !important;
    position: relative !important;
    flex: 1 !important;
    max-width: 70px !important;
}

.mobile-nav-item.active {
    color: #01BE6E !important;
    background: rgba(1, 190, 110, 0.1) !important;
    transform: translateY(-2px) !important;
}

.mobile-nav-item:hover {
    color: #01BE6E !important;
    transform: translateY(-2px) !important;
}

.mobile-nav-item i {
    font-size: 1.2rem !important;
    margin-bottom: 4px !important;
}

.mobile-nav-item span {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* Mobile Navigation More Dropdown Styles */
.mobile-nav-more {
    position: relative;
    flex: 1;
    max-width: 70px;
}

.more-btn {
    background: none;
    border: none;
    width: 100%;
    height: 100%;
}

.more-btn.active {
    color: #01BE6E;
    background: rgba(1, 190, 110, 0.1);
    transform: translateY(-2px);
}

.more-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0A1014 0%, #122126 100%);
    border: 1px solid rgba(1, 190, 110, 0.3);
    border-radius: 12px;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 90vw;
    margin-bottom: 8px;
    overflow: hidden;
}

.more-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.more-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(1, 190, 110, 0.3);
}

.more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.more-item:hover {
    background: rgba(1, 190, 110, 0.1);
    color: #01BE6E;
    transform: translateX(5px);
}

.more-item i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.more-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile responsive adjustments for more dropdown */
@media (max-width: 480px) {
    .more-dropdown {
        min-width: 180px;
        max-width: 85vw;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        right: auto;
    }
    
    .more-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .more-dropdown::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .more-item {
        padding: 10px 14px;
        gap: 10px;
    }
    
    .more-item i {
        font-size: 0.9rem;
    }
    
    .more-item span {
        font-size: 0.85rem;
    }
}

/* ===== LIGHT THEME MATCH CARD FIXES ===== */
/* Fix match card visibility in light theme */
[data-theme="light"] .match-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
}

[data-theme="light"] .match-card .team-name {
    color: #333333 !important;
}

[data-theme="light"] .match-card .match-vs {
    color: #01BE6E !important;
}

[data-theme="light"] .match-card .match-tournament {
    color: #666666 !important;
}

[data-theme="light"] .match-card .match-date {
    color: #01BE6E !important;
}

[data-theme="light"] .match-card .match-game {
    color: #333333 !important;
    background: rgba(1, 190, 110, 0.1) !important;
}

[data-theme="light"] .match-card .match-status {
    color: #333333 !important;
}

[data-theme="light"] .match-card .match-stream a {
    color: #01BE6E !important;
}

[data-theme="light"] .match-card .match-format {
    color: #666666 !important;
}

/* ===== LIGHT THEME LIVE SECTION FIXES ===== */
/* Fix live section text colors in light theme */
[data-theme="light"] .live-match-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
}

[data-theme="light"] .live-match-card .live-team-name {
    color: #333333 !important;
}

/* Ensure nickname/name in live cards are readable in light theme */
[data-theme="light"] .live-match-card .live-opponent,
[data-theme="light"] .live-match-card .live-team .team-name {
    color: #333333 !important;
}
[data-theme="light"] .live-match-card .live-match-vs {
    color: #01BE6E !important;
}

[data-theme="light"] .live-match-card .live-tournament {
    color: #666666 !important;
}

[data-theme="light"] .live-match-card .live-time {
    color: #666666 !important;
}

[data-theme="light"] .live-match-card .live-format {
    color: #666666 !important;
}

[data-theme="light"] .live-match-card .stream-link {
    color: #01BE6E !important;
}

/* Keep Team Falcons in green even in light theme */
[data-theme="light"] .live-match-card .live-team.falcons .live-team-name {
    color: #01BE6E !important;
}

[data-theme="light"] .live-match-card .live-game {
    color: #333333 !important;
}

[data-theme="light"] .live-match-card .live-opponent {
    color: #333333 !important;
}

/* Fix game name and opponent text in light theme for all match cards */
[data-theme="light"] .event-card .event-title {
    color: #333333 !important;
}

[data-theme="light"] .event-card .detail-item span {
    color: #333333 !important;
}

[data-theme="light"] .event-card .attendance-info {
    color: #333333 !important;
}

[data-theme="light"] .event-card .attendance-info strong {
    color: #01BE6E !important;
}

/* Fix live-stats text color in light theme */
[data-theme="light"] .live-stats {
    color: #333333 !important;
}

[data-theme="light"] .live-stats .number {
    color: #01BE6E !important;
}

/* ===== GAME FILTER "ALL" BUTTON FIX ===== */
/* Fix "All" button text color in light theme */
[data-theme="light"] .filter-logo-btn {
    color: #333333 !important;
}

[data-theme="light"] .filter-logo-btn.active {
    color: #01BE6E !important;
    background: rgba(1, 190, 110, 0.1) !important;
}
/* Ensure "All" text is green even when just selected (both themes) */
.filter-logo-btn[data-game="all"].active .filter-text { color: #01BE6E !important; }
.filter-logo-btn[data-game="all"] .filter-text { color: #01BE6E !important; }

/* ===== FINAL OVERRIDES - Light Theme Dropdown Fixes ===== */
[data-theme="light"] .filter-dropdown {
    background: #ffffff !important;
    color: #0a0a0a !important;
    border: 1px solid #ddd !important;
}

[data-theme="light"] .filter-option {
    color: #0a0a0a !important;
    background: #ffffff !important;
}

[data-theme="light"] .filter-option:hover {
    background: rgba(1, 190, 110, 0.1) !important;
    color: #0a0a0a !important;
}

[data-theme="light"] .status-filter select,
[data-theme="light"] .date-filter select,
[data-theme="light"] select {
    color: #0a0a0a !important;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
}

[data-theme="light"] .status-filter .filter-btn,
[data-theme="light"] .date-filter .filter-btn {
    color: #0a0a0a !important;
    background: #ffffff !important;
}

/* Mobile sticky scroll to matches */
/* Scroll to matches button - visible on both desktop and mobile */
.scroll-to-matches-btn {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1200;
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(1, 190, 110, 0.7);
    border-radius: 12px;
    background: rgba(18, 33, 38, 0.9);
    backdrop-filter: blur(10px);
    color: #01BE6E;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(1, 190, 110, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.scroll-to-matches-btn:hover {
    background: rgba(1, 190, 110, 0.15);
    border-color: #01BE6E;
    box-shadow: 0 12px 30px rgba(1, 190, 110, 0.45);
    transform: translateY(-2px);
}

.scroll-to-matches-btn:active {
    transform: translateY(0);
}

.scroll-to-matches-btn i {
    font-size: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-matches-btn {
        left: 50%;
        transform: translateX(-50%);
        bottom: 5.2rem;
        padding: 0.55rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .scroll-to-matches-btn:hover {
        transform: translateX(-50%) translateY(-2px);
    }
    
    .scroll-to-matches-btn:active {
        transform: translateX(-50%) translateY(0);
    }
    
    .scroll-to-matches-btn i {
        font-size: 0.85rem;
    }
}
