/*
 * Nabd Premium Matchday Experience — v0.8.0
 * Original match-list and match-centre system inspired by modern sports UX,
 * without copying reference branding, layouts, assets or proprietary content.
 */
:root{
  --match-home:#2f5bea;
  --match-away:#f6b91f;
  --match-live:#ef3d55;
  --match-night:#0c1427;
  --match-night-2:#172a58;
  --pitch:#167a4a;
  --pitch-line:rgba(255,255,255,.52);
}

/* Match-day hero and date console */
.matchday-hero{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(118deg,#0c1530 0%,#193c92 55%,#295fe8 100%)}
.matchday-hero:after{content:"";position:absolute;inset:-120px -10% auto;height:260px;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 68%);z-index:-1}
.matchday-hero .hero-metric{color:#fff;text-decoration:none;transition:transform .2s ease,background .2s ease}
.matchday-hero .hero-metric:hover{transform:translateY(-2px);background:rgba(255,255,255,.18)}
.matchday-console{padding:14px 16px;margin-bottom:12px;border-radius:18px}
.matchday-console-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.matchday-console .date-command-actions{display:flex;align-items:center;gap:8px}
.matchday-console .compact-picker{width:154px;height:40px;margin:0;position:relative}
.matchday-console .compact-picker input{position:absolute;inset:0;opacity:0;cursor:pointer}
.matchday-console .date-strip{display:flex;gap:8px;overflow:auto hidden;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px}
.matchday-console .date-strip::-webkit-scrollbar{display:none}
.matchday-console .date-tile{flex:1 0 72px;scroll-snap-align:center;min-width:72px}
.matchday-console .date-tile.active{transform:translateY(-1px)}
.match-toolbar-v3{display:flex;align-items:center;justify-content:space-between;gap:10px}
.match-toolbar-actions{display:flex;align-items:center;gap:8px}
.density-toggle{flex:none}
html[data-match-density="compact"] .density-toggle{color:var(--brand);border-color:color-mix(in srgb,var(--brand) 35%,var(--border));background:var(--brand-soft)}

/* Competition cards */
.matchday-layout{align-items:start}
.competition-card-v3{overflow:hidden;border:1px solid var(--border);box-shadow:0 9px 30px rgba(15,23,42,.055)}
.competition-header-v3{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;background:linear-gradient(180deg,var(--surface),color-mix(in srgb,var(--surface-2) 72%,var(--surface)));border-bottom:1px solid var(--border)}
.competition-header-v3 .competition-logo img{width:100%;height:100%;object-fit:contain}
.competition-status-summary{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.68rem;font-weight:800}
.competition-status-summary span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:var(--surface-3)}
.competition-status-summary .live-summary{color:var(--match-live);background:var(--live-soft)}
.competition-status-summary .live-summary i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 14%,transparent)}
.competition-mini-nav{display:flex;align-items:center;gap:4px;padding:6px 11px;background:var(--surface-2);border-bottom:1px solid var(--border);overflow:auto hidden;scrollbar-width:none}
.competition-mini-nav::-webkit-scrollbar{display:none}
.competition-mini-nav a{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:5px 9px;border-radius:8px;color:var(--text-2);font-size:.66rem;font-weight:750;white-space:nowrap}
.competition-mini-nav a:hover,.competition-mini-nav a.active{color:var(--brand);background:var(--brand-soft)}
.competition-mini-nav .icon{width:15px;height:15px}
.match-list-v3{background:var(--surface)}

/* Compact match rows */
.match-card-v3{position:relative;grid-template-columns:72px minmax(0,1.15fr) 92px minmax(105px,.65fr) 66px;min-height:82px;padding:7px 11px 7px 14px;gap:0;border-bottom:1px solid var(--border);isolation:isolate;transition:background .18s ease,transform .18s ease}
[dir="rtl"] .match-card-v3{padding:7px 14px 7px 11px}
.match-card-v3:last-child{border-bottom:0}
.match-card-v3:hover{background:color-mix(in srgb,var(--brand-soft) 52%,var(--surface));transform:translateY(-1px)}
.match-card-v3 .match-card-link{z-index:0}
.match-card-v3 a:not(.match-card-link),.match-card-v3 button{position:relative;z-index:2}
.match-status-rail{position:absolute;inset-block:11px;inset-inline-start:0;width:3px;border-radius:0 3px 3px 0;background:transparent}
[dir="rtl"] .match-status-rail{border-radius:3px 0 0 3px}
.match-card-v3.is-live .match-status-rail{background:var(--match-live);box-shadow:0 0 15px color-mix(in srgb,var(--match-live) 38%,transparent)}
.match-card-v3.is-live{background:linear-gradient(90deg,color-mix(in srgb,var(--live-soft) 80%,transparent),var(--surface) 42%)}
[dir="rtl"] .match-card-v3.is-live{background:linear-gradient(270deg,color-mix(in srgb,var(--live-soft) 80%,transparent),var(--surface) 42%)}
.match-card-v3.is-finished{background:color-mix(in srgb,var(--surface-2) 38%,var(--surface))}
.match-card-v3 .match-time-block{align-self:stretch;justify-content:center;border-inline-end:1px solid var(--border)}
.match-card-v3 .match-kickoff{font-weight:900;font-variant-numeric:tabular-nums}
.match-card-v3 .live-minute{color:var(--match-live);font-weight:950}
.match-card-v3 .match-teams{display:grid;gap:4px;min-width:0}
.match-card-v3 .team-row{grid-template-columns:29px minmax(0,1fr) auto;min-width:0}
.match-card-v3 .team-crest{box-shadow:none}
.match-card-v3 .team-name{font-size:.79rem;letter-spacing:-.015em}
.discipline-badge{display:inline-grid;place-items:center;min-width:16px;height:19px;padding-inline:4px;border-radius:4px;font-size:.56rem;font-weight:900;color:#fff}
.discipline-badge.red{background:#ef4444}
.match-card-v3 .match-score{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:5px;position:relative;padding-inline:8px}
.match-card-v3 .match-score strong{background:transparent;font-size:1.15rem;height:auto;min-width:22px}
.match-card-v3 .match-score small{grid-column:1/-1;font-size:.53rem;color:var(--muted);text-align:center;margin-top:-3px}
.match-card-v3 .score-divider{font-weight:700;color:var(--muted)}
.match-card-v3 .versus{grid-column:1/-1;display:grid;place-items:center;width:34px;height:27px;margin:auto;border-radius:8px;background:var(--surface-3);font-size:.61rem;font-weight:900}
.match-card-v3 .match-context{padding-inline:10px;border-inline-start:1px solid var(--border);display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0}
.match-card-v3 .match-context strong{font-size:.67rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-card-v3 .last-event-cue{display:flex;align-items:center;gap:5px;color:var(--text-2)}
.match-card-v3 .last-event-cue span{color:var(--match-live);font-weight:900}
.match-card-v3 .match-actions{justify-content:flex-end}
html[data-match-density="compact"] .match-card-v3{min-height:66px;grid-template-columns:62px minmax(0,1fr) 80px 54px;padding-block:4px}
html[data-match-density="compact"] .match-card-v3 .match-context{display:none}
html[data-match-density="compact"] .match-card-v3 .team-crest{width:24px;height:24px}
html[data-match-density="compact"] .match-card-v3 .team-row{min-height:25px;grid-template-columns:25px minmax(0,1fr) auto}
html[data-match-density="compact"] .match-card-v3 .team-name{font-size:.73rem}

/* Premium match hero */
.match-hero-v3{position:relative;overflow:hidden;padding:0;border:0;border-radius:24px;background:linear-gradient(135deg,var(--match-night),var(--match-night-2));color:#fff;box-shadow:0 24px 65px rgba(6,15,36,.25)}
.match-hero-v3:before{display:none}
.match-hero-ambient{position:absolute;inset:0;background:radial-gradient(circle at 17% 20%,rgba(70,111,255,.3),transparent 31%),radial-gradient(circle at 85% 12%,rgba(246,185,31,.18),transparent 32%),linear-gradient(120deg,transparent 25%,rgba(255,255,255,.035) 25% 26%,transparent 26% 52%,rgba(255,255,255,.035) 52% 53%,transparent 53%);pointer-events:none}
.match-hero-v3>*:not(.match-hero-ambient){position:relative;z-index:1}
.match-hero-v3 .match-hero-topline{padding:14px 17px;border-bottom:1px solid rgba(255,255,255,.12);background:rgba(6,11,24,.2)}
.match-hero-v3 .competition-pill{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#fff;padding:5px 9px;border-radius:12px}
.match-hero-v3 .competition-pill>span:last-child{display:grid;gap:1px;color:#fff}
.match-hero-v3 .competition-pill strong{font-size:.74rem;color:#fff}
.match-hero-v3 .competition-pill small{font-size:.55rem;color:rgba(255,255,255,.63)}
.match-hero-v3 .competition-mini-logo{background:#fff;color:#172033}
.match-hero-v3 .match-hero-favorite{color:#fff;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.08)}
.match-hero-v3 .connection-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border-radius:999px;background:rgba(239,61,85,.14);color:#ffb4c0;font-size:.62rem;font-weight:850}
.match-hero-v3 .connection-chip i{width:7px;height:7px;border-radius:50%;background:#ff5d75;box-shadow:0 0 0 5px rgba(255,93,117,.12);animation:pulse 1.7s infinite}
.match-main-v3{padding:27px 5%;grid-template-columns:minmax(0,1fr) 190px minmax(0,1fr)}
.match-main-v3 .hero-team small{color:rgba(255,255,255,.48);font-size:.58rem;font-weight:800}
.match-main-v3 .hero-crest{width:88px;height:88px;border-radius:24px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.96);color:#14213d;box-shadow:0 18px 36px rgba(2,8,23,.3)}
.match-main-v3 .hero-team-name{color:#fff;font-size:1rem;max-width:220px;text-align:center}
.match-main-v3 .match-state-badge{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.13);color:#fff}
.match-main-v3 .scoreline{font-size:3.15rem;color:#fff}
.match-main-v3 .scoreline span{color:rgba(255,255,255,.45)}
.match-main-v3 .hero-score time{color:rgba(255,255,255,.62)}
.score-subline{color:rgba(255,255,255,.55);font-size:.62rem}
.countdown-large{color:#ffdf7d;font-size:.64rem}
.match-insights-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,.08);border-top:1px solid rgba(255,255,255,.1)}
.match-insights-strip>div{display:grid;grid-template-columns:32px 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;min-height:62px;padding:9px 14px;background:rgba(6,11,24,.28)}
.match-insights-strip>div>span{grid-row:1/3;width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.08);color:#9fb7ff}
.match-insights-strip small{font-size:.53rem;color:rgba(255,255,255,.48)}
.match-insights-strip strong{font-size:.66rem;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-detail-tabs{border:1px solid var(--border);box-shadow:0 12px 30px rgba(15,23,42,.07)}
.match-detail-tabs a.active{background:var(--match-night);color:#fff}

/* Live compact dock */
.match-live-dock{position:fixed;top:calc(var(--header-h) + 6px);left:50%;z-index:80;transform:translate(-50%,-130%);width:min(620px,calc(100% - 24px));display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:8px 12px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(10,18,36,.96);color:#fff;box-shadow:0 18px 42px rgba(2,8,23,.28);backdrop-filter:blur(16px);transition:transform .25s ease,opacity .25s ease;opacity:0}
.match-live-dock.is-visible{transform:translate(-50%,0);opacity:1}
.match-live-dock a{color:#fff;font-size:.68rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-live-dock a:last-child{text-align:end}
.match-live-dock>div{display:flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}
.match-live-dock strong{font-size:1rem}
.match-live-dock small{margin-inline-start:5px;color:#ff9aaa;font-size:.6rem;font-weight:900}

/* Match overview and contextual links */
.match-detail-layout-v3{grid-template-columns:minmax(0,1fr) 275px;gap:14px}
.overview-facts-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.overview-facts-grid article{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;gap:2px 8px;align-items:center;padding:11px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2);min-width:0}
.overview-facts-grid article>span{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--brand-soft);color:var(--brand)}
.overview-facts-grid small{font-size:.55rem;color:var(--muted)}
.overview-facts-grid strong{font-size:.67rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.competition-action-links{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.competition-action-links a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid var(--border);border-radius:11px;background:var(--surface);font-size:.69rem;font-weight:800;color:var(--text-2)}
.competition-action-links a:hover{color:var(--brand);border-color:color-mix(in srgb,var(--brand) 35%,var(--border));background:var(--brand-soft)}
.section-intro{margin:-4px 0 13px;color:var(--muted);font-size:.68rem;line-height:1.7}
.sticky-side-card{position:sticky;top:calc(var(--header-h) + 76px)}
.source-trust-card{display:flex;align-items:center;gap:9px;margin-top:12px;padding:10px;border-radius:12px;background:var(--brand-soft);color:var(--brand)}
.source-trust-card>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--surface)}
.source-trust-card div{display:grid;gap:1px}
.source-trust-card small{font-size:.52rem;color:var(--muted)}
.source-trust-card strong{font-size:.7rem}
.source-trust-card em{font-style:normal;font-size:.55rem;color:var(--success)}

/* Broadcast cards */
.broadcast-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.broadcast-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(145deg,var(--surface),var(--surface-2))}
.broadcast-logo{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#fff;border:1px solid var(--border);color:#633a9f}
.broadcast-logo img{max-width:78%;max-height:78%;object-fit:contain}
.broadcast-copy{display:grid;gap:2px;min-width:0}
.broadcast-copy strong{font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.broadcast-copy span,.broadcast-copy small{display:flex;align-items:center;gap:4px;color:var(--text-2);font-size:.58rem}
.broadcast-copy small{color:var(--muted)}
.broadcast-copy .icon{width:13px;height:13px}
.broadcast-action{display:grid;place-items:center;gap:2px;min-width:64px;min-height:44px;padding:5px 8px;border-radius:10px;background:var(--brand);color:#fff;font-size:.52rem;font-weight:800;text-align:center}
.broadcast-verified-state{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--surface-3);color:var(--muted)}
.broadcast-verified-state.verified{background:#e8fbf4;color:var(--success)}

/* Split events timeline */
.event-summary-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.event-summary-chips span{padding:4px 7px;border-radius:999px;background:var(--surface-3);color:var(--text-2);font-size:.55rem}
.event-summary-chips b{color:var(--text)}
.split-timeline{position:relative;display:grid;grid-template-columns:1fr 36px 1fr;row-gap:9px;padding-block:4px}
.timeline-axis{position:absolute;inset-block:8px;left:50%;width:2px;transform:translateX(-50%);background:linear-gradient(var(--brand),var(--border),var(--accent));border-radius:2px}
.split-event{grid-column:1/3;display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;min-height:58px}
.split-event.away-side{grid-column:2/4;grid-template-columns:36px minmax(0,1fr)}
.split-event time{position:absolute;left:50%;transform:translateX(-50%);z-index:2;min-width:36px;padding:2px 4px;text-align:center;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:.55rem;font-weight:900;color:var(--text-2)}
.split-event-marker{grid-column:2;width:30px;height:30px;display:grid;place-items:center;justify-self:center;border-radius:50%;background:var(--surface);border:2px solid var(--brand);color:var(--brand);z-index:1;box-shadow:0 0 0 5px var(--surface)}
.split-event.away-side .split-event-marker{grid-column:1;border-color:var(--accent);color:#9a6900}
.split-event-copy{grid-column:1;padding:9px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);display:grid;gap:1px;text-align:end}
.split-event.away-side .split-event-copy{grid-column:2;text-align:start}
.split-event-copy strong{font-size:.69rem}
.split-event-copy span{font-size:.66rem;color:var(--text-2)}
.split-event-copy small{font-size:.56rem;color:var(--muted)}
.split-event.event-goal .split-event-copy,.split-event.event-penalty_goal .split-event-copy{border-color:color-mix(in srgb,var(--success) 30%,var(--border));background:color-mix(in srgb,#e8fbf4 55%,var(--surface))}
.split-event.event-red_card .split-event-copy,.split-event.event-second_yellow .split-event-copy{border-color:color-mix(in srgb,#ef4444 35%,var(--border));background:color-mix(in srgb,#fff1f2 55%,var(--surface))}

/* Statistics */
.stat-category-tabs{display:flex;gap:6px;overflow:auto hidden;scrollbar-width:none;margin-bottom:10px;padding:2px}
.stat-category-tabs::-webkit-scrollbar{display:none}
.stat-category-tabs button{flex:none;min-height:34px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-2);font:inherit;font-size:.62rem;font-weight:800;cursor:pointer}
.stat-category-tabs button.active{background:var(--match-night);border-color:var(--match-night);color:#fff}
.stats-panel-v3 .stats-group{transition:opacity .2s ease}
.stats-panel-v3 .stats-group[hidden]{display:none}
.stats-panel-v3 .dual-stat-track{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:transparent;overflow:visible;height:7px}
.stats-panel-v3 .dual-stat-track i{height:7px;border-radius:999px;max-width:100%}
.stats-panel-v3 .dual-stat-track i.home{justify-self:end;background:linear-gradient(90deg,#6f8dff,var(--match-home))}
.stats-panel-v3 .dual-stat-track i.away{justify-self:start;background:linear-gradient(90deg,var(--match-away),#ffd96e)}
.stats-panel-v3 .stat-values strong:first-child{color:var(--match-home)}
.stats-panel-v3 .stat-values strong:last-child{color:#b67a00}

/* Tactical lineups */
.lineup-view-toggle{display:flex;gap:4px;padding:3px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}
.lineup-view-toggle button{display:inline-flex;align-items:center;gap:5px;min-height:31px;padding:4px 8px;border:0;border-radius:7px;background:transparent;color:var(--text-2);font:inherit;font-size:.58rem;font-weight:800;cursor:pointer}
.lineup-view-toggle button.active{background:var(--surface);color:var(--brand);box-shadow:var(--shadow-sm)}
.lineup-team-switch{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:10px}
.lineup-team-switch button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 11px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--text);font:inherit;cursor:pointer}
.lineup-team-switch button span{font-size:.7rem;font-weight:850}
.lineup-team-switch button b{font-size:.61rem;color:var(--muted)}
.lineup-team-switch button.active{background:var(--match-night);border-color:var(--match-night);color:#fff}
.lineup-team-switch button.active b{color:#ffdc72}
.lineup-team-view{display:none}
.lineup-team-view.active{display:block}
.tactical-pitch{position:relative;min-height:610px;overflow:hidden;border-radius:20px;background:linear-gradient(90deg,rgba(255,255,255,.035) 50%,transparent 50%),linear-gradient(#168553,#126f45);background-size:20% 100%,100% 100%;border:7px solid #0f643c;box-shadow:inset 0 0 35px rgba(0,0,0,.2)}
.pitch-markings i{position:absolute;display:block;border:2px solid var(--pitch-line);pointer-events:none}
.pitch-markings .halfway{left:4%;right:4%;top:50%;border-width:2px 0 0}
.pitch-markings .center-circle{width:112px;height:112px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%}
.pitch-markings .top-box,.pitch-markings .bottom-box{width:45%;height:16%;left:50%;transform:translateX(-50%)}
.pitch-markings .top-box{top:0;border-top:0}
.pitch-markings .bottom-box{bottom:0;border-bottom:0}
.pitch-formation{position:absolute;inset:5% 3%;display:flex;flex-direction:column;justify-content:space-between}
.pitch-row{display:grid;grid-template-columns:repeat(var(--player-count),minmax(0,1fr));align-items:start;gap:3px}
.pitch-player{position:relative;display:grid;justify-items:center;gap:4px;color:#fff;text-align:center;min-width:0}
.pitch-player-avatar{position:relative;width:47px;height:47px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#fff,#e7edf7);border:2px solid rgba(255,255,255,.88);color:#1d2d4f;box-shadow:0 8px 18px rgba(0,0,0,.28)}
.pitch-player-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.pitch-player-avatar>b{font-size:.82rem}
.pitch-player-avatar small{position:absolute;inset-inline-end:-4px;bottom:-3px;min-width:19px;height:19px;display:grid;place-items:center;padding:0 3px;border-radius:7px;background:#102342;color:#fff;font-size:.52rem;font-weight:900;border:1px solid rgba(255,255,255,.35)}
.pitch-player-avatar i{position:absolute;inset-inline-start:-4px;top:-3px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:#151515;font-size:.49rem;font-style:normal;font-weight:950}
.pitch-player>strong{max-width:105px;padding:3px 6px;border-radius:7px;background:rgba(6,18,13,.66);font-size:.56rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;backdrop-filter:blur(4px)}
.pitch-player>em{position:absolute;top:-7px;inset-inline-start:50%;transform:translateX(-50%);padding:2px 5px;border-radius:6px;background:var(--accent);color:#171717;font-size:.5rem;font-style:normal;font-weight:950}
.coach-strip{display:flex;align-items:center;gap:9px;margin-top:9px;padding:10px 12px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2)}
.coach-strip>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--brand-soft);color:var(--brand)}
.coach-strip div{display:grid;gap:1px}.coach-strip small{font-size:.55rem;color:var(--muted)}.coach-strip strong{font-size:.7rem}
.lineup-list-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.lineup-list-grid section{border:1px solid var(--border);border-radius:14px;overflow:hidden}
.lineup-list-grid h3{margin:0;padding:9px 11px;background:var(--surface-2);font-size:.7rem}
.lineup-player-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto auto;gap:7px;align-items:center;padding:8px 10px;border-top:1px solid var(--border)}
.lineup-player-row strong{font-size:.67rem}.lineup-player-row small{font-size:.55rem;color:var(--muted)}.lineup-player-row>b{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--accent);font-size:.49rem;color:#151515}

/* Mini standings */
.mini-standings-table{border:1px solid var(--border);border-radius:14px;overflow:hidden}
.mini-standing-head,.mini-standing-row{display:grid;grid-template-columns:38px minmax(0,1fr) 54px 54px;align-items:center;min-height:42px;padding-inline:10px;border-bottom:1px solid var(--border)}
.mini-standing-head{min-height:34px;background:var(--surface-2);color:var(--muted);font-size:.57rem;font-weight:800}
.mini-standing-row:last-child{border-bottom:0}
.mini-standing-row>span,.mini-standing-row>b{text-align:center;font-size:.65rem}
.mini-standing-row>strong{font-size:.69rem}
.mini-standing-row.is-match-team{background:color-mix(in srgb,var(--brand-soft) 65%,var(--surface));box-shadow:inset 3px 0 0 var(--brand)}
[dir="rtl"] .mini-standing-row.is-match-team{box-shadow:inset -3px 0 0 var(--brand)}

/* Dark theme */
html[data-theme="dark"] .matchday-hero{background:linear-gradient(118deg,#090f20,#142d66 60%,#2147b7)}
html[data-theme="dark"] .competition-card-v3{box-shadow:0 9px 30px rgba(0,0,0,.18)}
html[data-theme="dark"] .match-card-v3.is-live{background:linear-gradient(90deg,rgba(239,61,85,.12),var(--surface) 42%)}
[dir="rtl"] html[data-theme="dark"] .match-card-v3.is-live{background:linear-gradient(270deg,rgba(239,61,85,.12),var(--surface) 42%)}
html[data-theme="dark"] .broadcast-logo{background:#fff}
html[data-theme="dark"] .split-event.event-goal .split-event-copy,html[data-theme="dark"] .split-event.event-penalty_goal .split-event-copy{background:rgba(9,150,111,.11)}
html[data-theme="dark"] .split-event.event-red_card .split-event-copy,html[data-theme="dark"] .split-event.event-second_yellow .split-event-copy{background:rgba(239,68,68,.11)}
html[data-theme="dark"] .source-trust-card{background:#1d2745}
html[data-theme="dark"] .match-detail-tabs a.active{background:#eef2ff;color:#111827}

/* Tablet */
@media(max-width:1100px){
  .match-card-v3{grid-template-columns:68px minmax(0,1fr) 84px 88px 62px}
  .match-detail-layout-v3{grid-template-columns:1fr}
  .match-sidebar-v3{display:grid;grid-template-columns:1fr}
  .sticky-side-card{position:static}
}

/* Mobile */
@media(max-width:820px){
  .matchday-console{padding:10px;border-radius:16px}
  .matchday-console-top{margin-bottom:9px}
  .matchday-console .compact-picker{width:43px;flex:none}
  .matchday-console .compact-picker .calendar-picker-label span{display:none}
  .matchday-console .compact-picker .calendar-picker-label{padding:0}
  .matchday-console .date-tile{flex:0 0 66px;min-width:66px}
  .match-toolbar-v3{display:block}
  .match-toolbar-actions{display:none}
  .competition-header-v3{grid-template-columns:minmax(0,1fr) auto}
  .competition-status-summary{display:none}
  .competition-actions{grid-column:2}
  .competition-mini-nav{padding-inline:8px}
  .match-card-v3{grid-template-columns:58px minmax(0,1fr) 72px 34px;min-height:74px;padding:5px 6px 5px 9px}
  [dir="rtl"] .match-card-v3{padding:5px 9px 5px 6px}
  .match-card-v3 .match-context{display:none}
  .match-card-v3 .team-row{grid-template-columns:25px minmax(0,1fr) auto}
  .match-card-v3 .team-crest{width:24px;height:24px}
  .match-card-v3 .team-name{font-size:.72rem}
  .match-card-v3 .match-score{padding-inline:4px}
  .match-card-v3 .match-score strong{font-size:1rem}
  .match-card-v3 .match-score small{font-size:.47rem}
  .match-card-v3 .match-actions .favorite-button{width:30px;height:30px}
  html[data-match-density="compact"] .match-card-v3{grid-template-columns:54px minmax(0,1fr) 66px 32px;min-height:66px}
  .match-hero-v3{border-radius:19px}
  .match-hero-v3 .match-hero-topline{padding:10px 11px}
  .match-hero-v3 .competition-pill>span:last-child small{display:none}
  .match-main-v3{grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr);padding:20px 5px 16px;gap:5px}
  .match-main-v3 .hero-crest{width:59px;height:59px;border-radius:18px}
  .match-main-v3 .hero-team-name{font-size:.72rem;max-width:100px}
  .match-main-v3 .scoreline{font-size:2.18rem;gap:7px}
  .match-insights-strip{grid-template-columns:repeat(2,1fr)}
  .match-insights-strip>div:nth-child(2),.match-insights-strip>div:nth-child(4){display:none}
  .match-detail-tabs{top:calc(var(--header-h) + 3px)}
  .match-live-dock{top:calc(var(--header-h) + 5px);border-radius:13px;padding:7px 9px}
  .match-live-dock a{font-size:.58rem}
  .overview-facts-grid{grid-template-columns:repeat(2,1fr)}
  .competition-action-links{grid-template-columns:1fr}
  .broadcast-grid{grid-template-columns:1fr}
  .event-summary-chips{display:none}
  .split-timeline{grid-template-columns:1fr 30px 1fr}
  .split-event{grid-template-columns:minmax(0,1fr) 30px}
  .split-event.away-side{grid-template-columns:30px minmax(0,1fr)}
  .split-event time{min-width:31px;font-size:.49rem}
  .split-event-marker{width:26px;height:26px}
  .split-event-copy{padding:8px 9px}
  .split-event-copy strong{font-size:.63rem}.split-event-copy span{font-size:.59rem}.split-event-copy small{font-size:.51rem}
  .lineup-view-toggle span{display:none}
  .tactical-pitch{min-height:540px;border-width:5px;border-radius:16px}
  .pitch-player-avatar{width:40px;height:40px}
  .pitch-player>strong{max-width:76px;font-size:.49rem;padding-inline:4px}
  .pitch-player-avatar small{min-width:17px;height:17px;font-size:.46rem}
  .lineup-list-grid{grid-template-columns:1fr}
}

@media(max-width:560px){
  .matchday-hero{min-height:116px;padding:16px}
  .matchday-hero .scoreboard-copy h1{font-size:1.24rem}
  .matchday-console .date-command-actions{flex:1}
  .matchday-console .today-button{flex:1;justify-content:center}
  .competition-header-v3{padding:8px 9px}
  .competition-mini-nav a{font-size:.61rem;padding-inline:7px}
  .match-card-v3{grid-template-columns:51px minmax(0,1fr) 64px 31px;min-height:70px;padding-inline:5px}
  .match-card-v3 .match-time-block{padding-inline-end:4px}
  .match-card-v3 .match-kickoff{font-size:.75rem}
  .match-card-v3 .match-time-block small{font-size:.48rem}
  .match-card-v3 .match-teams{padding-inline:4px}
  .match-card-v3 .team-row{grid-template-columns:22px minmax(0,1fr) auto;gap:4px}
  .match-card-v3 .team-crest{width:21px;height:21px;font-size:.5rem}
  .match-card-v3 .team-name{font-size:.67rem}
  .match-card-v3 .match-score{gap:2px}
  .match-card-v3 .match-score strong{font-size:.91rem;min-width:17px}
  .match-card-v3 .score-divider{font-size:.7rem}
  .match-card-v3 .discipline-badge{min-width:13px;height:16px;font-size:.48rem}
  .match-card-v3 .match-actions .favorite-button{width:28px;height:28px}
  .match-main-v3{grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr)}
  .match-main-v3 .hero-crest{width:53px;height:53px}
  .match-main-v3 .hero-team-name{font-size:.67rem;max-width:84px}
  .match-main-v3 .scoreline{font-size:1.95rem}
  .match-insights-strip>div{padding:8px;grid-template-columns:28px 1fr}
  .match-insights-strip>div>span{width:28px;height:28px}
  .overview-facts-grid{grid-template-columns:1fr 1fr;gap:6px}
  .overview-facts-grid article{padding:8px;grid-template-columns:29px 1fr}
  .overview-facts-grid article>span{width:29px;height:29px}
  .broadcast-card{grid-template-columns:37px minmax(0,1fr) auto;padding:9px}
  .broadcast-logo{width:37px;height:37px}
  .lineup-team-switch button{padding:7px 8px}.lineup-team-switch button span{font-size:.63rem}.lineup-team-switch button b{font-size:.54rem}
  .tactical-pitch{min-height:500px}
  .pitch-player-avatar{width:36px;height:36px}
  .pitch-player>strong{max-width:62px;font-size:.45rem}
  .pitch-row{gap:1px}
}

@media(max-width:350px){
  .match-card-v3{grid-template-columns:47px minmax(0,1fr) 58px 28px}
  .match-card-v3 .team-name{font-size:.62rem}
  .match-card-v3 .team-crest{width:20px;height:20px}
  .match-card-v3 .match-score strong{font-size:.84rem}
  .match-main-v3{grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr)}
  .match-main-v3 .hero-crest{width:48px;height:48px}
  .match-main-v3 .scoreline{font-size:1.74rem}
  .pitch-player-avatar{width:33px;height:33px}
  .pitch-player>strong{max-width:54px}
}

@media(prefers-reduced-motion:reduce){
  .match-card-v3,.matchday-hero .hero-metric,.match-live-dock{transition:none}
  .match-hero-v3 .connection-chip i{animation:none}
}

.matchday-layout.no-sidebar{grid-template-columns:1fr}.match-center-ui-settings{margin-top:12px}.admin-check-card{display:flex!important;align-items:center;gap:9px;min-height:48px;padding:9px 11px;border:1px solid var(--admin-border,var(--border));border-radius:10px}.admin-check-card input{width:18px;height:18px}.admin-check-card span{margin:0!important}
