.matches-header {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 3rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    animation: headerSlideIn 0.8s ease-out;
}

@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.matches-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: backgroundFloat 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-10px, -10px) rotate(120deg); }
    66% { transform: translate(10px, -5px) rotate(240deg); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.header-content h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--karmine-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.header-content h2::before {
    content: '⚔️';
    font-size: 2rem;
    background: none;
    -webkit-text-fill-color: initial;
    animation: swordGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

@keyframes swordGlow {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.header-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--karmine-gradient);
    border-radius: 2px;
    animation: underlineExpand 2s ease-in-out infinite alternate;
}

@keyframes underlineExpand {
    0% { width: 60px; opacity: 0.7; }
    100% { width: 120px; opacity: 1; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.matches-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.matches-counter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--karmine-gradient);
    opacity: 0.05;
    border-radius: var(--radius-lg);
}

.matches-counter::after {
    content: '📊';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.2rem;
    animation: statsFloat 3s ease-in-out infinite;
}

@keyframes statsFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-3px, -3px) rotate(15deg); }
}

.counter-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--karmine-blue);
    line-height: 1;
    position: relative;
    z-index: 2;
}

.counter-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 0.25rem;
    position: relative;
    z-index: 2;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--karmine-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.refresh-btn::before {
    content: '🔄';
    font-size: 1.1rem;
    animation: refreshSpin 2s linear infinite paused;
}

.refresh-btn:hover::before {
    animation-play-state: running;
}

.refresh-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.refresh-btn:hover::after {
    transform: translateX(100%);
}

@keyframes refreshSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refresh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.filters-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-group label {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-left: 1.5rem;
}

.filter-group label::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--karmine-blue);
    font-size: 0.8rem;
    animation: labelPulse 2s ease-in-out infinite;
}

@keyframes labelPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn, .game-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.filter-btn::before, .game-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--karmine-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-full);
}

.filter-btn.active, .game-btn.active {
    background: var(--karmine-gradient);
    color: white;
    border-color: var(--karmine-blue);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.filter-btn.active::before, .game-btn.active::before {
    opacity: 0;
}

.filter-btn:hover, .game-btn:hover {
    background: var(--dark-tertiary);
    border-color: var(--karmine-blue);
    transform: translateY(-2px);
    color: var(--karmine-blue);
}

.filter-btn.active:hover, .game-btn.active:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.badge {
    background: var(--accent-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    min-width: 24px;
    text-align: center;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.match-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-normal);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--karmine-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.match-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--karmine-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-xl);
}

.match-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--karmine-blue);
}

.match-card:hover::before {
    transform: scaleX(1);
}

.match-card:hover::after {
    opacity: 0.05;
}

.match-card.live {
    border-color: var(--accent-red);
    animation: liveCardGlow 2s ease-in-out infinite alternate;
}

.match-card.live::before {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    transform: scaleX(1);
}

@keyframes liveCardGlow {
    0% {
        box-shadow: 0 8px 32px rgba(255, 71, 87, 0.3);
    }
    100% {
        box-shadow: 0 16px 48px rgba(255, 71, 87, 0.6);
    }
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.match-game {
    background: var(--karmine-gradient);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.match-status {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--dark-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    letter-spacing: 0.05em;
}

.match-status.live {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
    animation: statusPulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.match-status.upcoming {
    background: var(--karmine-gradient);
    color: white;
    border-color: var(--karmine-blue);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.match-status.finished {
    background: var(--text-muted);
    color: white;
    border-color: var(--text-muted);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.team {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    transition: var(--transition-normal);
}

.team:hover {
    transform: translateX(5px);
}

.team-right {
    flex-direction: row-reverse;
    text-align: right;
}

.team-right:hover {
    transform: translateX(-5px);
}

.team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--karmine-blue);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.team-logo:hover {
    border-color: var(--karmine-light);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.team-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dark-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    border: 3px solid var(--border-color);
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.team-logo-placeholder:hover {
    border-color: var(--karmine-blue);
    color: var(--karmine-blue);
    transform: scale(1.1);
}

.team-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.karmine-team {
    background: var(--karmine-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.vs-separator {
    margin: 0 2rem;
    text-align: center;
}

.vs-text {
    color: var(--text-secondary);
    font-weight: 900;
    font-size: 1.5rem;
    animation: vsGlow 3s ease-in-out infinite alternate;
}

@keyframes vsGlow {
    0% {
        color: var(--text-muted);
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }
    100% {
        color: var(--karmine-blue);
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

.match-details {
    margin: 1.5rem 0;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.tournament-info {
    margin-bottom: 0.75rem;
}

.tournament-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tournament-name::before {
    content: '🏆';
    font-size: 1.1rem;
    animation: trophySpin 3s linear infinite;
}

@keyframes trophySpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.match-datetime {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.75rem;
    background: var(--dark-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.date-icon {
    font-size: 1.1rem;
    animation: dateWiggle 3s ease-in-out infinite;
}

@keyframes dateWiggle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-10deg); }
}

.match-actions {
    margin-top: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stream-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stream-btn::before {
    content: '📺';
    font-size: 1.1rem;
}

.stream-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.stream-btn:hover::after {
    transform: translateX(100%);
}

.stream-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
}

.team-score-large {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 80px;
}

.score-live {
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    color: white;
    animation: scorePulse 2s infinite;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.4);
}

.score-finished {
    background: var(--text-muted);
    color: white;
}

@keyframes scorePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.team-score-small {
    font-size: 1.5rem;
    font-weight: 900;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    min-width: 3rem;
    text-align: center;
    background: var(--dark-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.match-live {
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.4);
}

.live-indicator {
    background: var(--accent-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    animation: liveIndicatorPulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes liveIndicatorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.countdown-live {
    color: var(--accent-red);
    animation: countdownPulse 2s infinite;
    font-weight: 700;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.match-card.priority {
    border-color: var(--karmine-blue);
    background: linear-gradient(135deg, var(--glass-bg), rgba(0, 212, 255, 0.05));
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.match-card.priority::before {
    transform: scaleX(1);
}

.match-card.priority .match-game {
    background: var(--karmine-light);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.loading, .error-message, .no-matches {
    text-align: center;
    padding: 3rem;
    color: var(--text-primary);
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color);
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '⏳';
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: loadingBounce 2s ease-in-out infinite;
}

@keyframes loadingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--karmine-blue);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: var(--accent-red);
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--accent-red);
}

.error-message::before {
    content: '⚠️';
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: errorShake 2s ease-in-out infinite;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.no-matches::before {
    content: '📅';
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
    animation: sadCalendar 3s ease-in-out infinite;
}

@keyframes sadCalendar {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-10deg); }
}

.retry-btn {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: var(--karmine-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.retry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.team-score-large {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 80px;
}

.score-live {
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    color: white;
    animation: scorePulse 2s infinite;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.4);
}

.score-finished {
    background: var(--text-muted);
    color: white;
}

@keyframes scorePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.team-score-small {
    font-size: 1.5rem;
    font-weight: 900;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    min-width: 3rem;
    text-align: center;
    background: var(--dark-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.match-live {
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.4);
}

.live-indicator {
    background: var(--accent-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    animation: liveIndicatorPulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes liveIndicatorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.countdown-live {
    color: var(--accent-red);
    animation: countdownPulse 2s infinite;
    font-weight: 700;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.match-card.priority {
    border-color: var(--karmine-blue);
    background: linear-gradient(135deg, var(--glass-bg), rgba(0, 212, 255, 0.05));
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.match-card.priority::before {
    transform: scaleX(1);
}

.match-card.priority .match-game {
    background: var(--karmine-light);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-card {
    animation: fadeInUp 0.8s ease-out forwards;
}

.match-card:nth-child(1) { animation-delay: 0.1s; }
.match-card:nth-child(2) { animation-delay: 0.2s; }
.match-card:nth-child(3) { animation-delay: 0.3s; }
.match-card:nth-child(4) { animation-delay: 0.4s; }
.match-card:nth-child(5) { animation-delay: 0.5s; }
.match-card:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 1024px) {
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 1.5rem;
    }

    .matches-header {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .header-content h2 {
        font-size: 2rem;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filters-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .match-teams {
        flex-direction: column;
        gap: 1.5rem;
    }

    .team-right {
        flex-direction: row;
    }

    .vs-separator {
        margin: 1rem 0;
    }

    .matches-header {
        padding: 1.5rem;
    }

    .match-card {
        padding: 1.5rem;
    }

    .team-logo, .team-logo-placeholder {
        width: 50px;
        height: 50px;
    }
}

.team.winner {
    background-color: #d4edda;
    border: 2px solid #28a745;
    border-radius: 5px;
    padding: 5px;
    font-weight: bold;
}

.team.winner .team-name {
    color: #155724;
}

@media (max-width: 480px) {
    .matches-header {
        padding: 1.25rem;
    }

    .header-content h2 {
        font-size: 1.75rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    .match-card {
        padding: 1.25rem;
    }

    .team-logo, .team-logo-placeholder {
        width: 45px;
        height: 45px;
    }

    .vs-text {
        font-size: 1.25rem;
    }

    .team-score-large {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .stream-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .match-card,
    .refresh-btn::before,
    .badge,
    .live-indicator,
    .score-live,
    .vs-text,
    .tournament-name::before,
    .date-icon {
        animation: none;
    }

    .match-card:hover,
    .team:hover,
    .team-logo:hover {
        transform: none;
    }
}

.match-scores {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    gap: 1rem;
}

.team-score {
    background: var(--dark-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    min-width: 50px;
    text-align: center;
    transition: all var(--transition-normal);
}

.team-score.winner {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transform: scale(1.1);
    position: relative;
}

.team-score.winner::after {
    content: '🏆';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 1.2rem;
    animation: winnerTrophy 1.5s ease-in-out infinite;
}

@keyframes winnerTrophy {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 1; }
    50% { transform: rotate(10deg) scale(1.2); opacity: 0.8; }
}

.match-teams .team {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.match-teams .team-name {
    order: 1;
}

.match-teams .team-logo,
.match-teams .team-logo-placeholder {
    order: 2;
}

.match-teams .team-score {
    order: 3;
    margin-top: 0.5rem;
}

.team.winner {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.3), rgba(33, 136, 56, 0.1));
    border: 2px solid #28a745;
    border-radius: var(--radius-md);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    animation: winnerGlow 2s ease-in-out infinite alternate;
}

.team.winner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.2), transparent);
    opacity: 0.5;
    z-index: -1;
}

.team.winner .team-name {
    color: #d1ca23;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes winnerGlow {
    0% { box-shadow: 0 0 10px rgba(234, 224, 10, 0.3); }
    100% { box-shadow: 0 0 20px rgba(40, 167, 69, 0.6); }
}

.match-card.finished .team-score {
    background: var(--text-muted);
    color: white;
}

#league-subfilter-container {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

#league-subfilter-container.visible {
    display: flex;
    animation: subMenuFadeIn 0.5s ease-out;
}

@keyframes subMenuFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#league-subfilter-container label {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-left: 1.5rem;
}

#league-subfilter-container label::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--karmine-blue);
    font-size: 0.8rem;
    animation: labelPulse 2s ease-in-out infinite;
}

.league-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.league-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--karmine-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-full);
}

.league-btn.active {
    background: var(--karmine-gradient);
    color: white;
    border-color: var(--karmine-blue);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.league-btn.active::before {
    opacity: 0;
}

.league-btn:hover {
    background: var(--dark-tertiary);
    border-color: var(--karmine-blue);
    transform: translateY(-2px);
    color: var(--karmine-blue);
}

.league-btn.active:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

#league-subfilter-container .filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    #league-subfilter-container {
        padding: 0.75rem;
    }

    .league-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}
