@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-condensed-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f7f2;
  --card: #fff;
  --ink: #172218;
  --muted: #4b5a4e;
  --line: #dce5da;
  --dark: #132018;
  --lime: #deff64;
  --focus: #38713e;
  --gutter: 32px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.45 system-ui, sans-serif;
}

a { color: inherit; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

.shell {
  width: min(1216px, calc(100% - 2 * max(var(--gutter), var(--safe-left), var(--safe-right))));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: calc(12px + var(--safe-top));
  left: max(12px, var(--safe-left));
  padding: 12px;
  border-radius: 8px;
  background: var(--lime);
  transform: translateY(calc(-160% - var(--safe-top)));
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  padding-top: var(--safe-top);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.header-content, .brand, .site-nav {
  display: flex;
  align-items: center;
}

.header-content {
  min-height: 66px;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark, .brand-name {
  font: 800 1.75rem/1 var(--heading);
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #b9d64e;
  border-radius: 10px 10px 3px 10px;
  background: var(--lime);
  letter-spacing: -.05em;
}

.brand-name { letter-spacing: .015em; }
.site-nav { gap: 6px; }
.nav-icon { display: none; }

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover, .site-nav a[aria-current="location"] {
  background: #e8f0e5;
  color: #235039;
}

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

main { padding-block: 22px 64px; }
section { scroll-margin-top: calc(88px + var(--safe-top)); }

.live-hero {
  position: relative;
  display: flex;
  isolation: isolate;
  min-height: clamp(254px, 29vw, 340px);
  overflow: hidden;
  border: 1px solid #203225;
  border-radius: 17px;
  background: #112017;
  color: #fff;
}

.hero-image, .live-hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: 66% 59%;
}

.live-hero::before {
  z-index: -1;
  background:
    linear-gradient(91deg, #09130cef 0%, #09130ccd 28%, #09130c39 65%, #09130c05 100%),
    linear-gradient(0deg, #08110b66 0%, transparent 45%);
  content: "";
}

.hero-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 27px clamp(28px, 4.5vw, 60px) 34px;
}

h1 {
  font: 800 clamp(4rem, 8vw, 7rem)/.86 var(--heading);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

h1 span { color: var(--lime); }

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.hero-action:hover { background: #edffab; }
.hero-action:focus-visible { outline-color: #fff; }

.play-icon {
  width: 11px;
  height: 13px;
  flex: 0 0 auto;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.live-strip { margin-top: 23px; }

.live-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.live-overview {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.live-summary h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font: 800 1.875rem/1 var(--heading);
}

.live-summary h2::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #477649;
  content: "";
}

#live-status, .catalogue-status {
  color: var(--muted);
  font-size: .9375rem;
}

.live-sport-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .875rem;
  font-weight: 700;
}

.live-sport-control select {
  min-height: 44px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid #afbfac;
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-grid li { min-width: 0; }
.match-grid:empty { display: none; }

.live-groups {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.live-groups:empty { display: none; }

.live-sport-group + .live-sport-group {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.live-sport-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.live-sport-heading h3 {
  margin: 0;
  font: 800 1.5rem/1.1 var(--heading);
  overflow-wrap: anywhere;
}

.live-sport-heading span {
  color: var(--muted);
  font-size: .875rem;
  white-space: nowrap;
}

.live-sport-grid, #featured-matches {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  margin-top: 9px;
}

.featured-strip {
  margin-top: 22px;
}

.featured-strip h2 {
  font: 800 1.875rem/1 var(--heading);
}

.match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  height: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.match:hover {
  border-color: #80a076;
  background: #f8fbf3;
}

.match-info {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.match-meta {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.match-title {
  font-size: 1.0625rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.match-title {
  display: grid;
  gap: 4px;
}

.match-team {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.team-name { grid-column: 2; }

.team-flag {
  width: 24px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
}

.match-timing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin-top: 4px;
  color: var(--muted);
  font-size: .875rem;
}

.match-state {
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 6px;
  background: #e9ede6;
  color: #36443a;
  font-weight: 700;
  line-height: 1.2;
}

.match-state--live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: #e7f2e4;
  color: #235039;
}

.match-state--live::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #397d50;
  content: "";
}
.match-state--scheduled { background: #e6f1e2; color: #2e5434; }
.match-state--unknown { background: #f4ecd9; color: #694a19; }

.match-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: #345039;
  font-size: .875rem;
  font-weight: 750;
}

.match-play {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding-left: 2px;
  border-radius: 8px;
  background: #e8f0e3;
  color: #27422c;
}

.match:hover .match-play { background: var(--lime); }

.match--live {
  min-height: 108px;
  border-color: #cbdaca;
}

.match--live .match-play {
  width: 40px;
  height: 40px;
  background: var(--lime);
  color: #183422;
}

.catalogue { margin-top: clamp(31px, 4vw, 52px); }

.catalogue h2 {
  font: 800 clamp(2.375rem, 5vw, 3.5rem)/.95 var(--heading);
  letter-spacing: -.015em;
}

.controls {
  display: grid;
  grid-template-columns: minmax(155px, 220px) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0 14px;
}

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

.control-field label {
  font-size: .875rem;
  font-weight: 700;
}

.controls select, .controls input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #afbfac;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
}

.controls input::placeholder {
  color: #5c6a5e;
  opacity: 1;
}

.search-button, .pagination button {
  min-height: 46px;
  padding: 8px 15px;
  border: 1px solid var(--dark);
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}

.search-button:hover { background: #2b4530; }
.catalogue-status { margin-bottom: 10px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: .9375rem;
}

.pagination button {
  border-color: #b6c3b5;
  background: var(--card);
  color: var(--ink);
}

.pagination button:hover:not(:disabled) { border-color: #477649; }

.pagination button:disabled {
  border-color: var(--line);
  background: #e9eee6;
  color: #5a655b;
}

.player-dialog {
  width: min(1080px, calc(100vw - 2 * max(12px, var(--safe-left), var(--safe-right))));
  height: min(860px, calc(100dvh - 2 * max(12px, var(--safe-top), var(--safe-bottom))));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #344a37;
  border-radius: 16px;
  background: var(--dark);
  color: #f7faef;
}

.player-dialog::backdrop { background: #07100be0; }

.player-layout {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.player-bar, .player-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 15px;
}

.player-bar h2 {
  font: 800 clamp(1.5rem, 3vw, 2rem)/1 var(--heading);
  overflow-wrap: anywhere;
}

.player-dialog button {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #788d7a;
  border-radius: 8px;
  background: #1c3023;
  color: #f7faef;
  white-space: nowrap;
}

.player-dialog button:hover { background: #2c4631; }
.player-dialog :focus-visible { outline-color: var(--lime); }

.player-frame {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0e1710;
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.player-frame--cropped iframe { height: calc(100% + 240px); }

.player-links {
  flex-wrap: wrap;
  font-size: .875rem;
}

.player-links button[aria-pressed="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.player-links a {
  color: var(--lime);
  text-underline-offset: .22em;
}

.ios-download {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}

.ios-download a {
  color: var(--ink);
  text-underline-offset: .2em;
}

@media (max-width: 900px) {
  #live-matches .match-action-label, #featured-matches .match-action-label { display: none; }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; }

  html { scroll-padding-bottom: calc(64px + var(--safe-bottom)); }
  .header-content { min-height: 56px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 1.5rem; }
  .brand-mark { width: 34px; height: 34px; font-size: 1.375rem; }

  .site-nav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px max(12px, var(--safe-right)) max(8px, var(--safe-bottom)) max(12px, var(--safe-left));
    border-top: 1px solid var(--line);
    background: #fffffffa;
    box-shadow: 0 -5px 20px #1722180d;
  }

  .site-nav a {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 46px;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: .875rem;
    line-height: 1.2;
  }

  .nav-icon {
    position: relative;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1.7px solid currentColor;
  }

  .nav-icon--live { border-radius: 50%; }

  .nav-icon--live::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
  }

  .nav-icon--catalogue { border-radius: 4px; }

  .nav-icon--catalogue::before {
    width: 8px;
    height: 1.5px;
    background: currentColor;
    box-shadow: 0 -3px currentColor, 0 3px currentColor;
    content: "";
  }

  main { padding-block: 12px calc(74px + var(--safe-bottom)); }
  section { scroll-margin-top: calc(68px + var(--safe-top)); }

  .live-hero {
    min-height: 202px;
    border-radius: 14px;
  }

  .hero-image { object-position: 72% 57%; }

  .live-hero::before {
    background:
      linear-gradient(90deg, #09130ce8 0%, #09130c87 45%, #09130c13 100%),
      linear-gradient(0deg, #08110b62, transparent 62%);
  }

  .hero-content { gap: 15px; padding: 20px 18px 22px; }
  h1 { font-size: clamp(2.875rem, 12vw, 4rem); }
  .hero-action { min-height: 44px; padding: 8px 12px; font-size: .9375rem; }

  .live-strip { margin-top: 19px; }
  .live-summary { gap: 8px 10px; }
  .live-summary h2 { font-size: 1.625rem; }
  .live-sport-control select { max-width: min(45vw, 13rem); }
  .live-groups { gap: 16px; margin-top: 13px; }

  .match-grid, .live-sport-grid, #featured-matches { grid-template-columns: minmax(0, 1fr); }
  .match { gap: 12px; padding: 11px 12px; }
  .match--live { min-height: 98px; }
  .match-action-label { display: none; }

  .catalogue { margin-top: 28px; }
  .controls { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .sport-field { grid-column: 1 / -1; }

  .player-dialog {
    inset-block: calc(6px + var(--safe-top)) calc(6px + var(--safe-bottom));
    width: calc(100vw - 2 * max(6px, var(--safe-left), var(--safe-right)));
    height: calc(100dvh - 12px - var(--safe-top) - var(--safe-bottom));
    margin-block: 0;
    border-radius: 12px;
  }
}

@media (max-width: 440px) {
  .live-summary {
    display: grid;
    gap: 9px;
  }

  .live-sport-control select {
    min-width: min(100%, 10rem);
    max-width: min(100%, 15rem);
  }
}

html.web-app {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-bottom: calc(86px + var(--safe-bottom));
  --paper: #0b0e12;
  --card: #151a20;
  --control: #1c232b;
  --line: #303943;
  --ink: #f2f5f7;
  --muted: #aab5c1;
  --lime: #c9efa4;
  --focus: #c9efa4;
  --accent-ink: #15210e;
  --live-ink: #b8ecb5;
  --live-surface: #21382b;
  --soon-ink: #b7d9fc;
  --soon-surface: #253649;
  --unknown-ink: #f6d49d;
  --unknown-surface: #423425;
  background: var(--paper);
}

html.web-app[data-theme="light"] {
  color-scheme: light;
  --paper: #f3f5f5;
  --card: #ffffff;
  --control: #e9eeed;
  --line: #cbd5d4;
  --ink: #14201d;
  --muted: #50605b;
  --focus: #216745;
  --live-ink: #215932;
  --live-surface: #e0efdf;
  --soon-ink: #1f5078;
  --soon-surface: #e3effa;
  --unknown-ink: #644313;
  --unknown-surface: #f7eedc;
}

.web-app main {
  width: min(1040px, calc(100% - max(14px, var(--safe-left)) - max(14px, var(--safe-right))));
  padding-block: 14px calc(100px + var(--safe-bottom));
}

.web-app .live-hero {
  min-height: clamp(170px, 29vw, 322px);
  border: 1px solid #29382e;
  border-radius: 19px;
}

.web-app .hero-image { object-position: 55% 63%; }
.web-app .hero-content { gap: 14px; padding: clamp(17px, 3.5vw, 38px); }

.web-app .hero-content h1 {
  font: 800 clamp(2rem, 8vw, 3.5rem)/.96 system-ui, sans-serif;
  letter-spacing: -.055em;
  text-transform: none;
}

.web-app .hero-action {
  width: fit-content;
  min-height: 44px;
  border-radius: 10px;
  color: var(--accent-ink);
  background: var(--lime);
}

.web-app .live-strip { margin-top: 22px; scroll-margin-top: calc(76px + var(--safe-top)); }
.web-app .catalogue { margin-top: 0; }

.web-app .live-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px 14px;
}

.web-app .section-title,
.web-app .catalogue h2,
.web-app .live-summary h2,
.web-app .featured-strip h2 {
  font: 750 1.4rem/1.14 system-ui, sans-serif;
  letter-spacing: -.035em;
}

.web-app .live-summary h2::before { display: none; }
.web-app .section-title { margin-bottom: 6px; }
.web-app .live-groups { gap: 16px; }

.web-app .live-sport-heading h3 {
  font: 750 1.075rem/1.2 system-ui, sans-serif;
  letter-spacing: -.02em;
}

.web-app .live-sport-heading span { font-variant-numeric: tabular-nums; }

.web-app .match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-inline-end: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
}

.web-app .match {
  width: 100%;
  gap: 7px;
  text-align: start;
  min-height: 94px;
  padding: 11px 3px 11px 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.web-app .match:is(:hover, :active) { background: var(--control); }
.web-app a.match { text-decoration: none; }
.web-app .match-action-label { display: none; }
.web-app .match-action--details .match-play .play-icon { display: none; }
.web-app .match-action--details .match-play::before {
  content: "";
  width: 10px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

#featured {
  scroll-margin-top: calc(78px + var(--safe-top));
}
.web-app .match-meta { font-size: .8125rem; }
.web-app .match-meta .team-flag {
  width: 16px;
  height: 12px;
  margin-inline-end: 6px;
  vertical-align: -1px;
}
.web-app .match-title { line-height: 1.22; }
.web-app .match-team { grid-template-columns: 20px minmax(0, 1fr); column-gap: 6px; }
.web-app .team-flag { width: 20px; height: 15px; }

.team-crest, .fctv-crest {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.team-crest--portrait, .fctv-crest--portrait {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(127 127 127 / 15%);
  object-fit: cover;
}
.web-app .match-timing { margin-top: 3px; font-size: .8125rem; }

.web-app .match-state {
  background: var(--control);
  color: var(--muted);
}

.web-app .match-state--live { color: var(--live-ink); background: var(--live-surface); }
.web-app .match-state--live::before { background: currentColor; }
.web-app .match-state--scheduled { color: var(--soon-ink); background: var(--soon-surface); }
.web-app .match-state--unknown { color: var(--unknown-ink); background: var(--unknown-surface); }

.web-app .match-play {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--control);
  color: var(--ink);
}

.web-app .match--live .match-play,
.web-app .match:hover .match-play {
  color: var(--accent-ink);
  background: var(--lime);
}

.web-app .favorite-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
}

.web-app .favorite-button[aria-pressed="true"] {
  background: var(--control);
  color: var(--unknown-ink);
}

.web-app .favorite-button:active { transform: scale(.95); }
.web-app .favorite-button:disabled { opacity: .54; }

.web-app .live-sport-control select,
.web-app .controls select,
.web-app .controls input,
.web-app .pagination button {
  border-color: var(--line);
  border-radius: 10px;
  background: var(--control);
  color: var(--ink);
}

.web-app .live-sport-control select {
  min-width: min(100%, 10rem);
  max-width: min(100%, 15rem);
  padding-inline: 10px 6px;
}

.web-app .controls { margin-block: 14px 12px; }
.web-app .controls input::placeholder { color: var(--muted); }
.web-app .pagination button:disabled { opacity: .52; }

.web-app .search-button,
.web-app .favorites-empty button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--accent-ink);
  background: var(--lime);
  font-weight: 700;
}

.web-app .favorites-empty {
  display: grid;
  justify-items: start;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: var(--card);
}

html.web-app:has(.player-dialog[open]) { overflow: hidden; }

.web-app .player-dialog {
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0b0e12;
}

.web-app .player-dialog::backdrop { background: #0b0e12; }

.web-app .player-bar,
.web-app .player-links {
  gap: 7px 10px;
  padding: 8px 12px;
  background: #151a20;
}

.web-app .player-bar h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font: 700 1rem/1.22 system-ui, sans-serif;
  letter-spacing: -.015em;
}

.web-app .player-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.web-app .player-frame {
  height: 100%;
  background: #0b0e12;
}

.web-app .player-load-status {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: #151a20;
  color: #f7faef;
  font-size: .8125rem;
  pointer-events: none;
}

.web-app .player-load-status:empty { opacity: 0; }
.web-app .player-frame--cropped iframe { height: calc(100% + clamp(104px, 32dvh, 240px)); }

.web-app .player-dialog button {
  padding-inline: 9px;
  border-color: #384451;
  border-radius: 10px;
  background: #212832;
}

.web-app .player-dialog button[aria-pressed="true"] {
  border-color: var(--lime);
  color: var(--accent-ink);
  background: var(--lime);
}

.web-app .player-links {
  justify-content: flex-start;
  font-size: .8125rem;
}

.web-app .player-recovery {
  min-height: 0;
  padding: clamp(16px, 5vw, 40px);
  overflow: auto;
  display: grid;
  place-items: center;
  background: #10151b;
}

.web-app .player-recovery > div { width: min(100%, 29rem); }
.web-app .player-recovery h3 { margin: 0; font-size: 1.25rem; }
.web-app .player-recovery p { margin: 10px 0 20px; color: #b9c4d0; }

.web-app .player-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.web-app .player-recovery-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--lime);
  text-underline-offset: .22em;
}

@media (max-width: 440px) {
  .web-app .live-summary { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 340px) {
  .web-app .controls { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 620px) {
  .web-app .live-sport-grid, .web-app #featured-matches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-app .favorite-button:active { transform: none; }
}

.web-app .skip-link { color: var(--accent-ink); }

.app-header {
  position: sticky;
  z-index: 3;
  top: 0;
  padding-top: var(--safe-top);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.app-toolbar {
  display: flex;
  width: min(1040px, calc(100% - max(14px, var(--safe-left)) - max(14px, var(--safe-right))));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: clamp(1rem, 4.3vw, 1.22rem);
  font-weight: 760;
  letter-spacing: -.035em;
  text-decoration: none;
}

.app-brand img { flex: none; border-radius: 10px; }

.app-actions { display: flex; gap: 6px; }
.app-actions button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
}

.app-actions button:hover { background: var(--control); }
.app-actions button:disabled { opacity: .55; }
.app-actions svg { width: 22px; height: 22px; }

.app-tabs {
  position: fixed;
  z-index: 4;
  inset-inline-start: 50%;
  bottom: calc(10px + var(--safe-bottom));
  display: grid;
  width: min(430px, calc(100% - max(20px, var(--safe-left) + var(--safe-right))));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--card);
  box-shadow: 0 8px 30px #0004;
}

.app-tabs a {
  display: grid;
  min-height: 52px;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 16px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 680;
  line-height: 1.15;
  text-decoration: none;
}

.app-tabs a:hover { color: var(--ink); }
.app-tabs a[aria-current="page"] { background: var(--control); color: var(--focus); }

.app-tab-icon {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
}

.app-tab-icon--upcoming {
  position: relative;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.app-tab-icon--upcoming::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 4px;
  height: 6px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
}

.app-tab-icon--live { border: 1.7px solid currentColor; border-radius: 50%; }
.app-tab-icon--live::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.app-tab-icon--catalogue { border: 1.7px solid currentColor; border-radius: 4px; }
.app-tab-icon--catalogue::before {
  width: 8px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 -3px currentColor, 0 3px currentColor;
  content: "";
}

.app-tab-icon--favorites { font-size: 1.35rem; line-height: .85; }

.appearance-dialog {
  width: min(390px, calc(100% - 30px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
  color: var(--ink);
}

.appearance-dialog::backdrop { background: #0009; }
.appearance-dialog form { display: grid; gap: 14px; }
.appearance-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.appearance-header h2 { font-size: 1.2rem; letter-spacing: -.02em; }
.appearance-header button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--control);
  color: var(--ink);
}

.appearance-dialog fieldset { display: grid; min-width: 0; gap: 6px; margin: 0; padding: 0; border: 0; }
.appearance-dialog label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding-inline: 10px;
  border-radius: 9px;
  background: var(--control);
  cursor: pointer;
}
.appearance-dialog input { accent-color: var(--focus); }

.app-download {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--focus);
  text-underline-offset: .2em;
}

.web-app .player-dialog { height: 100dvh; }
.web-app .player-dialog::backdrop { background: #080a0cf2; }
.web-app .player-bar { padding-top: calc(8px + var(--safe-top)); }
.web-app .player-bar,
.web-app .player-links { padding-inline: max(12px, var(--safe-left)) max(12px, var(--safe-right)); }
.web-app .player-links { padding-bottom: calc(8px + var(--safe-bottom)); }

.player-share-status { color: #c9d3dd; font-size: .8125rem; }
.player-share-status:empty { display: none; }

@media (min-width: 850px) and (min-height: 600px) {
  .web-app .player-dialog {
    width: min(1120px, calc(100vw - 48px));
    height: min(880px, calc(100dvh - 40px));
    margin: auto;
    border: 1px solid #303943;
    border-radius: 18px;
  }
}

.fctv-toolbar-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.fctv-toolbar-link:hover {
  background: var(--control);
}

.fctv-page {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-block: 20px max(20px, env(safe-area-inset-bottom));
}

.fctv-heading h1,
.fctv-detail h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.fctv-heading p,
.fctv-detail p,
.fctv-count {
  margin: 0;
  color: var(--muted);
}

.fctv-search {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr auto;
  align-items: end;
  gap: 12px;
}

.fctv-search .fctv-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.fctv-search :is(input, select, button) {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--control);
  color: var(--ink);
  font: inherit;
}

.fctv-search button {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.fctv-entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fctv-entry,
.fctv-detail {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.fctv-entry {
  min-height: 100%;
  box-sizing: border-box;
}

.fctv-entry:hover,
.fctv-entry[aria-current] {
  border-color: var(--accent);
  background: var(--control);
}

.fctv-entry span {
  color: var(--muted);
  font-size: .875rem;
}

.fctv-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 620px) {
  .fctv-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fctv-search .fctv-field:last-of-type,
  .fctv-search button {
    grid-column: 1 / -1;
  }
}

.fctv-league,
.fctv-team,
.fctv-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fctv-filters {
  flex-wrap: wrap;
}

.fctv-teams {
  display: grid;
  gap: 5px;
}

.fctv-entry .fctv-team,
.fctv-detail .fctv-team {
  color: var(--ink);
  font-size: 1rem;
}

.fctv-flag {
  flex: none;
  object-fit: contain;
}

.fctv-entry .fctv-live,
.fctv-detail .fctv-live {
  justify-self: start;
  margin-top: 4px;
  border-radius: 20px;
  background: #18372b;
  color: #c9f5dd;
  padding: 3px 9px;
  font-size: .875rem;
  font-weight: 700;
}

.fctv-filters [aria-current="page"],
.fctv-watch {
  justify-self: start;
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.fctv-watch:hover {
  border-color: var(--accent);
  background: var(--control);
  color: var(--ink);
}

.fctv-detail h2 {
  scroll-margin-top: calc(84px + var(--safe-top));
}

.live-competition-heading {
  margin: 16px 0 8px;
  font-size: 1rem;
  line-height: 1.3;
}

/* Translucent navigation surfaces with a solid fallback. */
.web-app .app-tabs {
  border: 1px solid color-mix(in srgb, var(--ink) 19%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 12px 34px rgb(0 0 0 / 24%);
}
@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  .web-app .app-tabs, .web-app .app-header {
    background: color-mix(in srgb, var(--paper) 76%, transparent);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
  }
}
.web-app .app-tabs a[aria-current="page"] {
  background: color-mix(in srgb, var(--focus) 15%, var(--control));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%);
}
.web-app .app-tabs a:focus-visible { outline-offset: -3px; }
#a-venir #featured { margin-top: 0; }
#a-venir .live-sport-control { margin-block: 12px; }
@media (prefers-reduced-transparency: reduce) {
  .web-app .app-tabs, .web-app .app-header {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.web-app input[type="date"] {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: 12px;
}
#a-venir .control-field { margin-block: 10px; }

.web-app .controls { grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }
.web-app .control-field { min-width: 0; }
.web-app .control-field input, .web-app .control-field select { max-width: 100%; min-width: 0; }
.web-app .match-row {
  transition: border-color 160ms ease, background-color 160ms ease;
}
.web-app .match-row:focus-within, .web-app .match-row:hover {
  border-color: color-mix(in srgb, var(--focus) 45%, var(--line));
}
.web-app .search-button, .web-app .app-tabs a { transition: background-color 160ms ease, color 160ms ease; }
.web-app .catalogue-status { min-height: 1.5em; }
#a-venir #featured {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 12px;
}
#a-venir #featured > :is(h1,.live-sport-control,p,ul) { grid-column: 1 / -1; }
#a-venir .control-field { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .web-app :is(.match-row,.search-button,.app-tabs a) { transition: none; }
}

/* Tribune Sport palette and touch feedback. */
html.web-app {
  --paper: #090e19;
  --card: #121c2d;
  --control: #1b2a40;
  --line: #34465d;
  --ink: #f3f7ff;
  --muted: #b0bed2;
  --lime: #c8f891;
  --focus: #c8f891;
  --live-ink: #a8f6d3;
  --live-surface: #17392f;
  --soon-ink: #c1e2ff;
  --soon-surface: #1c3959;
  --ambient: #172b4b;
  --card-edge: #18263c;
  --button-glint: #e2ffc2;
  background: radial-gradient(ellipse at 70% 0%, var(--ambient), transparent 52rem), var(--paper);
}

html.web-app[data-theme="light"] {
  --paper: #eef3fb;
  --card: #fff;
  --control: #e4ecf7;
  --line: #bccbe0;
  --ink: #152338;
  --muted: #4f5f76;
  --focus: #214e88;
  --ambient: #dbeaff;
  --card-edge: #edf4ff;
  --live-ink: #155840;
  --live-surface: #d8f2e5;
  --soon-ink: #214e88;
  --soon-surface: #dcecff;
}

.web-app .live-hero {
  border-radius: 26px;
  border-color: #587b6a;
  box-shadow: 0 14px 36px rgb(0 0 0 / 26%), inset 0 1px 0 rgb(255 255 255 / 18%);
}

.web-app .live-hero .hero-action,
.web-app .match-play,
.web-app .search-button {
  color: var(--accent-ink);
  background: linear-gradient(150deg, var(--button-glint), var(--lime));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 40%), 0 3px 11px rgb(0 0 0 / 18%);
}

.web-app .match-row {
  border-radius: 19px;
  background: linear-gradient(160deg, var(--card-edge), var(--card) 65%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), 0 4px 12px rgb(0 0 0 / 9%);
}

.web-app .match-row:focus-within {
  box-shadow: 0 0 0 2px var(--focus);
}

.web-app .match-title { overflow-wrap: anywhere; }
.web-app .match-meta { line-height: 1.35; }
.web-app .match-team { display: flex; align-items: center; gap: 6px; }
.web-app .match-team img { flex: none; }
.web-app .match-team img[hidden] { display: none; }

.web-app .app-tabs { border-radius: 27px; }
.web-app .app-tabs a { border-radius: 21px; }
.web-app .app-tabs a[aria-current="page"] {
  background: linear-gradient(160deg, color-mix(in srgb, var(--focus) 24%, var(--control)), var(--control));
}

@media (prefers-reduced-motion: no-preference) {
  .web-app main > section:not([hidden]) { animation: tribune-enter 220ms ease-out both; }
  .web-app :is(.hero-action,.match-play,.search-button,.app-actions button,.app-tabs a,.favorite-button) {
    transition: transform 160ms cubic-bezier(.2,.8,.2,1), background-color 160ms ease, box-shadow 160ms ease;
  }
  .web-app :is(.hero-action,.search-button,.app-actions button,.app-tabs a,.favorite-button):active,
  .web-app .match:active .match-play { transform: scale(.95); }
}
@keyframes tribune-enter {
  from { opacity: .65; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 350px) {
  .web-app .app-tabs a { font-size: .78rem; }
  .web-app .match { padding-inline-start: 9px; }
  .web-app .team-crest--portrait { width: 23px; height: 23px; }
}

.web-app .catalogue .controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(12px, 3vw, 20px);
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(150deg, var(--card-edge), var(--card));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%);
}

.web-app .catalogue .control-field:has(#query),
.web-app .catalogue .control-field:has(#sport),
.web-app .catalog-actions { grid-column: 1 / -1; }

.web-app .catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.web-app .catalog-actions button {
  flex: 1 1 125px;
  min-height: 44px;
}

.web-app #catalog-reset {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--control);
}

.web-app #catalog-reset:active { background: var(--card); }
.web-app .catalogue .pagination { margin: 0 0 14px; font-variant-numeric: tabular-nums; }

.web-app .team-score {
  margin-inline-start: auto;
  padding-inline-start: 8px;
  font-variant-numeric: tabular-nums;
  color: var(--live-ink);
}
.web-app .match-minute {
  color: var(--live-ink);
  font-variant-numeric: tabular-nums;
}
.web-app .match-action-label {
  display: block;
  max-width: 7ch;
  text-align: center;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.12;
}
.web-app .match-action { justify-items: center; }
