/* Estilos gerais */
:root {
    --primary-color: #3a7bd5;
    --secondary-color: #00d1b2;
    --success-color: #48c78e;
    --danger-color: #f14668;
    --warning-color: #ffe08a;
    --info-color: #3e8ed0;
    --dark-color: #363636;
    --light-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --border-color: #dbdbdb;
    --border-radius: 10px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHBhdGggZD0iTTAgMGg0MHY0MEgweiIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.1;
    pointer-events: none;
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
}

h2 {
    margin-bottom: 20px;
    color: #2a5298;
    text-align: center;
    font-size: 1.8em;
}

/* Seletor de Liga */
.league-selector {
    margin: 25px auto 0;
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.league-selector label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.league-select {
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233a7bd5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.league-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.league-select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Abas */
.tabs {
    display: inline-flex;
    justify-content: center;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 25px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.tab-btn:hover {
    color: white;
    transform: translateY(-1px);
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tab-btn.active:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ConteÃºdo das abas */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    margin-top: 30px;
    padding: 0 10px;
}

.tab-content.active {
    display: block;
}

/* AnimaÃ§Ãµes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Abas de estatÃ­sticas */
.stats-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.stats-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: 30px;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    font-weight: 500;
    outline: none;
}

.stats-tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(58, 123, 213, 0.1);
}

.stats-tab-btn.active {
    color: white;
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(58, 123, 213, 0.25);
}

.stats-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.stats-tab-content.active {
    display: block;
}

/* EstatÃ­sticas */
.stats-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.stats-container h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ClassificaÃ§Ã£o */
.standings-header {
    margin-bottom: 20px;
    text-align: center;
}

.standings-header h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.standings-table {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.standings-table th,
.standings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.standings-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.standings-table tbody tr:last-child td {
    border-bottom: none;
}

.standings-table tbody tr:hover {
    background-color: #f8f9fa;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.standings-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.legend {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}

.legend.european {
    background-color: rgba(72, 199, 142, 0.2);
    border: 1px solid rgba(72, 199, 142, 0.5);
}

.legend.relegation {
    background-color: rgba(241, 70, 104, 0.2);
    border: 1px solid rgba(241, 70, 104, 0.5);
}

.standings-table tr.european {
    background-color: rgba(72, 199, 142, 0.05);
}

.standings-table tr.relegation {
    background-color: rgba(241, 70, 104, 0.05);
}

/* Artilheiros */
.scorers-header {
    margin-bottom: 20px;
    text-align: center;
}

.scorers-header h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.scorers-list {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.scorers-list table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.scorers-list th,
.scorers-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.scorers-list th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.scorers-list tbody tr:last-child td {
    border-bottom: none;
}

.scorers-list tbody tr:hover {
    background-color: #f8f9fa;
}

.player-cell,
.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Estados de carregamento e mensagens */
.loading,
.error-message,
.no-data {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 20px 0;
    animation: fadeIn 0.3s ease-in-out;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 15px;
}

.error-message {
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.no-data {
    color: var(--text-light);
    border-left: 4px solid var(--text-light);
}

.no-data i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Cards de partidas */
.matches-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
    padding: 10px 0;
}

.match-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.match-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.competition {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.competition::before {
    content: 'âš½';
    font-size: 1.1em;
}

.match-date {
    font-size: 0.8em;
    color: #777;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px 10px;
    border-radius: 20px;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    position: relative;
    padding: 0 10px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    text-align: center;
    transition: var(--transition);
}

.team:hover {
    transform: scale(1.03);
}

.team-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.team-name {
    font-weight: 600;
    font-size: 0.95em;
    color: #333;
    margin-top: 5px;
    line-height: 1.3;
}

.match-score {
    font-size: 2em;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
    color: #333;
    position: relative;
    padding: 0 10px;
}

.match-score::before {
    content: 'Ã—';
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    color: #ccc;
    font-weight: 300;
    pointer-events: none;
}

.match-status {
    text-align: center;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-radius: 50px;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #555;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.match-status.live {
    background-color: #ff4444;
    color: white;
    animation: pulse 1.5s infinite;
    padding-right: 12px;
}

.match-status.live::before {
    content: 'ðŸ”´';
    display: inline-block;
    animation: pulse 1.5s infinite;
}

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

/* Efeito de loading nos cards */
.match-card.loading-state {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Loading spinner */
#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#loading.active {
    opacity: 1;
}

body.loading {
    cursor: wait;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Estilo para o texto de loading */
.loading-text {
    background-color: #f0f0f0;
    color: transparent;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Header fixo ao rolar */
header.scrolled {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 10px 0;
    transition: var(--transition);
}

/* Melhorias na acessibilidade */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Suporte para modo escuro */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f5f5f5;
        --light-color: #1a1a1a;
        --border-color: #444;
        --card-bg: #2d2d2d;
        --hover-bg: #3a3a3a;
        --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    body {
        background-color: #121212;
        color: var(--text-color);
    }
    
    .match-card, header {
        background-color: var(--card-bg);
        border-color: #333;
    }
    
    /* EstatÃ­sticas no modo escuro */
    .stats-container,
    .standings-table,
    .scorers-list,
    .loading,
    .error-message,
    .no-data {
        background-color: var(--card-bg);
        color: var(--text-color);
    }
    
    .standings-table th,
    .scorers-list th {
        background-color: #333;
    }
    
    .standings-table tbody tr:hover,
    .scorers-list tbody tr:hover {
        background-color: var(--hover-bg);
    }
    
    .stat-card {
        background-color: #333;
        border-color: #444;
    }
    
    .standings-table tr.european {
        background-color: rgba(72, 199, 142, 0.1);
    }
    
    .standings-table tr.relegation {
        background-color: rgba(241, 70, 104, 0.1);
    }
    
    .standings-legend {
        color: #aaa;
    }
    
    .tab-btn {
        color: #ccc;
    }
    
    .tab-btn.active {
        color: white;
    }
    
    .league-select, .notification {
        background-color: #2d2d2d;
        color: #f5f5f5;
    }
    
    .empty-state, .error-state {
        color: #aaa;
    }
    
    .empty-state h3, .error-state h3 {
        color: #f5f5f5;
    }
    
    #loading {
        background-color: rgba(30, 30, 30, 0.9);
    }
}

/* Responsividade */
/* Estilos responsivos para telas mÃ©dias */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .standings-table,
    .scorers-list {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .matches-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-tab-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .standings-legend {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .standings-table,
    .scorers-list {
        font-size: 0.85rem;
    }
    
    .standings-table th,
    .standings-table td,
    .scorers-list th,
    .scorers-list td {
        padding: 8px 10px;
    }
    .container {
        padding: 10px;
    }
    
    header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .tabs {
        width: 100%;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .league-selector {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .match-card {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .team-logo {
        width: 50px;
        height: 50px;
    }
    
    .match-score {
        font-size: 1.8em;
        min-width: 70px;
    }
}

@media (max-width: 600px) {
    .standings-table,
    .scorers-list {
        font-size: 0.8rem;
    }
    
    .team-cell,
    .player-cell {
        min-width: 120px;
    }
    
    .team-logo,
    .player-photo {
        width: 20px;
        height: 20px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    
    .matches-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .match-card {
        border-radius: 12px;
    }
    
    .team-name {
        font-size: 0.9em;
    }
    
    .match-status {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

/* Modal de Confrontos Diretos */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

.modal-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
    padding: 5px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 20px;
}

/* Estilos para o conteÃºdo dos confrontos diretos */
.head2head-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.teams-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.team-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.team-summary .team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.team-summary .team-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.vs-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    margin: 0 10px;
}

.head2head-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
}

.head2head-stats .stat-card {
    flex: 1;
    text-align: center;
    padding: 20px 10px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: transform 0.2s, box-shadow 0.2s;
}

.head2head-stats .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.head2head-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.head2head-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.previous-matches h4 {
    margin: 25px 0 15px;
    color: var(--dark-color);
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.match-item:hover {
    background-color: #f1f3f5;
}

/* Destaque para o time vencedor */
.match-team.winner .team-name {
    font-weight: 700;
    color: var(--primary-color);
}

.match-team.winner .match-team-logo {
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

/* Melhorias na responsividade para o modal */
@media (max-width: 600px) {
    .teams-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .vs-text {
        margin: 10px 0;
    }
    
    .head2head-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .match-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .match-teams {
        width: 100%;
    }
    
    .match-date {
        margin: 5px 0 0;
        text-align: center;
        width: 100%;
    }
}

/* Mensagens de erro e estados vazios */
.error-message,
.no-head2head-data,
.no-matches {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background-color: rgba(255, 0, 0, 0.05);
    border-left: 4px solid var(--error-color);
    border-radius: 4px;
}

.no-head2head-data,
.no-matches {
    background-color: rgba(0, 0, 0, 0.05);
    border-left-color: #666;
}

.error-message p,
.no-head2head-data p,
.no-matches {
    margin: 0;
    color: #333;
    font-size: 0.95em;
}

.error-message p:first-child {
    font-weight: 600;
    margin-bottom: 8px;
}

.error-message p small {
    color: #666;
    font-size: 0.9em;
}

/* Melhorias para o modo escuro */
@media (prefers-color-scheme: dark) {
    .match-team.winner .team-name {
        color: var(--secondary-color);
    }
    
    .match-team.winner .match-team-logo {
        border-color: var(--secondary-color);
    }
    
    .error-message,
    .no-head2head-data,
    .no-matches {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .error-message p,
    .no-head2head-data p,
    .no-matches {
        color: #eee;
    }
    
    .error-message p small {
        color: #aaa;
    }
}

.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.match-team.home {
    justify-content: flex-end;
    text-align: right;
}

.match-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.match-score {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
}

.match-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 15px;
    white-space: nowrap;
}

/* Estilos para o modo escuro */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: var(--card-bg);
    }
    
    .modal-header h3 {
        color: var(--text-color);
    }
    
    .team-summary .team-name {
        color: var(--text-color);
    }
    
    .head2head-stats .stat-card {
        background-color: #333;
    }
    
    .previous-matches h4 {
        color: var(--text-color);
    }
    
    .match-item {
        background-color: #2d2d2d;
    }
    
    .match-item:hover {
        background-color: #3a3a3a;
    }
    
    .match-score {
        color: var(--text-color);
    }
}

/* Melhorias de acessibilidade */
.stats-tab-btn:focus,
.standings-table a:focus,
.scorers-list a:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.5);
}

.stats-tab-btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.stats-tab-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.5);
}

/* Melhor contraste para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Melhorias de contraste para modo de alto contraste */
@media (forced-colors: active) {
    .stats-tab-btn {
        border: 1px solid transparent;
    }
    
    .stats-tab-btn.active {
        border-color: Highlight;
    }
    
    .standings-table tr.european {
        outline: 2px solid Highlight;
        outline-offset: -1px;
    }
}

 / *   E s t i l o s   p a r a   o s   c a b e ç a l h o s   d e   d a t a   * / 
 . m a t c h - d a t e - h e a d e r   { 
         f o n t - s i z e :   1 . 1 r e m ; 
         f o n t - w e i g h t :   6 0 0 ; 
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ; 
         m a r g i n :   1 . 5 r e m   0   0 . 7 5 r e m   0 ; 
         p a d d i n g - b o t t o m :   0 . 5 r e m ; 
         b o r d e r - b o t t o m :   2 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ; 
         t e x t - t r a n s f o r m :   c a p i t a l i z e ; 
 } 
 
 / *   C o n t a i n e r   p a r a   g r u p o s   d e   j o g o s   * / 
 . m a t c h e s - g r o u p   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i l l ,   m i n m a x ( 3 0 0 p x ,   1 f r ) ) ; 
         g a p :   1 r e m ; 
         m a r g i n - b o t t o m :   1 . 5 r e m ; 
 } 
 
 / *   E s t i l o s   p a r a   o s   c a r d s   d e   p a r t i d a   * / 
 . m a t c h - c a r d   { 
         b a c k g r o u n d :   w h i t e ; 
         b o r d e r - r a d i u s :   v a r ( - - b o r d e r - r a d i u s ) ; 
         b o x - s h a d o w :   v a r ( - - b o x - s h a d o w ) ; 
         p a d d i n g :   1 5 p x ; 
         m a r g i n - b o t t o m :   1 r e m ; 
         t r a n s i t i o n :   v a r ( - - t r a n s i t i o n ) ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ; 
 } 
 
 . m a t c h - c a r d : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 3 p x ) ; 
         b o x - s h a d o w :   0   6 p x   1 2 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 5 ) ; 
 } 
 
 . m a t c h - h e a d e r   { 
         d i s p l a y :   f l e x ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         m a r g i n - b o t t o m :   1 0 p x ; 
         f o n t - s i z e :   0 . 8 5 r e m ; 
         c o l o r :   v a r ( - - t e x t - l i g h t ) ; 
 } 
 
 . m a t c h - t e a m s   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         m a r g i n - b o t t o m :   1 0 p x ; 
 } 
 
 . t e a m   { 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         a l i g n - i t e m s :   c e n t e r ; 
         f l e x :   1 ; 
 } 
 
 . t e a m - l o g o   { 
         w i d t h :   4 0 p x ; 
         h e i g h t :   4 0 p x ; 
         o b j e c t - f i t :   c o n t a i n ; 
         m a r g i n - b o t t o m :   5 p x ; 
 } 
 
 . t e a m - n a m e   { 
         f o n t - w e i g h t :   5 0 0 ; 
         t e x t - a l i g n :   c e n t e r ; 
         f o n t - s i z e :   0 . 9 5 r e m ; 
 } 
 
 . m a t c h - s c o r e   { 
         f o n t - s i z e :   1 . 5 r e m ; 
         f o n t - w e i g h t :   7 0 0 ; 
         m a r g i n :   0   1 5 p x ; 
         m i n - w i d t h :   6 0 p x ; 
         t e x t - a l i g n :   c e n t e r ; 
 } 
 
 . m a t c h - s t a t u s   { 
         t e x t - a l i g n :   c e n t e r ; 
         f o n t - s i z e :   0 . 8 5 r e m ; 
         c o l o r :   v a r ( - - t e x t - l i g h t ) ; 
         m a r g i n - t o p :   1 0 p x ; 
         p a d d i n g - t o p :   8 p x ; 
         b o r d e r - t o p :   1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ; 
 } 
 
 . m a t c h - s t a t u s . l i v e   { 
         c o l o r :   v a r ( - - d a n g e r - c o l o r ) ; 
         f o n t - w e i g h t :   6 0 0 ; 
 } 
 
 / *   E s t i l o s   p a r a   o   m o d o   e s c u r o   * / 
 . d a r k - m o d e   . m a t c h - c a r d   { 
         b a c k g r o u n d :   # 2 d 2 d 2 d ; 
         b o r d e r - c o l o r :   # 4 4 4 ; 
         c o l o r :   # e e e ; 
 } 
 
 . d a r k - m o d e   . m a t c h - h e a d e r , 
 . d a r k - m o d e   . m a t c h - s t a t u s   { 
         c o l o r :   # a a a ; 
 } 
 
 . d a r k - m o d e   . m a t c h - s t a t u s   { 
         b o r d e r - t o p - c o l o r :   # 4 4 4 ; 
 } 
 
 . d a r k - m o d e   . m a t c h - d a t e - h e a d e r   { 
         c o l o r :   v a r ( - - s e c o n d a r y - c o l o r ) ; 
         b o r d e r - b o t t o m - c o l o r :   # 4 4 4 ; 
 } 
 
 / *   A j u s t e s   p a r a   d i s p o s i t i v o s   m ó v e i s   * / 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
         . m a t c h e s - g r o u p   { 
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r ; 
         } 
         
         . m a t c h - c a r d   { 
                 p a d d i n g :   1 2 p x ; 
         } 
         
         . m a t c h - s c o r e   { 
                 f o n t - s i z e :   1 . 3 r e m ; 
                 m i n - w i d t h :   5 0 p x ; 
         } 
         
         . t e a m - l o g o   { 
                 w i d t h :   3 5 p x ; 
                 h e i g h t :   3 5 p x ; 
         } 
         
         . t e a m - n a m e   { 
                 f o n t - s i z e :   0 . 8 5 r e m ; 
         } 
 }  
 