/* Flashscore888 UI v3 — clone of flashscore.com structure (dark masthead + red accents).
   Zero LiveScoreHome / LED / charcoal-board DNA. */

:root {
  --w-bg: #e4e6e9;
  --w-paper: #ffffff;
  --w-ink: #1b1e25;
  --w-muted: #6c737a;
  --w-line: #d0d5db;
  --w-head: #f0f2f4;
  --w-mast: #001e28;
  --w-red: #e4002b;
  --w-red-soft: #fde8ea;
  --w-live: #e4002b;
  --w-font: "Roboto", "Segoe UI", Arial, sans-serif;
  --w-cond: "Roboto Condensed", "Arial Narrow", sans-serif;
  --w-top: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.w {
  margin: 0;
  min-height: 100dvh;
  background: var(--w-bg);
  color: var(--w-ink);
  font-family: var(--w-font);
  font-size: 13px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--w-red); }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; background: transparent; border: 0; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.skip:focus {
  position: fixed; left: 8px; top: 8px; z-index: 99;
  background: var(--w-red); color: #fff; padding: .5rem .75rem;
}

/* —— Masthead (dark) —— */
.w-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--w-mast);
  color: #fff;
  min-height: var(--w-top);
}
.w-top__row {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 .75rem;
  min-height: var(--w-top);
}
.w-logo {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #fff !important;
  flex-shrink: 0;
}
.w-logo__mark {
  width: 22px;
  height: 22px;
  background: var(--w-red);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.w-logo__text {
  font-family: var(--w-cond);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
}
.w-logo__text span { color: #fff; opacity: .85; }
.w-top__nav {
  display: flex;
  gap: .15rem;
  margin-left: .5rem;
}
.w-top__nav a {
  padding: .85rem .7rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #b8bec8 !important;
  border-bottom: 2px solid transparent;
}
.w-top__nav a.is-on {
  color: #fff !important;
  border-bottom-color: var(--w-red);
}
.w-top__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.w-search input {
  width: min(220px, 36vw);
  min-height: 32px;
  padding: .3rem .6rem;
  background: #2a2f38;
  border: 1px solid #3a414d;
  color: #fff;
  border-radius: 2px;
}
.w-search input::placeholder { color: #8b93a0; }
.w-lang {
  min-height: 32px;
  padding: .25rem .4rem;
  background: #2a2f38;
  border: 1px solid #3a414d;
  color: #fff;
  border-radius: 2px;
}
.w-lang option { color: #111; }

/* —— Page grid —— */
.w-page {
  max-width: 1240px;
  margin: .65rem auto 0;
  padding: 0 .5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
}
.w-center {
  background: var(--w-paper);
  border: 1px solid var(--w-line);
  border-radius: 2px;
  min-width: 0;
  overflow: hidden;
}
.w-side {
  display: none;
  background: var(--w-paper);
  border: 1px solid var(--w-line);
  border-radius: 2px;
  padding: .55rem .45rem;
  align-self: start;
}
.w-seo {
  max-width: 1240px;
  margin: 0 auto 2rem;
  padding: 0 .5rem;
}
.w-foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 .75rem 2rem;
  color: var(--w-muted);
  font-size: 12px;
}
.w-foot a { text-decoration: underline; }

/* —— Sport tabs —— */
.w-sports {
  display: flex;
  gap: 0;
  overflow-x: auto;
  background: #f3f4f6;
  border-bottom: 1px solid var(--w-line);
  scrollbar-width: none;
}
.w-sports::-webkit-scrollbar { display: none; }
.w-sports__fav,
.w-sports__tab {
  flex: 0 0 auto;
  padding: .65rem .85rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--w-ink);
  cursor: pointer;
  border-top: 2px solid transparent;
  border-bottom: 0;
  white-space: nowrap;
}
.w-sports__tab.is-on {
  font-weight: 700;
  border-top-color: var(--w-red);
  color: var(--w-red);
  background: #fff;
}
.w-sports__fav { color: var(--w-muted); }

/* —— ALL / LIVE pills + dates —— */
.w-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .6rem;
  border-bottom: 1px solid var(--w-line);
  background: #fff;
}
.w-filters__pills { display: flex; gap: .35rem; flex-wrap: wrap; }
.w-pill {
  min-height: 28px;
  padding: .2rem .7rem;
  border-radius: 14px;
  border: 1px solid var(--w-line);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  color: var(--w-ink);
}
.w-pill.is-on {
  background: var(--w-red);
  border-color: var(--w-red);
  color: #fff;
}
.w-filters__dates {
  display: flex;
  gap: .15rem;
  overflow-x: auto;
  max-width: 100%;
}
.w-date {
  flex: 0 0 auto;
  min-width: 48px;
  padding: .35rem .45rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--w-muted);
  cursor: pointer;
  border-radius: 2px;
}
.w-date.is-on {
  background: var(--w-head);
  color: var(--w-ink);
  box-shadow: inset 0 -2px 0 var(--w-red);
}

/* —— Competition block —— */
.w-comp { border-bottom: 1px solid var(--w-line); }
.w-comp__h {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: .25rem;
  padding: .4rem .5rem;
  background: var(--w-head);
  border-bottom: 1px solid var(--w-line);
  position: sticky;
  top: var(--w-top);
  z-index: 5;
}
.w-comp__pin {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  opacity: .45;
  font-size: 12px;
  cursor: default;
}
.w-comp__title {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
}
.w-comp__geo { color: var(--w-muted); font-weight: 500; }
.w-comp__title img { width: 16px; height: 16px; object-fit: contain; }
.w-comp__stand {
  font-size: 11px;
  font-weight: 600;
  color: var(--w-muted);
  padding: .2rem .35rem;
}
.w-comp__stand:hover { color: var(--w-red); }

.w-rows { list-style: none; margin: 0; padding: 0; }
.w-row {
  display: grid;
  grid-template-columns: 30px 44px minmax(0, 1fr) 30px;
  align-items: center;
  gap: .2rem;
  min-height: 48px;
  padding: .25rem .4rem;
  border-bottom: 1px solid #eef0f2;
  background: #fff;
}
.w-row:hover { background: #fafbfc; }
.w-row.is-live { background: #fff7f7; }
.w-row__star {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: #c0c5cc;
  cursor: pointer;
  font-size: 15px;
}
.w-row__star.is-on { color: #f5a623; }
.w-row__clock {
  text-align: center;
  font-family: var(--w-cond);
  font-size: 13px;
  font-weight: 600;
  color: var(--w-muted);
}
.w-row__clock em {
  font-style: normal;
  color: var(--w-live);
  font-weight: 700;
}
.w-row__sides {
  display: grid;
  gap: .15rem;
  min-width: 0;
  padding-inline: .25rem;
}
.w-row__side {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}
.w-row__side img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.w-row__side b {
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-row__score {
  display: grid;
  justify-items: end;
  gap: .15rem;
  font-family: var(--w-cond);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.w-row.is-live .w-row__score { color: var(--w-live); }
.w-empty {
  margin: 0;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--w-muted);
}
.w-more { padding: .85rem; text-align: center; }
.w-more button {
  min-height: 34px;
  padding: .4rem 1rem;
  border: 1px solid var(--w-line);
  background: var(--w-head);
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
}

/* —— Pinned leagues —— */
.w-pin h2 {
  margin: 0 .25rem .45rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--w-muted);
}
.w-pin ul { list-style: none; margin: 0; padding: 0; }
.w-pin li + li { border-top: 1px solid #eef0f2; }
.w-pin a {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 38px;
  padding: .3rem .25rem;
  font-size: 12px;
  font-weight: 500;
}
.w-pin img { width: 18px; height: 18px; object-fit: contain; }
.w-pin__flag {
  width: 18px; height: 14px;
  display: grid; place-items: center;
  background: var(--w-head);
  font-size: 8px;
  font-weight: 700;
  color: var(--w-muted);
}
.w-pin__all {
  display: inline-block;
  margin: .55rem .25rem 0;
  color: var(--w-red) !important;
  font-weight: 600;
  font-size: 12px;
}

.w-box {
  padding: .35rem .25rem .6rem;
}
.w-box h2 {
  margin: 0 0 .4rem;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--w-muted);
}
.w-box ul { list-style: none; margin: 0; padding: 0; }
.w-box li a {
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem 0; font-size: 12px;
}
.w-box img { width: 16px; height: 16px; object-fit: contain; }

/* Goal toast */
.goal-flash {
  position: fixed;
  top: calc(var(--w-top) + 10px);
  right: 12px;
  z-index: 60;
  max-width: min(320px, calc(100vw - 24px));
  padding: .7rem .85rem;
  background: var(--w-red);
  color: #fff;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
  font-family: var(--w-cond);
  font-weight: 700;
}

.ad-slot { margin: .5rem; overflow: hidden; }
.seo-article {
  background: var(--w-paper);
  border: 1px solid var(--w-line);
  padding: 1rem;
  border-radius: 2px;
}
.seo-article__body { color: var(--w-muted); font-size: 14px; line-height: 1.55; }
.seo-article__body a { color: var(--w-red); text-decoration: underline; }
.seo-article__toggle {
  margin-top: .75rem;
  min-height: 40px;
  padding: .4rem .8rem;
  border: 1px solid var(--w-line);
  background: var(--w-head);
  cursor: pointer;
  font-weight: 600;
}

/* Secondary pages that still extend this layout */
.panel, .main-panel, .match-shell, .league-page, .team-page {
  background: var(--w-paper);
  border: 1px solid var(--w-line);
}
.panel { padding: .75rem; }
.panel__title {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--w-muted);
}

/* —— Subpages: match / league / team / explore / favorites —— */
.muted { color: var(--w-muted); }
.font-mono { font-family: var(--w-cond); font-variant-numeric: tabular-nums; }
.live-badge {
  display: inline-block;
  padding: .1rem .4rem;
  background: var(--w-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
}
.ft-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--w-muted);
}
.fav-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--w-line);
  background: var(--w-head);
  color: #c0c5cc;
  cursor: pointer;
  font-size: 16px;
  border-radius: 2px;
}
.fav-btn.is-on, .fav-btn--hero.is-on { color: #f5a623; }
.fav-btn--hero { min-width: 40px; min-height: 40px; }
.empty-state, .league-empty {
  margin: 0;
  padding: 1rem .5rem;
  color: var(--w-muted);
  text-align: center;
  list-style: none;
}

.page-head, .favorites-page__hero, .entity-crumbs {
  padding: .75rem .75rem .5rem;
}
.page-head h1, .favorites-page__hero h1 {
  margin: 0;
  font-family: var(--w-cond);
  font-size: 1.35rem;
  font-weight: 700;
}
.entity-crumbs {
  display: flex; flex-wrap: wrap; gap: .35rem;
  font-size: 12px; color: var(--w-muted);
}
.entity-crumbs a { color: var(--w-muted); }
.entity-crumbs a:hover { color: var(--w-red); }

/* Panels / explore */
.panel {
  margin: .65rem;
  padding: .75rem;
  background: var(--w-paper);
  border: 1px solid var(--w-line);
  border-radius: 2px;
}
.panel + .panel { margin-top: 0; }
.panel__title {
  margin: 0 0 .55rem;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--w-muted);
  font-weight: 700;
}
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li + li { border-top: 1px solid #eef0f2; }
.panel li a {
  display: flex; align-items: center; gap: .5rem;
  min-height: 40px; padding: .35rem 0; font-size: 13px;
}
.team-inline {
  display: inline-flex; align-items: center; gap: .45rem; min-width: 0;
}
.team-inline img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

/* Match page */
.match-page { padding: 0 0 1rem; }
.match-card {
  margin: 0;
  padding: .85rem .9rem 1rem;
  background: var(--w-mast);
  color: #fff;
  border-bottom: 1px solid #0a2a33;
}
.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: #c8d0d6 !important; font-size: 13px;
}
.match-card__comp img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.match-card__comp .muted { color: #8b97a0; }
.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 !important; min-width: 0;
}
.match-side__crest { width: 64px; height: 64px; object-fit: contain; display: block; }
.match-side__crest--ph {
  display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 50%; background: #123038; border: 1px solid #2a4a54;
  font-family: var(--w-cond); font-size: 1.35rem; font-weight: 700; color: #9ab;
}
.match-side__name {
  font-family: var(--w-cond); font-size: clamp(.95rem, 2.8vw, 1.1rem);
  font-weight: 700; 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(--w-cond);
  font-size: clamp(1.7rem, 5.5vw, 2.2rem); font-weight: 700; color: #fff; line-height: 1;
}
.match-center__when {
  font-family: var(--w-cond); font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 700; color: #fff; line-height: 1.1;
}
.match-center__day, .match-center__status {
  font-size: 12px; color: #9ab; text-transform: uppercase; letter-spacing: .04em;
}
.match-info {
  list-style: none; margin: 1rem 0 0; padding: .75rem 0 0;
  border-top: 1px solid #2a4a54; display: grid; gap: .45rem;
}
.match-info li {
  display: flex; align-items: center; gap: .55rem;
  font-size: 13px; color: #c8d0d6;
}
.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");
}

.tabs, .league-tabs {
  display: flex; gap: 0; overflow-x: auto;
  background: var(--w-head); border-bottom: 1px solid var(--w-line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar, .league-tabs::-webkit-scrollbar { display: none; }
.tabs__item, .league-tabs__item {
  flex: 0 0 auto; min-height: 42px; padding: .55rem .9rem;
  background: transparent; color: var(--w-muted);
  border: 0; border-bottom: 2px solid transparent;
  cursor: pointer; font-family: var(--w-cond);
  text-transform: uppercase; letter-spacing: .05em; font-size: 12px; font-weight: 700;
}
.tabs__item.is-active, .league-tabs__item.is-active {
  color: var(--w-red); border-bottom-color: var(--w-red); background: #fff;
}
.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: 14px;
  border: 1px solid var(--w-line); background: #fff; color: var(--w-ink);
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.summary-pills__btn.is-on {
  background: var(--w-red); color: #fff; border-color: var(--w-red);
}

.ls-events {
  border: 1px solid var(--w-line); border-radius: 2px;
  background: #fff; overflow: hidden;
}
.ls-events__empty { margin: 0; padding: 1rem .85rem; text-align: center; color: var(--w-muted); }
.ls-event {
  display: grid; grid-template-columns: 44px 1fr 56px 1fr;
  gap: .35rem; align-items: center; min-height: 44px;
  padding: .45rem .55rem; border-bottom: 1px solid #eef0f2;
}
.ls-event:last-child { border-bottom: 0; }
.ls-event__min { color: var(--w-muted); font-size: 12px; font-family: var(--w-cond); }
.ls-event__score { text-align: center; font-weight: 700; 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 { font-weight: 700; font-size: 13px; line-height: 1.2; word-break: break-word; }
.ls-event__assist { color: var(--w-muted); font-size: 11px; }
.ls-ico {
  width: 14px; height: 14px; flex-shrink: 0; display: inline-block;
  background: currentColor; color: var(--w-ink);
  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%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%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;
}

/* League / team heroes */
.league-page, .team-page, .favorites-page, .player-page { background: transparent; border: 0; }
.league-hero, .team-hero {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: .75rem; align-items: center;
  padding: .85rem .75rem;
  background: var(--w-head);
  border-bottom: 1px solid var(--w-line);
}
.team-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.league-hero__badge img, .team-hero__crest {
  width: 56px; height: 56px; object-fit: contain;
}
.team-hero__crest--ph {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: #fff; border: 1px solid var(--w-line);
  font-family: var(--w-cond); font-size: 1.35rem; font-weight: 700; color: var(--w-muted);
}
.league-hero__text h1, .team-hero__text h1 {
  margin: .1rem 0; font-family: var(--w-cond);
  font-size: clamp(1.25rem, 3.5vw, 1.65rem); font-weight: 700;
}
.team-hero__main { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.season-select {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .45rem;
}
.season-select__label {
  font-size: 11px; font-weight: 700; color: var(--w-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.season-select__control {
  min-height: 34px; min-width: 7rem; padding: .25rem .5rem;
  border: 1px solid var(--w-line); background: #fff; color: var(--w-ink);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 2px;
}
.league-section {
  padding: .75rem .65rem 1rem;
  border-bottom: 1px solid var(--w-line);
  background: #fff;
}
.league-section__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .45rem;
}
.league-section__head .panel__title { margin: 0; }
.league-section__head button, .league-section__head a.btn-more {
  border: 0; background: transparent; color: var(--w-red);
  font-size: 12px; font-weight: 700; cursor: pointer;
}

/* Standings */
.standings-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.standings-table th, .standings-table td {
  padding: .42rem .35rem; border-bottom: 1px solid #eef0f2; text-align: left;
}
.standings-table th {
  font-family: var(--w-cond); text-transform: uppercase; letter-spacing: .04em;
  color: var(--w-muted); font-size: 10px; background: var(--w-head); font-weight: 700;
}
.standings-table td:nth-child(n+3) {
  text-align: center; font-family: var(--w-cond); font-variant-numeric: tabular-nums;
}
.standings-table tbody tr:nth-child(even) td { background: #fafbfc; }
.standings-table tr.is-highlight td,
.standings-table--ls tr.is-highlight td { background: var(--w-red-soft) !important; }
.standings-table tr.is-fav-team td { background: rgba(245,197,24,.08); }
.standings-rank {
  position: relative; padding-left: .75rem !important;
  font-family: var(--w-cond); font-weight: 700;
}
.standings-team { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.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; }
.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(--w-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 #eef0f2;
}
.scorer-list__rank { font-family: var(--w-cond); color: var(--w-muted); }
.scorer-list__player { display: grid; gap: .1rem; min-width: 0; }
.scorer-list__goals { font-weight: 700; font-size: 15px; font-family: var(--w-cond); }

.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(--w-head); border: 1px solid var(--w-line); border-radius: 2px;
}
.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; }

.squad-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .5rem;
  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(--w-head);
  border: 1px solid var(--w-line); border-radius: 2px;
}

/* Fixture lists (league/team/favorites) */
.fixture-list, .favorites-fixture-list, .fixture-list--team {
  list-style: none; margin: 0; padding: 0;
}
.fixture-row {
  border-bottom: 1px solid #eef0f2; background: #fff;
}
.fixture-row.is-live { background: #fff7f7; }
.fixture-row__link, .fixture-row__body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 40px;
  gap: .35rem; align-items: center;
  min-height: 48px; padding: .35rem .25rem;
  color: inherit;
}
.fixture-row.fixture-row--team .fixture-row__link,
.league-fixture-list .fixture-row__link,
.league-fixture-list .fixture-row__link--league {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 40px;
}
.fixture-row__status {
  display: grid; gap: .1rem; justify-items: start;
  font-size: 12px; font-family: var(--w-cond); font-weight: 600; color: var(--w-muted);
}
.fixture-row__teams { display: grid; gap: .18rem; min-width: 0; }
.fixture-row__teams .team,
.fixture-row__teams--row .team {
  display: flex; align-items: center; gap: .4rem;
  font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.fixture-row__score {
  display: grid; justify-items: end; gap: .1rem;
  font-family: var(--w-cond); font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.fixture-row.is-live .fixture-row__score { color: var(--w-live); }
.fixture-row__teams--row {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.fixture-row__meta { font-size: 11px; color: var(--w-muted); }

.next-match {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: .75rem; align-items: center;
  padding: 1rem .75rem; background: var(--w-head);
  border: 1px solid var(--w-line); border-radius: 2px;
}
.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: #fff; border: 1px solid var(--w-line); 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(--w-cond); font-size: 1.35rem; }
.next-match__comp { font-size: 11px; text-align: center; color: var(--w-muted); }

.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: var(--w-head);
  border: 1px solid var(--w-line); border-radius: 2px;
  display: flex; flex-direction: column; gap: .2rem; text-align: center;
}
.stat-chip strong { font-family: var(--w-cond); font-size: 1.1rem; }

.form-strip { display: inline-flex; gap: .2rem; }
.form-strip__cell {
  min-width: 18px; min-height: 18px; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; border-radius: 2px; color: #fff;
}
.form-strip__cell.is-w { background: #1faa59; }
.form-strip__cell.is-d { background: #9aa0a6; }
.form-strip__cell.is-l { background: #e4002b; }

.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 #eef0f2;
}
.favorites-entity__link {
  display: flex; align-items: center; gap: .55rem; min-width: 0;
}
.favorites-entity__link img { width: 28px; height: 28px; object-fit: contain; }
.favorites-fixture-league {
  display: block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em; color: var(--w-muted);
}

.static-page, .post-body, .news-list {
  padding: 1rem .85rem 1.5rem;
}
.static-page h1, .news-list h1 {
  margin: 0 0 .75rem; font-family: var(--w-cond); font-size: 1.5rem;
}
.static-page p, .post-body p { color: var(--w-muted); line-height: 1.55; }
.news-list ul { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid #eef0f2; }
.news-list li a { display: block; padding: .75rem 0; font-weight: 600; }

.search-page { padding: .85rem; }
.search-page h1 { margin: 0 0 .75rem; font-family: var(--w-cond); }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { border-bottom: 1px solid #eef0f2; }
.search-results a {
  display: flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: .4rem 0;
}

.entity-page { padding: .85rem .65rem 1.25rem; }
.entity-page > h1 {
  margin: 0 0 .25rem; font-family: var(--w-cond); font-size: 1.45rem; font-weight: 700;
}
.entity-page > .muted { margin: 0 0 .85rem; }
.explore-list { list-style: none; margin: 0; padding: 0; }
.explore-list li + li { border-top: 1px solid #eef0f2; }
.explore-list a {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; min-height: 44px; padding: .4rem 0; color: inherit;
}
.chip {
  display: inline-block; padding: .1rem .4rem; border-radius: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--w-head); color: var(--w-muted);
}
.chip--live { background: var(--w-red-soft); color: var(--w-red); }

@media (min-width: 980px) {
  .w-page {
    grid-template-columns: 200px minmax(0, 1fr) 220px;
  }
  .w-side { display: block; }
  .w-top__nav { display: flex; }
}

@media (max-width: 979px) {
  .w-top__nav { display: none; }
  .w-search input { width: 120px; }
}
