

@import url("../fonts/fonts.css");

[hidden] { display: none !important; }

:root,
:root[data-theme="dark"] {
  --bg-base: 15 23 42;
  --bg-surface: 30 41 59;
  --bg-surface-2: 51 65 85;
  --bg-surface-3: 71 85 105;
  --bg-base-deep: 2 6 23;
  --text-primary: 241 245 249;
  --text-secondary: 203 213 225;
  --text-muted: 148 163 184;
  --text-faint: 100 116 139;
  --border-base: 51 65 85;
  --border-strong: 30 41 59;
  --border-soft: 71 85 105;
  --divider-soft: 71 85 105;
  --brand: 91 134 229;
  --accent: 243 156 18;
}

:root[data-theme="pitch"] {
  --bg-base: 8 32 25;
  --bg-surface: 13 49 39;
  --bg-surface-2: 19 71 56;
  --bg-surface-3: 27 96 76;
  --bg-base-deep: 4 20 15;
  --text-primary: 236 253 245;
  --text-secondary: 190 245 222;
  --text-muted: 110 231 183;
  --text-faint: 61 165 126;
  --border-base: 19 71 56;
  --border-strong: 13 49 39;
  --border-soft: 27 96 76;
  --divider-soft: 61 165 126;
  --brand: 16 185 129;
  --accent: 250 204 21;
}

:root[data-theme="warm"] {
  --bg-base: 28 22 18;
  --bg-surface: 45 35 27;
  --bg-surface-2: 71 55 42;
  --bg-surface-3: 96 75 58;
  --bg-base-deep: 18 14 11;
  --text-primary: 252 230 200;
  --text-secondary: 230 200 165;
  --text-muted: 184 155 122;
  --text-faint: 138 110 82;
  --border-base: 71 55 42;
  --border-strong: 45 35 27;
  --border-soft: 96 75 58;
  --divider-soft: 138 110 82;
  --brand: 217 143 74;
  --accent: 243 156 18;
}

:root[data-theme="jewel"] {
  --bg-base: 12 28 25;
  --bg-surface: 22 47 41;
  --bg-surface-2: 35 70 62;
  --bg-surface-3: 55 95 84;
  --bg-base-deep: 8 20 17;
  --text-primary: 245 250 248;
  --text-secondary: 200 230 218;
  --text-muted: 145 185 168;
  --text-faint: 105 145 130;
  --border-base: 35 70 62;
  --border-strong: 22 47 41;
  --border-soft: 55 95 84;
  --divider-soft: 105 145 130;
  --brand: 94 205 172;
  --accent: 243 156 18;
}

:root[data-theme="orange"] {
  --bg-base: 31 19 12;
  --bg-surface: 51 31 18;
  --bg-surface-2: 76 47 26;
  --bg-surface-3: 102 64 36;
  --bg-base-deep: 20 12 7;
  --text-primary: 255 237 213;
  --text-secondary: 254 215 170;
  --text-muted: 217 165 116;
  --text-faint: 160 118 80;
  --border-base: 76 47 26;
  --border-strong: 51 31 18;
  --border-soft: 102 64 36;
  --divider-soft: 160 118 80;
  --brand: 251 146 60;
  --accent: 250 204 21;
}

:root[data-theme="flat-dark"] {
  --bg-base: 15 23 42;
  --bg-surface: 30 41 59;
  --bg-surface-2: 51 65 85;
  --bg-surface-3: 71 85 105;
  --bg-base-deep: 2 6 23;
  --text-primary: 241 245 249;
  --text-secondary: 203 213 225;
  --text-muted: 148 163 184;
  --text-faint: 100 116 139;
  --border-base: 51 65 85;
  --border-strong: 30 41 59;
  --border-soft: 71 85 105;
  --divider-soft: 71 85 105;
  --brand: 91 134 229;
  --accent: 243 156 18;
}
:root[data-theme="flat-light"] {
  --bg-base: 220 226 234;
  --bg-surface: 235 240 246;
  --bg-surface-2: 205 213 224;
  --bg-surface-3: 188 198 213;
  --bg-base-deep: 175 186 203;
  --text-primary: 15 23 42;
  --text-secondary: 51 65 85;
  --text-muted: 71 85 105;
  --text-faint: 110 125 145;
  --border-base: 188 198 213;
  --border-strong: 165 178 198;
  --border-soft: 205 213 224;
  --divider-soft: 110 125 145;
  --brand: 13 42 108;
  --accent: 199 120 8;
}

:root[data-theme="light"] {
  --bg-base: 220 226 234;
  --bg-surface: 235 240 246;
  --bg-surface-2: 205 213 224;
  --bg-surface-3: 188 198 213;
  --bg-base-deep: 175 186 203;
  --text-primary: 15 23 42;
  --text-secondary: 51 65 85;
  --text-muted: 71 85 105;
  --text-faint: 110 125 145;
  --border-base: 188 198 213;
  --border-strong: 165 178 198;
  --border-soft: 205 213 224;
  --divider-soft: 110 125 145;
  --brand: 13 42 108;
  --accent: 199 120 8;
}

:root[data-theme="pastel"] {
  --bg-base: 218 210 235;
  --bg-surface: 234 228 245;
  --bg-surface-2: 205 195 225;
  --bg-surface-3: 188 175 215;
  --bg-base-deep: 175 160 205;
  --text-primary: 30 27 75;
  --text-secondary: 60 50 120;
  --text-muted: 110 95 165;
  --text-faint: 145 130 195;
  --border-base: 188 175 215;
  --border-strong: 165 150 200;
  --border-soft: 205 195 225;
  --divider-soft: 145 130 195;
  --brand: 79 70 229;
  --accent: 180 83 9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: rgb(var(--bg-base));
  color: rgb(var(--text-primary));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] body,
:root:not([data-theme]) body {
  background:
    radial-gradient(ellipse at 50% 0%, #1e1b4b 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, #3730a3 0%, transparent 58%),
    linear-gradient(180deg, #0b1120 0%, #172038 100%);
  background-attachment: fixed;
  background-color: #0b1120;
}

:root[data-theme="pitch"] body {
  background:
    radial-gradient(ellipse at 50% -5%, #065f46 0%, transparent 58%),
    radial-gradient(ellipse at 100% 105%, #10b981 0%, transparent 52%),
    linear-gradient(180deg, #041612 0%, #0a2b21 100%);
  background-attachment: fixed;
  background-color: #041612;
}

:root[data-theme="jewel"] body {
  background:
    radial-gradient(ellipse at 50% 0%, #134e4a 0%, transparent 58%),
    radial-gradient(ellipse at 100% 100%, #0f766e 0%, transparent 55%),
    linear-gradient(180deg, #08201a 0%, #12332c 100%);
  background-attachment: fixed;
  background-color: #08201a;
}

:root[data-theme="warm"] body {
  background:
    radial-gradient(ellipse at 50% 0%, #7c2d12 0%, transparent 58%),
    radial-gradient(ellipse at 100% 100%, #b45309 0%, transparent 52%),
    linear-gradient(180deg, #1a120d 0%, #2f2318 100%);
  background-attachment: fixed;
  background-color: #1a120d;
}

:root[data-theme="orange"] body {
  background:
    radial-gradient(ellipse at 50% 0%, #c2410c 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, #ea580c 0%, transparent 50%),
    linear-gradient(180deg, #1f1308 0%, #3b1f0a 100%);
  background-attachment: fixed;
  background-color: #1f1308;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(ellipse at 0% 0%, #dbeafe 0%, transparent 55%),
    radial-gradient(ellipse at 100% 85%, #e0e7ff 0%, transparent 55%),
    linear-gradient(180deg, #eef2f8 0%, #dfe5ee 100%);
  background-attachment: fixed;
  background-color: #eef2f8;
}

:root[data-theme="pastel"] body {
  background:
    radial-gradient(ellipse at 0% 0%, #ddd6fe 0%, transparent 50%),
    radial-gradient(ellipse at 100% 80%, #fce7f3 0%, transparent 55%),
    linear-gradient(180deg, #efe9ff 0%, #fbeaf2 100%);
  background-attachment: fixed;
  background-color: #efe9ff;
}

:root:not([data-theme="flat-dark"]):not([data-theme="flat-light"]) .panel,
:root:not([data-theme="flat-dark"]):not([data-theme="flat-light"]) .sheet {
  background: rgb(var(--bg-surface) / 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
:root[data-theme="flat-dark"] .panel,
:root[data-theme="flat-light"] .panel {
  background: rgb(var(--bg-surface));

  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

h1,
h2,
h3,
.display {
  font-family: Poppins, Inter, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

:where(button, a, select, input, [tabindex]):focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 2px;
}

.fp-mark {
  --sz: 26px;
  --r: 0.26;
  width: var(--sz);
  height: var(--sz);
  border-radius: calc(var(--sz) * var(--r));
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--c1);
  box-shadow: inset 0 0 0 1px rgb(var(--text-primary) / 0.18);
  display: grid;
  place-items: center;
}

.fp-mark[data-kit="stripes"] {
  background: repeating-linear-gradient(90deg, var(--c1) 0 21%, var(--c2) 21% 42%);
}
.fp-mark[data-kit="sleeves"] {
  background: linear-gradient(90deg, var(--c2) 0 20%, var(--c1) 20% 80%, var(--c2) 80%);
}
.fp-mark[data-kit="halves"] {
  background: linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%);
}
.fp-mark[data-kit="hoops"] {
  background: repeating-linear-gradient(180deg, var(--c1) 0 22%, var(--c2) 22% 44%);
}

.fp-mark[data-kit="centre"] {
  background: linear-gradient(90deg, var(--c1) 0 36%, var(--c2) 36% 64%, var(--c1) 64%);
}

.fp-mark[data-kit="diag"] {
  background: linear-gradient(148deg, var(--c1) 0 50%, var(--c2) 50%);
}
.fp-mark[data-kit="sash"] {
  background: linear-gradient(118deg, var(--c1) 0 38%, var(--c2) 38% 62%, var(--c1) 62%);
}

.fp-mark .mono {
  font-family: var(--mono-font, "Barlow Condensed"), Inter, sans-serif;
  font-weight: var(--mono-w, 700);
  font-size: calc(var(--sz) * var(--mono-size, 0.44));
  letter-spacing: var(--mono-track, 0.02em);
  line-height: 1;
  position: relative;
  z-index: 2;
}
.fp-mark[data-ink="light"] .mono {
  color: #fff;
}
.fp-mark[data-ink="dark"] .mono {
  color: #12161f;
}

.fp-mark.v-tile {
  background: var(--c1);
}
.fp-mark.v-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: calc(var(--sz) * 0.16);
  background: var(--c2);
  z-index: 1;
}

.fp-mark.v-kit .mono {
  padding: calc(var(--sz) * 0.06) calc(var(--sz) * 0.12);
  border-radius: calc(var(--sz) * 0.12);
  background: rgb(2 6 23 / 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: #fff !important;
}

.fp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 5px;
  border-radius: 999px;
  background: rgb(var(--bg-surface-2) / 0.55);
  border: 1px solid rgb(var(--border-base));
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  color: rgb(var(--text-primary));
}
.fp-chip .code {
  font-family: var(--mono-font, "Barlow Condensed"), Inter, sans-serif;
  font-weight: var(--mono-w, 700);
  letter-spacing: var(--mono-track, 0.02em);
}

.fp-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fp-team .nm {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-rail {
  width: 3px;
  border-radius: 3px;
  background: var(--c1);
  align-self: stretch;
  flex: 0 0 auto;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px 90px;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(var(--bg-surface) / 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgb(var(--border-base));
}

.appbar-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 11px 18px;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  grid-template-areas: "brand season gap comp actions";
  align-items: center;
  gap: 10px;
}
.appbar-in > .brand { grid-area: brand; }
.appbar-in > .sw-season { grid-area: season; }
.appbar-in > .spacer { grid-area: gap; }
.appbar-in > .sw-comp { grid-area: comp; }
.appbar-in > .bar-actions { grid-area: actions; }

.bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

@media (max-width: 640px) {
  .appbar-in {
    padding: 10px 12px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand   actions"
      "comp    season";
    gap: 9px 8px;
  }
  .appbar-in > .spacer { display: none; }
  .appbar-in > .sel-wrap {
    width: 100%;
    min-width: 0;
  }
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}
@media (max-width: 560px) {
  .brand-logo {
    height: 22px;
  }
}

.spacer {
  flex: 1;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgb(var(--bg-surface-2) / 0.55);
  border: 1px solid rgb(var(--border-base));
  color: rgb(var(--text-secondary));
  transition: 0.15s;
}
.icon-btn:hover {
  color: rgb(var(--text-primary));
  border-color: rgb(var(--border-soft));
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}

.sel-wrap { position: relative; display: inline-flex; min-width: 0; }
.sel-wrap > svg {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: rgb(var(--text-muted));
  pointer-events: none;
}
.sel {
  font-size: 13.5px;
  font-weight: 600;
  color: rgb(var(--text-primary));
  background: rgb(var(--bg-surface-2) / 0.55);
  border: 1px solid rgb(var(--border-base));
  border-radius: 10px;
  padding: 8px 30px 8px 11px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  cursor: pointer;
}
.sel::-ms-expand { display: none; }

.panel {
  background: rgb(var(--bg-surface) / 0.62);
  border: 1px solid rgb(var(--border-base));
  border-radius: 16px;
  overflow: hidden;
}
.panel-hd {
  padding: 13px 17px;
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.35);
  font-weight: 700;
  font-size: 13px;
  color: rgb(var(--text-secondary));
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-hd.stacked { align-items: flex-start; }
.panel-hd .ttl { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.panel-hd .who {
  font-family: Poppins, Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgb(var(--text-primary));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-hd .who:empty { display: none; }

.panel-hd .hint {
  font-size: 11px;
  font-weight: 600;
  color: rgb(var(--text-faint));
  white-space: nowrap;
}

@media (max-width: 620px) {
  .panel-hd .hint { display: none; }
}
.panel-hd .sub {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: rgb(var(--text-faint));
}

section {
  margin: 22px 0;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
thead th {
  text-align: right;
  padding: 9px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
  border-bottom: 1px solid rgb(var(--border-base));
}

thead th.c-pos {
  text-align: center;
}

thead th.c-pos,
tbody td.c-pos {
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
}
thead th.c-club {
  text-align: left;
  padding-left: 4px;
}
thead th.c-form,
thead th.c-name {
  text-align: left;
}
thead th.c-form {
  padding-left: 16px;
}
tbody td {
  padding: 0 10px;
  height: 44px;
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.28);
  text-align: right;
  color: rgb(var(--text-secondary));
}
tbody td.c-pos {
  text-align: center;
  color: rgb(var(--text-faint));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
tbody td.c-form,
tbody td.c-name {
  text-align: left;
}
tbody td.c-club {
  text-align: left;
  padding: 0 12px 0 0;
  width: 1%;
}

thead th.c-pos,
tbody td.c-pos { position: sticky; left: 0; z-index: 3; }
thead th.c-club,
tbody td.c-club { position: sticky; left: 40px; z-index: 3; }  

tbody td.c-pos,
tbody td.c-club { background: rgb(var(--bg-surface)); }
thead th.c-pos,
thead th.c-club { background: rgb(var(--bg-surface)); }

tbody tr.is-fav td.c-pos,
tbody tr.is-fav td.c-club {
  background: linear-gradient(rgb(var(--accent) / 0.07), rgb(var(--accent) / 0.07)),
              rgb(var(--bg-surface));
}
tbody tr:hover td.c-pos,
tbody tr:hover td.c-club {
  background: linear-gradient(rgb(var(--bg-surface-2) / 0.4), rgb(var(--bg-surface-2) / 0.4)),
              rgb(var(--bg-surface));
}
tbody tr.gap td { background: rgb(var(--bg-surface)); }

tbody td.c-club::after,
thead th.c-club::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: rgb(var(--divider-soft) / 0.45);
}

.tcell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.tcell .nm {
  font-weight: 600;
  color: rgb(var(--text-primary));
}

tbody td.c-form {
  padding-left: 16px;
  white-space: nowrap;
}
tbody td.c-name {
  color: rgb(var(--text-primary));
  font-weight: 600;
  white-space: nowrap;
}
tbody td.pts {
  font-weight: 800;
  color: rgb(var(--text-primary));
  font-variant-numeric: tabular-nums;
}
tbody tr:hover td {
  background: rgb(var(--bg-surface-2) / 0.4);
}

@media (max-width: 460px) {
  tbody td,
  thead th { padding: 0 4px; }
  thead th { font-size: 9.5px; }
  tbody td { font-size: 13px; }

  thead th.c-club,
  tbody td.c-club { max-width: 158px; }
  .tcell { max-width: 158px; }
  .tcell .nm {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .tcell { gap: 7px; }

  thead th.c-pos,
  tbody td.c-pos {
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    padding: 0 2px;
  }

  thead th.c-club,
  tbody td.c-club { left: 26px; }

  tbody td.c-form,
  thead th.c-form { padding-left: 10px; }
}

body[data-mark="tile"] tbody td,
body[data-mark="kit"] tbody td {
  height: 50px;
}

.zone {
  position: relative;
}
.zone::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
}
.zone.ucl::before {
  background: #2eb872;
}
.zone.uel::before {
  background: #4f8ef7;
}
.zone.rel::before {
  background: #e0413e;
}

.zone.r16::before { background: rgb(var(--brand)); }
.zone.po::before  { background: rgb(234 179 8); }
.zone.out::before { background: transparent; }

.fx-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.28);
}
.fx-row:last-child {
  border-bottom: 0;
}
.fx-row:hover {
  background: rgb(var(--bg-surface-2) / 0.4);
}
.fx-status {
  flex: 0 0 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border-right: 1px solid rgb(var(--divider-soft) / 0.28);
  padding-right: 11px;
}
.fx-time {
  font-size: 12.5px;
  color: rgb(var(--text-secondary));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fx-live {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: #e0413e;
  padding: 2px 5px;
  border-radius: 4px;
}
.fx-teams {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fx-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.fx-line .nm {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fx-line .gl {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  padding-left: 8px;
}
.fx-line.lost .nm,
.fx-line.lost .gl {
  color: rgb(var(--text-faint));
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}
.pill-btn {
  cursor: pointer;
  transition: 0.15s;
}
.pill-btn:hover {
  border-color: rgb(var(--brand));
}

.pill-btn[data-on="1"] {
  border-color: rgb(var(--brand));
  box-shadow: inset 0 0 0 1px rgb(var(--brand));
}

.cmp-about {
  margin: 0;
  padding: 12px 16px 2px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgb(var(--text-muted));
}
.cmp-about b { color: rgb(var(--text-secondary)); font-weight: 700; }
.cmp-about:empty { display: none; }

.pills[data-mode="picker"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.pick-row {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border-radius: 11px;
  border: 1px solid rgb(var(--border-base));
  background: rgb(var(--bg-surface-2) / 0.45);
  transition: 0.15s;
  overflow: hidden;
}

.pick-follow {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  padding: 7px 4px 7px 10px;
  border: 0;
  background: none;
  color: rgb(var(--text-secondary));
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.pick-follow .nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-row:hover { border-color: rgb(var(--border-soft)); }
.pick-row:hover .pick-follow { color: rgb(var(--text-primary)); }
.pick-row[data-on="1"] {
  background: rgb(var(--brand) / 0.16);
  border-color: rgb(var(--brand));
}
.pick-row[data-on="1"] .pick-follow { color: rgb(var(--text-primary)); }

.pick-row[data-fav="1"] { border-color: rgb(var(--accent) / 0.55); }
.pick-star {
  flex: 0 0 auto;
  width: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid rgb(var(--border-base));
  background: none;
  color: rgb(var(--text-faint));
  cursor: pointer;
  transition: 0.15s;
  padding: 0;
}
.pick-star svg { width: 15px; height: 15px; display: block; }
.pick-star:hover { color: rgb(var(--accent)); }
.pick-star[aria-pressed="true"] { color: rgb(var(--accent)); }

@media (max-width: 480px) {
  .pills[data-mode="picker"] { grid-template-columns: minmax(0, 1fr); }
}

.panel-hd .sub[data-warn] {
  color: rgb(var(--accent));
  font-weight: 700;
}

.chart-box {
  padding: 8px 6px 4px;
  min-height: 260px;
}

#chart-radar {
  min-height: 320px;   
  padding: 0 2px;
}

.lst {
  display: flex;
  flex-direction: column;
}
.lst-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.28);
}
.lst-row:last-child {
  border-bottom: 0;
}
.lst-row .nm {
  font-weight: 600;
  font-size: 13.5px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lst-row .val {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--text-primary));
}
.lst-row .rank {
  width: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: rgb(var(--text-faint));
  font-variant-numeric: tabular-nums;
}

.pl-num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--c1);
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
}
[data-ink="light"] > .pl-num,
.pl-num[data-ink="light"] {
  color: #fff;
}
[data-ink="dark"] > .pl-num,
.pl-num[data-ink="dark"] {
  color: #12161f;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(2 6 23 / 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.scrim[hidden] {
  display: none;
}
.sheet {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: rgb(var(--bg-surface));
  border: 1px solid rgb(var(--border-soft));
  border-radius: 18px;
  box-shadow: 0 24px 70px rgb(2 6 23 / 0.5);
}
.sheet-hd {
  position: sticky;
  top: 0;
  background: rgb(var(--bg-surface));
  padding: 16px 18px;
  border-bottom: 1px solid rgb(var(--border-base));
  display: flex;
  align-items: center;
  gap: 12px;
}
.sheet-hd h2 {
  font-size: 17px;
  font-weight: 700;
}
.set-grp {
  padding: 16px 18px;
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.3);
}
.set-grp:last-child {
  border-bottom: 0;
}
.set-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
  margin-bottom: 11px;
}
.set-note {
  margin-top: 11px;
  font-size: 12.5px;
  color: rgb(var(--text-faint));
  line-height: 1.45;
}

.seg {
  display: inline-flex;
  background: rgb(var(--bg-surface-2) / 0.5);
  border: 1px solid rgb(var(--border-base));
  border-radius: 11px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}
.seg button {
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--text-secondary));
  background: none;
  border: 0;
  padding: 8px 15px;
  border-radius: 8px;
  transition: 0.15s;
}
.seg button:hover {
  color: rgb(var(--text-primary));
}
.seg button[aria-pressed="true"] {
  background: rgb(var(--brand));
  color: #fff;
}

.themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 9px;
}
.theme-sw {
  border: 1px solid rgb(var(--border-base));
  border-radius: 12px;
  padding: 8px;
  background: none;
  text-align: left;
  transition: 0.15s;
}
.theme-sw:hover {
  border-color: rgb(var(--border-soft));
}
.theme-sw[aria-pressed="true"] {
  border-color: rgb(var(--accent));
  box-shadow: 0 0 0 1px rgb(var(--accent));
}
.theme-sw .swatch {
  height: 34px;
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  margin-bottom: 7px;
}
.theme-sw .swatch i {
  flex: 1;
  display: block;
}
.theme-sw .tn {
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--text-secondary));
}

.muted {
  color: rgb(var(--text-muted));
}
.faint {
  color: rgb(var(--text-faint));
}
.empty {
  padding: 30px 20px 34px;
  text-align: center;
  color: rgb(var(--text-faint));
  font-size: 13.5px;
}

.empty b {
  display: block;
  font-family: Poppins, Inter, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: rgb(var(--text-secondary));
  margin-bottom: 6px;
}
.empty span {
  display: block;
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.55;
}
.badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgb(var(--accent) / 0.16);
  color: rgb(var(--accent));
  border: 1px solid rgb(var(--accent) / 0.35);
}

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(var(--divider-soft) / 0.3);
  font-size: 12.5px;
  color: rgb(var(--text-faint));
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .appbar-in {
    gap: 9px;
  }
  .wrap {
    padding: 0 12px 70px;
  }
}

.rr-comp {
  flex: 0 0 100%;
  order: 9;
  padding-left: 62px;
  margin-top: 1px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.commentary {
  padding: 13px 17px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgb(var(--text-secondary));
  border-top: 1px solid rgb(var(--divider-soft) / 0.28);
}
.commentary b { color: rgb(var(--text-primary)); font-weight: 600; }
.commentary.lead {
  border-top: 0;
  font-size: 15px;
  line-height: 1.6;
  padding: 16px 18px 18px;
}
.commentary .flat { color: rgb(var(--text-faint)); }

.topbar-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: rgb(var(--accent) / 0.18); overflow: hidden;
}
.topbar-progress[hidden] { display: none; }
.topbar-progress i {
  display: block; height: 100%; width: 34%;
  background: rgb(var(--accent));
  animation: fp-slide 1.05s cubic-bezier(.55,.1,.45,.9) infinite;
}
@keyframes fp-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(390%); }
}

.skeleton { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton i {
  display: block; height: 13px; border-radius: 6px;
  background: linear-gradient(90deg,
    rgb(var(--bg-surface-2) / .55) 25%,
    rgb(var(--bg-surface-3) / .75) 37%,
    rgb(var(--bg-surface-2) / .55) 63%);
  background-size: 400% 100%;
  animation: fp-shimmer 1.3s ease-in-out infinite;
}
.skeleton i:nth-child(2n) { width: 78%; }
.skeleton i:nth-child(3n) { width: 62%; }
@keyframes fp-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-progress i, .skeleton i { animation: none; }
}

.working {
  padding: 30px 20px; text-align: center;
  color: rgb(var(--text-muted)); font-size: 13.5px;
}
.working .big {
  display: block; font-family: Poppins, Inter, sans-serif; font-weight: 700;
  font-size: 15px; color: rgb(var(--text-secondary)); margin-bottom: 5px;
}

.fav-btn {
  background: none; border: 0; padding: 2px 4px; line-height: 1;
  color: rgb(var(--text-faint)); opacity: .45; transition: .15s;
}
.fav-btn:hover { opacity: 1; color: rgb(var(--accent)); }
.fav-btn[aria-pressed="true"] { opacity: 1; color: rgb(var(--accent)); }
.fav-btn svg { width: 15px; height: 15px; display: block; }
tbody tr.is-fav td { background: rgb(var(--accent) / 0.07); }

.form-strip { display: inline-flex; gap: 3px; align-items: center; }
.form-strip i {
  width: 15px; height: 15px; border-radius: 4px;
  font-style: normal; font-size: 9px; font-weight: 800;
  display: grid; place-items: center; color: #fff;
}
.form-strip i.w { background: #2eb872; }
.form-strip i.d { background: rgb(var(--text-faint)); }
.form-strip i.l { background: #e0413e; }

.streak {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
  padding: 3px 8px; border-radius: 999px; border: 1px solid transparent;
}
.streak.hot  { background: rgb(243 156 18 / .16); color: #f39c12; border-color: rgb(243 156 18 / .4); }
.streak.cold { background: rgb(79 142 247 / .16); color: #6ba4ff; border-color: rgb(79 142 247 / .4); }
.streak.warm { background: rgb(46 184 114 / .14); color: #2eb872; border-color: rgb(46 184 114 / .35); }
.streak.flat { background: rgb(var(--bg-surface-2) / .6); color: rgb(var(--text-muted)); border-color: rgb(var(--border-base)); }

.rr-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; border-bottom: 1px solid rgb(var(--divider-soft) / .28);
}
.rr-row:last-child { border-bottom: 0; }
.rr-row .res {
  width: 20px; height: 20px; border-radius: 5px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff;
}
.rr-row .res.w { background: #2eb872; }
.rr-row .res.d { background: rgb(var(--text-faint)); }
.rr-row .res.l { background: #e0413e; }
.rr-row .ha { font-size: 10.5px; font-weight: 700; color: rgb(var(--text-faint)); width: 14px; }
.rr-row .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-row .sc {
  font-family: Poppins, Inter, sans-serif; font-weight: 800; font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.rr-row .dt { font-size: 11px; color: rgb(var(--text-faint)); width: 44px; text-align: right; }

.nextmatch { display: flex; align-items: center; gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
.nextmatch .when {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px;
  padding-right: 16px; border-right: 1px solid rgb(var(--divider-soft) / .35);
}
.nextmatch .cd {
  font-family: Poppins, Inter, sans-serif; font-weight: 800; font-size: 19px;
  color: rgb(var(--accent)); line-height: 1.1;
}
.nextmatch .dt { font-size: 12px; color: rgb(var(--text-muted)); font-weight: 600; }
.nextmatch .teams { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; flex-wrap: wrap; }
.nextmatch .side { display: flex; align-items: center; gap: 9px; min-width: 0; }
.nextmatch .side .nm { font-weight: 700; font-size: 15px; white-space: nowrap; }
.nextmatch .v { font-size: 12px; color: rgb(var(--text-faint)); font-weight: 700; }

.nextmatch .v.sc {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: rgb(var(--text-primary));
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.nextmatch .v.sc i {
  font-style: normal;
  color: rgb(var(--text-faint));
  margin: 0 1px;
}

.nextmatch .v.sc em { display: none; }

.nextmatch .cd.on-date {
  font-size: 15px;
  color: rgb(var(--text-primary));
  font-weight: 700;
}
.nextmatch.is-played .dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
}
.nextmatch .comp {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: rgb(var(--text-faint));
}

@media (max-width: 620px) {
  .nextmatch { flex-direction: column; align-items: stretch; gap: 13px; padding: 15px 16px; }

  .nextmatch .when {
    flex-direction: row; align-items: baseline; justify-content: flex-start;
    gap: 9px; flex-wrap: wrap;
    padding: 0 0 12px; border-right: 0;
    border-bottom: 1px solid rgb(var(--divider-soft) / .35);
  }
  .nextmatch .cd { font-size: 17px; }
  .nextmatch .teams { flex-direction: column; align-items: stretch; gap: 7px; }
  .nextmatch .side { gap: 11px; }
  .nextmatch .side .nm {
    font-size: 16px;
    white-space: normal; overflow: hidden; text-overflow: ellipsis;
  }
  .nextmatch .v {
    width: 30px; text-align: center; line-height: 1; padding: 1px 0;
  }

  .nextmatch.is-played .when {
    justify-content: center;
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .nextmatch.is-played .when .dt { display: none; }
  .nextmatch.is-played .teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 8px;
  }
  .nextmatch.is-played .side {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 0;
  }
  .nextmatch.is-played .side .nm {
    font-size: 13.5px;
    white-space: normal;
    line-height: 1.25;
  }

  .nextmatch.is-played .v.sc {
    width: auto;
    padding: 6px 2px 0;
    display: block;
    text-align: center;
    white-space: nowrap;
    font-size: 27px;
  }
  .nextmatch.is-played .v.sc em {
    display: block;
    margin-top: 5px;
    font-style: normal;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgb(var(--text-faint));
  }
  .nextmatch .comp { margin-left: 41px; margin-top: 3px; }
}

.cal-hd {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px;
}
.cal-hd .mon {
  font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 14px;
  flex: 1; text-align: center;
}
.cal-nav {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgb(var(--bg-surface-2) / .5); border: 1px solid rgb(var(--border-base));
  color: rgb(var(--text-secondary)); transition: .15s;
}
.cal-nav:hover { color: rgb(var(--text-primary)); border-color: rgb(var(--border-soft)); }
.cal-nav svg { width: 14px; height: 14px; }
.cal-today {
  font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 8px;
  background: rgb(var(--bg-surface-2) / .5); border: 1px solid rgb(var(--border-base));
  color: rgb(var(--text-secondary));
}
.cal-today:hover { color: rgb(var(--accent)); border-color: rgb(var(--accent)); }

.cal { padding: 0 12px 12px; position: relative; }

.cal[data-loading="1"] .cal-grid { opacity: 0.35; }
.cal[data-loading="1"]::after {
  content: "Loading fixtures…";
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgb(var(--text-muted));
  pointer-events: none;
}
.cal-dow {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 4px;
}
.cal-dow span {
  text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgb(var(--text-faint)); padding: 2px 0;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-cell {
  aspect-ratio: 1 / 1; min-height: 34px; border-radius: 9px; padding: 3px 2px 2px;
  border: 1px solid transparent; background: none; cursor: default;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px;
  color: rgb(var(--text-faint)); font-size: 12px; transition: .12s;
}
.cal-cell.pad { visibility: hidden; }
.cal-cell.has {
  cursor: pointer; color: rgb(var(--text-primary));
  background: rgb(var(--bg-surface-2) / .45); border-color: rgb(var(--border-base));
}
.cal-cell.has:hover { border-color: rgb(var(--border-soft)); }
.cal-cell .n { font-weight: 600; line-height: 1; }
.cal-cell.has .n { font-weight: 700; }
.cal-cell .pip {
  font-size: 8.5px; font-weight: 800; line-height: 1; padding: 2px 4px; border-radius: 99px;
  background: rgb(var(--brand) / .22); color: rgb(var(--brand));
}
.cal-cell .dot { width: 6px; height: 6px; border-radius: 99px; background: rgb(var(--brand)); }
.cal-cell.today { box-shadow: inset 0 0 0 1px rgb(var(--accent)); }
.cal-cell[aria-pressed="true"] {
  background: rgb(var(--brand)); border-color: rgb(var(--brand)); color: #fff;
}
.cal-cell[aria-pressed="true"] .pip { background: rgb(255 255 255 / .28); color: #fff; }
.cal-cell[aria-pressed="true"] .dot { background: #fff; }

.agenda-hd {
  padding: 11px 17px 8px; font-family: Poppins, Inter, sans-serif;
  font-weight: 700; font-size: 13.5px; color: rgb(var(--text-secondary));
  display: flex; align-items: baseline; gap: 9px;
}
.agenda-hd .n { font-family: Inter, sans-serif; font-size: 11.5px; color: rgb(var(--text-faint)); font-weight: 600; }

.fx-comp {
  font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: rgb(var(--text-faint)); padding-left: 31px; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scope { margin-left: auto; }
.scope button { padding: 6px 11px; font-size: 12px; }

.rr-label {
  padding: 9px 16px 5px; font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: rgb(var(--text-faint));
  border-bottom: 1px solid rgb(var(--divider-soft) / .28);
  background: rgb(var(--bg-surface-2) / .3);
}
.rr-row .res.upcoming {
  background: none; border: 1px dashed rgb(var(--border-soft));
  color: rgb(var(--text-faint));
}

.fx-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;      
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--border-soft)) transparent;
}
.fx-scroll::-webkit-scrollbar { width: 8px; }
.fx-scroll::-webkit-scrollbar-thumb {
  background: rgb(var(--border-soft)); border-radius: 99px;
  border: 2px solid transparent; background-clip: content-box;
}
.fx-scroll::-webkit-scrollbar-track { background: transparent; }

.fx-scroll-wrap { position: relative; }
.fx-scroll-wrap[data-overflow="1"]::after {
  content: ""; position: absolute; left: 0; right: 8px; bottom: 0; height: 26px;
  pointer-events: none; border-radius: 0 0 16px 16px;
  background: linear-gradient(to bottom, rgb(var(--bg-surface) / 0), rgb(var(--bg-surface) / .92));
}

.panel-hd.clickable { cursor: pointer; user-select: none; }
.panel-hd.clickable:hover { color: rgb(var(--text-primary)); }

.hd-save {
  margin-left: auto; margin-right: 10px;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgb(var(--border-soft));
  background: rgb(var(--bg-raised)); color: rgb(var(--text-faint));
  cursor: pointer;
}
.hd-save:disabled { cursor: default; }

.hd-save[data-state="dirty"] {
  color: rgb(var(--bg-base)); background: rgb(var(--accent));
  border-color: rgb(var(--accent));
}
.hd-save[data-state="saving"] { opacity: .6; }
.hd-save[data-state="saved"] { color: rgb(var(--accent)); }

.hd-save[data-state="failed"] {
  color: rgb(var(--accent)); border-color: rgb(var(--accent));
}
.hd-save[data-state="blocked"] { border-style: dashed; }
@media (max-width: 420px) { .hd-save { font-size: 10px; padding: 3px 7px; } }

.hd-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: rgb(var(--text-faint));
  background: none; border: 0; padding: 0;
}
.panel-hd.clickable:hover .hd-toggle { color: rgb(var(--accent)); }

.sec-head.clickable { cursor: pointer; user-select: none; }
.sec-head.clickable:hover .t { color: rgb(var(--text-primary)); }
.sec-head.clickable:hover .hd-toggle { color: rgb(var(--accent)); }
.sec-head .hd-toggle { align-self: center; }
.hd-toggle svg { width: 14px; height: 14px; transition: transform .18s ease; }
.hd-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

tbody tr.gap td {
  height: 22px; padding: 0; text-align: center;
  color: rgb(var(--text-faint)); font-size: 11px; letter-spacing: .3em;
  background: rgb(var(--bg-surface-2) / .25);
}

body[data-depth="raised"] .panel {
  border-color: rgb(var(--border-soft) / 0.7);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.06) inset,
    0 10px 24px -8px rgb(2 6 23 / 0.45),
    0 2px 6px -2px rgb(2 6 23 / 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
body[data-depth="raised"] .panel:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.08) inset,
    0 18px 36px -10px rgb(2 6 23 / 0.5),
    0 4px 10px -3px rgb(2 6 23 / 0.34);
}
body[data-depth="raised"] .appbar {
  box-shadow: 0 6px 20px -8px rgb(2 6 23 / 0.5);
}
body[data-depth="raised"] .sheet {
  box-shadow: 0 30px 80px -20px rgb(2 6 23 / 0.65);
}

:root[data-theme="light"] body[data-depth="raised"] .panel,
:root[data-theme="pastel"] body[data-depth="raised"] .panel,
:root[data-theme="flat-light"] body[data-depth="raised"] .panel {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.7) inset,
    0 10px 24px -10px rgb(30 41 90 / 0.28),
    0 2px 6px -2px rgb(30 41 90 / 0.16);
}
:root[data-theme="light"] body[data-depth="raised"] .panel:hover,
:root[data-theme="pastel"] body[data-depth="raised"] .panel:hover,
:root[data-theme="flat-light"] body[data-depth="raised"] .panel:hover {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.85) inset,
    0 18px 34px -12px rgb(30 41 90 / 0.32),
    0 4px 10px -3px rgb(30 41 90 / 0.2);
}
@media (prefers-reduced-motion: reduce) {
  body[data-depth="raised"] .panel { transition: none; }
  body[data-depth="raised"] .panel:hover { transform: none; }
}

.diag {
  border: 1px solid rgb(var(--border-base));
  border-radius: 11px;
  overflow: hidden;
}
.diag-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: rgb(var(--text-muted));
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.28);
}
.diag-row:last-child { border-bottom: 0; }
.diag-row b {
  color: rgb(var(--text-primary));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.diag-note {
  padding: 8px 12px;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgb(var(--text-faint));
  background: rgb(var(--bg-surface-2) / 0.35);
}

.info-btn {
  margin-left: auto;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgb(var(--border-soft));
  background: rgb(var(--bg-surface-2) / 0.55);
  color: rgb(var(--text-muted));
  font-family: Poppins, Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: 0.15s;
}
.info-btn:hover {
  color: rgb(var(--accent));
  border-color: rgb(var(--accent));
}
.info-btn[aria-expanded="true"] {
  background: rgb(var(--accent));
  border-color: rgb(var(--accent));
  color: #fff;
}
:root:not([data-theme="light"]):not([data-theme="pastel"]):not([data-theme="flat-light"])
  .info-btn[aria-expanded="true"] {
  color: #0a0e1a;
}

.info-panel {
  padding: 14px 18px 16px;
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.3);
  background: rgb(var(--bg-surface-2) / 0.3);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgb(var(--text-secondary));
}
.info-panel[hidden] {
  display: none;
}
.info-panel p {
  margin: 0 0 10px;
  max-width: 74ch;
}
.info-panel p:last-child {
  margin-bottom: 0;
}
.info-panel b {
  color: rgb(var(--text-primary));
  font-weight: 600;
}
.info-panel .info-caveat {
  color: rgb(var(--text-muted));
  font-size: 13px;
}

.radar-panel {
  max-width: 620px;
}

#mci-panel {
  margin-bottom: 16px;
}

.fx-row, .rr-row.tappable { cursor: pointer; }

.lst-row.tappable { cursor: pointer; }
.lst-row.tappable:hover { background: rgb(var(--bg-surface-2) / .5); }
.m-sheet {
  width: min(620px, 100%); max-height: 88vh; overflow-y: auto;
  background: rgb(var(--bg-surface)); border: 1px solid rgb(var(--border-soft));
  border-radius: 18px; box-shadow: 0 30px 80px -20px rgb(2 6 23 / .65);
}
.m-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; background: rgb(var(--bg-surface));
  border-bottom: 1px solid rgb(var(--border-base));
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgb(var(--text-faint));
}

.m-hero {
  padding: 20px 18px 18px; text-align: center;
  position: sticky; top: var(--m-top-h, 44px); z-index: 1;
  background: rgb(var(--bg-surface));
  border-bottom: 1px solid transparent;
  transition: padding .16s ease, border-color .16s ease;
}

.m-hero.is-stuck { padding: 9px 14px; border-bottom-color: rgb(var(--border-base)); }
.m-hero.is-stuck .m-teams { gap: 10px; }

.m-hero.is-stuck .m-side {
  flex-direction: row; gap: 7px; justify-content: center; min-width: 0;
}

.m-hero.is-stuck .m-side .nm {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.m-hero.is-stuck .fp-mark { --sz: 24px !important; }
.m-hero.is-stuck .m-side .nm { font-size: 12.5px; }
.m-hero.is-stuck .m-side .ha,
.m-hero.is-stuck .m-when,
.m-hero.is-stuck .m-ft,
.m-hero.is-stuck .m-countdown { display: none; }
.m-hero.is-stuck .m-score { font-size: 22px; }
.m-hero.is-stuck .m-kick { font-size: 16px; }
.m-hero.is-stuck .m-mid { min-width: 62px; }
.m-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.m-side { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.m-side .nm { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.m-side .ha { font-size: 10px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: rgb(var(--text-faint)); }
.m-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 92px; }
.m-score { font-family: Poppins, Inter, sans-serif; font-weight: 800; font-size: 38px;
  line-height: 1; font-variant-numeric: tabular-nums; }
.m-kick { font-family: Poppins, Inter, sans-serif; font-weight: 800; font-size: 25px; line-height: 1.05; }
.m-when { font-size: 12px; color: rgb(var(--text-muted)); font-weight: 600; }
.m-ft { font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: rgb(var(--text-faint)); }
.m-countdown { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgb(var(--accent) / .16); border: 1px solid rgb(var(--accent) / .4);
  color: rgb(var(--accent)); font-size: 12px; font-weight: 700; }

.m-news { padding: 12px 16px 0; font-size: 12.5px; line-height: 1.5;
  color: rgb(var(--text-muted)); font-style: italic; }

.m-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgb(var(--divider-soft) / .3);
  border-top: 1px solid rgb(var(--divider-soft) / .3);
  border-bottom: 1px solid rgb(var(--divider-soft) / .3); }
.m-info > div { background: rgb(var(--bg-surface)); padding: 13px 16px; }
.m-info .k { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: rgb(var(--text-faint)); margin-bottom: 3px; }
.m-info .v { font-size: 13.5px; font-weight: 600; }
.m-sec { padding: 14px 16px 9px; display: flex; align-items: baseline; gap: 9px;
  font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 14px; }
.m-sec .sub { margin-left: auto; font-family: Inter, sans-serif; font-size: 11px;
  font-weight: 600; color: rgb(var(--text-faint)); }

.m-scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 18px;
  margin-top: 13px; font-size: 12px; line-height: 1.45; }

.m-scorers .sc { display: flex; flex-direction: column; align-items: center;
  gap: 3px; min-width: 0; text-align: center; }
.m-scorers .sc-row { display: block; }
.m-scorers .sc-ball { font-style: normal; font-size: 8.5px; opacity: .5;
  margin-right: 5px; vertical-align: 1px; }
.m-scorers .sc-row b { font-weight: 700; color: rgb(var(--text-faint));
  font-variant-numeric: tabular-nums; margin-right: 5px; }
.m-scorers .sc-nm { color: rgb(var(--text-secondary)); }

.m-hero.is-stuck .m-scorers { display: none; }

.sc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 12px 16px 2px; align-items: center; }
.sc-head .side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-head .side.b { justify-content: flex-end; }
.sc-head .nm { font-family: Poppins, Inter, sans-serif; font-weight: 800; font-size: 12.5px;
  line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.sc-head .side.b .nm { text-align: right; }

.h2h-settle .cq-mci, .pg-pick .cq-mci { margin: 10px 16px 12px; }

.sr-sample { padding: 0 16px 12px; font-size: 11px; color: rgb(var(--text-faint)); }
.sr-sample.thin { color: rgb(var(--warn, var(--text-muted))); font-weight: 600; }

.sr { padding: 10px 16px; border-top: 1px solid rgb(var(--divider-soft) / .22); }
.sr-top { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  gap: 10px; margin-bottom: 6px; }

.sr-v { font-family: Poppins, Inter, sans-serif; font-weight: 800; font-size: 13.5px;
  font-variant-numeric: tabular-nums; color: rgb(var(--text-secondary)); }
.sr-v.win { color: rgb(var(--text-primary)); }
.sr-l { text-align: center; font-size: 11.5px; font-weight: 700; color: rgb(var(--text-secondary)); }
.sr-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.sr-bars > span { display: flex; height: 7px; }
.sr-bars > span:first-child { justify-content: flex-end; }
.sr-bars i { display: block; height: 7px; border-radius: 4px; }
.sr.tie .sr-v, .sr.tie .sr-v.win { color: rgb(var(--text-muted)); }

.pgrid { width: 100%; height: auto; display: block; overflow: visible; margin: 4px 0 2px; }

.pg-dot { transform-origin: center; animation: pg-pop .55s cubic-bezier(.22,1,.36,1) backwards; }
@keyframes pg-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pg-nm { font-size: 9.5px; font-weight: 800; fill: rgb(var(--text-primary));
  paint-order: stroke; stroke: rgb(var(--bg-surface)); stroke-width: 3px; stroke-linejoin: round; }
.pg-q { font-size: 8.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  fill: rgb(var(--text-faint)); opacity: .75; }
.pg-ax { font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  fill: rgb(var(--text-faint)); }
.pg-key { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: rgb(var(--text-faint));

  padding: 8px 16px 20px; }

#pgrid-panel, #pscore-panel { margin-bottom: 16px; }

.pg-hit { fill: transparent; cursor: pointer; }
.pg-sel { animation: pg-sel .5s cubic-bezier(.22,1,.36,1) backwards; }
@keyframes pg-sel { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.pg-hint { padding: 0 16px 32px; font-size: 11.5px; color: rgb(var(--text-faint)); }
.pg-hint b { color: rgb(var(--text-secondary)); }
.pg-pick { border-top: 1px solid rgb(var(--divider-soft) / .35); padding-bottom: 30px; }
.pg-pick-hd { display: flex; align-items: baseline; gap: 9px; padding: 13px 16px 4px;
  font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 13px; }
.pg-clear { margin-left: auto; background: none; border: 0; cursor: pointer;
  font-family: Inter, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: rgb(var(--text-faint)); padding: 2px 0; }
.pg-clear:hover { color: rgb(var(--text-secondary)); }

.settle-sec { padding-top: 18px; margin-top: 14px;
  border-top: 1px solid rgb(var(--divider-soft) / .38); }

.settle-sec .sub { margin-left: 0; }
.h2h-settle .sr:first-of-type { border-top: 0; }

.ps-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 16px; border-top: 1px solid rgb(var(--divider-soft) / .22); }
.ps-row .rk { font-size: 11px; font-weight: 800; color: rgb(var(--text-faint));
  font-variant-numeric: tabular-nums; }
.ps-row .nm { font-size: 12.5px; font-weight: 600; color: rgb(var(--text-secondary));
  display: flex; align-items: center; gap: 7px; min-width: 0; }
.ps-row .nm span.sw { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.ps-row.me .nm { color: rgb(var(--text-primary)); font-weight: 800; }
.ps-row .comp { display: flex; gap: 3px; align-items: center; }
.ps-row .comp i { display: block; width: 26px; height: 5px; border-radius: 3px;
  background: rgb(var(--bg-surface-2)); overflow: hidden; }
.ps-row .comp i b { display: block; height: 5px; border-radius: 3px; }
.ps-row .comp .v { font-family: Poppins, Inter, sans-serif; font-weight: 800; font-size: 13px;
  font-variant-numeric: tabular-nums; width: 28px; text-align: right; }

.ps-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 10px 16px 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: rgb(var(--text-faint)); }
.ps-legend .ps-sw { display: inline-block; width: 14px; height: 5px; border-radius: 3px;
  margin-right: 5px; vertical-align: middle; }

.ps-row:last-child { padding-bottom: 26px; }

.m-summary { margin: 0 16px 13px; font-size: 13px; line-height: 1.62;
  color: rgb(var(--text-secondary)); }
.m-summary b { font-weight: 700; color: rgb(var(--text-primary)); }

.h2h-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgb(var(--divider-soft) / .3); margin: 0 16px 12px;
  border: 1px solid rgb(var(--divider-soft) / .3); border-radius: 12px; overflow: hidden; }
.h2h-sum div { background: rgb(var(--bg-surface-2) / .4); padding: 11px 8px; text-align: center; }
.h2h-sum .n { font-family: Poppins, Inter, sans-serif; font-weight: 800; font-size: 21px; line-height: 1; }
.h2h-sum .k { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgb(var(--text-faint)); margin-top: 4px; }

.h2h-sum .k .h2h-pos { font-style: normal; display: block; margin-top: 2px;
  font-size: 9px; letter-spacing: .06em; color: rgb(var(--text-faint) / .85); }

.h2h-sum .w .n { color: #2eb872; }
.h2h-sum .d .n { color: rgb(var(--text-muted)); }
.h2h-sum .l .n { color: #e0413e; }
.h2h-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  border-top: 1px solid rgb(var(--divider-soft) / .26); font-size: 13.5px; }
.h2h-row .dt { width: 52px; font-size: 11px; color: rgb(var(--text-faint)); }
.h2h-row .tm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.h2h-row .tm .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

.h2h-row .sc {
  font-family: Poppins, Inter, sans-serif; font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto; width: 54px; text-align: center;
}
.h2h-row .res { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center;
  font-size: 9px; font-weight: 800; color: #fff; flex: 0 0 auto; }
.h2h-row .res.w { background: #2eb872; }
.h2h-row .res.d { background: rgb(var(--text-faint)); }
.h2h-row .res.l { background: #e0413e; }

.h2h-row { flex-wrap: wrap; }
.h2h-row .h2h-comp {
  flex: 0 0 100%; order: 9; padding-left: 90px; margin-top: -4px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: rgb(var(--text-faint)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.tl { padding: 2px 16px 14px; }
.tl-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.tl-row .min { width: 34px; font-family: Poppins, Inter, sans-serif; font-weight: 700;
  font-size: 12px; color: rgb(var(--text-faint)); font-variant-numeric: tabular-nums; }
.tl-row .ic { width: 18px; text-align: center; font-size: 12px; }
.tl-row .who { flex: 1; min-width: 0; font-weight: 600; }
.tl-row .sc { font-size: 12px; color: rgb(var(--text-muted)); font-variant-numeric: tabular-nums; }
.tl-row.away { flex-direction: row-reverse; text-align: right; }

.ev-var {
  font-family: Poppins, Inter, sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgb(var(--text-muted) / 0.22);
  color: rgb(var(--text-secondary));
  line-height: 1;
}
.tl-row.is-var { padding: 8px 0; }
.tl-row.is-var .who { font-weight: 500; }
.var-d { font-weight: 700; }
.tl-row.var-against .var-d { color: #f87171; }
.tl-row.var-against .ev-var { background: rgb(220 38 38 / 0.2); color: #f87171; }
.tl-row.var-for .var-d { color: #4ade80; }
.tl-row.var-for .ev-var { background: rgb(34 197 94 / 0.2); color: #4ade80; }

.tl-row.is-var .ic { width: 30px; }

.tl-row.is-sub .who { font-weight: 500; color: rgb(var(--text-secondary)); }
.tl-off { color: rgb(var(--text-faint)); font-weight: 500; font-size: 12.5px; }
.ev-sub { color: rgb(var(--text-muted)); font-size: 13px; font-weight: 700; }
.ev-miss { color: #dc2626; font-size: 12px; font-weight: 800; }

.card-y { display: inline-block; width: 9px; height: 12px; border-radius: 2px; background: #eab308; }
.card-r { display: inline-block; width: 9px; height: 12px; border-radius: 2px; background: #dc2626; }

.card-yr { display: inline-block; position: relative; width: 13px; height: 14px; }
.card-yr .card-y { position: absolute; left: 0; top: 0; }
.card-yr .card-r { position: absolute; left: 4px; top: 2px; box-shadow: -1px 0 0 rgb(0 0 0 / 0.35); }

.st { padding: 2px 16px 14px; }
.st-row { padding: 7px 0; }
.st-top { display: grid; grid-template-columns: 46px 1fr 46px; align-items: baseline; gap: 10px;
  font-size: 13px; margin-bottom: 5px; }
.st-top .h, .st-top .a { font-family: Poppins, Inter, sans-serif; font-weight: 800;
  font-variant-numeric: tabular-nums; }
.st-top .a { text-align: right; }
.st-top .k { text-align: center; font-size: 11.5px; font-weight: 600; color: rgb(var(--text-muted)); }
.st-bar { display: flex; height: 5px; border-radius: 4px; overflow: hidden;
  background: rgb(var(--bg-surface-2)); }
.st-bar i { display: block; height: 100%; }
.st-bar .bh { background: var(--c-home); }
.st-bar .ba { background: var(--c-away); }

.cq { padding: 2px 16px 14px; }

.cq-mci {
  display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 10px;
  padding: 11px 12px; margin: 4px 0 10px;
  background: rgb(var(--bg-surface-2) / .45);
  border: 1px solid rgb(var(--border-soft)); border-radius: 13px;
}
.cq-mci .h, .cq-mci .a {
  font-family: Poppins, Inter, sans-serif; font-weight: 800; font-size: 21px;
  line-height: 1; letter-spacing: -0.02em; color: rgb(var(--text-primary));
}
.cq-mci .a { text-align: right; }

.cq-mci .h, .cq-mci .a { color: rgb(var(--text-secondary)); }
.cq-mci.lead-h .h, .cq-mci.lead-a .a { color: rgb(var(--text-primary)); }
.cq-mci .mid { text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cq-mci .mid b { font-family: Poppins, Inter, sans-serif; font-size: 12px; font-weight: 700;
  color: rgb(var(--text-secondary)); }
.cq-mci .mid em { font-style: normal; font-size: 10.5px; font-weight: 600;
  color: rgb(var(--text-muted)); }
.cq-pips { display: flex; align-items: center; gap: 5px; height: 9px; margin-top: 2px; }
.cq-pips .side { display: flex; gap: 4px; flex: 1; align-items: center; }
.cq-pips .side.h { justify-content: flex-end; }
.cq-pips .side i {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: rgb(var(--bg-surface-2));
}
.cq-pips .side.h i.on { background: var(--c-home); }
.cq-pips .side.a i.on { background: var(--c-away); }
.cq-pips .cq-mid { width: 1px; height: 9px; flex: none; background: rgb(var(--border-base)); }
.cq-pips .over { font-size: 10px; font-weight: 700; font-style: normal;
  color: rgb(var(--text-muted)); margin: 0 2px; }

.cq-pips.muted .side.h i.on,
.cq-pips.muted .side.a i.on { background: rgb(var(--text-muted)); }

.st-row .st-top .h, .st-row .st-top .a { color: rgb(var(--text-secondary)); }
.st-row.lead-h .st-top .h, .st-row.lead-a .st-top .a { color: rgb(var(--text-primary)); }
.extra { margin: 4px 16px 16px; border: 1px dashed rgb(var(--border-soft));
  border-radius: 14px; overflow: hidden; }
.extra-hd {
  width: 100%; padding: 12px 15px; background: rgb(var(--bg-surface-2) / .35);
  border: 0; border-bottom: 1px dashed transparent; color: inherit; text-align: left;
  display: flex; align-items: center; gap: 10px; transition: .15s;
}
.extra-hd[aria-expanded="true"] { border-bottom-color: rgb(var(--border-soft)); }
.extra-hd:hover { background: rgb(var(--bg-surface-2) / .55); }
.extra-hd .t { font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 13.5px; }
.extra-hd .c {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgb(var(--bg-surface-3) / .6); color: rgb(var(--text-muted));
}
.extra-hd .chev {
  margin-left: auto; width: 15px; height: 15px; color: rgb(var(--text-faint));
  transition: transform .18s ease;
}
.extra-hd[aria-expanded="true"] .chev { transform: rotate(180deg); }
.extra-grp { padding: 9px 15px 4px; font-size: 10px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: rgb(var(--text-faint)); }
.extra .st { padding: 0 15px 10px; }

.m-info .k { white-space: nowrap; }
.m-info .v:has(.sub2) { white-space: nowrap; }
.m-info .v .sub2 {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgb(var(--text-muted));
  white-space: nowrap;
}

.nextmatch[data-fixture] { cursor: pointer; transition: background .15s; }
.nextmatch[data-fixture]:hover { background: rgb(var(--bg-surface-2) / .35); }
.rr-row.tappable { cursor: pointer; }
.rr-row.tappable:hover { background: rgb(var(--bg-surface-2) / .4); }
[data-fixture]:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: -2px; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 4px 12px;
  flex-wrap: wrap;
}
.sec-head[hidden] { display: none; }
.sec-head .t {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.sec-head .d {
  font-size: 12.5px;
  color: rgb(var(--text-faint));
}

.sec-head.clickable {
  background: rgb(var(--bg-base-deep) / 0.65);
  border: 1px solid rgb(var(--border-base));
  border-radius: 14px;

  padding: 11px 14px;
  margin-bottom: 12px;
}

.sec-head.clickable .hd-toggle { color: rgb(var(--text-muted)); }

.pl-stats {
  margin-left: auto;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgb(var(--bg-surface-2) / 0.55);
  border: 1px solid rgb(var(--border-base));
  color: rgb(var(--text-muted));
  cursor: pointer;
  transition: 0.15s;
}
.pl-stats svg { width: 13px; height: 13px; }
.pl-stats:hover { color: rgb(var(--brand)); border-color: rgb(var(--brand)); }

.p-hero { display: flex; gap: 16px; align-items: center; padding: 20px 18px 18px; }

.p-shade {
  position: relative;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 62%, #000) 100%);
  box-shadow: inset 0 0 0 1px rgb(var(--text-primary) / 0.16);
}
.p-shade::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 17%;
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgb(2 6 23 / 0.42);
}
.p-shade::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14%;
  width: 74%;
  aspect-ratio: 1.35;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  background: rgb(2 6 23 / 0.42);
}
.p-num {
  position: absolute;
  right: 5px;
  top: 4px;
  z-index: 2;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  color: rgb(255 255 255 / 0.92);
}
.p-id { min-width: 0; flex: 1; }
.p-name {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: 23px;
  line-height: 1.15;
  margin-bottom: 3px;
}
.p-full { font-size: 12.5px; color: rgb(var(--text-faint)); margin-bottom: 9px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgb(var(--bg-surface-2) / 0.6);
  border: 1px solid rgb(var(--border-base));
  color: rgb(var(--text-secondary));
}
.p-tag.club { display: inline-flex; align-items: center; gap: 6px; padding-left: 5px; }
.p-tag.cap {
  background: rgb(var(--accent) / 0.16);
  border-color: rgb(var(--accent) / 0.4);
  color: rgb(var(--accent));
}

.p-bio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgb(var(--divider-soft) / 0.3);
  border-top: 1px solid rgb(var(--divider-soft) / 0.3);
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.3);
}
.p-bio > div { background: rgb(var(--bg-surface)); padding: 12px 16px; }
.p-bio .k {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
  margin-bottom: 3px;
}
.p-bio .v { font-size: 13.5px; font-weight: 600; }
.p-bio .v small { font-weight: 500; color: rgb(var(--text-faint)); font-size: 11.5px; }

.p-comp { padding: 12px 16px 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-comp .seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  background: rgb(var(--bg-surface-2) / 0.5);
  border: 1px solid rgb(var(--border-base));
  border-radius: 10px;
  padding: 3px;
}
.p-comp .seg button {
  padding: 5px 11px;
  border-radius: 8px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: rgb(var(--text-muted));
}
.p-comp .seg button[aria-pressed="true"] { background: rgb(var(--brand)); color: #fff; }
.p-comp .sel-wrap { flex: 0 0 auto; }
.p-comp .p-season { font-size: 12.5px; padding: 6px 28px 6px 10px; }
.p-comp .yr { margin-left: auto; font-size: 11.5px; font-weight: 600; color: rgb(var(--text-faint)); }

.p-key {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgb(var(--divider-soft) / 0.3);
  margin-top: 12px;
  border-top: 1px solid rgb(var(--divider-soft) / 0.3);
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.3);
}
.p-key > div { background: rgb(var(--bg-surface)); padding: 14px 10px; text-align: center; }
.p-key .n {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.p-key .k {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
  margin-top: 5px;
}
.p-key .sub { font-size: 10px; color: rgb(var(--text-faint)); margin-top: 3px; font-weight: 600; }
.p-key .rating .n { color: rgb(var(--accent)); }

.p-rows { padding: 2px 16px 10px; }
.p-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.22);
}
.p-row:last-child { border-bottom: 0; }
.p-row .k { font-size: 13px; color: rgb(var(--text-secondary)); }
.p-row .v { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.p-row .v em {
  font-style: normal;
  font-weight: 600;
  font-size: 11.5px;
  color: rgb(var(--text-faint));
  margin-left: 5px;
}
.p-bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 99px;
  margin-top: 7px;
  background: rgb(var(--bg-surface-2) / 0.8);
  overflow: hidden;
}
.p-bar i { display: block; height: 100%; border-radius: 99px; background: rgb(var(--brand)); }

.p-per90 { font-size: 11px; font-weight: 600; color: rgb(var(--text-faint)); }

.p-none { padding: 30px 20px 34px; text-align: center; color: rgb(var(--text-faint)); font-size: 13.5px; }
.p-none b {
  display: block;
  font-family: Poppins, Inter, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: rgb(var(--text-secondary));
  margin-bottom: 6px;
}
.p-none span { display: block; max-width: 42ch; margin: 0 auto; line-height: 1.55; }

@media (max-width: 520px) {
  .p-key { grid-template-columns: repeat(2, 1fr); }
  .p-hero { gap: 13px; padding: 16px 15px 15px; }
  .p-shade { width: 62px; height: 62px; border-radius: 16px; }
  .p-name { font-size: 20px; }
}

.lu-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--accent));
  background: rgb(var(--accent) / 0.14);
  border-radius: 999px;
  padding: 2px 7px;
}
.lu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgb(var(--divider-soft) / 0.3);
}
.lu-side { background: rgb(var(--bg-surface)); padding: 11px 13px 13px; min-width: 0; }
.lu-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  min-width: 0;
}
.lu-hd .nm {
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lu-f {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 700;
  color: rgb(var(--text-faint));
  font-variant-numeric: tabular-nums;
}
.lu-list { display: flex; flex-direction: column; gap: 1px; }
.lu-row { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; min-width: 0; }
.lu-n {
  flex: 0 0 20px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: rgb(var(--text-faint));
  font-variant-numeric: tabular-nums;
}
.lu-nm {
  font-size: 12.5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lu-list.bench .lu-nm { color: rgb(var(--text-muted)); }

.lu-row.out .lu-n { color: rgb(var(--text-faint)); font-size: 12px; }
.lu-row.out { align-items: flex-start; padding: 6px 0; }
.lu-row.out .lu-nm {
  white-space: normal;
  color: rgb(var(--text-muted));
  text-decoration: line-through;
  text-decoration-color: rgb(var(--text-faint) / 0.5);
}
.lu-why {
  display: block;
  font-size: 11px;
  color: rgb(var(--text-faint));
  text-decoration: none;
  margin-top: 1px;
}
.lu-sub {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgb(var(--divider-soft) / 0.3);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
  margin-bottom: 5px;
}
@media (max-width: 480px) {
  .lu-grid { grid-template-columns: minmax(0, 1fr); }
}

.p-keep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-right: 4px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  color: rgb(var(--text-muted));
  white-space: nowrap;
}
.p-keep input { accent-color: rgb(var(--brand)); width: 14px; height: 14px; cursor: pointer; }
.p-keep:hover { color: rgb(var(--text-secondary)); }

.pop-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pop-trigger {
  display: flex;
  align-items: center;
  gap: 8px;

  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;

  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: rgb(var(--text-primary));
  background: rgb(var(--bg-surface-2) / 0.55);
  border: 1px solid rgb(var(--border-base));
  border-radius: 10px;
  padding: 8px 10px 8px 11px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}
.pop-trigger:hover { border-color: rgb(var(--border-soft)); }
.pop-trigger:disabled { opacity: 0.5; cursor: default; }
.pop-trigger-lbl {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pop-trigger-caret {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: rgb(var(--text-muted));
}
.pop-trigger-sm {
  font-size: 12.5px;
  padding: 6px 8px 6px 10px;
  border-radius: 9px;
}

.pop-panel {
  position: fixed;
  z-index: 10001;
  min-width: 180px;
  max-width: min(320px, calc(100vw - 16px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border-radius: 14px;
  background: rgb(var(--bg-surface));
  border: 1px solid rgb(var(--border-soft));
  box-shadow: 0 24px 60px -16px rgb(2 6 23 / 0.66);
  scrollbar-width: thin;
}
.pop-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: rgb(var(--text-secondary));
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: 0.12s;
}
.pop-opt:hover { background: rgb(var(--bg-surface-2) / 0.7); color: rgb(var(--text-primary)); }
.pop-opt.sel { color: rgb(var(--text-primary)); }
.pop-opt-lbl { flex: 1; min-width: 0; }

.pop-tick {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: rgb(var(--brand));
  visibility: hidden;
}
.pop-opt.sel .pop-tick { visibility: visible; }

@media (max-width: 719px) {
  #squad-scorers #squad-panel { order: 1; }
  #squad-scorers #scorers-panel { order: 2; }
}

.rr-riv.is-derby { color: rgb(var(--accent)); }
.rr-row.km .rr-riv { color: rgb(var(--text-muted)); }
.rr-row.km .rr-riv.is-derby { color: rgb(var(--accent)); }

#standings tbody tr.tappable { cursor: pointer; }
.cs-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 16px;
}
.cs-id { flex: 1; min-width: 0; }
.cs-name {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: 21px;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.cs-you {
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--accent));
  background: rgb(var(--accent) / 0.14);
  border-radius: 999px;
  padding: 3px 8px;
}
.cs-sub {
  font-size: 12.5px;
  color: rgb(var(--text-muted));
  font-weight: 600;
  margin-top: 4px;
}
.cs-form { flex: 0 0 auto; }

.cs-gap {
  margin: 0 16px 12px;
  padding: 10px 13px;
  border-radius: 11px;
  background: rgb(var(--bg-surface-2) / 0.55);
  border: 1px solid rgb(var(--border-base));
  font-size: 13px;
  color: rgb(var(--text-secondary));
}
.cs-gap b { color: rgb(var(--text-primary)); font-weight: 800; }
#cs-list { padding-bottom: 8px; }

.rr-riv {
  flex: 0 0 100%;
  order: 9;
  padding-left: 62px;
  margin-top: 1px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--accent));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.set-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--text-muted));
  margin: 12px 0 6px;
}
.set-sub:first-of-type { margin-top: 2px; }

.seg-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
}
.seg-pair .seg-cap {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: rgb(var(--text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg-pair .seg { flex: 0 0 auto; }

.set-warn {
  display: block;
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgb(var(--accent) / 0.1);
  border: 1px solid rgb(var(--accent) / 0.35);
  color: rgb(var(--text-secondary));
}

.livestrip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.livestrip[hidden] {
  display: none;
}
.ls-card {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgb(var(--border-base));
  background: rgb(var(--bg-surface) / 0.62);
  color: rgb(var(--text-primary));
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}
.ls-card:hover { border-color: rgb(var(--border-soft)); }

.ls-card.yours { border-color: rgb(var(--accent) / 0.55); }

.ls-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgb(var(--accent));
  font-variant-numeric: tabular-nums;
  min-width: 46px;
}

.ls-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgb(var(--accent));
  flex: 0 0 auto;
  animation: ls-pulse 2s ease-in-out infinite;
}
@keyframes ls-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-dot { animation: none; }
}

.ls-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ls-side.away { flex-direction: row-reverse; text-align: right; }
.ls-side .nm {
  font-weight: 600;
  font-size: 13.5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ls-score {
  flex: 0 0 auto;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ls-score i { font-style: normal; color: rgb(var(--text-faint)); margin: 0 2px; }

@media (max-width: 560px) {

  .ls-card {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "clock home score"
      "clock away score";
    gap: 5px 10px;
    padding: 9px 12px;
  }
  .ls-clock {
    grid-area: clock;
    align-self: center;
    border-right: 1px solid rgb(var(--divider-soft) / 0.28);
    padding-right: 10px;
  }
  .ls-side { grid-area: home; justify-content: flex-start; }

  .ls-side.away { grid-area: away; flex-direction: row; text-align: left; }
  .ls-side .nm { display: block; }
  .ls-score { grid-area: score; align-self: center; font-size: 20px; }
}

@media (max-width: 400px) {
  .ls-side .nm { font-size: 12.5px; }
  .ls-clock { min-width: 42px; padding-right: 8px; }
  .ls-card { gap: 5px 8px; }
}

.hasplit {
  padding: 2px 16px 12px;
}
.ha-row {
  display: grid;
  grid-template-columns: 44px 24px 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.28);
}
.ha-row:last-of-type { border-bottom: 0; }
.ha-hd {
  padding: 7px 0 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgb(var(--text-faint));
}
.ha-k {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: rgb(var(--text-muted));
}
.ha-p, .ha-ppg, .ha-wdl, .ha-gs {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ha-ppg {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: rgb(var(--text-primary));
}
.ha-p {
  font-size: 12px;
  font-weight: 700;
  color: rgb(var(--text-faint));
}
.ha-hd .ha-p, .ha-hd .ha-ppg, .ha-hd .ha-wdl, .ha-hd .ha-gs {
  font-family: inherit;
  font-weight: 800;
  font-size: 9.5px;
  color: rgb(var(--text-faint));
}
.ha-wdl, .ha-gs {
  font-size: 13px;
  font-weight: 700;
  color: rgb(var(--text-secondary));
}
.ha-foot {
  padding-top: 9px;
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--text-muted));
}
.ha-foot i { font-style: normal; color: rgb(var(--text-faint)); font-weight: 500; }

:root.dark body[data-depth="raised"] .panel {
  background: rgb(var(--bg-surface) / 0.92);
  border-color: rgb(var(--border-soft));
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.1) inset,
    0 12px 28px -10px rgb(0 0 0 / 0.75),
    0 2px 6px -2px rgb(0 0 0 / 0.55);
}
:root.dark body[data-depth="raised"] .panel:hover {
  background: rgb(var(--bg-surface));
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.14) inset,
    0 20px 40px -12px rgb(0 0 0 / 0.8),
    0 4px 10px -3px rgb(0 0 0 / 0.6);
}
:root.dark body[data-depth="raised"] .appbar {
  box-shadow: 0 8px 24px -10px rgb(0 0 0 / 0.85);
}

.nm-next {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgb(var(--divider-soft) / 0.3);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-width: 0;
}
.nm-next:hover .nm { color: rgb(var(--text-primary)); }
.nm-next .k {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
  flex: 0 0 auto;
}
.nm-next .nm {
  font-weight: 600;
  font-size: 13.5px;
  color: rgb(var(--text-secondary));
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nm-next .ha {
  font-size: 10.5px;
  font-weight: 700;
  color: rgb(var(--text-faint));
  flex: 0 0 auto;
}
.nm-next .dt {
  margin-left: auto;
  padding-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--text-muted));
  white-space: nowrap;
  flex: 0 0 auto;
}

.hb-wrap {
  padding: 12px 16px 13px;
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.28);
}
.hb-plot { position: relative; }
.heartbeat {
  display: block;
  width: 100%;
  height: var(--hb-h, 46px);
  overflow: visible;
  cursor: pointer;
}
.hb-base {
  stroke: rgb(var(--divider-soft) / 0.5);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.heartbeat .hb { transition: opacity 0.12s; }
.heartbeat:hover .hb { opacity: 0.5; }
.heartbeat .hb:hover, .heartbeat .hb.hb-sel { opacity: 1; }

.heartbeat .hb.w { fill: #4a9eff; }
.heartbeat .hb.l { fill: #d55e00; }
.heartbeat .hb.d { fill: rgb(var(--text-faint)); }

.hb-cap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--text-muted));
  font-variant-numeric: tabular-nums;
}
.hb-cap b { color: rgb(var(--text-primary)); font-weight: 700; }
.hb-cap .ha { font-size: 10px; font-weight: 800; color: rgb(var(--text-faint)); }
.hb-cap .sc { font-weight: 800; color: rgb(var(--text-secondary)); }
.hb-cap .dt { color: rgb(var(--text-faint)); }
.hb-cap .ix { margin-left: auto; font-size: 11px; color: rgb(var(--text-faint)); }
.hb-pip {
  width: 16px; height: 16px; border-radius: 4px;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800; color: #fff; flex: 0 0 auto;
}
.hb-pip.w { background: #4a9eff; }
.hb-pip.l { background: #d55e00; }
.hb-pip.d { background: rgb(var(--text-faint)); }

body[data-en-prose="off"] .commentary,
body[data-en-prose="off"] .info-panel,
body[data-en-prose="off"] .info-btn {
  display: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(var(--bg-base));
  opacity: 1;
  transition: opacity 0.25s ease;
}
.auth-gate.is-gone { opacity: 0; pointer-events: none; }
.auth-gate[hidden] { display: none; }

.auth-card { width: 100%; max-width: 360px; text-align: center; }
.auth-mark { width: 72px; height: 72px; margin: 0 auto 14px; display: block; }
.auth-logo { width: 220px; height: auto; margin: 0 auto 10px; display: block; }
.auth-tag {
  margin: 0 0 28px;
  color: rgb(var(--text-muted));
  font-size: 0.95rem;
}

.auth-boot { display: grid; place-items: center; min-height: 120px; }
.auth-boot[hidden] { display: none; }
.auth-spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgb(var(--divider-soft));
  border-top-color: rgb(var(--accent));
  animation: auth-spin 0.8s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-form { display: block; text-align: left; }
.auth-lbl {
  display: block;
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgb(var(--text-muted));
}
.auth-in {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 0 0 16px;
  border-radius: 10px;
  border: 1px solid rgb(var(--divider-soft));
  background: rgb(var(--bg-surface));
  color: rgb(var(--text-primary));

  font-size: 16px;
  font-family: inherit;
}
.auth-in:focus {
  outline: none;
  border-color: rgb(var(--accent));
}
.auth-pwrow[hidden] { display: none; }

.auth-err {
  margin: -6px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgb(213 94 0 / 0.12);
  border: 1px solid rgb(213 94 0 / 0.38);
  color: rgb(213 94 0);
  font-size: 0.88rem;
}
.auth-err[hidden] { display: none; }

.auth-btn {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: rgb(var(--accent));
  color: rgb(15 23 42);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.auth-btn:disabled { opacity: 0.6; cursor: default; }
.auth-btn-quiet {
  background: transparent;
  border: 1px solid rgb(var(--divider-soft));
  color: rgb(var(--text-primary));
  font-weight: 600;
  margin-top: 10px;
}

.auth-btn-danger {
  background: rgb(213 94 0);
  color: #fff;
}
.auth-link.auth-link-danger {   
  display: block;
  color: rgb(213 94 0);
}

.set-note a.set-mail { color: rgb(var(--text-primary)); font-weight: 600; }

.set-linkbtn {
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}
.auth-notice.del .del-apple { color: rgb(var(--text-primary)); }

.auth-link {
  display: inline-block;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgb(var(--accent));
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}
.auth-swap {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgb(var(--text-muted));
}
.auth-swap .auth-link { margin: 0 0 0 4px; }

.auth-notice {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(0 0 0 / 0.55);
}
.auth-notice-card {
  width: 100%;
  max-width: 340px;
  padding: 22px;
  border-radius: 14px;
  background: rgb(var(--bg-surface));
  border: 1px solid rgb(var(--divider-soft));
  text-align: center;
}
.auth-notice-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: rgb(var(--text-primary)); }
.auth-notice-card p { margin: 0 0 18px; color: rgb(var(--text-muted)); font-size: 0.92rem; line-height: 1.5; }

.auth-social { margin: 0 0 22px; }
.auth-social[hidden] { display: none; }

.auth-oauth {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.auth-oauth:disabled { opacity: 0.6; cursor: default; }
.auth-oauth svg { flex: none; }

.auth-apple { background: #fff; color: #000; }
:root[data-theme='light'] .auth-apple,
:root[data-theme='flatlight'] .auth-apple,
:root[data-theme='pastel'] .auth-apple { background: #000; color: #fff; }

.auth-google {
  background: #fff;
  color: #1f1f1f;
  border-color: #dadce0;
}

.auth-or {
  position: relative;
  text-align: center;
  margin: 18px 0 0;
  color: rgb(var(--text-muted));
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-or::before,
.auth-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: rgb(var(--divider-soft));
}
.auth-or::before { left: 0; }
.auth-or::after { right: 0; }

.auth-langwrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgb(var(--divider-soft));
}
.auth-langwrap[hidden] { display: none; }

.grecaptcha-badge { visibility: hidden; }
.auth-recaptcha {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgb(var(--text-muted));
}
.auth-recaptcha[hidden] { display: none; }
.auth-recaptcha a { color: inherit; text-decoration: underline; }
.auth-langlbl {
  font-size: 0.82rem;
  color: rgb(var(--text-muted));
}
.auth-lang {
  padding: 7px 30px 7px 10px;
  border-radius: 8px;
  border: 1px solid rgb(var(--divider-soft));
  background: rgb(var(--bg-surface));
  color: rgb(var(--text-primary));
  font: inherit;

  font-size: 16px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}
.auth-lang:focus { outline: none; border-color: rgb(var(--accent)); }

.aa-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(var(--bg-base));
}
.aa-card { width: 100%; max-width: 380px; text-align: center; }
.aa-logo { width: 200px; height: auto; margin: 0 auto 30px; display: block; }
.aa-state { display: block; }
.aa-state[hidden] { display: none; }

.aa-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.aa-icon.is-ok  { background: rgb(74 158 255 / 0.15); color: #4a9eff; }
.aa-icon.is-bad { background: rgb(213 94 0 / 0.15);  color: #d55e00; }

.aa-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--text-primary));
}
.aa-body {
  margin: 0;
  color: rgb(var(--text-muted));
  font-size: 0.95rem;
  line-height: 1.55;
}
.aa-hint {
  margin: 20px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgb(var(--divider-soft));
  color: rgb(var(--text-faint));
  font-size: 0.85rem;
}
.aa-hint[hidden] { display: none; }

#aa-busy { display: grid; place-items: center; gap: 14px; }
#aa-busy[hidden],
#aa-reset[hidden],
#aa-result[hidden] { display: none; }
#aa-reset .auth-lbl { text-align: left; }
#aa-reset-form { text-align: left; margin-top: 20px; }
#aa-reset-for { margin: 0 0 4px; color: rgb(var(--text-muted)); font-size: 0.9rem; }

.prog-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 12px;
  scrollbar-width: none; }
.prog-tabs::-webkit-scrollbar { display: none; }
.prog-tabs button {
  flex: none; cursor: pointer; padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgb(var(--border-base)); background: rgb(var(--bg-surface-2) / .5);
  color: rgb(var(--text-secondary)); font-family: Poppins, Inter, sans-serif;
  font-weight: 700; font-size: 12.5px; white-space: nowrap; transition: .15s;
}
.prog-tabs button:hover { border-color: rgb(var(--brand)); }
.prog-tabs button[aria-selected="true"] {
  border-color: rgb(var(--brand)); box-shadow: inset 0 0 0 1px rgb(var(--brand));
  color: rgb(var(--text-primary));
}

.bracket { display: flex; gap: 14px; padding: 4px 16px 16px; overflow-x: auto;
  align-items: stretch; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scroll-padding-left: 16px; scrollbar-width: none; }
.bracket::-webkit-scrollbar { display: none; }
.bracket .col { flex: 0 0 232px; display: flex; flex-direction: column; gap: 10px;
  scroll-snap-align: start; }
.bracket .col > .rd { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  font-weight: 700; color: rgb(var(--text-faint)); padding-bottom: 2px; }

.bracket .col > .ties { flex: 1; display: flex; flex-direction: column; gap: 10px;
  justify-content: space-around; }
.tie { border: 1px solid rgb(var(--border-base)); border-radius: 12px; overflow: hidden;
  background: rgb(var(--bg-surface-2) / .45); }

.tie .legs .leg {
  display: block; width: 100%; text-align: left; padding: 3px 6px; margin: 0 -6px;
  background: none; border: 0; border-radius: 7px; cursor: pointer;
  font: inherit; color: inherit; line-height: 1.6; transition: background .13s, color .13s;
}
.tie .legs .leg:hover { background: rgb(var(--brand) / .12); color: rgb(var(--text-secondary)); }
.tie .legs .leg:hover em { color: rgb(var(--brand)); }
.tie .legs .leg:focus-visible { outline: 2px solid rgb(var(--brand)); outline-offset: 1px; }
.tie .legs .penline { padding: 2px 0 0; }
.tie .side { display: flex; align-items: center; gap: 8px; padding: 9px 11px; font-size: 12.5px; }
.tie .side + .side { border-top: 1px solid rgb(var(--border-soft)); }
.tie .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: rgb(var(--text-muted)); }
.tie .ag { font-weight: 800; font-variant-numeric: tabular-nums; }
.tie .side.win .nm { color: rgb(var(--text-primary)); font-weight: 700; }
.tie .side.win { background: rgb(var(--brand) / .10); box-shadow: inset 3px 0 0 rgb(var(--brand)); }
.tie .legs { padding: 7px 11px; font-size: 10.5px; color: rgb(var(--text-faint));
  border-top: 1px dashed rgb(var(--border-soft)); line-height: 1.6; }
.tie .legs em { font-style: normal; color: rgb(var(--text-muted)); }
.tie .pen { font-size: 10px; font-weight: 700; color: rgb(234 179 8); margin-left: 6px; }

.konav { display: none; align-items: center; gap: 10px; padding: 0 16px 12px; }
.konav button { cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgb(var(--border-base)); background: rgb(var(--bg-surface-2) / .6);
  color: rgb(var(--text-primary)); font-size: 15px; line-height: 1; }
.konav button:disabled { opacity: .3; cursor: default; }
.konav .now { flex: 1; text-align: center; font-family: Poppins, Inter, sans-serif;
  font-weight: 700; font-size: 13px; }
.konav .dots { display: flex; gap: 5px; justify-content: center; margin-top: 4px; }
.konav .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--border-base)); }
.konav .dots i.on { background: rgb(var(--brand)); }

@media (max-width: 1023px) {
  .konav { display: flex; }
  .bracket { align-items: flex-start; }
  .bracket .col { flex-basis: calc(50% - 7px); }
  .bracket .col > .ties { justify-content: flex-start; flex: 0 0 auto; }
}
@media (max-width: 639px) {
  .bracket .col { flex-basis: 100%; }
}

.tvwrap { padding: 14px 16px 14px; }
.tv-link {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: rgb(var(--bg-surface-2) / .45);
  border: 1px dashed rgb(var(--border-soft));
  color: rgb(var(--text-secondary));
  font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 12.5px;
  transition: border-color .15s, color .15s;
}
.tv-link:hover { border-color: rgb(var(--brand)); color: rgb(var(--text-primary)); }
.tv-link:focus-visible { outline: 2px solid rgb(var(--brand)); outline-offset: 2px; }
.tv-link .chev { width: 15px; height: 15px; margin-left: auto; transition: transform .18s; }
.tv-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tv-body { padding: 10px 2px 0; }
.tv-body[hidden] { display: none; }
.tv-region { margin: 0 0 7px; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: rgb(var(--text-faint)); font-weight: 700; }
.tv-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px;
  border-radius: 10px; text-decoration: none; color: inherit;
  border: 1px solid rgb(var(--border-soft)); margin-bottom: 6px;
  background: rgb(var(--bg-surface-2) / .3);
}
a.tv-row:hover { border-color: rgb(var(--brand)); }
.tv-row .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-row .ty { font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: rgb(var(--text-faint)); }
.tv-none { margin: 0; font-size: 12.5px; color: rgb(var(--text-muted)); }

.store-legal { margin-top: 10px; font-size: 12.5px; }
.store-legal a { color: rgb(var(--accent)); text-decoration: none; }
.store-legal a:hover { text-decoration: underline; }

.srch-top { gap: 8px; padding: 9px 12px 9px 14px; }
.srch-top .srch-ico { width: 18px; height: 18px; flex: 0 0 auto; color: rgb(var(--text-muted)); }

.srch-top input {
  flex: 1; min-width: 0; font: 600 16px Inter, sans-serif; text-transform: none; letter-spacing: 0;
  color: rgb(var(--text-primary)); background: rgb(var(--bg-surface-2) / 0.55);
  border: 1px solid rgb(var(--border-base)); border-radius: 10px; padding: 8px 11px;
  -webkit-appearance: none; appearance: none;
}
.srch-top input::placeholder { color: rgb(var(--text-faint)); font-weight: 500; }
.srch-top input:focus { outline: none; border-color: rgb(var(--accent)); }
.srch-hint, .srch-status {
  padding: 14px 16px 6px; font-size: 13px; color: rgb(var(--text-muted)); line-height: 1.45;
}
.srch-status { padding: 8px 16px; font-size: 11.5px; font-weight: 700; color: rgb(var(--text-faint)); }
button.srch-row {
  width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid rgb(var(--divider-soft) / 0.28);
  color: inherit; font: inherit; cursor: pointer;
}
button.srch-row:hover { background: rgb(var(--bg-surface-2) / 0.55); }
.srch-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.srch-club {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  color: rgb(var(--text-faint)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.srch-pos { font-size: 11px; font-weight: 700; letter-spacing: .07em; color: rgb(var(--text-faint)); }

.scrim:has(.srch-top) { align-items: start; padding-top: max(12px, env(safe-area-inset-top)); }
.m-sheet:has(.srch-top) { height: min(520px, 62vh); height: min(520px, 62dvh); }

.ad-web { margin: 0; }
.ad-web[hidden] { display: none !important; }
.ad-web .ad-lbl {
  display: none;
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgb(var(--text-faint)); text-align: center; margin-bottom: 6px;
}
.ad-web:has(ins.adsbygoogle[data-ad-status="filled"]) { margin: 22px 0; }
.ad-web:has(ins.adsbygoogle[data-ad-status="filled"]) .ad-lbl { display: block; }
.ad-web ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

#btn-buy-noads { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#btn-buy-noads[hidden] { display: none; }
.btn-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.note-ok { display: flex; align-items: flex-start; gap: 8px; }
.note-ico { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: #2eb872; }

.auth-verify { display: flex; flex-direction: column; gap: 10px; text-align: center; margin-top: 8px; }
.auth-verify[hidden] { display: none; }
.auth-verify-title { font-family: Poppins, Inter, sans-serif; font-size: 1.15rem; font-weight: 700; margin: 0; }
.auth-verify-body { margin: 0 0 6px; color: rgb(var(--text-muted)); line-height: 1.5; font-size: .95rem; }
.auth-verify-note { margin: 2px 0 0; min-height: 1.2em; font-size: .85rem; color: rgb(var(--text-muted)); }
.auth-verify .auth-link { align-self: center; margin-top: 4px; }

.xsell > summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer;
  font-weight: 600; font-size: 15.5px; line-height: 1.3; color: rgb(var(--text-primary)); }
.xsell > summary::-webkit-details-marker { display: none; }
.xsell-ico { width: 30px; height: 30px; border-radius: 8px; background: #fff; flex: none; }
.xsell-chev { width: 18px; height: 18px; margin-left: auto; flex: none; opacity: .6; transition: transform .2s; }
.xsell[open] .xsell-chev { transform: rotate(180deg); }
.xsell-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xsell-badges a[hidden] { display: none; }
.xsell-badges img { display: block; height: 36px; width: auto; border-radius: 8px; }
.xsell-badges img.xsell-play { box-shadow: 0 0 0 1px #a6a6a6; }

.ps-row .comp i { width: 40px; }
.ps-row .nm .ps-q { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: rgb(var(--text-faint)); margin-left: 6px; white-space: nowrap; }
.ps-legend .ps-n { margin-left: auto; color: rgb(var(--text-faint)); font-weight: 600; }

.set-phone .notif-open { margin: 10px 0 2px; }
.set-phone .notif-steps { display: block; margin-top: 8px; }
