/* SportRadar Futebol – Frontend Styles */

.srf-block {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.srf-title {
    font-size: 20px;
    font-weight: 700;
    padding: 16px 20px;
    margin: 0;
    background: #1a1a2e;
    color: #fff;
}

/* =========================================================
   LISTA DE PARTIDAS
   ========================================================= */

.srf-matches-list {
    padding: 12px;
    background: #fafafa;
}

.srf-match {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 10px;
}
.srf-match:last-child { margin-bottom: 0; }

.srf-match-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    color: #777;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.srf-competition  { font-weight: 600; color: #333; }
.srf-round        { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; }
.srf-kickoff      { font-weight: 700; color: #1a73e8; }
.srf-clock        { background: #e8f5e9; color: #2e7d32; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

.srf-teams {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.srf-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 4px;
}

.srf-team-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.srf-abbr {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.srf-abbr-badge {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.srf-team--winner .srf-team-name { color: #1a73e8; }
.srf-team--winner .srf-abbr      { color: #1a73e8; }

.srf-vs {
    font-size: 13px;
    color: #bbb;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

/* Placar */
.srf-score {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #1a1a2e;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    min-width: 72px;
    justify-content: center;
}

.srf-score-home,
.srf-score-away {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.srf-score-sep { font-size: 16px; opacity: 0.5; margin: 0 2px; }

.srf-score--live { background: #d32f2f; animation: srf-pulse 2s infinite; }

@keyframes srf-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(211,47,47,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(211,47,47,0); }
}

/* Venue */
.srf-venue {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

/* AO VIVO badge */
.srf-live-badge {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.srf-updated {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 0;
    padding: 8px 16px;
    background: #fff8e1;
    border-bottom: 1px solid #ffe082;
}

/* Timeline de gols */
.srf-goals-timeline {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: #555;
}

.srf-ht {
    background: #f3f3f3;
    padding: 2px 8px;
    border-radius: 4px;
    font-style: italic;
}

/* =========================================================
   TABELA DE CLASSIFICAÇÃO
   ========================================================= */

.srf-standings {
    overflow-x: auto;
}

.srf-group-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 16px 0 8px;
    padding: 0 4px;
}

.srf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.srf-table th,
.srf-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.srf-table th {
    background: #f5f5f5;
    font-weight: 700;
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.srf-table td.srf-team-cell { text-align: left; }
.srf-table td.srf-pos        { font-weight: 700; color: #666; }
.srf-table td.srf-pts        { color: #1a73e8; }

/* Linhas coloridas por posição */
.srf-row--champions td:first-child { border-left: 4px solid #1a73e8; }
.srf-row--europa    td:first-child { border-left: 4px solid #f57c00; }
.srf-row--conference td:first-child{ border-left: 4px solid #7cb342; }
.srf-row--relegation td:first-child{ border-left: 4px solid #d32f2f; }
.srf-row--relegation               { background: #fff8f8; }

/* Forma recente */
.srf-form { letter-spacing: 2px; font-weight: 700; }

/* =========================================================
   ARTILHEIROS
   ========================================================= */

.srf-scorers-table td.srf-player-name { text-align: left; font-weight: 600; }
.srf-scorers-table td.srf-goals       { color: #1a73e8; }

/* =========================================================
   RODAPÉ DA MATÉRIA
   ========================================================= */

.srf-source {
    font-size: 11px;
    color: #aaa;
    text-align: right;
    padding: 8px 16px;
    margin: 0;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 640px) {
    .srf-title { font-size: 16px; }

    .srf-teams { gap: 6px; }

    .srf-team-name { font-size: 12px; }

    .srf-score-home,
    .srf-score-away { font-size: 18px; }

    .srf-table th,
    .srf-table td { padding: 6px 5px; font-size: 11px; }
}
