/* Football Live Dashboard - deploy-ready visual layer v4.2.0 */
/* CSS only: visual layer, responsive layout, light animations, no runtime logic. */

/* latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fjallaone/v16/Yq6R-LCAWCX3-6Ky7FAFrO96kigt.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fjallaone/v16/Yq6R-LCAWCX3-6Ky7FAFrOF6kg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --pgm-primary: #002e6c;
  --pgm-primary-2: #073f8f;
  --pgm-primary-3: #3a69a6;
  --pgm-primary-soft: #cedef2;
  --pgm-indigo: #5769bf;
  --pgm-indigo-2: #3a498e;
  --pgm-indigo-dark: #1c2554;
  --pgm-bg: #a1bee6;
  --pgm-bg-solid: #a1bee6;
  --pgm-bg-2: #eef0f9;
  --pgm-surface: #ffffff;
  --pgm-surface-2: #f2f8ff;
  --pgm-surface-3: #e8f4fc;
  --pgm-text: #07172f;
  --pgm-muted: #55708f;
  --pgm-line: #cedef2;
  --pgm-line-strong: #b3d8f1;
  --pgm-red: #e62e2e;
  --pgm-red-soft: #ffe6e6;
  --pgm-orange: #e65322;
  --pgm-yellow: #fff3ad;
  --pgm-yellow-text: #733000;
  --pgm-green: #13c2b3;
  --pgm-green-dark: #005952;
  --pgm-blue: #07c;
  --pgm-blue-soft: #cceaff;
  --pgm-shadow-sm: 0 4px 12px rgba(0,24,68,.075);
  --pgm-shadow-md: 0 10px 24px rgba(0,46,108,.10);
  --pgm-shadow-lg: 0 18px 42px rgba(0,24,68,.16);
  --pgm-shadow-hover: 0 12px 26px rgba(0,46,108,.12);
  --pgm-shadow-club: 0 6px 16px rgba(0,46,108,.078), inset 0 1px 0 rgba(255,255,255,.90);
  --pgm-shadow-chip: 0 3px 10px rgba(0,46,108,.07), inset 0 1px 0 rgba(255,255,255,.86);
  --pgm-radius: 3px;
  --pgm-radius-md: 6px;
  --pgm-radius-lg: 8px;
  --pgm-max-width: 1560px;
  --pgm-page-x: clamp(8px, 1.4vw, 18px);
  --pgm-header-top: 34px;
  --pgm-header-bottom: 30px;
  --pgm-transition: .14s cubic-bezier(.22,.61,.36,1);
  --pgm-transition-fast: .10s ease;
  --pgm-transition-hover: .16s cubic-bezier(.2,.78,.28,1);
  --pgm-font-base: Roboto, Arial, Helvetica, sans-serif;
  --pgm-font-display: "Fjalla One", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--pgm-bg-solid);
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--pgm-bg-solid);
  background-color: var(--pgm-bg-solid);
  color: var(--pgm-text);
  font-family: var(--pgm-font-base);
  font-size: 12px;
  line-height: 1.25;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-x: none;
}
body.pgm-detail-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: 0; }
code {
  padding: 1px 4px;
  border-radius: var(--pgm-radius);
  background: rgba(0,46,108,.08);
  color: var(--pgm-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}
:focus-visible { outline: 3px solid rgba(19,194,179,.32); outline-offset: 2px; }

.pgm-visually-hidden,
.pgm-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}
.pgm-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 8px 12px;
  border-radius: var(--pgm-radius);
  background: var(--pgm-yellow);
  color: var(--pgm-primary);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--pgm-transition);
}
.pgm-skip:focus { transform: translateY(0); }

.pgm-shell {
  width: min(calc(100% - (var(--pgm-page-x) * 2)), var(--pgm-max-width));
  margin: 0 auto;
  padding: 8px 0 26px;
}

/* Sportsbook header */
.pgm-header {
  position: sticky;
  top: 8px;
  z-index: 904;
  overflow: hidden;
  height: auto;
  margin-bottom: 8px;
  border-radius: var(--pgm-radius);
  box-shadow: var(--pgm-shadow-sm);
  font-weight: 700;
  user-select: none;
}
.pgm-header__top,
.pgm-header__bottom {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 18px;
}
.pgm-header__top {
  min-height: var(--pgm-header-top);
  background: var(--pgm-primary);
  color: #fff;
}
.pgm-header__bottom {
  min-height: var(--pgm-header-bottom);
  background: var(--pgm-bg-2);
  color: var(--pgm-primary);
  border-top: 1px solid rgba(255,255,255,.12);
  gap: 10px;
}
.pgm-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(112px, 13vw, 166px);
  min-width: 112px;
  height: 100%;
  min-height: 34px;
  margin-right: 14px;
  padding: 3px 0;
  white-space: nowrap;
}
.pgm-brand__logo {
  display: block;
  width: 100%;
  max-width: 166px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
}
.pgm-nav {
  position: relative;
  display: flex;
  width: 0;
  flex: 1;
  align-self: stretch;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.pgm-nav::-webkit-scrollbar { display: none; }
.pgm-nav a {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--pgm-radius);
  color: rgba(255,255,255,.86);
  white-space: nowrap;
  transition: background-color var(--pgm-transition), color var(--pgm-transition);
}
.pgm-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.pgm-nav a.is-active { color: #fff; }
.pgm-nav a.is-active::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  display: inline-block;
  width: 0;
  height: 0;
  border-width: 0 8px 6px;
  border-style: solid;
  border-color: transparent transparent var(--pgm-bg-2);
  content: "";
  transform: translate(-50%);
}
.pgm-header__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
  gap: 7px;
  margin-left: 14px;
  color: rgba(255,255,255,.9);
}
.pgm-header__meta strong { font-size: 13px; color: #fff; }
.pgm-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pgm-green);
  box-shadow: 0 0 4px rgba(19,194,179,.58);
  animation: pgm-breathing-light 3.2s ease-in-out infinite;
}
.pgm-sport-tabs {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pgm-sport-tabs::-webkit-scrollbar { display: none; }
.pgm-sport-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: var(--pgm-radius);
  color: var(--pgm-primary);
  white-space: nowrap;
  transition: background-color var(--pgm-transition);
}
.pgm-sport-tabs a:hover,
.pgm-sport-tabs a.is-active { background: var(--pgm-primary-soft); }
.pgm-sport-tabs a.is-active::before {
  width: 2px;
  align-self: stretch;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--pgm-primary);
  content: "";
}
.pgm-header__feed {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
  gap: 8px;
  color: var(--pgm-muted);
}
.pgm-header__feed b { color: var(--pgm-primary); }

/* Layout */
.pgm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 8px;
  align-items: start;
}
.pgm-main,
.pgm-side { display: grid; min-width: 0; gap: 8px; }
.pgm-side {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  padding-right: 1px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,46,108,.35) transparent;
}
.pgm-side::-webkit-scrollbar,
.pgm-odds-scroll::-webkit-scrollbar,
.pgm-detail__body::-webkit-scrollbar { width: 5px; height: 5px; }
.pgm-side::-webkit-scrollbar-track,
.pgm-odds-scroll::-webkit-scrollbar-track,
.pgm-detail__body::-webkit-scrollbar-track { background: transparent; }
.pgm-side::-webkit-scrollbar-thumb,
.pgm-odds-scroll::-webkit-scrollbar-thumb,
.pgm-detail__body::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-clip: padding-box;
  background-color: rgba(29,29,29,.35);
}

/* Base panels */
.pgm-panel,
.pgm-hero {
  min-width: 0;
  border: 0;
  border-radius: var(--pgm-radius-lg);
  background: var(--pgm-surface);
  box-shadow: var(--pgm-shadow-sm);
}
.pgm-panel { padding: 8px; }
.pgm-panel {
  contain: layout paint;
}
.pgm-main > .pgm-panel,
.pgm-side > .pgm-panel {
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}
.pgm-hero,
.pgm-summary article,
.pgm-odds-table tr {
  contain: layout paint;
}

.pgm-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.pgm-panel__head > div { min-width: 0; }
.pgm-panel h2,
.pgm-panel p { margin: 0; }
.pgm-panel h2 {
  color: var(--pgm-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
}
.pgm-panel p {
  margin-top: 2px;
  color: var(--pgm-muted);
  font-size: 11px;
  line-height: 1.35;
}

/* Banner stage: single full-width carousel. Only one PNG banner is visible at a time. */
.pgm-hero,
.pgm-banner-stage {
  display: block;
  min-width: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}
.pgm-banner-carousel {
  position: relative;
  width: 100%;
  min-height: clamp(92px, 11.8vw, 150px);
  aspect-ratio: 2000 / 310;
  overflow: hidden;
  border-radius: var(--pgm-radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(238,246,255,.56)),
    var(--pgm-surface-2);
  box-shadow: var(--pgm-shadow-sm);
  isolation: isolate;
}
.pgm-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform: translate3d(calc(var(--pgm-banner-index, 0) * -100%), 0, 0);
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.pgm-banner-slide {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  min-height: inherit;
  place-items: center;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}
.pgm-banner-slide.is-empty {
  border: 1px dashed rgba(0,46,108,.32);
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(238,246,255,.68)),
    repeating-linear-gradient(135deg, rgba(0,46,108,.045) 0 10px, rgba(19,194,179,.045) 10px 20px);
}
.pgm-banner-slide.is-empty::before {
  content: "PNG Banner " attr(data-banner-slide);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: rgba(0,46,108,.74);
  box-shadow: var(--pgm-shadow-chip);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pgm-banner-slide.is-empty::after {
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: calc(var(--pgm-radius-lg) - 2px);
  content: "";
}
.pgm-banner-slide.has-image {
  background: rgba(255,255,255,.48);
}
.pgm-banner-slide img,
.pgm-banner-slide picture,
.pgm-banner-slide canvas,
.pgm-banner-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Buttons */
.pgm-btn,
.pgm-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 7px 12px;
  border-radius: var(--pgm-radius);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: background-color var(--pgm-transition), color var(--pgm-transition), opacity var(--pgm-transition), box-shadow var(--pgm-transition-fast);
}
.pgm-btn:active,
.pgm-icon-btn:active { transform: none; }
.pgm-btn:disabled,
.pgm-icon-btn:disabled { cursor: wait; opacity: .66; }
.pgm-btn--primary,
.pgm-icon-btn { background: var(--pgm-indigo); color: #fff; }
.pgm-btn--primary:hover,
.pgm-icon-btn:hover { background: var(--pgm-indigo-2); color: #fff; }
.pgm-btn--ghost {
  border: 0;
  background: rgba(255,255,255,.8);
  color: var(--pgm-primary);
}
.pgm-btn--ghost:hover { background: var(--pgm-primary-soft); }
.pgm-hero .pgm-btn--ghost { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.12); color: #fff; }
.pgm-btn--light { background: #fff; color: var(--pgm-primary); }
.pgm-btn--light:hover { background: var(--pgm-bg-2); }
.pgm-icon-btn { min-width: 34px; }
.pgm-icon-btn--text {
  min-width: 0;
  padding-inline: 10px;
  background: var(--pgm-primary);
  color: #fff;
}
.pgm-icon-btn.is-spinning { animation: pgm-spin .9s linear infinite; }
.pgm-icon-btn--text.is-spinning { animation: none; }
.pgm-btn.is-loading,
.pgm-icon-btn--text.is-loading { opacity: .72; }

.pgm-status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: var(--pgm-radius);
  background: var(--pgm-blue-soft);
  color: var(--pgm-primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.pgm-status-pill[data-state="online"] { background: #daf2f0; color: var(--pgm-green-dark); }
.pgm-status-pill[data-state="error"] { background: #fcc; color: #730b0b; }
.pgm-status-pill[data-state="loading"] { background: var(--pgm-yellow); color: var(--pgm-yellow-text); }

/* Summary */
.pgm-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.pgm-summary article {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px;
  overflow: hidden;
  border: 0;
  border-radius: var(--pgm-radius);
  background: var(--pgm-surface);
  box-shadow: var(--pgm-shadow-sm);
}
.pgm-summary article::before {
  display: none;
  content: none;
}
.pgm-summary article:nth-child(2)::before { background: var(--pgm-green); }
.pgm-summary article:nth-child(3)::before { background: var(--pgm-indigo); }
.pgm-summary article:nth-child(4)::before { background: var(--pgm-red); }
.pgm-summary span { color: var(--pgm-muted); font-size: 11px; font-weight: 700; }
.pgm-summary strong {
  color: var(--pgm-primary);
  font-family: var(--pgm-font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 400;
  line-height: .95;
}

/* Controls */
.pgm-panel__head {
  align-items: center;
  padding: 4px 2px 8px;
  border-bottom: 0;
}
.pgm-panel__head > div {
  display: grid;
  gap: 2px;
}
.pgm-panel__head .pgm-icon-btn,
.pgm-panel__head .pgm-icon-btn--text,
.pgm-panel__head .pgm-btn {
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--pgm-radius-md);
  box-shadow: 0 6px 14px rgba(0,46,108,.16);
}
.pgm-controls {
  display: grid;
  grid-template-columns: minmax(126px, .78fr) minmax(126px, .78fr) minmax(220px, 1.42fr) minmax(230px, 1.35fr);
  align-items: end;
  gap: 10px;
  margin: 0 0 10px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,250,255,.98)),
    var(--pgm-surface);
  box-shadow: 0 10px 26px rgba(0,46,108,.08);
}
.pgm-odds-board .pgm-controls {
  grid-template-columns: minmax(150px, 190px) minmax(230px, 300px) minmax(250px, 1fr);
}
.pgm-controls label {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--pgm-primary);
  font-weight: 700;
}
.pgm-controls label > span {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  color: var(--pgm-primary-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
}
.pgm-controls label > span::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--pgm-green);
  box-shadow: 0 0 0 3px rgba(19,194,179,.14);
  content: "";
}
.pgm-controls select,
.pgm-controls input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background-color: #fff;
  color: var(--pgm-primary);
  font-size: 12px;
  font-weight: 700;
  outline: 0;
  box-shadow: 0 3px 10px rgba(0,46,108,.065), inset 0 1px 0 rgba(255,255,255,.86);
  transition: box-shadow var(--pgm-transition-fast), background-color var(--pgm-transition-fast);
}
.pgm-controls select {
  appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--pgm-primary) 50%),
    linear-gradient(135deg, var(--pgm-primary) 50%, transparent 50%),
    linear-gradient(180deg, rgba(0,46,108,.08), rgba(0,46,108,.08));
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 13px) 17px,
    calc(100% - 34px) 8px;
  background-size: 5px 5px, 5px 5px, 1px 24px;
  background-repeat: no-repeat;
}
.pgm-controls input {
  padding-left: 12px;
  color: var(--pgm-text);
}
.pgm-controls select:hover,
.pgm-controls input:hover {
  box-shadow: 0 5px 13px rgba(0,46,108,.09), inset 0 1px 0 rgba(255,255,255,.86);
}
.pgm-controls select:focus,
.pgm-controls input:focus {
  box-shadow: 0 0 0 3px rgba(19,194,179,.14), 0 8px 20px rgba(0,46,108,.12);
}
.pgm-controls input::placeholder {
  color: rgba(0,46,108,.48);
  font-weight: 700;
}
.pgm-search { min-width: 0; }
.pgm-controls .pgm-search,
.pgm-controls label:has(input[type="search"]),
.pgm-controls label:has(input:not([type])) { grid-column: auto; }
.pgm-controls label:has(input) input { letter-spacing: .01em; }

/* League checklist popup filter */
.pgm-league-popup-control {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--pgm-primary);
  font-weight: 700;
}
.pgm-league-popup-control > span {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  color: var(--pgm-primary-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
}
.pgm-league-popup-control > span::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--pgm-green);
  box-shadow: 0 0 0 3px rgba(19,194,179,.14);
  content: "";
}
.pgm-league-filter-trigger {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background-color: #fff;
  color: var(--pgm-primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  outline: 0;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0,46,108,.065), inset 0 1px 0 rgba(255,255,255,.86);
  transition: box-shadow var(--pgm-transition-fast), background-color var(--pgm-transition-fast);
}
.pgm-league-filter-trigger::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--pgm-primary);
  border-bottom: 2px solid var(--pgm-primary);
  content: "";
  transform: rotate(45deg) translateY(-2px);
}
.pgm-league-filter-trigger:hover {
  box-shadow: 0 5px 13px rgba(0,46,108,.09), inset 0 1px 0 rgba(255,255,255,.86);
}
.pgm-league-filter-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(19,194,179,.14), 0 8px 20px rgba(0,46,108,.12);
}
.pgm-league-filter-trigger b {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--pgm-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgm-league-filter-trigger small {
  display: block;
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  color: var(--pgm-muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgm-league-filter-popover {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 23, 47, .30);
  backdrop-filter: none;
}
.pgm-league-filter-popover[aria-hidden="false"] {
  display: flex;
}
.pgm-league-filter-popover__card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(860px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.995), rgba(247,251,255,.99));
  box-shadow: 0 18px 46px rgba(0,24,68,.22);
  contain: layout paint;
}
.pgm-league-filter-popover__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 12px;
}
.pgm-league-filter-popover__head h2 {
  margin: 0;
  color: var(--pgm-primary);
  font-size: 16px;
  line-height: 1.2;
}
.pgm-league-filter-popover__head p {
  margin: 4px 0 0;
  color: var(--pgm-muted);
  font-size: 12px;
  line-height: 1.35;
}
.pgm-league-filter-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  color: var(--pgm-primary);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(0,46,108,.10);
}
.pgm-league-filter-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 0 16px 12px;
}
.pgm-league-filter-tools input {
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--pgm-text);
  font-size: 12px;
  font-weight: 700;
  outline: 0;
  box-shadow: 0 4px 12px rgba(0,46,108,.07);
}
.pgm-league-filter-tools input::placeholder {
  color: rgba(0,46,108,.45);
}
.pgm-league-filter-action,
.pgm-league-filter-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.pgm-league-filter-action {
  background: #fff;
  color: var(--pgm-primary);
  box-shadow: 0 4px 12px rgba(0,46,108,.07);
}
.pgm-league-filter-apply {
  background: linear-gradient(180deg, #1764ee, #0346ce);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,75,210,.18);
}
.pgm-league-filter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  min-height: 140px;
  overflow-y: auto;
  padding: 0 16px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,46,108,.28) transparent;
}
.pgm-league-filter-list::-webkit-scrollbar { width: 5px; }
.pgm-league-filter-list::-webkit-scrollbar-track { background: transparent; }
.pgm-league-filter-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0,46,108,.28);
}
.pgm-league-check-row {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,46,108,.065), inset 0 1px 0 rgba(255,255,255,.92);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--pgm-transition-fast), opacity var(--pgm-transition-fast);
}
.pgm-league-check-row[data-active="false"] {
  opacity: .68;
  background: rgba(255,255,255,.72);
}
.pgm-league-check-row[hidden] { display: none; }
.pgm-league-check-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pgm-league-check-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #eef5ff;
  box-shadow: inset 0 0 0 2px rgba(0,46,108,.20);
}
.pgm-league-check-row input:checked + .pgm-league-check-box {
  background: linear-gradient(180deg, #1764ee, #0346ce);
  box-shadow: 0 5px 12px rgba(0,75,210,.18), inset 0 0 0 1px rgba(255,255,255,.22);
}
.pgm-league-check-row input:checked + .pgm-league-check-box::after {
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}
.pgm-league-check-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.pgm-league-check-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--pgm-primary);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgm-league-check-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--pgm-muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgm-league-filter-empty {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--pgm-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 5px 14px rgba(0,46,108,.065);
}
.pgm-league-filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px;
  color: var(--pgm-muted);
  font-size: 11px;
  font-weight: 700;
}
.pgm-league-filtered-out {
  display: none !important;
}
@media (max-width: 760px) {
  .pgm-league-filter-tools {
    grid-template-columns: 1fr 1fr;
  }
  .pgm-league-filter-tools input {
    grid-column: 1 / -1;
  }
  .pgm-league-filter-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  .pgm-league-filter-popover {
    align-items: stretch;
    padding: 0;
  }
  .pgm-league-filter-popover__card {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .pgm-league-filter-foot {
    align-items: stretch;
    flex-direction: column;
  }
  .pgm-league-filter-apply {
    width: 100%;
  }
}

/* Live cards */
.pgm-live-list {
  display: grid;
  gap: 10px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 620px;
}
.pgm-match-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 11px;
  overflow: hidden;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,251,255,.985)),
    var(--pgm-surface-2);
  box-shadow: 0 7px 20px rgba(0,46,108,.065);
  contain: layout paint style;
  transform: none;
  transition: background-color var(--pgm-transition-fast), opacity var(--pgm-transition-fast);
  content-visibility: auto;
  contain-intrinsic-size: 156px;
}
.pgm-match-card::before {
  display: none;
  content: none;
}
.pgm-match-card::after {
  display: none;
  content: none;
}
.pgm-match-card:has(.pgm-status.is-live) {
  background: linear-gradient(180deg, rgba(255,255,255,.995), rgba(255,249,249,.985));
  box-shadow: 0 7px 20px rgba(230,46,46,.055), 0 5px 14px rgba(0,46,108,.045);
}
.pgm-match-card:active {
  transform: none;
  box-shadow: 0 7px 20px rgba(0,46,108,.065);
}
.pgm-match-card__top,
.pgm-match-actions,
.pgm-match-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}
.pgm-match-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-left: 5px;
}
.pgm-league-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: var(--pgm-primary);
  font-weight: 800;
  letter-spacing: .01em;
}
.pgm-league-pill::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--league-color, var(--pgm-indigo));
  box-shadow: 0 0 0 3px rgba(255,255,255,.88), 0 0 10px rgba(0,46,108,.12);
  content: "";
}
.pgm-league-pill span,
.pgm-league-pill strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgm-league-pill b {
  flex: 0 0 auto;
  color: var(--pgm-red);
}
.pgm-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.pgm-status.is-live { background: #daf2f0; color: var(--pgm-green-dark); box-shadow: inset 0 0 0 1px rgba(0,89,82,.10); }
.pgm-status.is-scheduled { background: var(--pgm-blue-soft); color: #004a80; box-shadow: inset 0 0 0 1px rgba(0,74,128,.10); }
.pgm-status.is-finished { background: #fcc; color: #730b0b; box-shadow: inset 0 0 0 1px rgba(115,11,11,.08); }
.pgm-status.is-neutral { background: var(--pgm-bg-2); color: var(--pgm-muted); box-shadow: inset 0 0 0 1px rgba(0,46,108,.08); }
.pgm-match-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, auto) minmax(0, 1fr);
  align-items: stretch;
  gap: 9px;
}
.pgm-team {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 3px;
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,253,255,.94));
  box-shadow: var(--pgm-shadow-club);
}
.pgm-team::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(206,222,242,.10));
  content: "";
}
.pgm-team > * { position: relative; z-index: 1; }
.pgm-team--away { text-align: right; }
.pgm-team img,
.pgm-match-main img,
.pgm-team-logo,
.pgm-team__logo,
.pgm-club-logo,
.pgm-club-badge {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 6px 14px rgba(0,46,108,.10);
}
.pgm-team--away img,
.pgm-team--away .pgm-team-logo,
.pgm-team--away .pgm-team__logo,
.pgm-team--away .pgm-club-logo,
.pgm-team--away .pgm-club-badge {
  justify-self: end;
}
.pgm-team small {
  color: var(--pgm-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.pgm-team strong {
  overflow: hidden;
  color: var(--pgm-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgm-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 48px;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--pgm-radius-md);
  background: linear-gradient(180deg, var(--pgm-primary-2), var(--pgm-primary));
  color: #fff;
  cursor: pointer;
  font-family: var(--pgm-font-display);
  font-size: 27px;
  line-height: 1;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.17), 0 6px 14px rgba(0,46,108,.18);
}
.pgm-score i {
  color: rgba(255,255,255,.62);
  font-style: normal;
  font-size: 17px;
}
.pgm-match-meta {
  flex-wrap: wrap;
  justify-content: center;
  color: var(--pgm-muted);
  font-size: 11px;
}
.pgm-match-meta span {
  --pgm-meta-icon: none;
  position: relative;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: var(--pgm-muted);
  overflow-wrap: anywhere;
  box-shadow: var(--pgm-shadow-chip);
}
.pgm-match-meta svg,
.pgm-match-meta img,
.pgm-match-meta [class*="icon"] {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  object-fit: contain;
  color: var(--pgm-primary);
}
.pgm-meta-chip .pgm-meta-icon {
  display: inline-block;
  color: var(--pgm-primary);
  overflow: visible;
}
.pgm-meta-chip--time .pgm-meta-icon circle,
.pgm-meta-chip--odds .pgm-meta-icon circle {
  fill: #fff;
  stroke: var(--pgm-primary);
  stroke-width: 2;
}
.pgm-meta-chip--time .pgm-meta-icon path,
.pgm-meta-chip--ht .pgm-meta-icon path,
.pgm-meta-chip--corner .pgm-meta-icon path,
.pgm-meta-chip--odds .pgm-meta-icon path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pgm-meta-chip--time .pgm-meta-icon path,
.pgm-meta-chip--corner .pgm-meta-icon path:first-of-type,
.pgm-meta-chip--odds .pgm-meta-icon path:first-of-type {
  stroke: var(--pgm-primary);
}
.pgm-meta-chip--time .pgm-meta-icon path:last-of-type,
.pgm-meta-chip--corner .pgm-meta-icon path:last-of-type,
.pgm-meta-chip--odds .pgm-meta-icon path:last-of-type {
  stroke: var(--pgm-green);
}
.pgm-meta-chip--ht .pgm-meta-icon rect:nth-of-type(1) { fill: var(--pgm-indigo); }
.pgm-meta-chip--ht .pgm-meta-icon rect:nth-of-type(2) { fill: var(--pgm-primary); }
.pgm-meta-chip--ht .pgm-meta-icon rect:nth-of-type(3) { fill: var(--pgm-green); }
.pgm-meta-chip--ht .pgm-meta-icon path { stroke: var(--pgm-primary); }
.pgm-meta-chip--corner .pgm-meta-icon path:nth-of-type(2) {
  fill: #fff;
  stroke: var(--pgm-primary);
}
.pgm-meta-chip--yc .pgm-meta-icon rect { fill: #f5c542; }
.pgm-meta-chip--yc .pgm-meta-icon path { stroke: #a66b00; }
.pgm-meta-chip--rc .pgm-meta-icon rect { fill: var(--pgm-red); }
.pgm-meta-chip--rc .pgm-meta-icon path { stroke: #fff; }
.pgm-match-meta b {
  color: var(--pgm-primary);
  font-weight: 800;
}
.pgm-match-actions {
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 1px;
}
.pgm-match-actions .pgm-btn {
  min-height: 30px;
  min-width: 94px;
  padding: 7px 12px;
  border-radius: var(--pgm-radius-md);
  font-size: 11px;
  box-shadow: 0 3px 8px rgba(0,46,108,.08);
}

/* Side widgets */
.pgm-side-list,
.pgm-source-box { display: grid; gap: 4px; }
.pgm-muted-card,
.pgm-loading,
.pgm-empty,
.pgm-error {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px;
  border: 0;
  border-radius: var(--pgm-radius);
  background: var(--pgm-surface-2);
  color: var(--pgm-muted);
}
.pgm-error { border-color: #ffc2c2; background: #fff0f0; color: #730b0b; }
.pgm-empty { text-align: center; }
.pgm-loading { animation: pgm-soft-pulse 1.8s ease-in-out infinite; }
.pgm-skeleton {
  min-height: 118px;
  background: linear-gradient(90deg, var(--pgm-surface-2), #fff, var(--pgm-surface-2));
  background-size: 220% 100%;
  animation: pgm-shimmer 1.8s ease-in-out infinite;
}
.pgm-league-row,
.pgm-prediction-row {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 3px;
  padding: 7px 8px 7px 10px;
  border-radius: var(--pgm-radius);
  background: transparent;
  color: var(--pgm-primary);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--pgm-transition), color var(--pgm-transition);
}
.pgm-league-row:hover,
.pgm-prediction-row:hover { background: var(--pgm-primary-soft); }
.pgm-league-row::before,
.pgm-prediction-row::before {
  display: none;
  content: none;
}
.pgm-league-row span {
  position: absolute;
  top: 10px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--league-color, var(--pgm-indigo));
}
.pgm-league-row strong,
.pgm-prediction-row strong {
  min-width: 0;
  padding-right: 12px;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgm-league-row small,
.pgm-prediction-row small { color: var(--pgm-muted); font-weight: 400; overflow-wrap: anywhere; }
.pgm-source-box div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: var(--pgm-radius);
  background: var(--pgm-surface-2);
}
.pgm-source-box span { color: var(--pgm-muted); font-weight: 700; }
.pgm-source-box strong { color: var(--pgm-primary); overflow-wrap: anywhere; text-align: right; }

/* Odds board */
.pgm-odds-board { overflow: hidden; }
.pgm-odds-badges,
.pgm-market-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.pgm-odds-badges { margin-top: 7px; }
.pgm-odds-badges span,
.pgm-market-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  gap: 5px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--pgm-primary);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,46,108,.05);
}
.pgm-odds-badges span { background: var(--pgm-indigo); color: #fff; }
.pgm-market-strip { margin: 0 0 10px; }
.pgm-market-strip b { color: var(--pgm-primary); }
.pgm-odds-scroll {
  overflow: auto;
  border: 0;
  border-radius: var(--pgm-radius-lg);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,46,108,.08);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.pgm-odds-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--pgm-primary);
}
.pgm-col-time { width: 92px; }
.pgm-col-match { width: 330px; }
.pgm-col-score { width: 78px; }
.pgm-col-odds { width: 82px; }
.pgm-col-line { width: 106px; }
.pgm-odds-table th,
.pgm-odds-table td {
  min-width: 0;
  border-right: 0;
  border-bottom: 0;
  padding: 6px 7px;
  text-align: center;
  vertical-align: middle;
}
.pgm-odds-table th:last-child,
.pgm-odds-table td:last-child { border-right: 0; }
.pgm-odds-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, var(--pgm-primary-2), var(--pgm-primary));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .025em;
}
.pgm-odds-table thead tr:first-child th {
  height: 34px;
  background: linear-gradient(180deg, var(--pgm-primary-2), var(--pgm-primary));
}
.pgm-odds-table thead tr:nth-child(2) th {
  top: 34px;
  height: 30px;
  background: linear-gradient(180deg, var(--pgm-indigo), var(--pgm-indigo-2));
}
.pgm-table-group--ah { box-shadow: inset 3px 0 0 var(--pgm-orange); }
.pgm-table-group--ou { box-shadow: inset 3px 0 0 var(--pgm-green); }
.pgm-table-group--fixed { box-shadow: inset 3px 0 0 var(--pgm-indigo); }
.pgm-odds-table th[data-market="ah"] { background: linear-gradient(180deg, #9b421f, #783112); }
.pgm-odds-table th[data-market="ou"] { background: linear-gradient(180deg, #058f84, #006c63); }
.pgm-odds-table th[data-market="fixed"] { background: linear-gradient(180deg, var(--pgm-indigo-2), var(--pgm-indigo-dark)); }
.pgm-odds-table tbody tr:nth-child(odd) { background: #fff; }
.pgm-odds-table tbody tr:nth-child(even) { background: var(--pgm-surface-2); }
.pgm-odds-table tbody tr {
  transition: background-color var(--pgm-transition-fast);
}
.pgm-odds-table tbody tr:hover {
  background: #fff8ca;
  box-shadow: inset 3px 0 0 var(--pgm-primary);
}
.pgm-odds-table td {
  height: 44px;
  color: var(--pgm-text);
  font-size: 11px;
  font-weight: 700;
}
.pgm-odds-table td[data-field="time"] {
  color: var(--pgm-blue);
  font-weight: 800;
  letter-spacing: .02em;
}
.pgm-odds-table td[data-field="match"] {
  text-align: left;
  background-image: linear-gradient(90deg, rgba(0,46,108,.04), rgba(0,46,108,0));
}
.pgm-odds-table td[data-field="match"] strong,
.pgm-odds-table td[data-field="match"] span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgm-odds-table td[data-field="match"] strong { color: var(--pgm-primary); font-weight: 800; }
.pgm-odds-table td[data-field="match"] span { margin-top: 3px; color: var(--pgm-muted); font-weight: 700; }
.pgm-odds-table td[data-field="match"] b { color: var(--pgm-primary); font-weight: 800; }
.pgm-odds-table td[data-field="score"] { color: var(--pgm-red); font-weight: 900; }
.pgm-odds-table td[data-field^="ah_"] { background-image: linear-gradient(180deg, rgba(230,83,34,.09), rgba(230,83,34,0)); }
.pgm-odds-table td[data-field^="ou_"] { background-image: linear-gradient(180deg, rgba(19,194,179,.10), rgba(19,194,179,0)); }
.pgm-odds-table td[data-field^="fixed_"] { background-image: linear-gradient(180deg, rgba(87,105,191,.10), rgba(87,105,191,0)); }
.pgm-odds-value,
.pgm-odds-value-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 54px;
  min-height: 28px;
  padding: 5px 7px;
  border-radius: var(--pgm-radius);
  background: #fff;
  color: var(--pgm-primary);
  box-shadow: inset 0 0 0 1px rgba(0,46,108,.13), 0 1px 4px rgba(0,46,108,.05);
  font-weight: 900;
}
.pgm-odds-value-link:hover {
  background: var(--pgm-yellow);
  box-shadow: inset 0 0 0 1px rgba(0,46,108,.25), 0 3px 8px rgba(0,46,108,.10);
}
.pgm-odds-table td[data-field$="handicap"] .pgm-odds-value,
.pgm-odds-table td[data-field$="total"] .pgm-odds-value,
.pgm-odds-table td[data-field$="handicap"] .pgm-odds-value-link,
.pgm-odds-table td[data-field$="total"] .pgm-odds-value-link { color: var(--pgm-orange); }

/* Detail modal */
.pgm-detail {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: none;
}
.pgm-detail[aria-hidden="false"] { display: flex; }
.pgm-detail__card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(960px, 100%);
  max-height: min(780px, calc(100vh - 28px));
  overflow: hidden;
  border: 0;
  border-radius: var(--pgm-radius-lg);
  background: #fff;
  box-shadow: 0 18px 42px rgba(0,24,68,.18);
  contain: layout paint;
}
.pgm-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(90deg, var(--pgm-primary), var(--pgm-primary-2));
  color: #fff;
}
.pgm-detail__head h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.3;
}
.pgm-detail__head .pgm-icon-btn {
  min-width: 36px;
  min-height: 34px;
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
}
.pgm-detail__body {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 10px;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
}
.pgm-detail-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 0;
  border-radius: var(--pgm-radius-lg);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,46,108,.09);
}
.pgm-detail-score > div:not(.pgm-detail-score__score) {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.pgm-detail-score > div:not(.pgm-detail-score__score):last-child { text-align: right; }
.pgm-detail-score small {
  color: var(--pgm-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
}
.pgm-detail-score strong {
  min-width: 0;
  overflow: hidden;
  color: var(--pgm-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgm-detail-score .pgm-detail-score__score {
  display: inline-flex;
  grid-auto-flow: column;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
  min-height: 58px;
  padding: 8px 16px;
  border-radius: var(--pgm-radius-lg);
  background: linear-gradient(180deg, var(--pgm-primary), var(--pgm-primary-2));
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.16), 0 10px 22px rgba(0,46,108,.18);
  font-family: var(--pgm-font-display);
  font-size: 36px;
  line-height: 1;
  white-space: nowrap;
}
.pgm-detail-score .pgm-detail-score__score > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.pgm-detail-score .pgm-detail-score__score br { display: none; }
.pgm-detail-score .pgm-detail-score__score i {
  color: rgba(255,255,255,.58);
  font-style: normal;
  font-size: 18px;
}
.pgm-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pgm-detail-grid div,
.pgm-prediction-box,
.pgm-stat-compare,
.pgm-event-row {
  border: 0;
  border-radius: var(--pgm-radius-lg);
  background: #fff;
  box-shadow: 0 7px 18px rgba(0,46,108,.07);
}
.pgm-detail-grid div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px;
}
.pgm-detail-grid span {
  color: var(--pgm-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.pgm-detail-grid strong {
  color: var(--pgm-primary);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.pgm-detail-section {
  display: grid;
  min-width: 0;
  gap: 8px;
}
.pgm-detail-section h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--pgm-primary);
  font-size: 13px;
  font-weight: 800;
}
.pgm-detail-section h3::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--pgm-green);
  box-shadow: 0 0 0 3px rgba(19,194,179,.14);
  content: "";
}
.pgm-event-row {
  display: grid;
  grid-template-columns: 54px 66px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.pgm-event-row > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: var(--pgm-radius-md);
  background: var(--pgm-surface-2);
  color: var(--pgm-primary);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.pgm-event-row > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: var(--pgm-radius-md);
  background: var(--pgm-primary-soft);
  color: var(--pgm-primary);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.pgm-event-row.is-goal > strong,
.pgm-event-row[data-event="goal"] > strong { background: #daf2f0; color: var(--pgm-green-dark); }
.pgm-event-row.is-yellow-card > strong,
.pgm-event-row[data-event="yellow-card"] > strong,
.pgm-event-row[data-event="yc"] > strong { background: var(--pgm-yellow); color: var(--pgm-yellow-text); }
.pgm-event-row.is-red-card > strong,
.pgm-event-row[data-event="red-card"] > strong,
.pgm-event-row[data-event="rc"] > strong { background: var(--pgm-red-soft); color: #730b0b; }
.pgm-event-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.pgm-event-row > div > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--pgm-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgm-event-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--pgm-muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pgm-stat-compare {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 10px;
}
.pgm-stat-compare strong {
  min-width: 0;
  color: var(--pgm-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
  text-align: center;
}
.pgm-stat-compare span {
  color: var(--pgm-primary);
  font-size: 13px;
  font-weight: 900;
}
.pgm-prediction-box {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 10px;
}
.pgm-prediction-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--pgm-radius-md);
  background: #f8fbff;
}
.pgm-prediction-box span {
  min-width: 0;
  color: var(--pgm-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}
.pgm-prediction-box strong {
  color: var(--pgm-primary);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

/* States */
body:not(.pgm-js-ready) .pgm-live-list::before {
  display: block;
  padding: 10px;
  border-radius: var(--pgm-radius);
  background: var(--pgm-surface-2);
  color: var(--pgm-muted);
  content: "Menyiapkan dashboard...";
}
body.pgm-odds-loading .pgm-odds-board { box-shadow: 0 0 0 1px rgba(19,194,179,.26), var(--pgm-shadow-sm); }
body.pgm-has-live-data .pgm-live-dot { background: var(--pgm-green); }

/* Responsive */
@media (prefers-reduced-motion: reduce), (update: slow) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .pgm-live-dot,
  .pgm-loading,
  .pgm-skeleton,
  .pgm-icon-btn.is-spinning {
    animation: none !important;
    will-change: auto !important;
  }
}
@media (max-width: 1180px) {
  .pgm-layout { grid-template-columns: 1fr; }
  .pgm-side { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pgm-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgm-controls .pgm-search,
  .pgm-controls label:has(input) { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .pgm-header { top: 0; border-radius: 0 0 var(--pgm-radius) var(--pgm-radius); }
  .pgm-header__top { flex-wrap: wrap; min-height: auto; padding: 6px 10px; gap: 6px; }
  .pgm-brand { width: clamp(108px, 24vw, 148px); min-width: 108px; margin-right: 6px; }
  .pgm-brand__logo { max-height: 32px; }
  .pgm-nav { order: 3; flex-basis: 100%; height: 28px; }
  .pgm-header__meta { margin-left: auto; }
  .pgm-header__bottom { padding: 0 10px; }
  .pgm-banner-carousel,
  .pgm-banner-slide { min-height: clamp(92px, 25vw, 150px); }
  .pgm-odds-board .pgm-controls { grid-template-columns: 1fr 1fr; }
  .pgm-odds-board .pgm-controls label:has(input) { grid-column: 1 / -1; }
  .pgm-side { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 12px; }
  .pgm-shell { width: 100%; padding-inline: 8px; }
  .pgm-header__feed { display: none; }
  .pgm-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgm-panel { padding: 8px; }
  .pgm-panel__head {
    align-items: stretch;
    gap: 8px;
  }
  .pgm-panel__head .pgm-icon-btn,
  .pgm-panel__head .pgm-icon-btn--text,
  .pgm-panel__head .pgm-btn { min-height: 34px; }
  .pgm-controls,
  .pgm-odds-board .pgm-controls {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px;
  }
  .pgm-controls .pgm-search,
  .pgm-controls label:has(input),
  .pgm-odds-board .pgm-controls label:has(input) { grid-column: auto; }
  .pgm-controls select,
  .pgm-controls input { min-height: 42px; }
  .pgm-match-card { padding: 10px; border-radius: 12px; }
  .pgm-match-card__top {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-left: 0;
    text-align: center;
  }
  .pgm-league-pill { max-width: 100%; justify-content: center; }
  .pgm-match-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pgm-team,
  .pgm-team--away { text-align: center; }
  .pgm-score { width: 100%; min-height: 50px; }
  .pgm-match-meta span { flex: 1 1 calc(50% - 6px); }
  .pgm-match-actions .pgm-btn { flex: 1 1 140px; }
  .pgm-market-strip { display: grid; grid-template-columns: 1fr; }
  .pgm-odds-scroll { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .pgm-odds-table { min-width: 0; display: block; }
  .pgm-odds-table colgroup,
  .pgm-odds-table thead { display: none; }
  .pgm-odds-table tbody { display: grid; gap: 10px; }
  .pgm-odds-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 9px;
    border: 0;
    border-radius: var(--pgm-radius-lg);
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(0,46,108,.10);
  }
  .pgm-odds-table td {
    display: grid;
    min-height: 46px;
    height: auto;
    align-content: center;
    gap: 4px;
    padding: 7px;
    border: 0 !important;
    border-radius: var(--pgm-radius-md);
    background: var(--pgm-surface-2);
    text-align: left;
  }
  .pgm-odds-table td::before {
    color: var(--pgm-muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
  }
  .pgm-odds-table td[data-field="time"],
  .pgm-odds-table td[data-field="match"],
  .pgm-odds-table td[data-field="score"] { grid-column: span 3; }
  .pgm-odds-value,
  .pgm-odds-value-link { width: 100%; min-height: 30px; }
  .pgm-detail-grid { grid-template-columns: 1fr 1fr; }
  .pgm-detail-score .pgm-detail-score__score {
    min-width: 108px;
    min-height: 54px;
    font-size: 32px;
  }
  .pgm-event-row {
    grid-template-columns: 52px 60px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
  }
  .pgm-stat-compare { grid-template-columns: 38px minmax(0, 1fr) 38px; }
}
@media (max-width: 500px) {
  .pgm-shell { padding-inline: 0; }
  .pgm-header { margin-inline: -8px; }
  .pgm-brand { width: 122px; min-width: 122px; }
  .pgm-brand__logo { max-height: 30px; }
  .pgm-banner-carousel,
  .pgm-banner-slide { min-height: 92px; }
  .pgm-summary { grid-template-columns: 1fr 1fr; }
  .pgm-panel__head { flex-direction: column; }
  .pgm-panel__head .pgm-icon-btn,
  .pgm-panel__head .pgm-icon-btn--text,
  .pgm-panel__head .pgm-btn { width: 100%; }
  .pgm-match-meta span { flex-basis: 100%; }
  .pgm-match-actions .pgm-btn { flex-basis: 100%; }
  .pgm-odds-table tr { grid-template-columns: 1fr 1fr; }
  .pgm-odds-table td[data-field="time"],
  .pgm-odds-table td[data-field="match"],
  .pgm-odds-table td[data-field="score"] { grid-column: span 2; }
  .pgm-detail { padding: 0; }
  .pgm-detail__card {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .pgm-detail__body {
    padding: 8px;
    gap: 8px;
  }
  .pgm-detail-score {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pgm-detail-score > div:not(.pgm-detail-score__score),
  .pgm-detail-score > div:not(.pgm-detail-score__score):last-child { text-align: center; }
  .pgm-detail-score .pgm-detail-score__score {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    font-size: 30px;
  }
  .pgm-detail-grid { grid-template-columns: 1fr; }
  .pgm-event-row {
    grid-template-columns: 48px 56px minmax(0, 1fr);
    gap: 7px;
  }
  .pgm-event-row > span,
  .pgm-event-row > strong {
    min-height: 30px;
    padding-inline: 6px;
    font-size: 11px;
  }
  .pgm-event-row > div > strong { font-size: 12px; }
  .pgm-event-row small { font-size: 10px; }
}

@keyframes pgm-breathing-light {
  0%, 100% { transform: scale(1); opacity: .72; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes pgm-spin { to { transform: rotate(360deg); } }
@keyframes pgm-soft-pulse {
  0%, 100% { opacity: .75; }
  50% { opacity: 1; }
}
@keyframes pgm-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}