/* Yad Sport public website. Dark, with the channel's orange-to-red. */
@font-face {
  font-family: YadSans;
  src: url('fonts/NotoSansArabic.ttf');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: YadSport;
  src: url('fonts/BarlowCondensed-Bold.ttf');
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --t0: 1.75s;
  --bg: #0a0d14;
  --panel: #11151f;
  --panel-2: #161b27;
  --line: #242b3b;
  --line-2: #2f3749;
  --text: #e8ecf4;
  --muted: #9aa3b8;
  --orange: #ff6a13;
  --orange-2: #ff8a3d;
  --gold: #ffab3f;
  --red: #ff2a48;
  --ok: #2fd27a;
  --ink: #1a0d04;
  --hot: linear-gradient(118deg, #ffa01f, #ff5a2a 52%, #ff2a48);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 YadSans,
    system-ui,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.num {
  font-family: YadSport, sans-serif;
  font-style: italic;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2));
  background: var(--panel);
  border-bottom: 3px solid var(--orange);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
#nav {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
#nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: #c9d0de;
  white-space: nowrap;
}
#nav a:hover {
  background: var(--panel-2);
}
#nav a.on {
  color: var(--orange-2);
  font-weight: 700;
}
.lang {
  flex: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 4px 12px;
}
.lang:hover {
  border-color: var(--orange);
}

main {
  flex: 1;
  width: 100%;
  max-width: 1212px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  outline: none;
}
.wait {
  color: var(--muted);
  text-align: center;
  padding: 60px 0;
}
h1 {
  font-size: 26px;
  margin: 4px 0 14px;
}
h2 {
  font-size: 20px;
  margin: 22px 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
h2 small,
h1 small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
h2 a.more {
  margin-inline-start: auto;
  font-size: 14px;
  color: var(--orange-2);
  font-weight: 600;
}
.empty {
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

/* Hero: the match on air, or the next one on the channel */
.hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 14px;
  background: var(--hot);
  color: #fff;
  border-radius: 16px;
  padding: 18px 20px;
}
.hero .tag {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.badge {
  background: #fff;
  color: #e0122f;
  font-weight: 900;
  border-radius: 7px;
  padding: 1px 10px;
}
.badge.soft {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}
.hero .side {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(17px, 2.6vw, 28px);
  font-weight: 900;
  min-width: 0;
}
.hero .side.away {
  flex-direction: row-reverse;
}
.hero .side img {
  width: clamp(48px, 8vw, 80px);
  height: clamp(48px, 8vw, 80px);
  object-fit: contain;
  flex: none;
}
.hero .mid {
  text-align: center;
  white-space: nowrap;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1;
}
.hero .mid.time {
  font-size: clamp(26px, 5vw, 48px);
}
.hero .cta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.btn {
  display: inline-block;
  background: #0c1018;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 18px;
  border: 0;
}
.btn.line {
  background: none;
  border: 1px solid var(--line-2);
}

/* Filters */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.chips button {
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 3px 12px;
  color: var(--muted);
}
.chips button.on {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}
.chips .gap {
  flex: 1;
}

/* A fixture row */
.day {
  color: var(--gold);
  font-weight: 700;
  margin: 16px 0 8px;
}
.fx {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 8px;
}
a.fx:hover {
  border-color: var(--orange);
}
.fx .tm {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 600;
}
.fx .tm.away {
  flex-direction: row-reverse;
}
.fx .tm span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fx .tm.win span {
  color: var(--gold);
}
.crest {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: none;
}
.crest.none {
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
}
.fx .mid {
  min-width: 86px;
  text-align: center;
  font-size: 30px;
  line-height: 1.1;
  white-space: nowrap;
}
.fx .mid.time {
  font:
    700 18px YadSans,
    sans-serif;
  color: var(--gold);
}
.fx .mid.note {
  font:
    600 13px YadSans,
    sans-serif;
  color: var(--muted);
}
.fx .meta {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.fx .meta b {
  color: var(--orange-2);
}
.fx .meta .live {
  color: var(--red);
  font-weight: 900;
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
}
@media (max-width: 860px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.one {
  max-width: 720px;
  margin-inline: auto;
}

/* Tables */
.table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.table table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 4px;
}
.table td {
  padding: 6px 4px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.table td.club,
.table th.club {
  text-align: start;
  padding-inline-start: 8px;
}
.table td.club a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.table td.club .crest {
  width: 26px;
  height: 26px;
}
.table td.pts {
  font-weight: 900;
  color: var(--gold);
}
@media (max-width: 520px) {
  .table .wide {
    display: none;
  }
}

/* Clubs */
.clubs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.clubs a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  font-size: 14px;
}
.clubs a:hover {
  border-color: var(--orange);
}
.clubs img,
.clubs .crest.none {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 6px;
  object-fit: contain;
}
.clubhead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.clubhead img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}
.clubhead h1 {
  margin: 0;
}

/* Match page */
.box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.box h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--gold);
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}
.kv:first-of-type {
  border-top: 0;
}
.kv span:first-child {
  color: var(--muted);
}
.stat {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 4px 10px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.stat:first-of-type {
  border-top: 0;
}
.stat b {
  font-size: 22px;
}
.stat i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background: var(--line-2);
  overflow: hidden;
  direction: ltr;
}
.stat i::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--orange);
}
[dir='rtl'] .stat i {
  direction: rtl;
}

.foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}
@media (max-width: 620px) {
  .top {
    gap: 8px;
  }
  .fx .mid {
    min-width: 70px;
    font-size: 26px;
  }
  .crest {
    width: 30px;
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Phone: the menu on its own row, and the hero's clubs stacked under their logos. */
@media (max-width: 620px) {
  .top {
    flex-wrap: wrap;
    padding-bottom: 4px;
  }
  .brand {
    flex: 1;
  }
  .brand span {
    display: inline;
    font-size: 17px;
  }
  #nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: space-between;
  }
  #nav a {
    padding: 4px 6px;
    font-size: 15px;
  }
  .hero {
    padding: 14px 10px;
  }
  .hero .side,
  .hero .side.away {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 16px;
  }
}

/* ---------- Home: the channel's front page ---------- */
body {
  overflow-x: clip;
}
.bleed {
  width: 100vw;
  margin-inline-start: calc(50% - 50vw);
}
.btn.hot {
  background: var(--hot);
  color: #fff;
  padding: 11px 24px;
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(255, 90, 42, 0.28);
}
.btn.red {
  background: #e0122f;
  color: #fff;
  padding: 10px 22px;
}
.btn.hot:hover,
.btn.red:hover {
  filter: brightness(1.1);
}
.hh {
  position: relative;
  overflow: hidden;
  margin-top: -18px;
  min-height: min(64vh, 520px);
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(900px 420px at 50% 110%, rgba(255, 106, 19, 0.2), transparent 70%),
    linear-gradient(180deg, #0d1220, var(--bg));
}
.hh.photo {
  background:
    linear-gradient(180deg, rgba(10, 13, 20, 0.55), rgba(10, 13, 20, 0.78) 60%, var(--bg)),
    var(--photo) center / cover no-repeat;
}
.hh .st {
  position: absolute;
  top: -20%;
  height: 140%;
  width: 90px;
  background: var(--hot);
  transform: skewX(-18deg);
  opacity: 0.9;
  animation: stripe 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--t0) both;
}
.hh .s1 {
  left: 6%;
}
.hh .s2 {
  left: calc(6% + 112px);
  width: 26px;
  opacity: 0.55;
  animation-delay: calc(var(--t0) + 0.12s);
}
.hh .s3 {
  right: 7%;
  width: 46px;
  opacity: 0.4;
  animation-delay: calc(var(--t0) + 0.22s);
}
/* The court behind the title: faint and still. */
.hcourt {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 78%;
  opacity: 0.2;
  mask-image: linear-gradient(transparent, #000 40%);
  -webkit-mask-image: linear-gradient(transparent, #000 40%);
}
.hin {
  position: relative;
  padding: 34px 16px 40px;
  max-width: 820px;
}
.hlogo {
  width: clamp(96px, 15vw, 150px);
  height: clamp(96px, 15vw, 150px);
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(255, 106, 19, 0.45));
  animation:
    pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) var(--t0) both,
    glow 3.6s ease-in-out calc(var(--t0) + 0.8s) infinite;
}
.hh h1 {
  font-size: clamp(32px, 6.4vw, 66px);
  line-height: 1.25;
  font-weight: 900;
  margin: 8px 0 6px;
}
.hh h1 span {
  display: inline-block;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--t0) + 0.25s + var(--i) * 0.12s);
}
.hh h1 span:last-child {
  background: var(--hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hh p {
  color: #c9d0de;
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 0 0 20px;
  animation: rise 0.6s calc(var(--t0) + 0.7s) both;
}
.hcta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 22px;
  animation: rise 0.6s calc(var(--t0) + 0.85s) both;
}
.under {
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.under:hover {
  color: var(--orange-2);
}

/* The next match on the channel, with the time left */
.next {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: -26px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-inline-start: 5px solid var(--orange);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.next.live {
  border-inline-start-color: var(--red);
}
.next small {
  display: block;
  color: var(--orange-2);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}
.next.live small {
  color: var(--red);
}
.next .who a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: clamp(16px, 2.2vw, 22px);
}
.next .who a i {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
}
.next .sc {
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
}
.crest.big {
  width: 48px;
  height: 48px;
}
.next .when {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.cd {
  display: flex;
  gap: 8px;
  direction: ltr;
}
.cd div {
  min-width: 62px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 6px 4px 4px;
  text-align: center;
}
.cd b {
  display: block;
  font-size: 32px;
  line-height: 1;
  color: #fff;
}
.cd span {
  font-size: 12px;
  color: var(--muted);
}
.pulse {
  display: inline-block;
  animation: pulse 1.2s ease-in-out infinite;
}

/* The channel's latest videos */
.vids {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.vids.all {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.vid {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  text-align: start;
  min-width: 0;
}
.vids:not(.all) .vid.big {
  grid-column: span 2;
  grid-row: span 2;
}
.vid .th {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.vid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.vid:hover img {
  transform: scale(1.06);
}
.vid:hover .th {
  border-color: var(--orange);
}
.vid .th i {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(10, 13, 20, 0.72);
  border: 2px solid #fff;
  transition:
    background 0.25s,
    transform 0.25s;
}
.vid .th i::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  margin: -9px 0 0 -5px;
  border: 9px solid transparent;
  border-left: 15px solid #fff;
  border-right: 0;
}
.vid:hover .th i {
  background: var(--orange);
  transform: scale(1.1);
}
.vid b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}
.vid.big b {
  font-size: 19px;
}
.vid small {
  color: var(--muted);
  font-size: 13px;
}
#player {
  width: min(96vw, 1080px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #000;
  overflow: visible;
}
#player::backdrop {
  background: rgba(4, 6, 10, 0.86);
}
#player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
}
#player .x {
  position: absolute;
  top: -44px;
  inset-inline-end: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: none;
  color: #fff;
}

/* The four age groups */
.gates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gate {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 14px;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.gate i {
  position: absolute;
  top: -30%;
  inset-inline-end: -18px;
  width: 54px;
  height: 160%;
  background: var(--hot);
  transform: skewX(-18deg);
  opacity: 0.16;
  transition: opacity 0.25s;
}
.gate:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}
.gate:hover i {
  opacity: 0.7;
}
.gate b {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
}
.gate span {
  color: var(--muted);
  font-size: 14px;
}
.gate em {
  position: relative;
  font-style: normal;
  color: var(--orange-2);
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
}

/* About the channel */
.about {
  margin-top: 34px;
  background: linear-gradient(180deg, var(--panel), var(--bg));
  border-top: 1px solid var(--line);
}
.about .inner {
  max-width: 1212px;
  margin: 0 auto;
  padding: 8px 16px 26px;
}
.about p {
  max-width: 760px;
  color: #c9d0de;
  font-size: 17px;
  margin: 0 0 22px;
}
.about p.fine {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 20px;
}
.tline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
}
.tline::before {
  content: '';
  position: absolute;
  top: 5px;
  inset-inline: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--hot);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 1.3s cubic-bezier(0.3, 0.7, 0.2, 1) 0.15s;
}
[dir='rtl'] .tline::before {
  transform-origin: right;
}
[dir='ltr'] .tline::before {
  transform-origin: left;
}
.tline.in::before {
  transform: scaleX(1);
}
.yr {
  position: relative;
}
.yr::before {
  content: '';
  position: absolute;
  top: -23px;
  inset-inline-start: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--orange);
}
.yr.now::before {
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 106, 19, 0.2);
}
.yr small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.yr.now small {
  color: var(--orange-2);
  font-weight: 700;
}
.yr .num {
  display: block;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.05;
}
.yr span {
  color: #c9d0de;
  font-size: 14px;
}
.tot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.tot .num {
  font-size: 38px;
  line-height: 1;
  color: var(--gold);
  margin-inline-end: 8px;
}
.tot div {
  display: flex;
  align-items: baseline;
  color: var(--muted);
}
.tot .gap {
  flex: 1;
}

/* The clubs' logos, passing by */
.marq {
  overflow: hidden;
  direction: ltr;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: -40px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* The strip runs left to right in both languages; in Arabic its outer margin is the right one. */
[dir='rtl'] .marq {
  margin-inline-start: 0;
  margin-right: calc(50% - 50vw);
}
.marq .run {
  display: flex;
  width: max-content;
  animation: marq 48s linear infinite;
}
.marq:hover .run,
.marq:focus-within .run {
  animation-play-state: paused;
}
.marq a {
  padding: 0 20px;
  opacity: 0.8;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.marq a:hover {
  opacity: 1;
  transform: scale(1.15);
}
.marq .crest {
  width: 50px;
  height: 50px;
  display: block;
}

/* Things rise into place as they are reached */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.rv.in {
  opacity: 1;
  transform: none;
}
.gate.rv.in:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}
@keyframes stripe {
  from {
    transform: translateY(-110%) skewX(-18deg);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes glow {
  50% {
    filter: drop-shadow(0 0 40px rgba(255, 106, 19, 0.75));
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
@keyframes marq {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 860px) {
  .vids {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hh .st {
    width: 46px;
  }
  .hh .s1 {
    left: -14px;
  }
  .hh .s2 {
    left: 46px;
    width: 14px;
  }
  .hh .s3 {
    right: -10px;
    width: 26px;
  }
}
@media (max-width: 620px) {
  .hh {
    min-height: 0;
  }
  .next {
    justify-content: center;
    text-align: center;
  }
  .next .who a {
    justify-content: center;
  }
  .cd div {
    min-width: 56px;
  }
  .gate b {
    font-size: 22px;
  }
  .tline {
    gap: 8px;
  }
  .yr span {
    font-size: 12px;
  }
  .tot {
    gap: 10px 20px;
  }
  .tot .num {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hh *,
  .pulse,
  .marq .run {
    animation: none !important;
  }
  .marq {
    overflow-x: auto;
  }
  .rv,
  .tline::before,
  .vid img,
  .gate {
    transition: none;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
  .tline::before {
    transform: scaleX(1);
  }
}
[dir='rtl'] .yr .num {
  text-align: right;
}
.hlogo {
  width: clamp(120px, 20vw, 190px);
  height: clamp(120px, 20vw, 190px);
}

/* ---------- More motion ---------- */
.no-intro {
  --t0: 0s;
}
/* The opening: the logo appears, then two curtains part. */
#intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  animation: gone 0s 2.1s forwards;
}
.no-intro #intro {
  display: none;
}
#intro::before,
#intro::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: #070a10;
  animation: curtain 0.65s cubic-bezier(0.7, 0, 0.3, 1) 1.35s forwards;
}
#intro::before {
  left: 0;
  border-right: 4px solid transparent;
  --edge: var(--orange);
  --to: -102%;
}
#intro::after {
  right: 0;
  border-left: 4px solid transparent;
  --edge: var(--red);
  --to: 102%;
}
#intro img {
  position: relative;
  z-index: 1;
  width: min(46vw, 230px);
  height: min(46vw, 230px);
  object-fit: contain;
  animation:
    introLogo 1s cubic-bezier(0.2, 0.8, 0.2, 1) both,
    introOut 0.4s ease-in 1.25s forwards;
}
/* An orange sweep between pages */
#wipe {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}
#wipe::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55vw;
  background: var(--hot);
  transform: translateX(-90vw) skewX(-18deg);
  opacity: 0;
}
#wipe.go::before {
  animation: wipe 0.6s cubic-bezier(0.6, 0, 0.3, 1);
}
#page.go {
  animation: rise 0.5s 0.12s both;
}

/* The countdown's digits turn over */
.cd div {
  perspective: 300px;
}
.cd b.tick {
  animation: flip 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: 50% 100%;
}
/* On air: a light runs around the card and the score beats */
@property --turn {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.next.live::before {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: 16px;
  background: conic-gradient(from var(--turn), transparent 0 62%, #ffa01f 78%, var(--red) 92%, transparent);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  animation: turn 3.2s linear infinite;
  pointer-events: none;
}
.next.live .sc {
  animation: beat 1.8s ease-in-out infinite;
}

/* Videos: a light passes over the picture, and the big one leans to the mouse */
.vid .th::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
}
.vid:hover .th::after {
  animation: shine 0.8s ease-out;
}
.vid.big .th {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out;
}

/* Age groups: the stripe fills the card */
.gate i {
  transition:
    opacity 0.3s,
    width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gate:hover i {
  width: 160%;
  opacity: 0.92;
}
.gate b,
.gate span,
.gate em {
  position: relative;
  transition:
    transform 0.3s,
    color 0.3s;
}
.gate b {
  transform-origin: inline-start;
}
[dir='rtl'] .gate b {
  transform-origin: right;
}
[dir='ltr'] .gate b {
  transform-origin: left;
}
.gate:hover b {
  transform: scale(1.12);
}
.gate:hover span,
.gate:hover em {
  color: #fff;
}
.gate u {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s;
}
[dir='rtl'] .gate:hover u {
  transform: translateX(-8px);
}
[dir='ltr'] .gate:hover u {
  transform: translateX(8px);
}

/* Match rows come in from the two sides */
.fx.rv.from-a {
  transform: translateX(46px);
}
.fx.rv.from-b {
  transform: translateX(-46px);
}
.fx.rv.in {
  transform: none;
}

/* Section titles: a line grows under them and a stripe passes */
h2.rv {
  position: relative;
  overflow: hidden;
  padding-bottom: 7px;
  background: var(--hot) no-repeat left bottom / 0 3px;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-size 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
}
[dir='rtl'] h2.rv {
  background-position: right bottom;
}
h2.rv.in {
  background-size: 72px 3px;
}
h2.rv::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70px;
  background: var(--hot);
  opacity: 0;
  transform: translateX(-120px) skewX(-18deg);
  pointer-events: none;
}
#page:not(.still) h2.rv.in::after {
  animation: pass 0.9s ease-out 0.1s;
}

/* The seasons: each appears as the line reaches it, with a bar for its matches */
.tline .yr {
  padding-inline-start: 22px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  transition-delay: calc(0.25s + var(--d) * 0.4s);
}
.tline.in .yr {
  opacity: 1;
  transform: none;
}
.yr .bar {
  position: absolute;
  top: -6px;
  inset-inline-start: 5px;
  width: 5px;
  height: calc(var(--h) * 100% + 6px);
  border-radius: 0 0 3px 3px;
  background: linear-gradient(var(--orange), rgba(255, 42, 72, 0.25));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(0.45s + var(--d) * 0.4s);
}
.tline.in .bar {
  transform: scaleY(1);
}
.yr.now::before {
  animation: ring 2.2s ease-out infinite;
}

#page.still .rv,
#page.still .yr,
#page.still .bar,
#page.still .tline::before {
  transition: none;
}
@keyframes gone {
  to {
    visibility: hidden;
  }
}
@keyframes curtain {
  8% {
    border-color: var(--edge);
  }
  to {
    border-color: var(--edge);
    transform: translateX(var(--to));
  }
}
@keyframes introLogo {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: scale(0.8);
    filter: drop-shadow(0 0 0 rgba(255, 106, 19, 0));
  }
  to {
    clip-path: inset(0);
    filter: drop-shadow(0 0 44px rgba(255, 106, 19, 0.8));
  }
}
@keyframes introOut {
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes wipe {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateX(150vw) skewX(-18deg);
  }
}
@keyframes flip {
  from {
    transform: rotateX(-88deg);
    opacity: 0.2;
  }
}
@keyframes turn {
  to {
    --turn: 360deg;
  }
}
@keyframes beat {
  50% {
    transform: scale(1.09);
  }
}
@keyframes shine {
  to {
    left: 130%;
  }
}
@keyframes pass {
  10% {
    opacity: 0.4;
  }
  to {
    opacity: 0;
    transform: translateX(110vw) skewX(-18deg);
  }
}
@keyframes ring {
  from {
    box-shadow: 0 0 0 0 rgba(255, 106, 19, 0.55);
  }
  to {
    box-shadow: 0 0 0 14px rgba(255, 106, 19, 0);
  }
}
/* On a phone the match rows rise instead of sliding in from the sides. */
@media (max-width: 620px) {
  .fx.rv.from-a,
  .fx.rv.from-b {
    transform: translateY(18px);
  }
  .fx.rv.in {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #wipe,
  .next.live::before {
    display: none;
  }
  .next.live .sc,
  .cd b.tick,
  .yr.now::before,
  h2.rv::after,
  .vid .th::after,
  #page.go {
    animation: none !important;
  }
  .tline .yr,
  .yr .bar,
  .fx.rv,
  h2.rv {
    transition: none;
    opacity: 1;
    transform: none;
  }
  h2.rv {
    background-size: 72px 3px;
  }
}

/* The seasons archive, and a match's recording */
.lists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.lists a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}
.lists a:hover {
  border-color: var(--orange);
}
.lists b {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}
.vid.wide {
  width: 100%;
}
