:root{
  --bg:#0b0d12;
  --surface:#151922;
  --surface-2:#1b2130;
  --fg:#e8eaef;
  --muted:#9aa3b5;
  --line:#2a3142;
  --line-strong:#3a4358;
  --accent:#3b82f6;
  --accent-soft:rgba(59,130,246,0.16);
  --live:#fb7185;
  --live-soft:rgba(244,63,94,0.18);
  --finished:#60a5fa;
  --shadow:0 1px 2px rgba(0,0,0,0.35), 0 12px 32px rgba(0,0,0,0.35);
  --font:"Inter",system-ui,-apple-system,sans-serif;
  --display:"Space Grotesk",system-ui,sans-serif;
  --ease:cubic-bezier(0.22, 1, 0.36, 1);
  --radius:14px;
  color-scheme:dark;
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
html{
  scrollbar-width:none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}
body{
  font-family:var(--font);
  color:var(--fg);
  background:
    radial-gradient(ellipse 70% 40% at 50% -12%, rgba(59,130,246,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 90% 10%, rgba(59,130,246,0.08) 0%, transparent 50%),
    var(--bg);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  padding-right:0;
}
body.is-modal-open{
  overflow:hidden;
  position:fixed;
  left:0;
  right:0;
  width:100%;
  overscroll-behavior:none;
}
body.is-modal-open .page-scrollbar{
  opacity:0;
  pointer-events:none;
}

/* Scrollbar propio de página — solo píldora, bajo el header */
.page-scrollbar{
  position:fixed;
  top:var(--page-scroll-top, 72px);
  right:8px;
  bottom:12px;
  z-index:15;
  width:14px;
  display:flex;
  justify-content:center;
  pointer-events:none;
  opacity:0;
  transition:opacity 0.2s var(--ease);
}
.page-scrollbar.is-visible{
  opacity:1;
  pointer-events:auto;
}
.page-scrollbar[hidden]{display:none !important}
.page-scrollbar-track{
  position:relative;
  width:6px;
  height:100%;
  background:transparent;
}
.page-scrollbar-thumb{
  position:absolute;
  top:0;
  left:50%;
  width:6px;
  height:40px;
  margin:0;
  padding:0;
  border:0;
  border-radius:999px;
  background:linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow:0 0 0 1px rgba(59,130,246,0.35), 0 4px 12px rgba(0,0,0,0.35);
  transform:translateX(-50%);
  cursor:grab;
  transition:width 0.15s var(--ease), background 0.15s ease, box-shadow 0.15s ease;
}
.page-scrollbar-thumb:hover,
.page-scrollbar.is-dragging .page-scrollbar-thumb{
  width:8px;
  background:linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
}
.page-scrollbar.is-dragging .page-scrollbar-thumb{
  cursor:grabbing;
  box-shadow:0 0 0 1px rgba(59,130,246,0.5), 0 6px 16px rgba(59,130,246,0.25);
}

/* Scrollbar píldora reutilizable (menús, etc.) */
.mini-scrollbar{
  position:absolute;
  top:8px;
  right:4px;
  bottom:8px;
  z-index:2;
  width:12px;
  display:flex;
  justify-content:center;
  pointer-events:none;
}
.mini-scrollbar.is-visible{pointer-events:auto}
.mini-scrollbar[hidden]{display:none !important}
.mini-scrollbar-track{
  position:relative;
  width:6px;
  height:100%;
  background:transparent;
}
.mini-scrollbar-thumb{
  position:absolute;
  top:0;
  left:50%;
  width:6px;
  height:40px;
  margin:0;
  padding:0;
  border:0;
  border-radius:999px;
  background:linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow:0 0 0 1px rgba(59,130,246,0.35), 0 4px 12px rgba(0,0,0,0.35);
  transform:translateX(-50%);
  cursor:grab;
  transition:width 0.15s var(--ease), background 0.15s ease;
}
.mini-scrollbar-thumb:hover,
.mini-scrollbar.is-dragging .mini-scrollbar-thumb{
  width:8px;
  background:linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
}
.mini-scrollbar.is-dragging .mini-scrollbar-thumb{cursor:grabbing}

body.is-modal-open .match-dialog,
body.is-modal-open .match-dialog-card,
body.is-modal-open .match-dialog-body,
body.is-modal-open .match-detail{
  touch-action:pan-y;
  overscroll-behavior:contain;
}
a{color:inherit;text-decoration:none}

.topbar{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  gap:18px;
  padding:12px clamp(16px, 3vw, 32px);
  background:rgba(11,13,18,0.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.topbar-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.logo-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#f2f2f2;
  box-shadow:0 0 0 1px rgba(255,255,255,0.14), 0 4px 12px rgba(0,0,0,0.35);
  overflow:hidden;
}
.logo-mark img,
.logo-mark svg{
  display:block;
  width:26px;
  height:26px;
  object-fit:contain;
}
.logo strong{
  font-family:var(--display);
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:-0.04em;
}
.today{
  margin:0;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
  white-space:nowrap;
}
.topbar-stats{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:8px;
  min-width:0;
}
.stat-chip{
  display:flex;
  align-items:baseline;
  gap:6px;
  padding:8px 12px;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:999px;
  white-space:nowrap;
}
.stat-chip strong{
  font-family:var(--display);
  font-size:1rem;
  font-weight:700;
  letter-spacing:-0.03em;
  line-height:1;
}
.stat-chip span{
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  letter-spacing:0.01em;
}
.stat-chip.is-live{
  background:var(--live-soft);
  border-color:rgba(251,113,133,0.35);
}
.stat-chip.is-live strong{color:var(--live)}
.topbar-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}
.topbar-status{
  margin:0;
  color:var(--muted);
  font-size:12px;
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.btn-primary{
  appearance:none;
  border:none;
  border-radius:10px;
  padding:10px 16px;
  background:var(--accent);
  color:#fff;
  font:600 13px/1 var(--font);
  cursor:pointer;
  transition:transform 0.15s var(--ease), background 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover{filter:brightness(1.08)}
.btn-primary:active{transform:scale(0.97)}
.btn-primary:disabled{opacity:0.55;cursor:wait}

main{
  width:min(920px, 100%);
  margin:0 auto;
  padding:24px clamp(16px, 3vw, 32px) 64px;
}

.toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  padding:16px 18px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.toolbar-copy{min-width:0;flex:1}
.toolbar-title{
  margin:0 0 4px;
  font-family:var(--display);
  font-size:1.15rem;
  font-weight:700;
  letter-spacing:-0.03em;
}
.panel-meta{
  margin:0;
  color:var(--muted);
  font-size:12px;
  min-height:1em;
}
.comp-filter{
  position:relative;
  min-width:min(280px, 100%);
  flex:0 1 300px;
  align-self:center;
}
.comp-filter-trigger{
  appearance:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  height:44px;
  padding:0 14px 0 16px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:
    linear-gradient(180deg, #1f2736 0%, #151922 100%);
  color:var(--fg);
  font:600 13px/1.2 var(--font);
  text-align:left;
  cursor:pointer;
  transition:border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.comp-filter-trigger::after{
  content:"";
  flex:0 0 auto;
  width:8px;
  height:8px;
  margin-top:-3px;
  border-right:2px solid #8b95a8;
  border-bottom:2px solid #8b95a8;
  transform:rotate(45deg);
  transition:transform 0.2s var(--ease), border-color 0.15s ease;
}
.comp-filter-value{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.comp-filter-trigger:hover{
  border-color:#5b657c;
}
.comp-filter-trigger:focus-visible{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(59,130,246,0.22);
}
.comp-filter.is-open .comp-filter-trigger{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(59,130,246,0.18);
}
.comp-filter.is-open .comp-filter-trigger::after{
  margin-top:3px;
  border-color:var(--accent);
  transform:rotate(-135deg);
}
.comp-filter-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:30;
  margin:0;
  padding:0;
  max-height:min(320px, 55vh);
  border:1px solid var(--line-strong);
  border-radius:14px;
  background:linear-gradient(180deg, #1c2330 0%, #121722 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 18px 40px rgba(0,0,0,0.45);
  overflow:hidden;
}
.comp-filter-menu[hidden]{display:none !important}
.comp-filter-list{
  margin:0;
  padding:6px 14px 6px 6px;
  list-style:none;
  max-height:min(320px, 55vh);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
}
.comp-filter-list::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}
.comp-filter-option{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin:0;
  padding:10px 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--fg);
  font:500 13px/1.3 var(--font);
  text-align:left;
  cursor:pointer;
  transition:background 0.12s ease, color 0.12s ease;
}
.comp-filter-option:hover,
.comp-filter-option:focus-visible{
  outline:none;
  background:rgba(255,255,255,0.06);
}
.comp-filter-option.is-selected{
  background:var(--accent-soft);
  color:#bfdbfe;
  font-weight:600;
}
.comp-filter-option.is-selected::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 3px rgba(59,130,246,0.2);
  flex:0 0 auto;
}
.comp-filter-option:not(.is-selected)::before{
  content:"";
  width:6px;
  height:6px;
  flex:0 0 auto;
  opacity:0;
}
.empty{
  margin:32px 0;
  padding:36px 20px;
  text-align:center;
  color:var(--muted);
  background:var(--surface);
  border:1px dashed var(--line-strong);
  border-radius:var(--radius);
}
.empty[hidden]{display:none !important}

.matches-board{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.comp-block{
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.comp-head{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  padding:12px 16px;
  background:rgba(255,255,255,0.03);
  border-bottom:1px solid var(--line);
}
.comp-head h3{
  margin:0;
  font-size:13px;
  font-weight:700;
  letter-spacing:-0.01em;
}
.comp-head span{
  margin-left:auto;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}

.match-row{
  appearance:none;
  width:100%;
  display:flex;
  align-items:center;
  flex:0 0 auto;
  min-height:88px;
  padding:16px;
  border:none;
  border-bottom:1px solid var(--line);
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:inherit;
  cursor:pointer;
  transition:background 0.15s ease;
}
.match-row:last-child{border-bottom:none}
.match-row:hover{background:rgba(255,255,255,0.04)}
.match-row.is-live-row{
  background:linear-gradient(90deg, var(--live-soft), transparent 28%);
}

.match-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(110px,auto) minmax(0,1fr);
  gap:12px 16px;
  align-items:center;
  width:100%;
}

.team{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.team.is-away{
  flex-direction:row-reverse;
  text-align:right;
  justify-content:flex-start;
}
.team img{
  display:block;
  width:56px;
  height:56px;
  object-fit:contain;
  flex:0 0 auto;
}
.team strong{
  display:block;
  font-size:17px;
  font-weight:700;
  line-height:1.15;
  letter-spacing:-0.02em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.match-mid{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
}
.match-mid .time{
  font-family:var(--display);
  font-weight:700;
  font-size:1.2rem;
  line-height:1;
  letter-spacing:-0.02em;
}
.match-mid .time.is-clock{
  font-size:0.95rem;
  font-weight:600;
  color:var(--muted);
  font-family:var(--font);
}
.badge{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  color:var(--muted);
}
.badge.is-live{
  background:var(--live-soft);
  color:var(--live);
}
.badge.is-finished{
  background:var(--accent-soft);
  color:var(--finished);
}
.match-meta{
  max-width:160px;
  color:var(--muted);
  font-size:11px;
  line-height:1.3;
  text-align:center;
}

.match-dialog{
  border:none;
  padding:0;
  width:min(1080px, calc(100vw - 20px));
  max-width:calc(100vw - 20px);
  max-height:calc(100vh - 20px);
  background:transparent;
  overflow:visible;
}
.match-dialog::backdrop{background:rgba(0,0,0,0.72)}
.match-dialog-card{
  width:100%;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 24px 64px rgba(0,0,0,0.55);
  overflow:hidden;
  max-height:calc(100vh - 20px);
  display:flex;
  flex-direction:column;
  height:auto;
  transition:height 0.38s var(--ease);
  will-change:height;
}
.match-dialog-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,0.03);
}
.btn-ghost{
  appearance:none;
  border:1px solid var(--line);
  background:var(--surface-2);
  color:var(--fg);
  border-radius:9px;
  padding:8px 12px;
  font:600 12px/1 var(--font);
  cursor:pointer;
}
.btn-ghost:hover{background:#252b3a}
.btn-ghost:active{transform:scale(0.98)}
.match-dialog-body{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
.match-detail{
  height:100%;
  max-height:none;
  padding:18px 20px 24px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
}
.match-detail::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}
.match-dialog-body .mini-scrollbar{
  top:12px;
  bottom:12px;
  right:6px;
}
@media (max-width:720px){
  .match-dialog{
    width:calc(100vw - 12px);
    max-height:calc(100vh - 12px);
  }
  .match-dialog-card{max-height:calc(100vh - 12px);border-radius:14px}
  .match-detail{padding:14px 14px 18px}
}
.detail-loading,.detail-error{
  margin:28px 0;
  text-align:center;
  color:var(--muted);
}
.detail-error{color:var(--live)}
.detail-hero{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:12px;
  align-items:center;
  padding:8px 4px 18px;
  border-bottom:1px solid var(--line);
  margin-bottom:16px;
}
.detail-team{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  text-align:center;
  min-width:0;
}
.detail-team img{
  width:80px;
  height:80px;
  object-fit:contain;
}
.detail-team strong{
  font-size:15px;
  font-weight:700;
  letter-spacing:-0.02em;
}
.detail-scorebox{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  min-width:96px;
}
.detail-scorebox .score{
  font-family:var(--display);
  font-size:2rem;
  font-weight:700;
  letter-spacing:-0.03em;
  line-height:1;
}
.detail-scorebox .when{
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}
.detail-kicker{
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
  font-weight:500;
}
.detail-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
  margin-bottom:18px;
}
.detail-fact{
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
}
.detail-fact span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.04em;
  margin-bottom:4px;
}
.detail-fact strong{
  font-size:14px;
  font-weight:600;
}
.detail-section{margin-top:8px}
.detail-section h3{
  margin:0 0 6px;
  font-size:13px;
  font-weight:700;
}
.section-note{
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}
.detail-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.detail-list a,.detail-list > div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-2);
  font-size:13px;
}
.detail-list-matches > div.match-hist-row{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:8px;
}
.match-scoreline{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:8px 12px;
  align-items:center;
  width:100%;
  min-width:0;
}
.ms-team{
  font-size:13px;
  font-weight:600;
  line-height:1.25;
  overflow:visible;
  text-overflow:unset;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.ms-team.is-away{text-align:right}
.ms-team.is-winner{color:#93c5fd}
.detail-list .score-mini{
  font-family:var(--display);
  font-weight:700;
  font-size:1rem;
  flex:0 0 auto;
  letter-spacing:-0.02em;
  white-space:nowrap;
}
.result-badge{
  align-self:flex-start;
  flex:0 0 auto;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  padding:4px 8px;
  border-radius:999px;
}
.result-badge.is-win{
  background:var(--accent-soft);
  color:var(--finished);
}
.result-badge.is-draw{
  background:rgba(255,255,255,0.08);
  color:var(--muted);
}
.result-badge.is-lose{
  background:var(--live-soft);
  color:var(--live);
}
.match-hist-row .match-scoreline{
  width:100%;
  min-width:0;
}
.form-teams{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}
.form-team-block h4{
  margin:0 0 8px;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.02em;
  color:var(--muted);
  text-transform:uppercase;
}
@media (max-width:900px){
  .form-teams{grid-template-columns:1fr}
}
.detail-tabs{
  display:flex;
  gap:4px;
  overflow-x:auto;
  padding:2px 0 12px;
  margin-bottom:4px;
  border-bottom:1px solid var(--line);
  scrollbar-width:none;
}
.detail-tabs::-webkit-scrollbar{display:none}
.detail-tab{
  appearance:none;
  flex:0 0 auto;
  border:0;
  background:transparent;
  color:var(--muted);
  font:600 12px/1 var(--font);
  padding:10px 12px;
  border-radius:8px;
  cursor:pointer;
  letter-spacing:0.01em;
}
.detail-tab:hover{background:rgba(255,255,255,0.06);color:var(--fg)}
.detail-tab.is-active{
  background:var(--accent-soft);
  color:var(--finished);
}
.detail-panel{padding-top:8px}
.tab-empty{
  margin:18px 0;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}
.pitch-block{margin-bottom:16px}
.pitch-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.pitch-head h4{
  margin:0;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.pitch-tabs{display:flex;gap:4px}
.pitch-tab{
  appearance:none;
  border:1px solid var(--line);
  background:var(--surface-2);
  color:var(--fg);
  border-radius:8px;
  padding:8px 12px;
  font:600 12px/1 var(--font);
  cursor:pointer;
}
.pitch-tab.is-active{
  background:var(--accent-soft);
  border-color:rgba(59,130,246,0.4);
  color:var(--finished);
}
.pitch-toolbar{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  font-size:13px;
}
.pitch-toolbar strong{font-weight:700}
.pitch-team-shield{width:28px;height:28px;object-fit:contain}
.pitch-form{
  margin-left:auto;
  background:#12141a;
  color:#fff;
  font-size:11px;
  font-weight:700;
  padding:4px 8px;
  border-radius:999px;
}
.pitch-field{
  position:relative;
  width:100%;
  aspect-ratio:2 / 3;
  max-height:520px;
  margin:0 auto;
  border-radius:14px;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(12,70,40,0.15), transparent 30%),
    repeating-linear-gradient(
      180deg,
      #1f8f4e 0,
      #1f8f4e 12.5%,
      #187a42 12.5%,
      #187a42 25%
    );
  box-shadow:inset 0 0 0 2px rgba(255,255,255,0.35);
}
.pitch-markings{
  position:absolute;
  inset:4%;
  border:2px solid rgba(255,255,255,0.55);
  border-radius:4px;
  pointer-events:none;
}
.pitch-markings:before,
.pitch-markings:after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  border:2px solid rgba(255,255,255,0.45);
}
.pitch-markings:before{
  top:0;
  width:42%;
  height:14%;
  border-top:0;
}
.pitch-markings:after{
  bottom:0;
  width:42%;
  height:14%;
  border-bottom:0;
}
.pitch-player{
  position:absolute;
  transform:translate(-50%, -50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  width:64px;
  z-index:2;
}
.pitch-avatar{
  position:relative;
  width:40px;
  height:40px;
}
.pitch-avatar img,
.pitch-ph{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
  background:#0b3d22;
  border:2px solid #fff;
  box-shadow:0 4px 10px rgba(0,0,0,0.25);
  display:block;
}
.pitch-num{
  position:absolute;
  right:-4px;
  bottom:-2px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:999px;
  background:#12141a;
  color:#fff;
  font-size:10px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,0.35);
}
.pitch-name{
  max-width:72px;
  padding:2px 6px;
  border-radius:6px;
  background:rgba(15,20,28,0.82);
  color:#fff;
  font-size:10px;
  font-weight:600;
  text-align:center;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lineups{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.lineup h4{
  margin:0 0 10px;
  font-size:13px;
  font-weight:700;
}
.plyr-list{display:flex;flex-direction:column;gap:6px}
.plyr{
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-2);
  font-size:12px;
}
.plyr img,.plyr-ph{
  width:28px;
  height:28px;
  border-radius:50%;
  object-fit:cover;
  background:#0f1420;
  flex:0 0 auto;
}
.plyr-num{
  font-family:var(--display);
  font-weight:700;
  min-width:1.4em;
  color:var(--muted);
}
.plyr-name{flex:1;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plyr-role{
  font-size:10px;
  font-weight:700;
  color:var(--finished);
  background:var(--accent-soft);
  padding:3px 6px;
  border-radius:6px;
}
.prob-block{margin-bottom:14px}
.prob-labels{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
  margin-bottom:8px;
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  text-align:center;
}
.prob-bars{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
}
.prob-bar{
  height:44px;
  border-radius:10px;
  background:linear-gradient(180deg, #3b82f6, #2563eb);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding-bottom:8px;
  color:#fff;
  font-family:var(--display);
  font-weight:700;
  font-size:14px;
  opacity:calc(0.35 + (var(--p) / 100) * 0.65);
}
.prob-bar.is-draw{background:linear-gradient(180deg,#98a2b3,#667085)}
.prob-bar.is-away{background:linear-gradient(180deg,#53b1fd,#1570ef)}
.previa-text{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:#c4cad6;
}
.odds-table,.standings{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.odds-head,.odds-row{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) repeat(3, 0.7fr);
  gap:8px;
  align-items:center;
  padding:9px 10px;
  font-size:12px;
}
.odds-head,.standings-head{
  color:var(--muted);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  font-size:10px;
}
.odds-row,.standings-row{
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-2);
}
.odds-row strong,.standings-row strong{
  font-family:var(--display);
  font-size:14px;
  text-align:center;
}
.odds-row span:not(:first-child),.odds-head span:not(:first-child){text-align:center}
.standings-head,.standings-row{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 40px 36px 40px;
  gap:6px;
  align-items:center;
  padding:9px 10px;
  font-size:12px;
}
.standings-team{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.standings-row.is-focus{
  background:var(--accent-soft);
  border-color:rgba(59,130,246,0.4);
}

@media (max-width:900px){
  .topbar{
    flex-wrap:wrap;
    gap:10px 14px;
  }
  .topbar-stats{margin-left:0}
  .topbar-actions{margin-left:auto}
}
@media (max-width:760px){
  .today{display:none}
  .topbar-status{display:none}
  .stat-chip span{display:none}
  .stat-chip{padding:8px 10px}
  .toolbar{
    flex-direction:column;
    align-items:stretch;
  }
  .comp-filter{flex:1 1 auto;min-width:0;align-self:stretch}
}
@media (max-width:560px){
  .match-row{
    min-height:0;
    text-align:center;
  }
  .match-main{
    grid-template-columns:1fr;
    gap:10px;
  }
  .team,.team.is-away{
    justify-content:center;
    flex-direction:row;
    text-align:center;
  }
  .team.is-away{flex-direction:row-reverse}
  .match-mid{order:-1}
  .match-meta{max-width:none}
  .detail-grid{grid-template-columns:1fr}
  .detail-hero{gap:8px}
  .detail-team img{width:64px;height:64px}
  .team img{width:48px;height:48px}
  .team strong{font-size:15px}
  .lineups{grid-template-columns:1fr}
  .pitch-field{max-height:440px}
  .pitch-player{width:56px}
  .pitch-avatar img,.pitch-ph{width:34px;height:34px}
  .pitch-name{max-width:64px;font-size:9px}
}
