.mmp-live{font-family:Inter,Arial,sans-serif;background:#10131a;color:#f5f7fb;border-radius:20px;overflow:hidden;box-shadow:0 22px 60px rgba(0,0,0,.32);margin:20px 0}.mmp-hero{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:24px;background:radial-gradient(circle at top left,#293144,#10131a 55%)}.mmp-logo{max-height:76px;max-width:150px;object-fit:contain;background:#fff;border-radius:12px;padding:8px}.mmp-hero h2{margin:6px 0 2px;font-size:30px;color:#fff}.mmp-hero p{margin:0;color:#b8c1d6}.mmp-live-dot{display:inline-flex;align-items:center;gap:6px;background:#d91515;color:#fff;padding:5px 12px;border-radius:50px;font-weight:900;letter-spacing:.08em;font-size:12px;animation:mmpPulse 1.2s infinite}@keyframes mmpPulse{0%,100%{box-shadow:0 0 0 0 rgba(217,21,21,.55)}50%{box-shadow:0 0 0 9px rgba(217,21,21,0)}}.mmp-tv{background:#ffd23d;color:#111;border:0;padding:10px 16px;border-radius:12px;font-weight:800;cursor:pointer}.mmp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;background:#171b24}.mmp-stats>div{background:linear-gradient(180deg,#222838,#171b24);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px}.mmp-stats b{display:block;color:#aeb8cc;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.mmp-stats span{display:block;color:#fff;font-size:22px;font-weight:900;margin-top:4px}.mmp-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 16px;background:#fff;color:#111}.mmp-search{width:360px;max-width:100%;padding:11px 14px;border-radius:10px;border:1px solid #d7dbe5}.mmp-updated{font-weight:700;color:#333}.mmp-tabs{display:flex;gap:8px;overflow:auto;background:#eef1f7;padding:10px 14px}.mmp-tab{border:1px solid #d4d9e6;background:#fff;color:#171b24;border-radius:999px;padding:9px 15px;font-weight:800;cursor:pointer;white-space:nowrap}.mmp-tab.active{background:#111827;color:#fff;border-color:#111827}.mmp-tab.live-stage{border-color:#14a44d;box-shadow:0 0 0 3px rgba(20,164,77,.15)}.mmp-table-wrap{background:#fff;color:#111;padding:8px 12px 18px;overflow:auto}.mmp-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;color:#111;min-width:860px}.mmp-table th{position:sticky;top:0;background:#f3f5f9;color:#111;text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;padding:12px;border-bottom:2px solid #dfe4ef}.mmp-table td{padding:12px;border-bottom:1px solid #edf0f5;color:#111}.mmp-table tr:nth-child(even) td{background:#fbfcff}.mmp-table tr.leader-row td{background:#fff8d8;font-weight:800}.mmp-table tr.status-dnf td,.mmp-table tr.status-dsq td,.mmp-table tr.status-retired td{color:#9b1c1c;background:#fff1f1}.mmp-badge{display:inline-block;background:#eef2ff;color:#1f3a8a;border-radius:999px;padding:4px 8px;font-weight:800;font-size:12px}.mmp-tv-mode{position:fixed;z-index:999999;inset:0;border-radius:0;margin:0;overflow:auto}.mmp-tv-mode .mmp-hero h2{font-size:46px}.mmp-tv-mode .mmp-table{font-size:24px}.mmp-tv-mode .mmp-stats span{font-size:34px}@media(max-width:760px){.mmp-hero{align-items:flex-start;gap:12px}.mmp-logo{max-width:90px;max-height:60px}.mmp-hero h2{font-size:22px}.mmp-stats{grid-template-columns:repeat(2,1fr)}.mmp-tools{display:block}.mmp-search{width:100%;box-sizing:border-box;margin-bottom:8px}.mmp-table{min-width:760px}.mmp-table th,.mmp-table td{padding:9px}}

/* v1.3 visibility improvements */
.mmp-table-wrap{background:#fff!important;color:#111!important;border-top:1px solid #e5e7eb}.mmp-table,.mmp-table th,.mmp-table td{color:#111!important}.mmp-tabs{background:#f7f8fb}.mmp-tab.active.live-stage{background:#087f3b;color:#fff;border-color:#087f3b}.mmp-tab.live-stage::after{content:' LIVE';font-size:10px;margin-left:5px;color:#12a150;font-weight:900}.mmp-tab.active.live-stage::after{color:#fff}.mmp-tools{border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}

/* v1.4 stage visibility, filters and mobile clarity */
.mmp-rank-filter{padding:11px 14px;border-radius:10px;border:1px solid #d7dbe5;background:#fff;color:#111;min-width:180px}
.mmp-stage-message{background:#fff7d6!important;color:#111!important;text-align:center;font-size:18px;font-weight:800;padding:36px!important;border:1px solid #f5d565!important;border-radius:12px}
.mmp-division{display:inline-block;background:#ecfdf5;color:#065f46;border-radius:999px;padding:4px 8px;font-weight:800;font-size:12px;white-space:nowrap}
.mmp-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.mmp-table th,.mmp-table td{white-space:nowrap}
.mmp-table th:nth-child(1),.mmp-table td:nth-child(1){position:sticky;left:0;z-index:2;background:#fff}
.mmp-table th:nth-child(2),.mmp-table td:nth-child(2){position:sticky;left:48px;z-index:2;background:#fff}
.mmp-table th:nth-child(1),.mmp-table th:nth-child(2){background:#f3f5f9;z-index:4}
.mmp-table tr.leader-row td:nth-child(1),.mmp-table tr.leader-row td:nth-child(2){background:#fff8d8}
@media(max-width:760px){
  .mmp-live{border-radius:12px;margin:10px 0}
  .mmp-tools{display:grid;grid-template-columns:1fr;gap:8px}
  .mmp-rank-filter,.mmp-search{width:100%;box-sizing:border-box}
  .mmp-table{min-width:980px;font-size:12px}
  .mmp-table th,.mmp-table td{padding:8px 7px}
  .mmp-table th:nth-child(2),.mmp-table td:nth-child(2){left:38px}
  .mmp-stage-message{font-size:15px;white-space:normal}
}


/* v1.5 full screen mode, message wording, mobile/landscape improvements */
.mmp-exit-fullscreen{display:none;background:#fff;color:#111;border:0;padding:10px 16px;border-radius:12px;font-weight:900;cursor:pointer;margin-left:8px}
.mmp-tv-mode .mmp-exit-fullscreen{display:inline-flex;align-items:center;justify-content:center;position:sticky;top:16px;z-index:1000000;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.mmp-tv-mode .mmp-tv{display:none}
.mmp-hero > div:last-child{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media(max-width:900px){
  .mmp-hero{flex-wrap:wrap;padding:16px}.mmp-hero>div:nth-child(2){flex:1;min-width:180px}.mmp-stats{gap:8px;padding:10px}.mmp-stats>div{padding:10px}.mmp-stats span{font-size:18px}.mmp-tabs{padding:8px}.mmp-tab{padding:8px 12px;font-size:13px}.mmp-tools{padding:10px}.mmp-updated{font-size:12px;display:block;margin-top:3px}.mmp-table-wrap{padding:4px 6px 12px}.mmp-table{min-width:900px;font-size:11.5px}.mmp-table th,.mmp-table td{padding:7px 6px}.mmp-badge,.mmp-division{font-size:10px;padding:3px 6px}
}
@media(max-width:520px){
  .mmp-logo{max-width:70px;max-height:50px}.mmp-hero h2{font-size:18px}.mmp-hero p{font-size:12px}.mmp-live-dot{font-size:10px;padding:4px 9px}.mmp-stats{grid-template-columns:repeat(2,1fr)}.mmp-stats b{font-size:10px}.mmp-stats span{font-size:15px}.mmp-table{min-width:820px;font-size:10.5px}.mmp-table th,.mmp-table td{padding:6px 5px}.mmp-table th:nth-child(2),.mmp-table td:nth-child(2){left:34px}.mmp-stage-message{padding:24px 12px!important}.mmp-tv,.mmp-exit-fullscreen{padding:8px 10px;font-size:12px}
}
@media(orientation:landscape) and (max-height:520px){
  .mmp-live{margin:0;border-radius:0}.mmp-hero{padding:8px 12px}.mmp-logo{max-height:42px;max-width:74px}.mmp-hero h2{font-size:18px;margin:2px 0}.mmp-hero p{display:none}.mmp-stats{grid-template-columns:repeat(4,1fr);padding:6px}.mmp-stats>div{padding:7px}.mmp-stats span{font-size:15px}.mmp-tools{display:grid;grid-template-columns:1fr 150px auto;gap:6px;padding:7px}.mmp-tabs{padding:6px}.mmp-table{font-size:10.5px;min-width:780px}.mmp-table th,.mmp-table td{padding:5px}.mmp-table-wrap{max-height:calc(100vh - 180px);overflow:auto}
}

/* v1.6 stage workflow + compact theme-font results */
.mmp-live{font-family:inherit!important}
.mmp-table{font-size:12px!important}
.mmp-table th{font-size:11px!important;padding:7px 6px!important}
.mmp-table td{font-size:12px!important;padding:6px 6px!important;line-height:1.25!important}
.mmp-tab.stage-finished{border-color:#16a34a;background:#ecfdf5;color:#065f46}
.mmp-tab.stage-closed{border-color:#64748b;background:#f1f5f9;color:#334155}
.mmp-tab.stage-not_started{opacity:.85}
.mmp-tab.stage-running{border-color:#14a44d;box-shadow:0 0 0 3px rgba(20,164,77,.15)}
.mmp-table tr.status-in\ stage td,.mmp-table tr.status-running td{background:#eef6ff!important;color:#0f3767!important}
.mmp-table tr.status-retired td,.mmp-table tr.status-dnf td,.mmp-table tr.status-dsq td{background:#fff1f1!important;color:#991b1b!important}
@media(max-width:900px){.mmp-table{font-size:10.5px!important;min-width:760px!important}.mmp-table th,.mmp-table td{font-size:10.5px!important;padding:5px 4px!important}.mmp-table th:nth-child(2),.mmp-table td:nth-child(2){left:32px!important}}
@media(max-width:520px){.mmp-table{font-size:9.5px!important;min-width:700px!important}.mmp-table th,.mmp-table td{font-size:9.5px!important;padding:4px 3px!important}.mmp-table th:nth-child(2),.mmp-table td:nth-child(2){left:28px!important}.mmp-badge,.mmp-division{font-size:9px!important;padding:2px 4px!important}}
@media(orientation:landscape) and (max-height:520px){.mmp-table{font-size:9.5px!important;min-width:700px!important}.mmp-table th,.mmp-table td{font-size:9.5px!important;padding:4px 3px!important}.mmp-table-wrap{max-height:calc(100vh - 155px)!important}}

/* v1.7 live-stage split view */
.mmp-section-row td{background:#111827!important;color:#fff!important;padding:0!important;border-bottom:0!important}
.mmp-section-title{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#fff;border-radius:8px 8px 0 0;margin-top:6px}
.mmp-section-finished{background:#0f766e}
.mmp-section-running{background:#1d4ed8}
.mmp-section-head th{position:sticky;top:0;background:#e8eef8!important;color:#111!important;font-size:10.5px!important;text-transform:uppercase;letter-spacing:.04em;padding:6px!important;border-bottom:1px solid #cbd5e1!important}
.mmp-section-empty{background:#f8fafc!important;color:#475569!important;text-align:center;font-weight:800;padding:18px!important;white-space:normal!important}
.mmp-table tr.status-started td{background:#eef6ff!important;color:#0f3767!important;font-weight:700}
.mmp-table tr.status-started td:last-child{color:#1d4ed8!important;font-weight:900}
@media(max-width:760px){
  .mmp-section-title{font-size:11px;padding:8px 10px}
  .mmp-section-head th{font-size:9px!important;padding:5px 4px!important}
  .mmp-section-empty{font-size:11px!important;padding:14px 8px!important}
}

/* v2.6 overall stage podium highlights */
.mmp-table td.mmp-stage-p1 {
  background: #d8f8df !important;
  color: #075f22 !important;
  font-weight: 800;
  border-left: 3px solid #16a34a;
}
.mmp-table td.mmp-stage-p2 {
  background: #eef4ff !important;
  color: #17427d !important;
  font-weight: 700;
}
.mmp-table td.mmp-stage-p3 {
  background: #fff7da !important;
  color: #765500 !important;
  font-weight: 700;
}
.mmp-table td.mmp-penalties {
  font-weight: 700;
  color: #991b1b;
}


/* v3.3 ASN logo */
.mmp-asn-logo{max-height:64px;max-width:120px;object-fit:contain;background:#fff;border-radius:12px;padding:7px;margin-right:8px}
.mmp-hero-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){.mmp-asn-logo{max-height:46px;max-width:82px}.mmp-hero-actions{justify-content:flex-start}}

/* v4.0 frontend cleanup: hide WordPress backend/admin bar on public results view */
body.mmp-results-public #wpadminbar,
body.mmp-results-public .wp-admin-bar,
body.mmp-results-public #adminmenumain,
body.mmp-results-public #adminmenuwrap,
body.mmp-results-public #adminmenu,
body.mmp-results-public .update-nag,
body.mmp-results-public .notice,
body.mmp-results-public .error,
body.mmp-results-public .updated {
  display: none !important;
}
html body.mmp-results-public,
html body.mmp-results-public.admin-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html body.mmp-results-public #page,
html body.mmp-results-public .site,
html body.mmp-results-public .site-content {
  margin-top: 0 !important;
}
@media screen and (max-width: 782px) {
  html body.mmp-results-public,
  html body.mmp-results-public.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
