/* Page /sport — paris sportifs en direct (données : /api/live-sport) */

.sport-hero h1 {
    font-size: 2.6rem;
}

.sport-hero .hero-badge {
    background: rgba(255, 71, 87, 0.12);
    border-color: rgba(255, 71, 87, 0.35);
    color: #ff6b81;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.35);
    color: #ff6b81;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.live-pill .live-dot,
.live-card .live-dot {
    background: #ff4757;
    animation: pulse-red 1.6s infinite;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.55); }
    50% { box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.section-head .section-title {
    margin-bottom: 0;
    text-align: left;
}

.section-head .updated {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.live-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid #ff4757;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, border-color 0.2s;
}

.live-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    border-left-color: #ff4757;
}

.live-card .lc-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.live-card .lc-top .lc-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff6b81;
    font-weight: 700;
}

.live-card .lc-title {
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
}

.live-card .lc-score {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.live-card .lc-period {
    color: var(--green);
    font-weight: 600;
    font-size: 0.9rem;
}

.live-card .lc-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.live-card .lc-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
    flex: 1;
    min-width: 130px;
}

.btn-sm:hover {
    transform: translateY(-1px);
}

.btn-bot {
    background: linear-gradient(135deg, #8b78ff, var(--accent));
    color: #fff;
}

.btn-poly {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text);
}

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

.match-row {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
}

.match-row .mr-time {
    font-weight: 800;
    font-size: 1rem;
}

.match-row .mr-time small {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
}

.match-row .mr-title {
    font-weight: 600;
    line-height: 1.3;
}

.match-row .mr-title small {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
}

.match-row .mr-actions {
    display: flex;
    gap: 8px;
}

.match-row .btn-sm {
    flex: 0 0 auto;
    min-width: 0;
    padding: 8px 12px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.sport-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sport-filter {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.sport-filter.active {
    border-color: var(--accent);
    color: #fff;
    background: rgba(108, 92, 231, 0.18);
}

.fees-note {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: var(--radius);
    padding: 18px 22px;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 28px;
}

.fees-note strong {
    color: var(--text);
}

@media (max-width: 900px) {
    .live-grid { grid-template-columns: repeat(2, 1fr); }
    .sport-hero h1 { font-size: 2rem; }
}

@media (max-width: 600px) {
    .live-grid { grid-template-columns: 1fr; }
    .match-row { grid-template-columns: 72px 1fr; }
    .match-row .mr-actions { grid-column: 1 / -1; }
    .match-row .btn-sm { flex: 1; }
}

/* pages match / championnat (rendu serveur) */
.mr-title a:hover { color: var(--accent); }
.lc-title a:hover { color: var(--accent); }
