/* match.php (match centre) and the staff console (manager/admin matches.php?live=...): includes/match_live.php */

/* ----- score box ----- */
.mc-board { background: linear-gradient(135deg, #0b3d91, #1e40af); color: #fff; border-radius: 20px; padding: 20px 22px 18px; box-shadow: 0 10px 28px rgba(11, 61, 145, 0.18); }
.mc-board.is-live { background: linear-gradient(135deg, #7f1d1d, #b91c1c); }
.mc-league { font-size: 0.85rem; font-weight: 700; color: #fde68a; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.mc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.mc-team { font-size: 1.2rem; font-weight: 800; overflow-wrap: anywhere; line-height: 1.25; }
.mc-team:first-child { text-align: right; }
.mc-score { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 8px 16px; font-size: 2rem; font-weight: 800; letter-spacing: 1px; }
.mc-score i { font-style: normal; color: #facc15; }
.mc-vs { background: rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 8px 14px; font-weight: 800; font-size: 1.05rem; }
.mc-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 16px; font-size: 0.85rem; color: #e2e8f0; }
.mc-meta i { color: #fde68a; margin-right: 4px; }
.mc-state { font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.mc-state.live { background: #fff; color: #b91c1c; padding: 2px 10px; border-radius: 20px; }
.mc-state.done { background: rgba(255, 255, 255, 0.18); padding: 2px 10px; border-radius: 20px; }
.mc-state.off { background: #fde68a; color: #713f12; padding: 2px 10px; border-radius: 20px; }
.mc-dot { width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: mcPulse 1.4s infinite; }
@keyframes mcPulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .mc-dot { animation: none; } }

/* ----- timeline ----- */
.mc-timeline { list-style: none; margin: 0; padding: 0; }
.mc-ev { display: grid; grid-template-columns: 44px 34px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; }
.mc-ev + .mc-ev { border-top: 1px solid #f1f5f9; }
.mc-min { font-weight: 800; color: #0b3d91; text-align: right; padding-top: 6px; font-size: 0.95rem; }
.mc-ico { width: 34px; height: 34px; border-radius: 50%; background: #f1f5f9; color: #475569; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.mc-body { min-width: 0; padding-top: 5px; }
.mc-body strong { color: #0f172a; font-size: 0.95rem; }
.mc-body p { margin: 4px 0 0; color: #334155; font-size: 0.93rem; line-height: 1.55; overflow-wrap: anywhere; }
.mc-ev.goal .mc-ico { background: #dcfce7; color: #15803d; }
.mc-ev.goal .mc-body strong { color: #15803d; }
.mc-ev.yellow .mc-ico { background: #fef9c3; color: #ca8a04; }
.mc-ev.red .mc-ico { background: #fee2e2; color: #dc2626; }
.mc-ev.sub .mc-ico { background: #e0f2fe; color: #0369a1; }
.mc-ev.var .mc-ico { background: #ede9fe; color: #6d28d9; }
.mc-ev.chance .mc-ico { background: #ffedd5; color: #c2410c; }
.mc-ev.whistle { background: #f8fafc; border-radius: 12px; padding: 10px 0; }
.mc-ev.whistle .mc-ico { background: #0b3d91; color: #fff; }
.mc-ev.whistle + .mc-ev, .mc-ev + .mc-ev.whistle { border-top-color: transparent; }
.mc-del { width: 32px; height: 32px; border-radius: 9px; border: 1px solid #e2e8f0; background: #fff; color: #94a3b8; cursor: pointer; }
.mc-del:hover { border-color: #fca5a5; color: #dc2626; }
.mc-empty { color: #64748b; font-size: 0.93rem; padding: 18px 4px; margin: 0; }
.mc-empty i { margin-right: 6px; }

/* ----- public page ----- */
.mc-page { padding-bottom: 50px; max-width: 860px; }
.mc-page .mc-board { margin-bottom: 18px; }
.mc-feedbox { background: #fff; border-radius: 18px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05); padding: 6px 20px 10px; }
.mc-feedbox h2 { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; color: #0f172a; margin: 14px 0 6px; }
.mc-feedbox h2 i { color: #b45309; }
.mc-auto { font-size: 0.8rem; font-weight: 600; color: #64748b; margin-left: auto; }
.mc-page .ps-sharebar { margin-top: 18px; }
.mc-back { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; color: #0b3d91; font-weight: 600; text-decoration: none; }
.mc-back:hover { text-decoration: underline; }
.mp-link { display: inline-flex; align-items: center; gap: 5px; color: #0b3d91; font-weight: 700; text-decoration: none; }
.mp-link:hover { text-decoration: underline; }
.mp-link.live { color: #dc2626; }

/* ----- staff console ----- */
.mc-console { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.mc-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mc-card { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05); }
.mc-card h3 { display: flex; gap: 8px; align-items: center; font-size: 1rem; color: #0f172a; margin: 0 0 14px; }
.mc-card h3 i { color: #facc15; }
.mc-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-steps button { padding: 10px; border-radius: 12px; border: 2px solid #e2e8f0; background: #fff; font: inherit; font-size: 0.88rem; font-weight: 600; color: #1e293b; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.mc-steps button:hover { border-color: #0b3d91; color: #0b3d91; }
.mc-steps button.end { background: #0f172a; border-color: #0f172a; color: #fff; }
.mc-scoreform { margin-top: 14px; border-top: 1px dashed #e2e8f0; padding-top: 12px; }
.mc-scoreform label, .mc-field label, .mc-label { display: block; font-size: 0.8rem; font-weight: 600; color: #475569; margin-bottom: 5px; }
.mc-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.mc-scoreform input { width: 70px; padding: 9px 10px; border: 2px solid #e2e8f0; border-radius: 10px; font: inherit; font-weight: 700; text-align: center; }
.mc-scoreform button { padding: 10px 14px; border-radius: 10px; border: none; background: #0b3d91; color: #fff; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.mc-form .mc-field { margin-bottom: 12px; flex: 1; min-width: 0; }
.mc-form .mc-minute { flex: 0 0 90px; }
.mc-form input[type=text], .mc-form select, .mc-form textarea { width: 100%; padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 10px; font: inherit; font-size: 0.92rem; background: #fff; color: #0f172a; }
.mc-form textarea { resize: vertical; }
.mc-form input:focus, .mc-form select:focus, .mc-form textarea:focus { outline: none; border-color: #3b82f6; }
.mc-teamsel { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-teamsel label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 0.88rem; font-weight: 600; color: #1e293b; cursor: pointer; margin: 0; }
.mc-teamsel label:has(input:checked) { border-color: #0b3d91; background: #eff6ff; }
.mc-hint { font-size: 0.8rem; color: #64748b; margin: 0 0 12px; }
.mc-send { width: 100%; padding: 12px; border-radius: 12px; border: none; background: #2f855a; color: #fff; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.mc-send:disabled, .mc-steps button:disabled { opacity: 0.6; cursor: wait; }
.mc-feed { max-height: 78vh; overflow-y: auto; }

@media (max-width: 900px) {
    .mc-console { grid-template-columns: 1fr; }
    .mc-feed { max-height: none; }
}
@media (max-width: 480px) {
    .mc-board { padding: 16px 14px; }
    .mc-team { font-size: 1rem; }
    .mc-score { font-size: 1.5rem; padding: 6px 12px; }
    .mc-ev { grid-template-columns: 36px 30px 1fr auto; gap: 8px; }
    .mc-ico { width: 30px; height: 30px; }
    .mc-feedbox { padding: 4px 14px 8px; }
}
