/* ============================================================
   sofascore-landing — a static study rebuild of the sofascore.com
   landing page in plain HTML + CSS. No framework, no JavaScript.

   Every colour, radius and size below was read off the live site's
   own computed styles.
   ============================================================ */

:root {
  /* surfaces */
  --page: #000000;
  --surface: #171c1f;      /* the big content cards            */
  --surface-2: #111517;    /* header bar / raised strips       */
  --surface-3: #272c32;    /* hovered rows, dividers, chips    */
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.15);

  /* ink */
  --ink: #ecedef;
  --ink-dim: #9aa0a6;
  --ink-faint: #6f757b;

  /* accents */
  --accent: #7a84ff;       /* links, active marks, ratings     */
  --live: #e73b3b;         /* live badge, trending dot         */
  --live-soft: rgb(231 59 59 / 0.2);
  --win: #22c55e;

  /* geometry */
  --radius-card: 16px;
  --radius-pill: 24px;
  --radius-sm: 8px;
  --shell: 1392px;

  --font: "Inter", "Arial Unicode MS", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------ generic crest ----
   The real site shows club and competition badges. Those are other
   people's trademarks, so this rebuild draws its own neutral mark:
   a tinted disc with the club's initials. */
.crest {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--crest, #3a4149);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.crest--lg {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.crest--md {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.crest--flag {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  font-size: 0;
}

.avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(160deg, #3a4149, #22272c);
}

.avatar--lg {
  width: 36px;
  height: 36px;
}

/* ===================== TRENDING STRIP ===================== */

.trending {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding-inline: 16px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.trending__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.trending__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}

.trending__nav {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--ink-dim);
}

.trending__nav:hover {
  color: var(--ink);
}

.trending__today {
  flex: none;
  padding-inline: 4px;
  font-size: 14px;
  font-weight: 700;
}

.trending__rail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 36px;
  padding: 0 12px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  font-size: 12px;
  white-space: nowrap;
}

.chip:hover {
  background: var(--surface-3);
}

.chip__time {
  color: var(--ink-dim);
  font-weight: 500;
}

.chip__score {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===================== HEADER ===================== */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface-2);
}

.masthead__row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wordmark__mark {
  display: grid;
  gap: 3px;
  width: 22px;
}

.wordmark__mark i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}

.wordmark__mark i:nth-child(1) { width: 100%; }
.wordmark__mark i:nth-child(2) { width: 70%; }
.wordmark__mark i:nth-child(3) { width: 100%; }

.mainnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.mainnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-inline: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.mainnav a:hover {
  color: var(--ink);
}

.mainnav a[aria-current="page"] {
  background: var(--surface-3);
  color: var(--ink);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  width: 280px;
  height: 36px;
  padding-inline: 14px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  color: var(--ink-dim);
  font-size: 14px;
}

.search kbd {
  margin-left: auto;
  padding: 2px 6px;
  background: var(--surface-3);
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
}

.iconbtn {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
}

.iconbtn:hover {
  background: var(--surface-3);
}

/* -- sport tabs -- */

.sports {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
}

.sports a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-inline: 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
}

.sports a:hover {
  color: var(--ink);
}

.sports a[aria-current="page"] {
  background: var(--surface-3);
  color: var(--ink);
}

.sports__right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.sports__right a {
  color: var(--ink);
}

.seoline {
  padding-block: 10px 14px;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ===================== LAYOUT ===================== */

.columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 48px;
}

@media (min-width: 900px) {
  .columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1280px) {
  .columns {
    grid-template-columns: 352px minmax(0, 1fr) 300px;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
}

.card + .card {
  margin-top: 16px;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.card__title {
  font-size: 15px;
  font-weight: 700;
}

/* ===================== LEFT: MATCH LIST ===================== */

.listhead {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 6px 12px;
  border-bottom: 1px solid var(--line);
}

.listhead button {
  height: 32px;
  padding-inline: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
}

.listhead button:hover {
  color: var(--ink);
}

.listhead button[aria-pressed="true"] {
  color: var(--ink);
}

.datestep {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.datestep span {
  min-width: 68px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.filter {
  height: 28px;
  padding-inline: 12px;
  border-radius: var(--radius-pill);
  background: rgb(0 0 0 / 0.5);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.filter--live {
  background: var(--live-soft);
  color: var(--live);
}

.filter:hover {
  filter: brightness(1.25);
}

.filters__odds {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-dim);
}

.switch {
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: var(--surface-3);
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  inset-block: 2px;
  left: 2px;
  width: 14px;
  border-radius: 50%;
  background: var(--ink-dim);
}

/* -- league group -- */

.league {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.league__meta {
  min-width: 0;
}

.league__name {
  font-size: 13px;
  font-weight: 700;
}

.league__country {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 11px;
}

.league__count {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 12px;
}

.league__chev {
  color: var(--ink-dim);
}

.subleague {
  padding: 10px 12px 2px;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 600;
}

/* -- match row -- */

.match {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px 28px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

.match:hover {
  background: var(--surface-3);
}

.match__time {
  color: var(--ink-dim);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.match__time b {
  display: block;
  color: var(--ink-faint);
  font-weight: 600;
}

.match__teams {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.match__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
}

.match__team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match__scores {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.match--dim .match__team,
.match--dim .match__scores {
  color: var(--ink-faint);
}

.match__star {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink-faint);
}

.match__star:hover {
  background: var(--line);
  color: var(--ink);
}

/* ===================== MIDDLE COLUMN ===================== */

.feature {
  padding: 16px;
}

.feature__comp {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 22px 18px;
  text-align: center;
}

.feature__side {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.feature__kick {
  display: grid;
  gap: 4px;
}

.feature__kick b {
  font-size: 22px;
  font-weight: 700;
}

.feature__kick span {
  color: var(--ink-dim);
  font-size: 12px;
}

.vote {
  padding: 14px 16px 16px;
  background: rgb(0 0 0 / 0.35);
  border-radius: 12px;
}

.vote__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vote__head h3 {
  font-size: 15px;
  font-weight: 700;
}

.vote__head p {
  margin-top: 3px;
  color: var(--ink-dim);
  font-size: 12px;
}

.vote__head svg {
  margin-left: auto;
  color: var(--ink-dim);
}

.vote__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.vote__btn {
  display: grid;
  place-items: center;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.vote__btn:hover {
  background: rgb(122 132 255 / 0.12);
}

.odds {
  margin-top: 16px;
}

.odds__label {
  color: var(--ink-dim);
  font-size: 12px;
}

.odds__row {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.odds__brand {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.odds__cell {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 10px;
  border-radius: var(--radius-sm);
  background: rgb(0 0 0 / 0.35);
  font-size: 13px;
}

.odds__cell b {
  margin-left: auto;
  font-weight: 700;
}

.odds__cell i {
  font-style: normal;
  font-size: 10px;
  color: var(--live);
}

.carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 13px;
}

.carousel__dots {
  display: flex;
  gap: 6px;
  margin-inline: auto;
}

.carousel__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surface-3);
}

.carousel__dots i.is-on {
  background: var(--ink-dim);
}

.carousel a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.carousel a:hover {
  color: var(--ink);
}

/* -- transfers / performances -- */

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.row:hover {
  background: var(--surface-3);
}

.row__main {
  min-width: 0;
}

.row__name {
  font-size: 14px;
  font-weight: 600;
}

.row__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
}

.row__fee {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.row__rank {
  width: 14px;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: center;
}

.row__stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--ink-dim);
  font-size: 11px;
}

.miniscore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.35);
  font-size: 11px;
  font-weight: 700;
}

.rating {
  min-width: 34px;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: #0b0d16;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.rating--alt {
  background: #4b55d8;
  color: #fff;
}

.cardlink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.cardlink:hover {
  filter: brightness(1.2);
}

.rankrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.rankrow:hover {
  background: var(--surface-3);
}

.rankrow__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--accent);
}

.rankrow__sub {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 12px;
}

.rankrow__chev {
  margin-left: auto;
  color: var(--ink-dim);
}

/* ===================== RIGHT: PROMO ===================== */

.promo {
  position: relative;
  overflow: hidden;
}

.promo__art {
  display: grid;
  place-items: center;
  height: 300px;
  background:
    radial-gradient(120% 90% at 50% 10%, #2b3a8f 0%, #141a3a 55%, #0c1024 100%);
}

.pitch {
  width: 78%;
  aspect-ratio: 3 / 2;
  border: 2px solid rgb(255 255 255 / 0.5);
  border-radius: 4px;
  position: relative;
  background:
    repeating-linear-gradient(
      90deg,
      rgb(255 255 255 / 0.05) 0 12%,
      transparent 12% 24%
    );
}

.pitch::before,
.pitch::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 18%;
  height: 46%;
  border: 2px solid rgb(255 255 255 / 0.5);
}

.pitch::before { left: 0; border-left: 0; }
.pitch::after { right: 0; border-right: 0; }

.pitch i {
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 2px;
  background: rgb(255 255 255 / 0.5);
}

.promo__goal {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.promo__min {
  position: absolute;
  top: 46px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-dim);
}

.promo__body {
  padding: 16px;
}

.promo__kicker {
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo__body h3 {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.promo__body p {
  margin-top: 10px;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.45;
}

.promo__body ul {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.promo__body li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.4;
}

.promo__body li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.promo__qr {
  display: grid;
  place-items: center;
  margin: 18px auto 4px;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  background: #fff;
}

.qr {
  width: 68px;
  height: 68px;
  background:
    conic-gradient(#000 25%, transparent 0 50%, #000 0 75%, transparent 0)
      0 0 / 12px 12px,
    linear-gradient(#000, #000) 0 0 / 100% 100%;
  background-blend-mode: normal;
  opacity: 0.9;
}

.adlabel {
  position: absolute;
  top: 50%;
  right: -14px;
  translate: 0 -50%;
  rotate: 90deg;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* ===================== FLOATING DOWNLOAD ===================== */

.download {
  position: fixed;
  bottom: 110px;
  left: 0;
  z-index: 15;
  display: flex;
  align-items: center;
}

.download__btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 0 12px 12px 0;
  background: var(--surface-3);
  color: var(--ink);
}

.download__close {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-dim);
  font-size: 11px;
}

/* ===================== FOOTNOTE ===================== */

.footnote {
  padding: 28px 0 56px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
}

.footnote strong {
  color: var(--ink-dim);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1279px) {
  .promo-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .search,
  .sports__right,
  .mainnav a span {
    display: none;
  }

  .masthead__row {
    gap: 12px;
  }

  .download {
    display: none;
  }
}
