/* LiveScoreHome — LiveScore.com-inspired dense scoreboard
   Signature: charcoal boards + signal-red LIVE pulse + condensed score columns */

:root {
  --bg: #0e0e0e;
  --bg-2: #161616;
  --surface: #1c1c1c;
  --surface-2: #242424;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --live: #e10600;
  --live-dim: rgba(225, 6, 0, 0.14);
  --accent: #3d9eff;
  --ok: #1faa59;
  --font-ui: "Manrope", system-ui, sans-serif;
  --font-score: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --bottom-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --radius: 0;
  --header-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  padding-bottom: calc(var(--bottom-h) + var(--safe-b));
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; color: inherit; background: transparent; border: 0; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link:focus {
  position: fixed; left: 8px; top: 8px; z-index: 100;
  background: var(--live); color: #fff; padding: .5rem .75rem;
}
.font-mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.desktop-only { display: none; }
.mobile-only { display: block; }

/* Live score LED ticker */
.led-ticker {
  display: flex;
  align-items: center;
  height: 28px;
  overflow: hidden;
  background: #0a0a0a;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.led-ticker__track {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  white-space: nowrap;
  animation: ticker 55s linear infinite;
  padding-inline: 1rem;
  will-change: transform;
}
.led-ticker__track--idle {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation-duration: 40s;
}
.led-ticker:hover .led-ticker__track {
  animation-play-state: paused;
}
.led-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #d7dde0;
  text-decoration: none;
  flex-shrink: 0;
}
.led-ticker__item:hover,
.led-ticker__item:focus-visible {
  color: #fff;
}
.led-ticker__live {
  color: var(--live, #d42121);
  font-family: var(--font-score, var(--font-mono));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 2.2em;
}
.led-ticker__score {
  font-family: var(--font-score, var(--font-mono));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0.02em;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 959px) {
  .led-ticker { height: 26px; font-size: 10px; }
  .led-ticker__track { gap: 1.1rem; animation-duration: 48s; }
}


/* Topbar — LiveScore dense chrome */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .6rem;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 .75rem;
  background: #121212;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.brand__mark {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--live);
  color: #fff;
  font-family: var(--font-score);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.brand__name {
  font-family: var(--font-score);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.brand__accent { color: var(--live); }
.topbar__search input,
.topbar__locale select {
  width: 100%;
  min-height: 36px;
  padding: .35rem .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 2px;
}
.topbar__search input::placeholder { color: var(--muted); }
.topbar__locale select { min-width: 64px; }

/* Grid */
.app-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
}
.main-panel { min-width: 0; background: var(--bg); }
.sidebar {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: .75rem;
}
.sidebar--left { border-left: 0; border-top: 0; }
.panel__title {
  margin: 0 0 .5rem;
  font-family: var(--font-score);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.league-nav ul { list-style: none; margin: 0; padding: 0; }
.league-nav li a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .35rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
}
.league-nav li a:hover { background: var(--surface); color: #fff; }
.league-nav__logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}
.league-nav__logo--ph {
  display: inline-block;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
}
.league-nav__text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.league-nav__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.league-nav__country {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-link { display: inline-block; margin-top: .65rem; color: var(--accent); font-size: 13px; }

/* Sticky filters */
.sport-tabs {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding: .5rem 0 .65rem;
  margin-bottom: .25rem;
  scrollbar-width: none;
}
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-tabs__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font-score);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
}
.sport-tabs__item.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.filter-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: #121212;
  border-bottom: 1px solid var(--line);
  padding: .35rem 0 .45rem;
}
.date-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.date-strip::-webkit-scrollbar { display: none; }
.date-strip__day {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 42px;
  padding: .4rem .7rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: var(--font-score);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.date-strip__day.is-today { color: var(--text); font-weight: 700; }
.date-strip__day.is-selected {
  color: #fff;
  border-bottom-color: var(--live);
}
.filter-row {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding: .45rem .65rem 0;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 30px;
  padding: .2rem .65rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-score);
}
.chip:hover, .chip.is-on { color: #fff; border-color: #444; }
.chip--live.is-on, .chip--live:hover {
  border-color: var(--live);
  color: #fff;
  background: var(--live-dim);
}
.chip--fav.is-on, .chip--fav:hover {
  border-color: #f5c518;
  color: #f5c518;
  background: rgba(245,197,24,.12);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.55);
  animation: pulse 1.3s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(225, 6, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

/* Scoreboard — LiveScore density */
.scoreboard { background: var(--bg); }
.league-group {
  background: var(--bg-2);
  border-bottom: 8px solid var(--bg);
}
.league-group__head {
  padding: .45rem .75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-score);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
}
.league-group__head a {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #fff;
}
.league-group__head img {
  width: 16px; height: 16px; object-fit: contain;
}
.league-group__head .muted {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.fixture-list { list-style: none; margin: 0; padding: 0; }
.fixture-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.fixture-row:last-child { border-bottom: 0; }
.fixture-row.is-live { background: var(--live-dim); }
.fixture-row.is-fav { box-shadow: inset 2px 0 0 #f5c518; }
.fixture-row__body,
.fixture-row__link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 40px;
  gap: .35rem;
  align-items: center;
  padding: .4rem .65rem .4rem 0;
  min-height: 56px;
  color: inherit;
}
.fixture-row__link--league {
  grid-template-columns: 64px minmax(0, 1fr) 40px;
  width: 100%;
}
.fixture-row__status {
  font-family: var(--font-score);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  display: grid;
  gap: .1rem;
  place-items: center;
}
.fixture-row__teams { display: grid; gap: .18rem; min-width: 0; }
.team {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  font-size: 13px;
}
.team__link {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-logo {
  width: 16px; height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.fixture-row__score {
  display: grid;
  gap: .12rem;
  text-align: end;
  font-family: var(--font-score);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.fixture-row.is-live .fixture-row__score { color: #fff; }
.fav-btn {
  border: 1px solid #3a3a3a;
  background: #1e1e1e;
  color: #9a9a9a;
  cursor: pointer;
  min-width: 36px;
  min-height: 44px;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: all .15s ease;
  align-self: center;
  margin-left: .2rem;
}
.fav-btn:hover {
  color: #fff;
  border-color: #6c6c6c;
  background: #272727;
}
.fav-btn.is-on {
  color: #f5c518;
  border-color: #f5c518;
  background: rgba(245,197,24,.12);
  text-shadow: 0 0 6px rgba(245,197,24,.45);
}
.fav-btn--sm {
  min-width: 22px;
  min-height: 22px;
  width: 22px;
  height: 22px;
  font-size: 13px;
  border-radius: 4px;
  margin: 0;
  flex-shrink: 0;
}
.live-badge {
  color: var(--live);
  font-family: var(--font-score);
  font-weight: 700;
  font-size: 13px;
}
.ft-badge {
  font-family: var(--font-score);
  font-size: 12px;
  color: var(--muted);
}
.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
}
.scoreboard-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .85rem .75rem 1.25rem;
}
.scoreboard-more__btn {
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.scoreboard-more__btn:hover,
.scoreboard-more__btn:focus-visible {
  border-color: var(--accent, #6fbf8a);
  outline: none;
}
.scoreboard-more__btn:disabled {
  opacity: .65;
  cursor: wait;
}
.scoreboard-more__sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

/* Match page */
.match-page { padding: 0 0 1rem; }
.match-card {
  margin: .65rem .65rem 0;
  padding: .85rem .9rem 1rem;
  background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}
.match-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
.match-card__comp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  color: #cfcfcf;
  font-size: 13px;
}
.match-card__comp img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.fav-btn--hero {
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  margin: 0;
  flex-shrink: 0;
}
.match-card__scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: start;
  text-align: center;
}
.match-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  color: #fff;
  min-width: 0;
}
.match-side__crest {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}
.match-side__crest--ph {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #242424;
  border: 1px solid #3a3a3a;
  font-family: var(--font-score);
  font-size: 1.4rem;
  font-weight: 700;
  color: #9a9a9a;
}
.match-side__name {
  font-family: var(--font-score);
  font-size: clamp(.95rem, 2.8vw, 1.15rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  word-break: break-word;
}
.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-width: 88px;
  padding-top: .35rem;
}
.match-center__score {
  display: block;
  font-family: var(--font-score);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.match-center__when {
  font-family: var(--font-score);
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.match-center__day,
.match-center__status {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.match-info {
  list-style: none;
  margin: 1rem 0 0;
  padding: .75rem 0 0;
  border-top: 1px solid #2a2a2a;
  display: grid;
  gap: .45rem;
}
.match-info li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 13px;
  color: #cfcfcf;
}
.match-info__ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .75;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.match-info__ico--cal {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}
.match-info__ico--venue {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 20h18M5 20V10l7-5 7 5v10M9 20v-6h6v6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 20h18M5 20V10l7-5 7 5v10M9 20v-6h6v6'/%3E%3C/svg%3E");
}
.match-info__ico--ref {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l2.5 2.5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l2.5 2.5'/%3E%3C/svg%3E");
}
/* legacy hooks */
.match-hero { display: none; }
.match-team__logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  flex: 0 0 auto;
  min-height: 42px;
  padding: .55rem .9rem;
  background: transparent;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-score);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}
.tabs__item.is-active {
  color: #fff;
  border-bottom-color: var(--live);
}
.tab-panel { padding: .85rem; }
.summary-panel { display: grid; gap: .75rem; }
.summary-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.summary-pills__btn {
  min-height: 34px;
  padding: .35rem .95rem;
  border-radius: 999px;
  border: 1px solid #4a4a4a;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.summary-pills__btn.is-on {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.ls-events {
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #161616;
  overflow: hidden;
}
.ls-events__empty {
  margin: 0;
  padding: 1rem .85rem;
  text-align: center;
}
.ls-event {
  display: grid;
  grid-template-columns: 44px 1fr 56px 1fr;
  gap: .35rem;
  align-items: center;
  min-height: 48px;
  padding: .55rem .65rem;
  border-bottom: 1px solid #242424;
}
.ls-event:last-child { border-bottom: 0; }
.ls-event--period .ls-event__score {
  color: #fff;
}
.ls-event__min {
  color: #9a9a9a;
  font-size: 12px;
  font-family: var(--font-score);
}
.ls-event__score {
  text-align: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}
.ls-event__home,
.ls-event__away {
  min-width: 0;
}
.ls-event__block {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}
.ls-event__block--home { justify-content: flex-end; text-align: right; }
.ls-event__block--away { justify-content: flex-start; text-align: left; }
.ls-event__text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.ls-event__player {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  word-break: break-word;
}
.ls-event__assist {
  color: #9a9a9a;
  font-size: 11px;
  line-height: 1.2;
  word-break: break-word;
}
.ls-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  background: currentColor;
  color: #fff;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.ls-ico--goal,
.ls-ico--penalty {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath fill='white' d='M12 2.5l2.2 4.4 4.8.7-3.5 3.4.8 4.8L12 13.8 7.7 15.8l.8-4.8L5 7.6l4.8-.7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath fill='white' d='M12 2.5l2.2 4.4 4.8.7-3.5 3.4.8 4.8L12 13.8 7.7 15.8l.8-4.8L5 7.6l4.8-.7z'/%3E%3C/svg%3E");
}
.ls-ico--yellow,
.ls-ico--second-yellow {
  width: 10px;
  height: 14px;
  border-radius: 2px;
  background: #f5c518;
  mask: none;
  -webkit-mask: none;
}
.ls-ico--second-yellow {
  box-shadow: 2px 2px 0 #e53935;
}
.ls-ico--red {
  width: 10px;
  height: 14px;
  border-radius: 2px;
  background: #e53935;
  mask: none;
  -webkit-mask: none;
}
.ls-ico--sub {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M7 7h10l-3-3M17 17H7l3 3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M7 7h10l-3-3M17 17H7l3 3'/%3E%3C/svg%3E");
  color: #4caf50;
}
.ls-ico--var,
.ls-ico--miss,
.ls-ico--event {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
  opacity: .7;
}
.ls-commentary {
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #161616;
  overflow: hidden;
}
.ls-commentary__row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: .55rem;
  padding: .55rem .75rem;
  border-bottom: 1px solid #242424;
  font-size: 13px;
}
.ls-commentary__row:last-child { border-bottom: 0; }
.ls-commentary__min { color: #9a9a9a; }
.ls-commentary__text { color: #e8e8e8; line-height: 1.35; }
.event-timeline { list-style: none; margin: 0; padding: 0; }
.event-timeline__item {
  display: grid;
  grid-template-columns: 48px 72px 1fr;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.stats-grid { display: grid; gap: .15rem; }
.stats-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-score);
}
.lineups {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .lineups { grid-template-columns: 1fr 1fr; }
}
.lineups-note {
  margin: 0 0 .85rem;
  padding: .65rem .75rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 13px;
  color: #cfcfcf;
}
.lineup-panel {
  padding: .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.lineup-panel__head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .65rem;
}
.lineup-panel__head img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.lineup-panel__head h3,
.lineups h3 {
  margin: 0;
  font-family: var(--font-score);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.lineup-panel__label {
  margin: .55rem 0 .3rem;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.empty-state {
  padding: 1.25rem .5rem;
  text-align: center;
}
.empty-state p { margin: 0 0 .35rem; }
.h2h-list { list-style: none; margin: 0; padding: 0; }
.h2h-list__item {
  display: grid;
  grid-template-columns: 88px 1fr auto 1fr;
  gap: .5rem;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.h2h-list__item strong { text-align: center; }
.table-card {
  display: grid;
  gap: .5rem;
}
.table-card__head,
.table-card__row {
  display: grid;
  grid-template-columns: 40px 1fr 40px 40px;
  gap: .5rem;
  align-items: center;
}
.table-card__head {
  grid-template-columns: 1fr auto;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--line);
}
.table-card__rows {
  display: grid;
}
.table-card__row {
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.table-card__row.is-highlight {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.table-wrap::-webkit-scrollbar { display: none; }

.standings-table.match-standings td,
.standings-table.match-standings th {
  white-space: nowrap;
}
.standings-table.match-standings tr.is-highlight td,
.standings-table--ls tr.is-highlight td {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* Team page (LiveScore-style) */
.entity-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  padding: .65rem .85rem 0;
  font-size: 12px;
  color: var(--muted);
}
.entity-crumbs a { color: #cfcfcf; }
.team-hero {
  margin: .65rem .65rem 0;
  padding: .9rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  background: linear-gradient(180deg, #1c1c1c, #141414);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}
.team-hero__main {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.team-hero__crest {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
.team-hero__crest--ph {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #242424;
  border: 1px solid #3a3a3a;
  font-family: var(--font-score);
  font-size: 1.5rem;
  font-weight: 700;
  color: #9a9a9a;
}
.team-hero__text h1 {
  margin: 0 0 .25rem;
  font-family: var(--font-score);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  text-transform: none;
  letter-spacing: 0;
}
.team-hero__text .muted { margin: 0; font-size: 13px; }
.next-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: center;
  padding: 1rem .75rem;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fff;
}
.next-match__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
.next-match__side img { width: 48px; height: 48px; object-fit: contain; }
.next-match__ph {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #242424;
  border: 1px solid #3a3a3a;
  font-weight: 700;
}
.next-match__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  min-width: 88px;
}
.next-match__center strong {
  font-family: var(--font-score);
  font-size: 1.45rem;
}
.next-match__comp { font-size: 11px; text-align: center; }
.stat-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}
@media (min-width: 720px) {
  .stat-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.stat-chip {
  padding: .65rem .5rem;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-align: center;
}
.stat-chip strong { font-family: var(--font-score); font-size: 1.1rem; }
.fixture-list--team { list-style: none; margin: 0; padding: 0; }
/* Home scoreboard uses 40px fav + body; link-only rows (team/league) need one column. */
.fixture-row.fixture-row--team,
.league-fixture-list .fixture-row {
  display: block;
  grid-template-columns: none;
  border-bottom: 0;
}
.fixture-row--team .fixture-row__link,
.league-fixture-list .fixture-row__link {
  display: grid;
  grid-template-columns: minmax(108px, 132px) minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: .7rem .25rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}
.league-fixture-list .fixture-row__link--league {
  grid-template-columns: minmax(72px, 88px) minmax(0, 1fr) 48px;
}
.fixture-row--team .fixture-row__score,
.league-fixture-list .fixture-row__score {
  min-width: 48px;
  text-align: right;
  white-space: nowrap;
}
.fixture-row--team .fixture-row__teams--row .team {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.league-fixture-list .fixture-row__teams .team {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fixture-row__meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: 12px;
  color: var(--muted);
}
.fixture-row__teams--row {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.fixture-row__teams--row .team {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: 13px;
}
.fixture-row__teams--row .is-self { font-weight: 700; color: #fff; }
.squad-grid--rich { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .squad-grid--rich { grid-template-columns: 1fr 1fr; }
}
.squad-ph {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #242424;
  border: 1px solid #3a3a3a;
  flex-shrink: 0;
  font-weight: 700;
}
.lineups ul,
.lineup-list { list-style: none; margin: 0; padding: 0; }
.lineups li,
.lineup-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: .5rem;
  align-items: center;
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.lineup-list__num { color: var(--muted); }
.lineup-list__pos { font-size: 11px; text-transform: uppercase; }
.lineup-list--bench li { opacity: .88; }
.odds-board {
  display: grid;
  gap: .5rem;
}
.odds-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, 64px);
  gap: .35rem;
  align-items: center;
  padding: .45rem .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-score);
}
.odds-row span {
  text-align: center;
  padding: .35rem;
  background: var(--surface-2);
}
.legal-watch__note {
  font-size: .9rem;
  color: var(--muted);
  border-left: 3px solid var(--ok);
  padding-left: .75rem;
  margin-bottom: .85rem;
}
.legal-watch__embed {
  margin-top: .75rem;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  position: relative;
}
.btn-amber, .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--live);
  color: #fff;
  font-weight: 700;
  padding: .65rem 1rem;
  min-height: 44px;
  font-family: var(--font-score);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-amber:hover, .btn-primary:hover { filter: brightness(1.08); color: #fff; }

/* Goal flash */
.goal-flash {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  z-index: 50;
  animation: flashIn .3s ease-out;
}
.goal-flash__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
  margin: .5rem .65rem 0;
  padding: .55rem .75rem;
  background: var(--live);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.goal-flash__label {
  font-family: var(--font-score);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bottom tabs */
.bottom-tabs {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--bottom-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: #121212;
  border-top: 1px solid var(--line);
}
.bottom-tabs__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-score);
  min-height: 44px;
}
.bottom-tabs__item.is-active { color: #fff; }
.bottom-tabs__item.is-active .bottom-tabs__icon { color: var(--live); }
.bottom-tabs__icon { font-size: 14px; line-height: 1; }
.bottom-tabs__more { position: relative; }
.bottom-tabs__more summary { list-style: none; cursor: pointer; }
.bottom-tabs__more summary::-webkit-details-marker { display: none; }
.bottom-tabs__drawer {
  position: absolute;
  right: .25rem;
  bottom: calc(100% + 6px);
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .35rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.bottom-tabs__drawer a {
  display: block;
  padding: .55rem .85rem;
  font-size: 13px;
}
.bottom-tabs__drawer a:hover { background: var(--surface-2); }

.site-footer {
  padding: 1.25rem .85rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.site-footer a { color: var(--muted); text-decoration: underline; }

.ad-slot {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: block;
  background: transparent;
  border: 0;
}
.ad-slot__frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  transform-origin: top center;
  line-height: 0;
  text-align: center;
}
.ad-slot__frame > * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.ad-slot a {
  display: block;
  width: 100%;
  line-height: 0;
}
.ad-slot img,
.ad-slot picture img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.ad-slot iframe,
.ad-slot embed,
.ad-slot object,
.ad-slot video {
  max-width: 100% !important;
  width: 100% !important;
}
.ad-slot ins,
.ad-slot .adsbygoogle,
.ad-slot [id^="google_ads"],
.ad-slot [id*="google_ads"] {
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
  overflow: hidden !important;
  margin: 0 auto !important;
}
.ad-slot--banner {
  margin: .55rem .55rem .35rem;
  min-height: 50px;
}
.ad-slot--banner .ad-slot__frame {
  min-height: 50px;
}
.ad-slot--square {
  min-height: 120px;
  margin: 0 0 .75rem;
}
.sidebar .ad-slot--square {
  width: 100%;
}
@media (max-width: 959px) {
  .ad-slot--banner {
    margin: .45rem .4rem .25rem;
  }
  /* Mobile: force creative to use full content width */
  .ad-slot--banner .ad-slot__frame,
  .ad-slot--banner .ad-slot__frame > div,
  .ad-slot--banner .ad-slot__frame > a,
  .ad-slot--banner .ad-slot__frame > span,
  .ad-slot--banner .ad-slot__frame > ins {
    width: 100% !important;
    max-width: 100% !important;
  }
  .ad-slot--banner img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .ad-slot--banner iframe {
    width: 100% !important;
    min-height: 50px;
  }
}



/* Entity pages */
.entity-hero {
  padding: 1rem .85rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .9rem;
  align-items: center;
}
.entity-hero__badge img { width: 72px; height: 72px; object-fit: contain; }
.entity-hero__placeholder {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--font-score);
  font-size: 28px;
  color: #fff;
}
.entity-hero__eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-score);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}
.entity-hero h1 {
  margin: .35rem 0;
  font-family: var(--font-score);
  font-size: clamp(1.4rem, 4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.standings-table th,
.standings-table td {
  padding: .45rem .5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.standings-table th {
  font-family: var(--font-score);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-size: 11px;
  background: var(--surface);
}
.standings-table td:nth-child(n+3) {
  text-align: center;
  font-family: var(--font-score);
}
.standings-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}
.team-inline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.team-inline img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.panel {
  margin-top: .7rem;
  padding: .75rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

/* Favorites page */
.favorites-page { background: var(--bg); }
.favorites-page__hero {
  padding: .35rem 0 .85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .35rem;
}
.favorites-page__hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.favorites-page__hero .muted { margin: .35rem 0 0; font-size: 13px; }
.favorites-empty {
  margin: 0;
  padding: .85rem .15rem 1rem;
  font-size: 13px;
}
.favorites-fixture-list { list-style: none; margin: 0; padding: 0; }
.favorites-fixture-league {
  display: block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 7rem;
}
.favorites-entity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.favorites-entity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: .5rem;
  align-items: center;
  padding: .55rem .15rem;
  border-bottom: 1px solid var(--line);
}
.favorites-entity:last-child { border-bottom: 0; }
.favorites-entity__link {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.favorites-entity__link img,
.favorites-entity__ph {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.favorites-entity__ph {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #1e1e1e;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.favorites-entity__link span {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.favorites-entity__link strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.favorites-entity .fav-btn {
  justify-self: end;
}

/* Player page (LiveScore-style) */
.player-page { background: var(--bg); }
.player-hero {
  margin: .65rem .65rem 0;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(180, 40, 70, .35), transparent 55%),
    linear-gradient(135deg, #2a1218 0%, #161616 48%, #121212 100%);
  border: 1px solid #3a2228;
  border-radius: 10px;
  min-height: 140px;
}
.player-hero__text { min-width: 0; flex: 1; }
.player-hero__text h1 {
  margin: 0 0 .45rem;
  font-family: var(--font-score);
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  letter-spacing: 0;
  text-transform: none;
}
.player-hero__meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 14px;
  color: #ddd;
}
.player-hero__meta img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.player-hero__meta a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.player-hero__photo {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
}
.player-hero__photo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}
.player-hero__ph {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-score);
  font-size: 2.4rem;
  font-weight: 700;
}
.player-bio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}
.player-bio__card {
  padding: .85rem .7rem;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-align: center;
}
.player-bio__card strong {
  font-family: var(--font-score);
  font-size: 1.15rem;
}
.player-bio__country {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.player-bio__country img {
  width: 18px;
  height: 12px;
  object-fit: cover;
}
.player-facts {
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.player-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.player-facts li:last-child { border-bottom: 0; }
.player-career {
  list-style: none;
  margin: 0;
  padding: 0;
}
.player-career__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .1rem;
  border-bottom: 1px solid var(--line);
}
.player-career__item:last-child { border-bottom: 0; }
.player-career__club {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}
.player-career__club img,
.player-career__ph {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.player-career__ph {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #1e1e1e;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}
.player-career__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .2rem;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.player-tag {
  display: inline-block;
  padding: .1rem .35rem;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.player-tag--loan {
  color: #7ee2a7;
  background: rgba(31,170,89,.15);
  border: 1px solid rgba(31,170,89,.35);
}
.player-stats__sub {
  margin: .85rem 0 .45rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.player-stats-table { font-size: 12px; }
@media (max-width: 640px) {
  .player-hero { align-items: center; }
  .player-hero__photo,
  .player-hero__photo img,
  .player-hero__ph { width: 84px; height: 84px; }
  .player-career__item {
    flex-direction: column;
    align-items: flex-start;
  }
  .player-career__meta { align-items: flex-start; }
}
.form-strip {
  margin-top: .55rem;
  display: inline-flex;
  gap: .3rem;
}
.form-strip__cell {
  min-width: 26px;
  min-height: 26px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-score);
  font-size: 12px;
  border: 1px solid var(--line);
}
.form-strip__cell--w { background: rgba(31,170,89,.2); color: #7ee2a7; border-color: rgba(31,170,89,.45); }
.form-strip__cell--d { background: rgba(255,255,255,.08); color: #ddd; }
.form-strip__cell--l { background: rgba(225,6,0,.18); color: #ff9b98; border-color: rgba(225,6,0,.45); }
.form-strip--compact { margin-top: 0; gap: .15rem; }
.form-strip--compact .form-strip__cell {
  min-width: 18px;
  min-height: 18px;
  font-size: 10px;
  border-radius: 2px;
}

/* LiveScore-like league page */
.league-page { background: var(--bg); }
.league-hero {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: .85rem;
  align-items: center;
  padding: .9rem .85rem;
  background: linear-gradient(180deg, #1a1a1a, #121212);
  border-bottom: 1px solid var(--line);
}
.league-hero__badge img { width: 64px; height: 64px; object-fit: contain; }
.league-hero h1 {
  margin: .15rem 0;
  font-family: var(--font-score);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.league-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.league-tabs::-webkit-scrollbar { display: none; }
.league-tabs__item {
  flex: 0 0 auto;
  min-height: 42px;
  padding: .55rem .95rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-score);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
}
.league-tabs__item.is-active {
  color: #fff;
  border-bottom-color: var(--live);
}
.league-section {
  padding: .75rem .65rem 1rem;
  border-bottom: 8px solid var(--bg);
  background: var(--bg-2);
}
.league-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .35rem;
}
.league-section__head .panel__title { margin: 0; }
.league-empty { padding: .75rem .25rem; }
.standings-table--ls { font-size: 12px; }
.standings-table--ls th,
.standings-table--ls td { padding: .42rem .35rem; }
.standings-rank {
  position: relative;
  padding-left: .75rem !important;
  font-family: var(--font-score);
  font-weight: 700;
}
.zone-rail {
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  border-radius: 2px;
  background: transparent;
}
.zone-ucl .zone-rail, .table-key__swatch.zone-ucl { background: #1faa59; }
.zone-uel .zone-rail, .table-key__swatch.zone-uel { background: #3d9eff; }
.zone-uecl .zone-rail, .table-key__swatch.zone-uecl { background: #8b5cf6; }
.zone-rel .zone-rail, .table-key__swatch.zone-rel { background: #e10600; }
.zone-promo .zone-rail, .table-key__swatch.zone-promo { background: #22c55e; }
.zone-playoff .zone-rail, .table-key__swatch.zone-playoff { background: #f5c518; }
.standings-team {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}
.standings-table tr.is-fav-team td {
  background: rgba(245,197,24,.06);
}
.table-key {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
}
.table-key__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 12px;
  color: var(--muted);
}
.table-key__swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.scorer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.scorer-list__item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: .55rem;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
}
.scorer-list__rank {
  font-family: var(--font-score);
  color: var(--muted);
}
.scorer-list__player {
  display: grid;
  gap: .1rem;
  min-width: 0;
}
.scorer-list__goals {
  font-weight: 700;
  font-size: 15px;
}
.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.team-grid__item {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.team-grid__item a {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  color: inherit;
}
.team-grid__item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Team squad */
.squad-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.squad-grid li a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.squad-grid li a:hover { border-color: #444; }
.squad-grid img { width: 40px; height: 40px; border-radius: 8px; }

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-only { display: none; }
  .desktop-only { display: block; }
  .app-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 0;
    padding: 0;
    min-height: calc(100dvh - 78px);
  }
  .sidebar--left { border-right: 1px solid var(--line); }
  .sidebar--right { border-left: 1px solid var(--line); }
  .bottom-tabs { display: none; }
  .fixture-row:not(.fixture-row--team) .fixture-row__link,
  .fixture-row__body { grid-template-columns: 56px minmax(0, 1fr) 48px; }
  .team { font-size: 14px; }
  .standings-table--ls { font-size: 13px; }
  .league-section { padding: .9rem 1rem 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .led-ticker__track, .pulse, .goal-flash { animation: none; }
}

/* Homepage SEO article (collapsible) */
.below-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1rem .85rem 5.5rem;
}
.seo-article {
  content-visibility: auto;
  contain-intrinsic-size: 640px;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.seo-article__title {
  margin: 0 0 .85rem;
  font-family: var(--font-display, var(--font-score));
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: 0.01em;
}
.seo-article__panel {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1rem 1rem 3.25rem;
}
.seo-article__body {
  max-height: 11.5rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.seo-article__panel.is-expanded .seo-article__body {
  max-height: none;
  overflow: visible;
}
.seo-article__panel:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.75rem;
  height: 4.5rem;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg-2));
}
.seo-article__body h2,
.seo-article__body h3 {
  color: var(--text);
  font-family: var(--font-score);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 1.25rem 0 .5rem;
}
.seo-article__body p { margin: 0 0 .85rem; }
.seo-article__body ul,
.seo-article__body ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.seo-article__body a { color: var(--accent, #6fbf8a); text-decoration: underline; }
.seo-article__toggle {
  position: absolute;
  left: 50%;
  bottom: .65rem;
  transform: translateX(-50%);
  min-height: 44px;
  min-width: 44px;
  padding: .55rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--surface, #1c1c1c);
  color: var(--text);
  font-family: var(--font-score);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.seo-article__toggle:hover,
.seo-article__toggle:focus-visible {
  border-color: #666;
  outline: 2px solid var(--accent, #6fbf8a);
  outline-offset: 2px;
}
@media (min-width: 960px) {
  .below-main { padding-bottom: 2rem; }
}

