/* matches.php: upcoming fixtures, live scores and results. Layout around it: public-base.css */
.mp-page { padding-bottom: 50px; }
.mp-hero { padding: 36px 32px; margin-bottom: 22px; }

/* ----- Upcoming / Results and the leagues ----- */
.mp-bar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.mp-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #e2e8f0; border-radius: 14px; padding: 4px; align-self: flex-start; }
.mp-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 11px; color: #475569; text-decoration: none; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.mp-tab.active { background: #fff; color: #0b3d91; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.mp-count { min-width: 24px; padding: 1px 7px; border-radius: 20px; background: #cbd5e1; color: #1e293b; font-size: 0.75rem; text-align: center; }
.mp-tab.active .mp-count { background: #0b3d91; color: #fff; }
.mp-leagues { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mp-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 40px; background: #fff; border: 1px solid #e2e8f0; color: #334155; text-decoration: none; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.mp-chip span { font-size: 0.72rem; color: #64748b; }
.mp-chip:hover { border-color: #0b3d91; }
.mp-chip.active { background: #0b3d91; border-color: #0b3d91; color: #fff; }
.mp-chip.active span { color: #facc15; }

/* ----- Days, leagues, matches ----- */
.mp-day { margin-bottom: 24px; }
.mp-day-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 1.1rem; color: #0f172a; margin: 0 0 12px; }
.mp-day-head i { color: #b45309; }
.mp-day-head small { font-size: 0.85rem; font-weight: 600; color: #64748b; }
.mp-league { background: #fff; border-radius: 18px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05); overflow: hidden; }
.mp-league + .mp-league { margin-top: 12px; }
.mp-league h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 18px; font-size: 0.88rem; font-weight: 700; color: #0b3d91; background: #f8fafc; border-bottom: 1px solid #edf2f7; }
.mp-league h3 i { color: #facc15; }
.mp-league ul { list-style: none; margin: 0; padding: 0; }
.mp-match { padding: 14px 18px; }
.mp-match + .mp-match { border-top: 1px solid #f1f5f9; }
.mp-match.is-live { background: #fff7ed; }
.mp-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.mp-team { font-weight: 600; color: #1e293b; font-size: 0.98rem; overflow-wrap: anywhere; }
.mp-team.home { text-align: right; }
.mp-team.win { font-weight: 800; color: #0f172a; }
.mp-score, .mp-vs { min-width: 76px; text-align: center; border-radius: 10px; padding: 6px 10px; font-weight: 800; }
.mp-score { background: #0b3d91; color: #fff; font-size: 1.1rem; letter-spacing: 1px; }
.mp-score i { font-style: normal; margin: 0 6px; color: #facc15; }
.mp-match.is-live .mp-score { background: #dc2626; }
.mp-vs { background: #f1f5f9; color: #0b3d91; font-size: 0.9rem; }
.mp-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 8px; font-size: 0.78rem; color: #64748b; }
.mp-info:empty { display: none; }
.mp-info i { margin-right: 3px; }
.mp-state { font-weight: 700; color: #475569; }
.mp-state.live { color: #dc2626; }
.mp-state.live i { font-size: 0.55rem; vertical-align: middle; animation: mp-blink 1.4s infinite; }
.mp-state.done { color: #047857; }
.mp-state.off { color: #b45309; }
.mp-state.wait { color: #94a3b8; font-weight: 600; }

/* ----- Live now ----- */
.mp-live { margin-bottom: 28px; }
.mp-live-head { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: #dc2626; margin: 0 0 12px; }
.mp-dot { width: 10px; height: 10px; border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); animation: mp-pulse 1.6s infinite; }
@keyframes mp-pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
@keyframes mp-blink { 50% { opacity: 0.3; } }

/* ----- Messages and buttons ----- */
.mp-empty { text-align: center; padding: 44px 20px; color: #64748b; background: #fff; border-radius: 20px; }
.mp-empty > i { font-size: 2.6rem; color: #cbd5e1; margin-bottom: 10px; }
.mp-empty p { margin-bottom: 16px; }
.mp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 40px; background: #0b3d91; color: #fff; text-decoration: none; font-weight: 700; }
.mp-btn:hover { background: #1565c0; }
.mp-more { text-align: center; margin: 6px 0 10px; }
.mp-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 10px 14px; font-size: 0.88rem; margin-bottom: 16px; }
.mp-tz { text-align: center; font-size: 0.8rem; color: #94a3b8; margin-top: 18px; }

@media (max-width: 640px) {
    .mp-hero { padding: 26px 16px; }
    .mp-tabs { align-self: stretch; }
    .mp-tab { padding: 10px 8px; font-size: 0.9rem; }
    .mp-match { padding: 12px; }
    .mp-teams { gap: 8px; }
    .mp-team { font-size: 0.88rem; }
    .mp-score, .mp-vs { min-width: 62px; padding: 5px 6px; }
    .mp-score { font-size: 1rem; }
    .mp-score i { margin: 0 4px; }
}
