/* ==========================================
   WIDGET: HEADER DU MATCH (REMS_HEADER)
   ========================================== */
.rems-match-header-premium {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #1e8b3a;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}
.rems-match-main-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: #2c3e50;
    margin: 0 0 30px 0;
    line-height: 1.3;
}
.rems-match-vs-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}
.rems-match-team-box {
    text-align: center;
    flex: 1;
    max-width: 200px;
}
.rems-match-team-logo-big {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    padding: 15px;
    border: 3px solid #1e8b3a;
    margin: 0 auto 15px;
    display: block;
}
.rems-match-team-name-big {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2c3e50;
}
.rems-match-vs-big {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e8b3a;
}
.rems-match-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
}
.rems-match-info-item {
    text-align: center;
    padding: 12px;
}
.rems-match-info-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.rems-match-info-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}
.rems-match-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}
.rems-match-odds-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
}
.rems-match-odds-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}
.rems-match-odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.rems-match-odd-card {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s;
}
.rems-match-odd-card:hover {
    border-color: #1e8b3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 139, 58, 0.15);
}
.rems-match-odd-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}
.rems-match-odd-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e8b3a;
}

@media (max-width: 768px) {
    .rems-match-main-title { font-size: 1.3rem; margin: 0 0 20px 0; }
    .rems-match-header-premium { padding: 15px 10px; }
    .rems-match-vs-section { gap: 10px; margin-bottom: 15px; }
    .rems-match-team-logo-big { width: 60px; height: 60px; padding: 8px; }
    .rems-match-team-name-big { font-size: 0.95rem; }
    .rems-match-vs-big { font-size: 1.5rem; }
    .rems-match-info-grid { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin-bottom: 15px; }
    .rems-match-info-item { padding: 6px 8px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; background: rgba(255,255,255,0.5); border-radius: 6px; }
    .rems-match-info-icon { font-size: 1rem; margin: 0; flex-shrink: 0; }
    .rems-match-info-label { font-size: 0.65rem; margin: 0; flex-shrink: 0; min-width: 40px; }
    .rems-match-info-value { font-size: 0.75rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
    .rems-match-odds-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .rems-match-odd-card { padding: 8px 4px; }
    .rems-match-odd-label { font-size: 0.65rem; margin-bottom: 4px; line-height: 1.2; }
    .rems-match-odd-value { font-size: 1.3rem; }
}

/* ==========================================
   WIDGET: CLASSEMENT ET DATA (REMS_DATA)
   ========================================== */
.rems-standings-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}
.rems-standings-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.rems-standings-tab:hover { color: #1e8b3a; }
.rems-standings-tab.active { color: #1e8b3a; }
.rems-standings-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1e8b3a;
}
.rems-standings-panel { display: none; }
.rems-standings-panel.active { display: block; }
.rems-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    overflow-y: auto;
    max-height: 400px;
    display: block;
}
.rems-standings-head {
    position: sticky;
    top: 0;
    background: #2c3e50;
    color: white;
    font-weight: 600;
    text-align: center;
}
.rems-standings-head th { padding: 10px 8px; text-align: center; }
.rems-standings-head th.team-col { text-align: left; }
.rems-standings-row { border-bottom: 1px solid #e5e7eb; transition: background 0.2s; }
.rems-standings-row:hover { background: #f8f9fa; }
.rems-standings-row.highlight-team-a { background: #e8f5e8; }
.rems-standings-row.highlight-team-b { background: #e8f5e8; }
.rems-standings-row td { padding: 10px 8px; text-align: center; }
.rems-standings-row td.rank-cell { font-weight: 600; width: 40px; }
.rems-standings-row td.team-cell { text-align: left; display: flex; align-items: center; gap: 10px; }
.rems-standings-row .team-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.rems-face-to-face {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.rems-context-title {
    font-weight: 600;
    color: #4b5563;
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.rems-mobile-context-box {
    display: none;
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}
.rems-mobile-context-text { font-weight: 600; color: #1e8b3a; }

@media (max-width: 768px) {
    .rems-standings-desktop { display: none; }
    .rems-standings-mobile { display: block; }
    .rems-mobile-context-box { display: block; }
    .rems-standings-tab { flex: 1; padding: 10px 5px; font-size: 0.85rem; }
    .rems-standings-table { font-size: 0.8rem; }
    .rems-standings-table th, .rems-standings-table td { padding: 8px 5px; }
    .rems-standings-mobile .rems-standings-head th:nth-child(n+5),
    .rems-standings-mobile .rems-standings-row td:nth-child(n+5) { display: none; }
}

@media (min-width: 769px) {
    .rems-standings-container { display: flex; gap: 20px; }
    .rems-face-to-face { width: 40%; flex-shrink: 0; }
    .rems-standings-tabs-container { width: 60%; flex-shrink: 0; }
    .rems-standings-desktop { display: block; }
    .rems-standings-mobile { display: none; }
}

/* ==========================================
   WIDGET: FORME RÉCENTE (REMS_RECENT_FORM)
   ========================================== */
.rems-form-widget { background: #ffffff; border-radius: 16px; overflow: hidden; }
.rems-form-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 20px; }
.rems-team-form-section { background: #f8f9fa; border-radius: 12px; padding: 20px; }
.rems-team-form-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #dee2e6; }
.rems-team-form-header img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #1e8b3a; }
.rems-team-form-header h3 { margin: 0; font-size: 1.2rem; color: #2c3e50; font-weight: 700; }
.rems-matches-list { margin-bottom: 20px; }
.rems-match-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.2s;
}
.rems-match-item:hover { transform: translateX(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rems-match-item.win { border-left-color: #28a745; background: linear-gradient(90deg, #e8f5e8 0%, white 100%); }
.rems-match-item.draw { border-left-color: #ffc107; background: linear-gradient(90deg, #fff8e6 0%, white 100%); }
.rems-match-item.loss { border-left-color: #dc3545; background: linear-gradient(90deg, #fce8e8 0%, white 100%); }
.rems-match-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rems-match-date { font-size: 0.75rem; color: #6c757d; font-weight: 600; }
.rems-match-top-info { display: flex; align-items: center; gap: 6px; }
.rems-match-location { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.rems-match-location.home { background: #e8f5e8; color: #28a745; }
.rems-match-location.away { background: #fff3cd; color: #856404; }
.rems-match-competition { font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; background: #e9ecef; color: #495057; }
.rems-match-details { display: flex; justify-content: space-between; align-items: center; }
.rems-match-opponent { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: #2c3e50; }
.rems-match-opponent img { width: 20px; height: 20px; border-radius: 50%; }
.rems-match-score { font-size: 1.1rem; font-weight: 900; padding: 4px 12px; border-radius: 6px; }
.rems-match-score.win { background: #28a745; color: white; }
.rems-match-score.draw { background: #ffc107; color: #333; }
.rems-match-score.loss { background: #dc3545; color: white; }
.rems-form-summary { background: white; border-radius: 12px; padding: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.rems-summary-title { font-size: 0.85rem; color: #6c757d; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; text-align: center; }
.rems-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.rems-stat-item { text-align: center; padding: 8px; background: #f8f9fa; border-radius: 6px; }
.rems-stat-value { font-size: 1.4rem; font-weight: 900; color: #1e8b3a; display: block; }
.rems-stat-label { font-size: 0.7rem; color: #6c757d; text-transform: uppercase; margin-top: 4px; }
.rems-form-trend { text-align: center; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; }
.rems-form-trend.excellent { background: linear-gradient(135deg, #28a745, #20c997); color: white; }
.rems-form-trend.good { background: linear-gradient(135deg, #20c997, #17a2b8); color: white; }
.rems-form-trend.average { background: linear-gradient(135deg, #ffc107, #fd7e14); color: #333; }
.rems-form-trend.poor { background: linear-gradient(135deg, #fd7e14, #dc3545); color: white; }
.rems-form-trend.bad { background: linear-gradient(135deg, #dc3545, #c82333); color: white; }
.rems-streak-badge { text-align: center; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; margin-top: 10px; }
.rems-streak-badge.streak-win { background: linear-gradient(135deg, #28a745, #20c997); color: white; }
.rems-streak-badge.streak-loss { background: linear-gradient(135deg, #dc3545, #c82333); color: white; }
.rems-streak-badge.streak-draw { background: linear-gradient(135deg, #ffc107, #fd7e14); color: #333; }

@media (max-width: 768px) {
    .rems-form-container { grid-template-columns: 1fr; gap: 20px; }
    .rems-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ==========================================
   WIDGET: STATS SAISON (REMS_SEASON_STATS)
   ========================================== */
.rems-stats-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}
.rems-team-overview {
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.rems-team-overview-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}
.rems-team-overview-header img { width: 40px; height: 40px; border-radius: 50%; }
.rems-team-overview-header h3 { margin: 0; font-size: 1.3rem; color: #2c3e50; }
.rems-donut-chart { position: relative; width: 180px; height: 180px; margin: 0 auto 20px; }
.rems-donut-chart svg { transform: rotate(-90deg); }
.rems-donut-value { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.rems-donut-percentage { font-size: 2.5rem; font-weight: 900; color: #1e8b3a; line-height: 1; }
.rems-donut-label { font-size: 0.85rem; color: #6b7280; margin-top: 5px; }
.rems-overview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }
.rems-overview-stat { text-align: center; padding: 10px; background: #f8f9fa; border-radius: 8px; }
.rems-overview-stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.rems-overview-stat-value.wins { color: #28a745; }
.rems-overview-stat-value.draws { color: #ffc107; }
.rems-overview-stat-value.losses { color: #dc3545; }
.rems-overview-stat-label { font-size: 0.7rem; color: #6b7280; text-transform: uppercase; margin-top: 4px; }
.rems-overview-metrics { display: flex; flex-direction: column; gap: 8px; }
.rems-overview-metric { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f8f9fa; border-radius: 6px; font-size: 0.9rem; }
.rems-overview-metric-label { color: #6b7280; font-weight: 600; }
.rems-overview-metric-value { color: #1e8b3a; font-weight: 700; }
.rems-stats-bars { margin-bottom: 40px; }
.rems-stat-bar-row { margin-bottom: 25px; }
.rems-stat-bar-label { text-align: center; font-weight: 700; font-size: 1rem; color: #2c3e50; margin-bottom: 10px; }
.rems-stat-bar-container { display: flex; align-items: center; gap: 15px; }
.rems-stat-bar-side { flex: 1; display: flex; align-items: center; gap: 10px; }
.rems-stat-bar-side.left { flex-direction: row-reverse; text-align: right; }
.rems-stat-bar-wrapper { flex: 1; background: #e5e7eb; height: 30px; border-radius: 15px; overflow: hidden; position: relative; }
.rems-stat-bar-fill { height: 100%; transition: width 0.8s ease-out; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: white; }
.rems-stat-bar-fill.winner { background: linear-gradient(90deg, #1e8b3a, #28a745); }
.rems-stat-bar-fill.loser { background: linear-gradient(90deg, #9ca3af, #6b7280); }
.rems-stat-bar-fill.reverse-winner { background: linear-gradient(90deg, #1e8b3a, #28a745); }
.rems-stat-bar-fill.reverse-loser { background: linear-gradient(90deg, #9ca3af, #6b7280); }
.rems-stat-bar-value { min-width: 80px; font-weight: 700; font-size: 1.1rem; }
.rems-stat-bar-value.winner { color: #1e8b3a; }
.rems-stat-bar-vs { font-weight: 900; color: #6b7280; font-size: 1.1rem; min-width: 40px; text-align: center; }
.rems-stats-charts { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.rems-chart-container { position: relative; height: 350px; margin-bottom: 20px; }
.rems-chart-title { font-size: 1.2rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; text-align: center; }

@media (max-width: 768px) {
    .rems-stats-overview { grid-template-columns: 1fr; gap: 20px; }
    .rems-stat-bar-container { flex-direction: column; }
    .rems-stat-bar-side { width: 100%; }
    .rems-stat-bar-side.left { flex-direction: row; text-align: left; }
    .rems-chart-container { height: 250px; }
}

/* ==========================================
   WIDGET: H2H (REMS_HEAD_TO_HEAD)
   ========================================== */
.rems-h2h-premium { background: #ffffff; border-radius: 16px; overflow: hidden; }
.rems-h2h-overview { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; padding: 20px; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); margin-bottom: 30px; }
.rems-h2h-result-card { background: white; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.rems-h2h-result-card.wins-a { border-top: 4px solid #28a745; }
.rems-h2h-result-card.draws { border-top: 4px solid #ffc107; }
.rems-h2h-result-card.wins-b { border-top: 4px solid #dc3545; }
.rems-h2h-result-number { font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 10px; }
.rems-h2h-result-number.wins-a { color: #28a745; }
.rems-h2h-result-number.draws { color: #ffc107; }
.rems-h2h-result-number.wins-b { color: #dc3545; }
.rems-h2h-result-label { font-size: 0.9rem; color: #6b7280; font-weight: 600; }
.rems-h2h-result-percentage { font-size: 0.85rem; color: #9ca3af; margin-top: 5px; }
.rems-h2h-global-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; padding: 20px; background: #f8f9fa; border-radius: 12px; margin-bottom: 30px; }
.rems-h2h-stat-box { text-align: center; padding: 15px; background: white; border-radius: 8px; }
.rems-h2h-stat-value { font-size: 1.8rem; font-weight: 900; color: #1e8b3a; line-height: 1; }
.rems-h2h-stat-label { font-size: 0.75rem; color: #6b7280; margin-top: 8px; text-transform: uppercase; }
.rems-h2h-matches-grid { display: grid; gap: 20px; margin-bottom: 30px; }
.rems-h2h-match-card { background: white; border: 2px solid #e5e7eb; border-radius: 12px; padding: 20px; transition: all 0.3s; }
.rems-h2h-match-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.rems-h2h-match-card.winner-a { border-left: 5px solid #28a745; }
.rems-h2h-match-card.winner-b { border-left: 5px solid #dc3545; }
.rems-h2h-match-card.draw { border-left: 5px solid #ffc107; }
.rems-h2h-match-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 2px solid #f3f4f6; }
.rems-h2h-match-date-info { display: flex; align-items: center; gap: 12px; }
.rems-h2h-match-date { font-weight: 700; font-size: 1rem; color: #2c3e50; }
.rems-h2h-match-comp { background: #e5e7eb; padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: #4b5563; }
.rems-h2h-match-venue { font-size: 0.85rem; color: #6b7280; display: flex; align-items: center; gap: 4px; }
.rems-h2h-match-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-bottom: 15px; }
.rems-h2h-team-side { display: flex; align-items: center; gap: 12px; }
.rems-h2h-team-side.away { flex-direction: row-reverse; text-align: right; }
.rems-h2h-team-logo-h2h { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #e5e7eb; padding: 4px; background: white; }
.rems-h2h-team-info { flex: 1; }
.rems-h2h-team-name { font-weight: 700; font-size: 1.05rem; color: #2c3e50; margin-bottom: 4px; }
.rems-h2h-team-location { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.rems-h2h-team-location.home { background: #e8f5e8; color: #28a745; }
.rems-h2h-team-location.away { background: #fff3cd; color: #856404; }
.rems-h2h-score-display { text-align: center; }
.rems-h2h-score-main { font-size: 2.5rem; font-weight: 900; color: #2c3e50; line-height: 1; margin-bottom: 8px; }
.rems-h2h-score-halftime { font-size: 0.8rem; color: #6b7280; background: #f3f4f6; padding: 4px 12px; border-radius: 6px; display: inline-block; }
.rems-h2h-match-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; background: #f8f9fa; padding: 15px; border-radius: 8px; }
.rems-h2h-detail-item { text-align: center; }
.rems-h2h-detail-value { font-size: 1.3rem; font-weight: 800; color: #1e8b3a; display: block; }
.rems-h2h-detail-label { font-size: 0.75rem; color: #6b7280; margin-top: 4px; }
.rems-h2h-analysis { background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%); border: 2px solid #1e8b3a; border-radius: 12px; padding: 20px; margin-top: 20px; }
.rems-h2h-analysis-title { font-size: 1.2rem; font-weight: 700; color: #1e8b3a; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.rems-h2h-analysis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.rems-h2h-analysis-item { background: white; padding: 15px; border-radius: 8px; border-left: 4px solid #1e8b3a; }
.rems-h2h-analysis-item strong { display: block; color: #2c3e50; margin-bottom: 5px; font-size: 0.9rem; }
.rems-h2h-analysis-item span { color: #1e8b3a; font-weight: 700; font-size: 1.1rem; }

@media (min-width: 769px) and (max-width: 1199px) {
    .rems-h2h-overview { grid-template-columns: 1fr; gap: 15px; }
    .rems-h2h-global-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .rems-h2h-match-teams { gap: 15px; }
    .rems-h2h-team-logo-h2h { width: 40px; height: 40px; }
    .rems-h2h-match-details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .rems-h2h-overview { grid-template-columns: 1fr; gap: 15px; padding: 15px; }
    .rems-h2h-result-card { padding: 15px; }
    .rems-h2h-result-number { font-size: 2.2rem; }
    .rems-h2h-global-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 15px; }
    .rems-h2h-stat-box { padding: 12px; }
    .rems-h2h-stat-value { font-size: 1.5rem; }
    .rems-h2h-match-card { padding: 15px; }
    .rems-h2h-match-teams { grid-template-columns: 1fr; gap: 10px; }
    .rems-h2h-score-display { order: -1; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 2px solid #f3f4f6; }
    .rems-h2h-score-main { font-size: 2rem; }
    .rems-h2h-team-side { gap: 8px; }
    .rems-h2h-team-side.away { flex-direction: row; text-align: left; }
    .rems-h2h-team-logo-h2h { width: 36px; height: 36px; }
    .rems-h2h-team-name { font-size: 0.95rem; }
    .rems-h2h-match-details { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
    .rems-h2h-detail-value { font-size: 1.1rem; }
    .rems-h2h-analysis-grid { grid-template-columns: 1fr; gap: 12px; }
    .rems-h2h-match-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rems-h2h-match-date-info { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
    .rems-h2h-match-venue { font-size: 0.8rem; }
}

/* ==========================================
   WIDGET: COTES (REMS_PREDICTION)
   ========================================== */
.rems-odds-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.rems-odds-card-compact {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}
.rems-odds-card-compact:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.rems-odds-label { font-size: 0.75rem; color: #6b7280; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; }
.rems-odds-value-big { font-size: 1.8rem; font-weight: 900; color: #1e8b3a; line-height: 1; }
.rems-odds-value-medium { font-size: 1.4rem; font-weight: 800; color: #1e8b3a; }
.rems-odds-section-title {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1e8b3a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rems-odds-main { background: linear-gradient(135deg, #f0fdf4, #ffffff); border: 2px solid #1e8b3a; }
.rems-odds-goals { background: linear-gradient(135deg, #fffbeb, #ffffff); border: 2px solid #fbbf24; }
.rems-odds-btts { background: linear-gradient(135deg, #fef2f2, #ffffff); border: 2px solid #ef4444; }
.rems-odds-special { background: linear-gradient(135deg, #f5f3ff, #ffffff); border: 2px solid #8b5cf6; }

@media (min-width: 769px) and (max-width: 1199px) {
    .rems-odds-compact-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .rems-odds-card-compact { padding: 10px; }
    .rems-odds-value-big { font-size: 1.6rem; }
    .rems-odds-value-medium { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .rems-odds-compact-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rems-odds-card-compact { padding: 10px; }
    .rems-odds-value-big { font-size: 1.5rem; }
    .rems-odds-value-medium { font-size: 1.2rem; }
    .rems-odds-section-title { font-size: 0.9rem; padding-bottom: 4px; }
    .rems-odds-label { font-size: 0.7rem; }
}

/* ==========================================
   WIDGET: LIGUE HEADER
   ========================================== */
.rems-league-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid #1e8b3a;
}
.league-header-content { display: flex; align-items: center; justify-content: space-between; max-width: 800px; margin: 0 auto; }
.league-logo-section img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #1e8b3a;
    object-fit: contain;
    background: white;
    padding: 10px;
}
.league-info-section { flex: 1; padding: 0 30px; }
.league-info-section h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #2c3e50 !important;
}
.league-info-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    opacity: 0.9;
    flex-wrap: wrap;
}
.league-stats-quick { display: flex; gap: 20px; }
.league-round-badge { text-align: center; background: rgba(255,255,255,0.4); padding: 15px 20px; border-radius: 12px; }
.league-round-badge span:first-child { display: block; font-size: 1.8rem; font-weight: 900; margin-bottom: 5px; }
.league-round-badge span:last-child { font-size: 0.9rem; opacity: 0.8; }

@media (max-width: 768px) {
    .rems-league-header { padding: 20px 15px; }
    .league-header-content { flex-direction: column; gap: 20px; }
    .league-logo-section img { width: 80px; height: 80px; }
    .league-info-section { padding: 0; }
    .league-info-section h1 { font-size: 1.5rem; line-height: 1.2; }
    .league-info-details { font-size: 0.9rem; gap: 8px; }
    .league-stats-quick { width: 100%; justify-content: center; }
    .league-round-badge { padding: 10px 15px; }
    .league-round-badge span:first-child { font-size: 1.4rem; }
    .league-round-badge span:last-child { font-size: 0.75rem; }
}

/* ==========================================
   WIDGET: PROCHAINS MATCHS LIGUE
   ========================================== */
.rems-league-matches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 768px) { .rems-league-matches-grid { grid-template-columns: 1fr; gap: 15px; } }

/* ==========================================
   WIDGET: CLASSEMENT LIGUE
   ========================================== */
.rems-league-standings-tabs { display: flex; margin-bottom: 15px; border-bottom: 2px solid #e5e7eb; }
.rems-league-standings-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-size: 1rem;
}
.rems-league-standings-tab:hover { color: #1e8b3a; }
.rems-league-standings-tab.active { color: #1e8b3a; }
.rems-league-standings-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1e8b3a;
}
.rems-league-standings-panel { display: none; }
.rems-league-standings-panel.active { display: block; }
.rems-league-standings-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rems-league-standings-table thead { background: #2c3e50; color: white; }
.rems-league-standings-table th { padding: 12px 8px; text-align: center; font-weight: 600; }
.rems-league-standings-table th.team-col { text-align: left; }
.rems-league-standings-table tbody tr { border-bottom: 1px solid #e5e7eb; transition: background 0.2s; }
.rems-league-standings-table tbody tr:hover { background: #f8f9fa; }
.rems-league-standings-table tbody tr.top-3 { background: #e8f5e8; }
.rems-league-standings-table tbody tr.bottom-3 { background: #fce8e8; }
.rems-league-standings-table tbody tr.europe-zone { background: #e0f2fe; }
.rems-league-standings-table td { padding: 10px 8px; text-align: center; }
.rems-league-standings-table td.rank-cell { font-weight: 700; }
.rems-league-standings-table td.team-cell { text-align: left; }
.rems-league-standings-table .team-logo { width: 24px; height: 24px; border-radius: 50%; margin-right: 10px; vertical-align: middle; }

@media (max-width: 768px) {
    .rems-league-standings-tab { padding: 10px 16px; font-size: 0.9rem; }
    .rems-league-standings-table { font-size: 0.8rem; }
    .rems-league-standings-table th, .rems-league-standings-table td { padding: 8px 5px; }
}

/* ==========================================
   WIDGET: BUTEURS
   ========================================== */
.rems-scorers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
@media (max-width: 768px) { .rems-scorers-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ==========================================
   WIDGET: PROJECTIONS (REMS_LEAGUE_OUTRIGHT_ODDS)
   ========================================== */
.rems-projection-simple { background: #fff; border-radius: 12px; overflow: hidden; }
.rems-projection-tabs { display: flex; border-bottom: 2px solid #e5e7eb; margin-bottom: 20px; gap: 10px; }
.rems-projection-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.95rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px 6px 0 0;
}
.rems-projection-tab:hover { background: #e9ecef; color: #1e8b3a; }
.rems-projection-tab.active { background: white; color: #1e8b3a; border-bottom: 2px solid #1e8b3a; }
.rems-projection-tab-desc { font-size: 0.7rem; font-weight: 500; color: #9ca3af; margin-top: 2px; }
.rems-projection-panel { display: none; }
.rems-projection-panel.active { display: block; }
.rems-projection-explainer { background: #f0f9ff; border: 1px solid #0ea5e9; border-radius: 8px; padding: 15px; margin-bottom: 20px; text-align: center; }
.rems-projection-explainer-title { font-size: 1rem; font-weight: 700; color: #0c4a6e; margin-bottom: 8px; }
.rems-projection-explainer-text { font-size: 0.85rem; color: #075985; line-height: 1.5; }
.rems-projection-explainer-formula { background: white; border-radius: 6px; padding: 8px; margin-top: 8px; font-family: monospace; font-size: 0.8rem; font-weight: 600; color: #0369a1; }
.rems-projection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.rems-projection-section { background: #f8f9fa; border-radius: 10px; padding: 15px; }
.rems-projection-section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; padding: 8px 12px; border-radius: 6px; text-align: center; }
.rems-projection-section-title.top { background: #e8f5e8; color: #155724; border: 1px solid #28a745; }
.rems-projection-section-title.bottom { background: #fce8e8; color: #721c24; border: 1px solid #dc3545; }
.rems-projection-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: white; border-radius: 8px; overflow: hidden; }
.rems-projection-table thead { background: #2c3e50; color: white; }
.rems-projection-table th { padding: 10px 8px; text-align: center; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.rems-projection-table th.team-col { text-align: left; }
.rems-projection-table tbody tr { border-bottom: 1px solid #e5e7eb; transition: background 0.2s; }
.rems-projection-table tbody tr:hover { background: #f8f9fa; }
.rems-projection-table tbody tr:last-child { border-bottom: none; }
.rems-projection-table td { padding: 12px 8px; vertical-align: middle; }
.rems-projection-table .pos-cell { width: 50px; font-weight: 900; font-size: 1.2rem; color: #2c3e50; text-align: center; }
.rems-projection-table .team-cell { font-weight: 600; color: #2c3e50; text-align: left; }
.rems-projection-table .team-logo { width: 24px; height: 24px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.rems-projection-table .data-cell { text-align: center; font-weight: 700; color: #1e8b3a; }
.rems-projection-table .final-pos { background: linear-gradient(135deg, #e8f5e8, #d4edda); border-radius: 6px; padding: 6px 12px; font-weight: 800; color: #155724; display: inline-block; }

@media (max-width: 768px) {
    .rems-projection-grid { grid-template-columns: 1fr; gap: 15px; }
    .rems-projection-table { font-size: 0.75rem; }
    .rems-projection-table .team-logo { width: 16px; height: 16px; }
}

/* ==========================================
   WIDGET: COMBOS (REMS_LEAGUE_COMBO_SUGGESTIONS)
   ========================================== */
.rems-combo-interactive { background: #ffffff; border-radius: 16px; overflow: hidden; }
.rems-combo-modes { display: flex; gap: 15px; margin-bottom: 25px; padding: 20px; background: linear-gradient(135deg, #f8f9fa, #e9ecef); border-radius: 12px; }
.rems-combo-mode-btn { flex: 1; padding: 15px; border: 3px solid transparent; border-radius: 12px; background: white; cursor: pointer; transition: all 0.3s; text-align: center; }
.rems-combo-mode-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.rems-combo-mode-btn.active { border-color: #1e8b3a; background: linear-gradient(135deg, #e8f5e8, #d4edda); }
.rems-combo-mode-icon { font-size: 2rem; margin-bottom: 8px; }
.rems-combo-mode-name { font-weight: 700; font-size: 1.1rem; color: #2c3e50; margin-bottom: 4px; }
.rems-combo-mode-desc { font-size: 0.8rem; color: #6b7280; }
.rems-combo-panel { display: none; }
.rems-combo-panel.active { display: block; }
.rems-combo-matches-list { margin-bottom: 25px; }
.rems-combo-match-card { background: white; border: 2px solid #e5e7eb; border-radius: 12px; padding: 15px; margin-bottom: 15px; transition: all 0.3s; }
.rems-combo-match-card:hover { border-color: #1e8b3a; box-shadow: 0 4px 12px rgba(30, 139, 58, 0.1); }
.rems-combo-match-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid #f3f4f6; }
.rems-combo-match-teams { font-weight: 700; font-size: 1rem; color: #2c3e50; }
.rems-combo-match-date { font-size: 0.85rem; color: #6b7280; }
.rems-combo-selected-bet { text-align: center; margin-bottom: 12px; padding: 8px; background: #f0f9ff; border-radius: 6px; }
.rems-combo-selected-bet-label { font-size: 0.8rem; color: #6b7280; margin-bottom: 4px; }
.rems-combo-selected-bet-value { font-weight: 700; font-size: 1.05rem; color: #1e8b3a; }
.rems-combo-odds-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rems-odd-button { padding: 12px; border: 2px solid #e5e7eb; border-radius: 8px; background: white; cursor: pointer; transition: all 0.2s; text-align: center; }
.rems-odd-button:hover { border-color: #1e8b3a; background: #f0f9ff; }
.rems-odd-button.selected { border-color: #1e8b3a; background: linear-gradient(135deg, #e8f5e8, #d4edda); position: relative; }
.rems-odd-button.selected::after { content: "✓"; position: absolute; top: -8px; right: -8px; background: #28a745; color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.rems-odd-label { font-size: 0.8rem; color: #6b7280; margin-bottom: 4px; }
.rems-odd-value { font-weight: 900; font-size: 1.2rem; color: #2c3e50; }
.rems-combo-summary { background: linear-gradient(135deg, #f8f9fa, #e9ecef); border: 3px solid #1e8b3a; border-radius: 12px; padding: 25px; position: sticky; bottom: 20px; margin-top: 25px; }
.rems-combo-summary-title { font-size: 1.3rem; font-weight: 800; color: #2c3e50; margin-bottom: 20px; text-align: center; }
.rems-combo-summary-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 20px; }
.rems-combo-stat { text-align: center; padding: 12px; background: white; border-radius: 8px; }
.rems-combo-stat-label { font-size: 0.85rem; color: #6b7280; margin-bottom: 6px; }
.rems-combo-stat-value { font-size: 1.8rem; font-weight: 900; color: #1e8b3a; }
.rems-total-odd-big { text-align: center; padding: 20px; background: white; border-radius: 12px; margin-bottom: 20px; }
.rems-total-odd-big-label { font-size: 0.9rem; color: #6b7280; margin-bottom: 8px; }
.rems-total-odd-big-value { font-size: 3rem; font-weight: 900; color: #1e8b3a; animation: pulse 0.5s ease-out; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.rems-stake-input-group { margin-bottom: 15px; }
.rems-stake-input-group label { display: block; font-size: 0.9rem; font-weight: 600; color: #2c3e50; margin-bottom: 8px; }
.rems-stake-input-group input { width: 100%; padding: 12px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 1.1rem; font-weight: 700; text-align: center; }
.rems-potential-win { text-align: center; padding: 15px; background: white; border-radius: 8px; margin-bottom: 15px; }
.rems-potential-win-label { font-size: 0.9rem; color: #6b7280; margin-bottom: 6px; }
.rems-potential-win-value { font-size: 2rem; font-weight: 900; color: #28a745; }
.rems-probability { text-align: center; padding: 10px; background: #fff3cd; border-radius: 6px; margin-bottom: 15px; }
.rems-combo-actions { display: flex; gap: 10px; }
.rems-combo-action-btn { flex: 1; padding: 12px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.rems-combo-action-btn.regenerate { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.rems-combo-action-btn.copy { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.rems-combo-action-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

@media (max-width: 768px) {
    .rems-combo-modes { flex-direction: column; gap: 10px; }
    .rems-combo-summary-stats { grid-template-columns: 1fr; }
    .rems-combo-actions { flex-direction: column; }
}

/* ==========================================
   WIDGET: TENDANCES (REMS_LEAGUE_BETTING_TRENDS)
   ========================================== */
.rems-trends-premium { background: #ffffff; border-radius: 16px; overflow: hidden; }
.rems-trends-tabs { display: flex; border-bottom: 2px solid #e5e7eb; margin-bottom: 20px; }
.rems-trends-tab { flex: 1; padding: 15px; border: none; background: none; font-weight: 600; color: #6b7280; cursor: pointer; transition: all 0.2s; position: relative; font-size: 1rem; text-align: center; }
.rems-trends-tab:hover { color: #1e8b3a; background: #f8f9fa; }
.rems-trends-tab.active { color: #1e8b3a; }
.rems-trends-tab.active::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: #1e8b3a; }
.rems-trends-panel { display: none; }
.rems-trends-panel.active { display: block; }
.rems-trends-team-row { display: flex; align-items: center; padding: 12px; margin-bottom: 8px; background: white; border: 1px solid #e5e7eb; border-radius: 8px; transition: all 0.2s; }
.rems-trends-team-row:hover { transform: translateX(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rems-trends-rank { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.9rem; margin-right: 12px; flex-shrink: 0; }
.rems-trends-rank.top { background: linear-gradient(135deg, #ffc107, #ff9800); color: white; }
.rems-trends-rank.good { background: linear-gradient(135deg, #28a745, #20c997); color: white; }
.rems-trends-rank.medium { background: #e9ecef; color: #6b7280; }
.rems-trends-rank.bad { background: #f8f9fa; color: #9ca3af; }
.rems-trends-team-info { flex: 1; min-width: 0; }
.rems-trends-team-name { font-weight: 600; font-size: 0.95rem; color: #2c3e50; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rems-trends-progress-bar { width: 100%; height: 20px; background: #e5e7eb; border-radius: 10px; overflow: hidden; position: relative; }
.rems-trends-progress-fill { height: 100%; border-radius: 10px; transition: width 0.8s ease-out; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 0.75rem; font-weight: 700; color: white; }
.rems-trends-progress-fill.high { background: linear-gradient(90deg, #28a745, #20c997); }
.rems-trends-progress-fill.medium { background: linear-gradient(90deg, #ffc107, #fd7e14); }
.rems-trends-progress-fill.low { background: linear-gradient(90deg, #9ca3af, #6b7280); }
.rems-trends-value { font-weight: 900; font-size: 1.1rem; color: #1e8b3a; margin-left: 12px; min-width: 60px; text-align: right; flex-shrink: 0; }
.rems-trends-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 25px; padding: 20px; background: linear-gradient(135deg, #f8f9fa, #e9ecef); border-radius: 12px; }
.rems-trends-summary-box { text-align: center; padding: 15px; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.rems-trends-summary-value { font-size: 2rem; font-weight: 900; color: #1e8b3a; line-height: 1; margin-bottom: 8px; }
.rems-trends-summary-label { font-size: 0.85rem; color: #6b7280; font-weight: 600; }

@media (min-width: 769px) and (max-width: 1199px) {
    .rems-trends-tab { padding: 12px 8px; font-size: 0.9rem; }
    .rems-trends-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .rems-trends-tabs { flex-wrap: wrap; }
    .rems-trends-tab { flex: 1 1 50%; padding: 12px 8px; font-size: 0.85rem; }
    .rems-trends-team-row { padding: 10px; }
    .rems-trends-rank { width: 30px; height: 30px; font-size: 0.8rem; margin-right: 8px; }
    .rems-trends-team-name { font-size: 0.85rem; }
    .rems-trends-value { font-size: 1rem; min-width: 50px; }
    .rems-trends-summary { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 15px; }
    .rems-trends-summary-box { padding: 12px; }
    .rems-trends-summary-value { font-size: 1.5rem; }
}

/* ==========================================
   WIDGET: GUIDE DE FORME (REMS_LEAGUE_FORM_GUIDE)
   ========================================== */
.rems-form-guide-premium { background: #ffffff; border-radius: 16px; overflow: hidden; }
.rems-form-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.rems-form-category { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 12px; padding: 20px; }
.rems-form-category.hot { background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%); border: 2px solid #28a745; }
.rems-form-category.cold { background: linear-gradient(135deg, #fce8e8 0%, #f8d7da 100%); border: 2px solid #dc3545; }
.rems-form-category-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.rems-form-category-title.hot { color: #155724; }
.rems-form-category-title.cold { color: #721c24; }
.rems-form-team-card { background: white; border-radius: 10px; padding: 15px; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); transition: all 0.3s; }
.rems-form-team-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.rems-form-team-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rems-form-team-name { font-weight: 700; font-size: 1rem; color: #2c3e50; }
.rems-form-team-badge { background: linear-gradient(135deg, #ffc107, #ff9800); color: white; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.rems-form-visual { display: flex; gap: 6px; margin-bottom: 10px; }
.rems-form-result { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85rem; transition: transform 0.2s; }
.rems-form-result:hover { transform: scale(1.15); }
.rems-form-result.win { background: linear-gradient(135deg, #28a745, #20c997); color: white; }
.rems-form-result.draw { background: linear-gradient(135deg, #ffc107, #fd7e14); color: #333; }
.rems-form-result.loss { background: linear-gradient(135deg, #dc3545, #c82333); color: white; }
.rems-form-stats-mini { display: flex; gap: 12px; font-size: 0.8rem; }
.rems-form-stat-mini { display: flex; align-items: center; gap: 4px; }
.rems-form-stat-mini .label { color: #6b7280; }
.rems-form-stat-mini .value { font-weight: 700; color: #1e8b3a; }
.rems-form-momentum { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.rems-form-momentum-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease-out; }
.rems-form-momentum-fill.high { background: linear-gradient(90deg, #28a745, #20c997); }
.rems-form-momentum-fill.low { background: linear-gradient(90deg, #dc3545, #c82333); }

@media (min-width: 769px) and (max-width: 1199px) {
    .rems-form-categories { gap: 20px; }
    .rems-form-team-card { padding: 12px; }
}

@media (max-width: 768px) {
    .rems-form-categories { grid-template-columns: 1fr; gap: 20px; }
    .rems-form-category { padding: 15px; }
    .rems-form-category-title { font-size: 1.1rem; }
    .rems-form-result { width: 28px; height: 28px; font-size: 0.75rem; }
    .rems-form-visual { gap: 4px; }
    .rems-form-team-name { font-size: 0.9rem; }
}

/* ==========================================
   WIDGET: PRONOSTICS DISPONIBLES (REMS_LEAGUE_AVAILABLE_PREDICTIONS)
   ========================================== */
.rems-matches-prono-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 40px; }
.rems-match-prono-card { background: white; border: 2px solid #e5e7eb; border-radius: 16px; padding: 25px; text-align: center; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.rems-match-prono-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(30, 139, 58, 0.15); border-color: #1e8b3a; }
.rems-match-prono-logos { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.rems-match-prono-logo { width: 60px; height: 60px; border-radius: 50%; object-fit: contain; background: #f8f9fa; padding: 8px; border: 2px solid #e5e7eb; }
.rems-match-prono-vs { font-weight: 900; font-size: 1.2rem; color: #6b7280; }
.rems-match-prono-date { font-size: 0.85rem; color: #6b7280; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rems-match-prono-btn { display: inline-block; background: linear-gradient(135deg, #1e8b3a, #28a745); color: white; padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: all 0.3s; border: none; cursor: not-allowed; opacity: 0.6; line-height: 1.3; }
.rems-match-prono-btn.available { opacity: 1; cursor: pointer; }
.rems-match-prono-btn.available:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(30, 139, 58, 0.3); }
.rems-other-leagues { margin-top: 50px; padding-top: 40px; border-top: 3px solid #e5e7eb; }
.rems-other-leagues-title { text-align: center; font-size: 1.5rem; font-weight: 800; color: #2c3e50; margin-bottom: 30px; }
.rems-other-leagues-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.rems-league-card { background: linear-gradient(135deg, #ffffff, #f8f9fa); border: 3px solid #e5e7eb; border-radius: 16px; padding: 30px 20px; text-align: center; transition: all 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: flex; flex-direction: column; align-items: center; }
.rems-league-card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(30, 139, 58, 0.2); border-color: #1e8b3a; background: linear-gradient(135deg, #e8f5e8, #d4edda); }
.rems-league-card-logo { width: 80px; height: 80px; margin-bottom: 20px; border-radius: 50%; object-fit: contain; background: white; padding: 12px; border: 3px solid #e5e7eb; transition: all 0.3s; }
.rems-league-card:hover .rems-league-card-logo { border-color: #1e8b3a; transform: scale(1.1); }
.rems-league-card-name { font-weight: 800; font-size: 1.2rem; color: #2c3e50; margin-bottom: 8px; }
.rems-league-card-country { font-size: 0.9rem; color: #6b7280; margin-bottom: 20px; }
.rems-league-card-btn { display: inline-block; background: linear-gradient(135deg, #1e8b3a, #28a745); color: white; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: all 0.3s; }
.rems-league-card-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(30, 139, 58, 0.4); }

@media (max-width: 768px) {
    .rems-matches-prono-grid { grid-template-columns: 1fr; gap: 15px; }
    .rems-match-prono-logos { gap: 15px; }
    .rems-match-prono-logo { width: 50px; height: 50px; }
    .rems-other-leagues-grid { grid-template-columns: 1fr; gap: 15px; }
    .rems-league-card { padding: 25px 15px; }
    .rems-league-card-logo { width: 70px; height: 70px; }
}

/* MODIFICATIONS POUR LE WIDGET CLASSEMENT */

@media (min-width: 769px) {
    .rems-standings-container {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
    
    .rems-face-to-face {
        width: 40%;
        flex-shrink: 0;
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        height: fit-content;
    }
    
    .rems-standings-tabs-container {
        width: 60%;
        flex-grow: 1;
    }
    
    .rems-standings-table-wrapper {
        max-height: 600px;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 8px;
    }
    
    .rems-standings-table {
        display: table;
        width: 100%;
    }
}

/* Badges pour positions */
.rems-position-badge.top {
    color: #28a745 !important;
}

.rems-position-badge.good {
    color: #20c997 !important;
}

.rems-position-badge.medium {
    color: #ffc107 !important;
}

.rems-position-badge.bad {
    color: #dc3545 !important;
}

/* Scrollbar personnalisée pour le tableau */
.rems-standings-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.rems-standings-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.rems-standings-table-wrapper::-webkit-scrollbar-thumb {
    background: #1e8b3a;
    border-radius: 4px;
}

.rems-standings-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #155724;
}
