/**
 * single-player.css - v1.4.0
 * Styles pour la fiche joueur RA
 * Design inspiré FootMercato avec cellules profil
 */

/* ===== HEADER JOUEUR ===== */
.ra-player-header-section {
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
}

.ra-player-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    flex-wrap: wrap;
}

/* Photo avec badge club */
.ra-player-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.ra-player-photo {
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ra-player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ra-player-club-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ra-player-club-badge img {
    width: 24px;
    height: 24px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Infos principales */
.ra-player-main-info {
    flex: 1;
    min-width: 200px;
}

.ra-player-name-wrap {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1a1a2e;
    line-height: 1.2;
}

.ra-player-club-link {
    display: inline-block;
    color: var(--theme-palette-color-4);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 8px;
}

.ra-player-club-link:hover {
    text-decoration: none;
}

.ra-player-injury-alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff3cd;
    color: #856404;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Stats rapides header */
.ra-player-quick-stats {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.ra-quick-stat {
    text-align: center;
}

.ra-quick-stat .ra-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.ra-quick-stat .ra-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== NAVIGATION ONGLETS ===== */
.ra-top-tabs {
    display: flex;
    border-top: 1px solid #eef2f7;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ra-top-tabs a {
    flex: 1;
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ra-top-tabs a:hover {
    color: var(--theme-palette-color-4);
    background: var(--theme-palette-color-7);
}

.ra-top-tabs a.is-active {
    color: var(--theme-palette-color-1);
    border-bottom-color: var(--theme-palette-color-1);
    background: var(--theme-palette-color-7);
}

/* ===== BLOC PROFIL EN CELLULES (FootMercato) ===== */
.ra-profile-cells {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    overflow: hidden;
}

.ra-profile-cell {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 16px 20px;
    text-align: center;
    border-right: 1px solid #eef2f7;
}

.ra-profile-cell:last-child {
    border-right: none;
}

.ra-profile-cell-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ra-profile-cell-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.ra-profile-cell .ra-badge-jiff {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* ===== BLOC STATS FULL WIDTH ===== */
.ra-stats-full-width {
    margin-bottom: 20px;
}

.ra-stats-full-width .ra-tl-bar {
    padding: 16px 20px 0;
}

.ra-stats-row {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 0;
}

.ra-stats-row .ra-stat-item {
    flex: 1 1 auto;
    min-width: 80px;
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid #eef2f7;
}

.ra-stats-row .ra-stat-item:last-child {
    border-right: none;
}

.ra-stats-row .ra-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.ra-stats-row .ra-stat-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
}

/* ===== BLOC DERNIERS MATCHS FULL WIDTH ===== */
.ra-recent-matches-full {
    margin-bottom: 20px;
}

.ra-recent-matches-full .ra-tl-bar {
    padding: 16px 20px 0;
}

.ra-recent-matches-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ra-recent-match-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #eef2f7;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.ra-recent-match-card-wrap {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #eef2f7;
}

.ra-recent-match-card-wrap:last-child {
    border-bottom: none;
}

.ra-recent-match-card {
    border-bottom: 0;
}

.ra-recent-match-card:hover {
    background: #f8f9fa;
}

.ra-recent-match-card-wrap.ra-match-win {
    border-left: 3px solid #28a745;
}

.ra-recent-match-card-wrap.ra-match-loss {
    border-left: 3px solid #dc3545;
}

.ra-recent-match-card-wrap.ra-match-draw {
    border-left: 3px solid #ffc107;
}

/* Garde le résultat colorisé même si les anciennes classes sont appliquées directement */
.ra-recent-match-card.ra-match-win { border-left: 3px solid #28a745; }
.ra-recent-match-card.ra-match-loss { border-left: 3px solid #dc3545; }
.ra-recent-match-card.ra-match-draw { border-left: 3px solid #ffc107; }

.ra-recent-match-date {
    font-size: 13px;
    color: #888;
    min-width: 75px;
}

.ra-recent-match-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ra-recent-match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}

.ra-recent-match-team:last-child {
    justify-content: flex-end;
    text-align: right;
}

.ra-team-logo-sm {
    width: 24px;
    height: 24px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.ra-recent-match-score {
    min-width: 60px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.ra-recent-match-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: flex-end;
}

.ra-match-league-tag {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

a.ra-match-league-link {
    text-decoration: none;
    transition: background .15s, color .15s;
}

a.ra-match-league-link:hover,
a.ra-match-league-link:focus-visible {
    background: var(--theme-palette-color-1, #b3e43f);
    color: var(--theme-palette-color-4, #192a3d);
    text-decoration: none;
}

.ra-player-number {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    background: #f0f4ff;
    padding: 2px 6px;
    border-radius: 4px;
}

.ra-match-position {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-palette-color-4, #192a3d);
    background: var(--theme-palette-color-6, #f2f5f7);
    padding: 2px 6px;
    border-radius: 4px;
}

.ra-match-position--sub {
    color: var(--theme-palette-color-3, #7f8c9a);
    font-weight: 500;
}

.ra-captain-badge {
    font-size: 14px;
    color: #ffc107;
}

/* ===== BLESSURE EN COURS FULL WIDTH ===== */
.ra-injury-current-full {
    margin-bottom: 20px;
}

.ra-injury-current-full .ra-tl-bar {
    padding: 16px 20px 0;
}

.ra-injury-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
}

.ra-injury-icon {
    font-size: 32px;
}

.ra-injury-details {
    flex: 1;
}

.ra-injury-details strong {
    display: block;
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.ra-injury-details p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.ra-injury-dates {
    font-size: 13px;
    color: #888;
}

/* ===== LIEN "VOIR PLUS" ===== */
.ra-link-more {
    display: block;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-palette-color-4);
    text-decoration: none;
    border-top: 1px solid #eef2f7;
}

.ra-link-more:hover {
    background: var(--theme-palette-color-7);
    text-decoration: underline;
}

/* ===== CARDS & COMMON ===== */

.ra-empty {
    padding: 24px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ===== STATS GRID (onglet stats) ===== */
.ra-stats-overview {
    margin-bottom: 20px;
}

.ra-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1px;
    padding: 1px;
}

.ra-stat-box {
    padding: 20px;
    text-align: center;
}

.ra-stat-box .ra-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.ra-stat-box .ra-stat-name {
    display: block;
    font-size: 10px;
    margin-top: 6px;
    text-transform: uppercase;
}

.ra-stat-box.ra-stat-highlight {
    background: linear-gradient(135deg, #a1d624 0%, #567b00 100%);
}

.ra-stat-box.ra-stat-highlight .ra-stat-number,
.ra-stat-box.ra-stat-highlight .ra-stat-name {
    color: #fff;
}

/* Discipline */
.ra-stats-discipline {
    margin-bottom: 20px;
}

.ra-discipline-grid {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.ra-discipline-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: #f8f9fa;
}

.ra-discipline-item .ra-card-icon {
    font-size: 32px;
}

.ra-discipline-item .ra-discipline-count {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.ra-discipline-item .ra-discipline-label {
    font-size: 13px;
    color: #666;
}

/* Actions détail */
.ra-actions-detail {
    margin-bottom: 20px;
}

.ra-actions-list {
    padding: 0;
}

.ra-action-match {
    padding: 14px 20px;
    border-bottom: 1px solid #eef2f7;
}

.ra-action-match:last-child {
    border-bottom: none;
}

.ra-action-match-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ra-action-date {
    font-size: 13px;
    color: #888;
}

.ra-action-teams {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
}

.ra-action-teams:hover {
    color: #667eea;
}

.ra-action-league {
    font-size: 12px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.ra-action-match-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ra-action-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f0f0f0;
    color: #666;
}

.ra-action-tag.ra-action-try {
    background: #d4edda;
    color: #155724;
}

.ra-action-tag.ra-action-goalaftertry {
    background: #cce5ff;
    color: #004085;
}

.ra-action-tag.ra-action-goalpenalty {
    background: #fff3cd;
    color: #856404;
}

.ra-action-tag.ra-action-dropgoal {
    background: #e2d5f7;
    color: #5a3e85;
}

.ra-action-tag.ra-action-yellowcard {
    background: #fff3cd;
    color: #856404;
}

.ra-action-tag.ra-action-redcard {
    background: #f8d7da;
    color: #721c24;
}

.ra-action-tag small {
    font-size: 11px;
    opacity: 0.8;
}

/* ===== TIMELINE CARRIÈRE ===== */
.ra-career-timeline {
    margin-bottom: 20px;
}

.ra-timeline {
    padding: 20px;
}

.ra-timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 24px;
    border-left: 2px solid #e0e0e0;
}

.ra-timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.ra-timeline-item.is-current {
    border-left-color: var(--theme-palette-color-2);
}

.ra-timeline-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid #fff;
}

.ra-timeline-item.is-current .ra-timeline-marker {
    background: var(--theme-palette-color-2);
    width: 12px;
    height: 12px;
    left: -7px;
}

.ra-timeline-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ra-timeline-club {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ra-timeline-logo {
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.ra-timeline-club-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ra-timeline-club-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
}

a.ra-timeline-club-name:hover {
    color: #667eea;
}

.ra-timeline-period {
    font-size: 13px;
    color: #666;
}

.ra-timeline-role {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-palette-color-4, #192a3d);
    background: var(--theme-palette-color-6, #f2f5f7);
    padding: 1px 6px;
    border-radius: 4px;
    width: fit-content;
}

.ra-timeline-duration {
    font-size: 12px;
    color: #999;
}

.ra-badge-current {
    background: var(--theme-palette-color-2);
    color: var(--theme-palette-color-4);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

/* ===== MATCHS GRID ===== */
.ra-matches-list {
    margin-bottom: 20px;
}

.ra-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    padding: 20px;
}

.ra-match-card {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    border-left: 4px solid transparent;
}

.ra-match-card:hover {
    background: #eef2f7;
    transform: translateY(-2px);
}

.ra-match-card.ra-match-win {
    border-left-color: #28a745;
}

.ra-match-card.ra-match-loss {
    border-left-color: #dc3545;
}

.ra-match-card.ra-match-draw {
    border-left-color: #ffc107;
}

.ra-match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ra-match-date {
    font-size: 12px;
    color: #888;
}

.ra-match-league {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
}

.ra-league-logo {
    width: 16px;
    height: 16px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.ra-match-card-body {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.ra-team-logo {
    width: 28px;
    height: 28px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.ra-team-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
}

.ra-match-score {
    min-width: 50px;
    text-align: center;
}

.ra-match-score .ra-score {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.ra-match-score .ra-time {
    font-size: 13px;
    color: #888;
}

.ra-match-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* ===== BLESSURES TABLE ===== */
.ra-injuries-list {
    margin-bottom: 20px;
}

.ra-injuries-table {
    width: 100%;
    border-collapse: collapse;
}

.ra-injuries-table th,
.ra-injuries-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}

.ra-injuries-table th {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
}

.ra-injuries-table td {
    font-size: 14px;
    color: #1a1a2e;
}

.ra-injury-row.is-active {
    background: #fff8e6;
}

.ra-injury-season {
    font-weight: 600;
}

.ra-injury-type {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ra-injury-indicator {
    display: inline-block;
    width: 4px;
    height: 24px;
    border-radius: 2px;
    flex-shrink: 0;
}

.ra-injury-indicator.ra-severity-grave {
    background: #dc3545;
}

.ra-injury-indicator.ra-severity-moderee {
    background: #fd7e14;
}

.ra-injury-indicator.ra-severity-mineure {
    background: #28a745;
}

.ra-injury-desc {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.ra-injury-days,
.ra-injury-matches {
    font-weight: 600;
    text-align: center;
}

/* Légende blessures */
.ra-injuries-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eef2f7;
}

.ra-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.ra-legend-item .ra-injury-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ===== TABLES GÉNÉRIQUES ===== */
.ra-table {
    width: 100%;
    border-collapse: collapse;
}

.ra-table th,
.ra-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}

.ra-table th {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    background: #f8f9fa;
}

.ra-table td {
    font-size: 14px;
    color: #1a1a2e;
}

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

/* ===== BADGES ===== */
.ra-badge-jiff {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ra-player-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .ra-player-main-info {
        text-align: center;
    }
    
    .ra-player-quick-stats {
        margin-left: 0;
        justify-content: center;
    }
    
    .ra-profile-cells {
        flex-direction: column;
    }
    
    .ra-profile-cell {
        border-right: none;
        border-bottom: 1px solid #eef2f7;
    }
    
    .ra-profile-cell:last-child {
        border-bottom: none;
    }
    
    .ra-stats-row {
        flex-wrap: wrap;
    }
    
    .ra-stats-row .ra-stat-item {
        min-width: 33.33%;
        border-bottom: 1px solid #eef2f7;
    }
    
    .ra-recent-match-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ra-recent-match-content {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .ra-recent-match-team {
        min-width: 100px;
    }
    
    .ra-recent-match-meta {
        width: 100%;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid #eef2f7;
    }
    
    .ra-matches-grid {
        grid-template-columns: 1fr;
    }
    
    .ra-discipline-grid {
        flex-direction: column;
    }
    
    .ra-injuries-table {
        display: block;
        overflow-x: auto;
    }
    
    .ra-top-tabs {
        justify-content: flex-start;
    }
    
    .ra-top-tabs a {
        flex: none;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .ra-player-name-wrap {
        font-size: 20px;
    }
    
    .ra-quick-stat .ra-stat-value {
        font-size: 22px;
    }
    
    .ra-stats-row .ra-stat-item {
        min-width: 50%;
    }
    
    .ra-stats-row .ra-stat-number {
        font-size: 20px;
    }
    
    .ra-stat-box .ra-stat-number {
        font-size: 24px;
    }
}

/* ===== v2.6.0 — STATS BY SEASON TABLE ===== */

.ra-stats-by-season {
    padding: 0;
}

.ra-season-stats-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ra-season-stats-table {
    min-width: 520px;
    width: 100%;
    border-collapse: collapse;
}

.ra-season-stats-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--theme-palette-color-3);
    padding: 10px 12px;
    border-bottom: 2px solid var(--theme-palette-color-5);
    text-align: left;
}

.ra-season-stats-table td {
    padding: 8px 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--theme-palette-color-5);
    color: var(--theme-palette-color-4);
}

.ra-season-stats-table .ra-col-num {
    text-align: center;
    width: 50px;
}

.ra-season-stats-table .ra-col-pts {
    font-weight: 700;
}

.ra-season-label {
    font-weight: 600;
    white-space: nowrap;
}

/* Cellule de saison fusionnée sur toutes les lignes du groupe : calée en haut
   pour rester lisible face à des groupes de trois lignes ou plus, et détachée
   du reste par un fond léger et un filet vertical. */
.ra-season-stats-table td.ra-season-label {
    vertical-align: top;
    background: var(--theme-palette-color-7);
    border-right: 1px solid var(--theme-palette-color-5);
}

.ra-season-comp {
    font-size: 13px;
    color: var(--theme-palette-color-3);
}

.ra-season-row-first td {
    border-top: 2px solid var(--theme-palette-color-5);
}

.ra-season-row-first:first-child td {
    border-top: none;
}

.ra-season-row-total td {
    font-weight: 700;
    background: var(--theme-palette-color-6);
    border-top: 2px solid var(--theme-palette-color-4);
    color: var(--theme-palette-color-4);
}

.ra-season-row-total .ra-col-pts {
    color: var(--theme-palette-color-2);
}

/* ===== SEASON FILTER (Matchs tab) ===== */

.ra-season-filter-wrap {
    padding: 12px 20px;
    margin-bottom: 16px;
}

.ra-season-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ra-season-filter-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-palette-color-3);
    white-space: nowrap;
}

.ra-season-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--theme-palette-color-8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237f8c9a'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 10px 6px;
    border: 1px solid var(--theme-palette-color-5);
    border-radius: 4px;
    padding: 7px 32px 7px 12px;
    font-size: 14px;
    color: var(--theme-palette-color-4);
    cursor: pointer;
    min-width: 160px;
}

.ra-season-select:focus {
    outline: none;
    border-color: var(--theme-palette-color-1);
    box-shadow: 0 0 0 2px rgba(179, 228, 63, 0.25);
}

.ra-btn-filter {
    padding: 7px 16px;
    background: var(--theme-palette-color-1);
    color: var(--theme-palette-color-4);
    border: none;
    border-radius: var(--theme-button-border-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Season group separator in matches list */
.ra-matches-season-group {
    grid-column: 1 / -1;
    padding: 10px 16px 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--theme-palette-color-3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--theme-palette-color-5);
    background: var(--theme-palette-color-6);
    border-radius: 4px;
}

/* ===== RESPONSIVE v2.6.0 ===== */

@media (max-width: 768px) {
    .ra-season-stats-table th,
    .ra-season-stats-table td {
        padding: 6px 8px;
        font-size: 13px;
    }

    .ra-season-filter-form {
        gap: 8px;
    }

    .ra-season-select {
        min-width: 130px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ra-season-stats-table {
        min-width: 440px;
    }

    .ra-season-stats-table .ra-col-num {
        width: 40px;
    }
}

/* ===== JOUEURS DU MÊME CLUB ===== */
.ra-related-players .ra-related-players-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.ra-related-player {
    margin: 0;
}

.ra-related-player-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: var(--theme-palette-color-7, #fafbfc);
    border: 1px solid var(--theme-palette-color-5, #e1e8ed);
    color: var(--theme-palette-color-4, #192a3d);
    text-decoration: none;
    min-height: 44px;
    transition: background .15s, border-color .15s;
}

.ra-related-player-link:hover,
.ra-related-player-link:focus-visible {
    background: var(--theme-palette-color-6, #f2f5f7);
    border-color: var(--theme-palette-color-3, #7f8c9a);
    text-decoration: none;
}

.ra-related-player-photo,
.ra-related-player-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-palette-color-6, #f2f5f7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-palette-color-3, #7f8c9a);
    object-fit: cover;
}

.ra-related-player-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.ra-related-player-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ra-related-player-position {
    font-size: 11px;
    color: var(--theme-palette-color-3, #7f8c9a);
    line-height: 1.2;
    margin-top: 2px;
}

.ra-h2-suffix {
    color: var(--theme-palette-color-3, #7f8c9a);
    font-weight: 400;
    font-size: 0.85em;
}

.ra-h2-suffix-link {
    color: var(--theme-palette-color-3, #7f8c9a);
    font-weight: 400;
    font-size: 0.6em;
    margin-left: 10px;
    text-decoration: none;
    vertical-align: middle;
}
.ra-h2-suffix-link:hover,
.ra-h2-suffix-link:focus-visible {
    color: var(--theme-palette-color-4, #192a3d);
    text-decoration: underline;
}

a.ra-position-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed var(--theme-palette-color-3, #7f8c9a);
    transition: color .15s, border-color .15s;
}
a.ra-position-link:hover,
a.ra-position-link:focus-visible {
    color: var(--theme-palette-color-4, #192a3d);
    border-bottom-color: var(--theme-palette-color-4, #192a3d);
}

.ra-stats-updated {
    font-size: 0.6em;
    font-weight: 400;
    color: var(--theme-palette-color-3, #7f8c9a);
    margin-left: 8px;
    white-space: nowrap;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .ra-stats-updated {
        display: block;
        margin-left: 0;
        margin-top: 2px;
        font-size: 11px;
    }
}

/* ===== PALMARÈS (v2.23.0) ===== */

.ra-palmares-card {
    padding: 0;
}

.ra-palmares-bloc {
    padding: 16px 20px;
}

.ra-palmares-subheading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--theme-palette-color-3);
    margin: 0 0 12px;
}

.ra-palmares-sep {
    height: 1px;
    background: var(--theme-palette-color-5);
    margin: 0 20px;
}

.ra-palmares-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ra-palmares-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: var(--theme-palette-color-4);
    line-height: 1.4;
}

.ra-palmares-icon {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
}

.ra-palmares-title {
    flex: 1;
}

@media (min-width: 768px) {
    .ra-palmares-bloc {
        padding: 20px 24px;
    }

    .ra-palmares-sep {
        margin: 0 24px;
    }

    .ra-palmares-item {
        font-size: 15px;
    }
}

/* ===== BLOC SEO INTRO (paragraphe éditorial en haut de fiche joueur) ===== */
.ra-seo-content {
    margin-top: var(--theme-content-vertical-spacing, 24px);
    padding: 1.25rem;
    background: var(--theme-palette-color-6, #f2f5f7);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--theme-palette-color-3, #7f8c9a);
    line-height: 1.7;
}

.ra-seo-content p {
    margin: 0 0 0.7rem;
}
.ra-seo-content p:last-child {
    margin-bottom: 0;
}

.ra-seo-content__subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-palette-color-4, #192a3d);
    margin: 0 0 0.75rem !important;
    line-height: 1.3;
}

/* Variante "intro" (placée en haut juste après le header) : marge top
   réduite pour coller au header, fond plus discret. */
.ra-seo-content--intro {
    margin-top: 12px;
    padding: 1rem 1.1rem;
    background: var(--theme-palette-color-7, #fafbfc);
    border: 1px solid var(--theme-palette-color-5, #e1e8ed);
}

@media (max-width: 480px) {
    .ra-seo-content {
        padding: 1rem;
        font-size: 0.88rem;
    }
}
