/* Highlights landing page (Bryan 12-04 "something like a landing page"). The one loud thing is the hero: a deep
   court-teal stage with the newest highlights ready to play and lime for play. The rest stays quiet: three steps,
   the YATA Vision band in YATA's own near-black, the latest tournaments as tiles, older ones as rows by month.
   Base tokens, buttons, rows, the play button and the locked bar: highlights.css. */
.hlx { max-width: 1120px; padding-top: 16px; }
.hlx .hl-sec-title { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 14px; text-wrap: balance; }
.hlx section + section { margin-top: 56px; }

/* Hero */
.hlx-hero {
  --hlx-deep: #03303f;
  position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: 28px 28px 30px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 444 204' fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='1.5'%3E%3Crect x='2' y='2' width='440' height='200'/%3E%3Cpath d='M222 0v204M152 2v200M292 2v200M2 102h150M292 102h150'/%3E%3C/svg%3E") center / 130% auto no-repeat,
    radial-gradient(120% 90% at 85% 0%, #0a7391 0%, rgba(10, 115, 145, 0) 60%),
    var(--hlx-deep);
}
.hlx-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 24px; }
.hlx-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.025em; }
.hlx-lede { grid-column: 1; max-width: 56ch; margin: 0; color: rgba(255, 255, 255, .86); font-size: 1.05rem; line-height: 1.5; }
.hlx-intro .pby { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.hlx-show { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 26px; align-items: start; }
.hlx-player { min-width: 0; }
.hlx-stage { box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.hlx-now { padding-top: 14px; }
.hlx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.hlx-tags:empty { display: none; }
.hlx-tags li { padding: 3px 10px; border-radius: 999px; background: rgba(197, 240, 74, .16); color: var(--hl-lime);
  font-size: 0.8125rem; font-weight: 700; }
.hlx-head { margin: 0; color: #fff; font-size: 1.375rem; line-height: 1.25; font-weight: 800; text-wrap: balance; }
.hlx-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hlx-text { max-width: 62ch; margin: 6px 0 12px; color: rgba(255, 255, 255, .82); font-size: 0.975rem; line-height: 1.5; }
.hlx-hero .hl-btn:not(.hl-btn-primary) { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.hlx-hero .hl-btn:not(.hl-btn-primary):hover { background: rgba(255, 255, 255, .22); }
.hlx-hero .hl-btn:focus-visible, .hlx-row:focus-visible { outline: 3px solid var(--hl-lime); outline-offset: 2px; }

/* Beside the video: which tournament, its top highlights (switch), Watch all */
.hlx-from { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14); }
.hlx-from-name { margin: 0; color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.hlx-from-meta { display: flex; flex-wrap: wrap; gap: 0 12px; margin: -6px 0 2px; color: rgba(255, 255, 255, .7); font-size: 0.85rem; }
.hlx-rows { display: grid; gap: 8px; }
.hlx-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .18); background: rgba(3, 28, 38, .45); color: #fff; font: inherit; text-align: left;
  cursor: pointer; transition: border-color .15s, background-color .15s; }
.hlx-row:hover { border-color: rgba(255, 255, 255, .5); }
.hlx-row[aria-current="true"] { border-color: var(--hl-lime); background: rgba(197, 240, 74, .1); }
.hlx-row-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); font-size: 0.875rem; font-weight: 800; }
.hlx-row[aria-current="true"] .hlx-row-n { background: var(--hl-lime); color: var(--hl-ink); }
.hlx-row-text { display: grid; min-width: 0; }
.hlx-row-head { font-weight: 700; font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; }
.hlx-row-cat { color: rgba(255, 255, 255, .68); font-size: 0.8125rem; line-height: 1.35; overflow-wrap: anywhere; }
.hlx-hero .hl-btn.hlx-all { width: 100%; background: var(--hl-lime); color: var(--hl-ink); border-color: var(--hl-lime); }
.hlx-hero .hl-btn.hlx-all:hover { background: #d4f574; }

/* How the highlights are made: three steps joined by a ball's flight */
.hlx-steps-wrap { position: relative; }
.hlx-flight { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 40px; color: #9fb7c0; }
.hlx-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0;
  padding: 0; list-style: none; }
.hlx-step { text-align: center; padding: 0 8px; }
.hlx-ball { display: grid; place-items: center; width: 52px; height: 52px; margin: 6px auto 14px; border-radius: 50%;
  background: var(--hl-lime); color: var(--hl-ink); font-size: 1.2rem; font-weight: 800; box-shadow: 0 0 0 6px #fff; }
.hlx-step h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.hlx-step p { max-width: 34ch; margin: 0 auto; color: var(--hl-muted); font-size: 0.95rem; line-height: 1.5; }

.hlx-yata { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-top: 32px; padding: 22px 26px;
  border-radius: 18px; background: #0a0a0b; color: #fff; }
.hlx-yata-mark { flex: none; width: 104px; height: auto; }
.hlx-yata p { flex: 1 1 260px; min-width: 0; margin: 0; color: #c9ccd1; font-size: 1rem; line-height: 1.5; }
.hlx-yata-btn { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1.5px solid #fff; color: #fff; font-weight: 700; text-decoration: none; transition: background-color .15s, color .15s; }
.hlx-yata-btn:hover { background: #fff; color: #0a0a0b; }
.hlx-yata-btn:focus-visible { outline: 3px solid #a8c5e2; outline-offset: 2px; }

/* Latest tournaments: the newest is the big tile; the tile is the button */
.hlx-tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
.hlx-tiles-1 { grid-template-columns: minmax(0, 1fr); }
.hlx-tiles-3 .hlx-tile-big { grid-row: span 2; }
.hlx-tile { position: relative; display: flex; overflow: hidden; border-radius: 16px; color: #fff; text-decoration: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 444 204' fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='2'%3E%3Crect x='2' y='2' width='440' height='200'/%3E%3Cpath d='M222 0v204M152 2v200M292 2v200M2 102h150M292 102h150'/%3E%3C/svg%3E") right -40px center / auto 110% no-repeat,
    linear-gradient(135deg, #045571 0%, #0891b2 100%);
  transition: box-shadow .15s, transform .15s; }
.hlx-tile:hover { box-shadow: 0 10px 28px rgba(4, 85, 113, .28); transform: translateY(-2px); }
.hlx-tile:focus-visible { outline: 3px solid var(--hl-cyan); outline-offset: 3px; }
.hlx-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hlx-tile-in { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-width: 0; padding: 16px 18px; background: linear-gradient(to top, rgba(3, 28, 38, .9) 0%, rgba(3, 28, 38, .35) 65%, rgba(3, 28, 38, .1) 100%); }
.hlx-tile-top { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 2px; color: var(--hl-lime); font-size: 0.875rem;
  font-weight: 700; line-height: 1.35; }
.hlx-tile-top svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.hlx-tile-name { font-size: 1.1rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; }
.hlx-tile-big .hlx-tile-name { font-size: 1.5rem; }
.hlx-tile-meta { display: flex; flex-wrap: wrap; gap: 0 12px; color: rgba(255, 255, 255, .8); font-size: 0.85rem; }

/* Older tournaments, by month */
.hlx-month { margin: 18px 0 8px; color: var(--hl-muted); font-size: 0.95rem; font-weight: 700; }
.hlx-month:first-of-type { margin-top: 0; }
.hlx-older .hl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 899px) {
  .hlx-show { grid-template-columns: minmax(0, 1fr); }
  .hlx-tiles-3 .hlx-tile-big { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 639px) {
  .hlx { padding-top: 10px; }
  .hlx-hero { margin: 0; padding: 20px 14px 18px; border-radius: 18px; }      /* the page's 16px edge */
  .hlx-intro { grid-template-columns: minmax(0, 1fr); }
  .hlx-intro .pby { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; }
  .hlx-show { margin-top: 18px; gap: 18px; }
  .hlx-stage { width: calc(100% + 28px); max-width: none; margin: 0 -14px; border-radius: 0; }
  .hlx-head { font-size: 1.2rem; }
  .hlx-flight { display: none; }
  .hlx-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hlx-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; text-align: left; padding: 0; }
  .hlx-ball { grid-row: span 2; width: 44px; height: 44px; margin: 0; font-size: 1.05rem; box-shadow: none; }
  .hlx-step p { margin: 0; }
  .hlx-yata { padding: 20px 18px; }
  .hlx-tiles { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 170px; }
  .hlx-tiles-3 .hlx-tile-big { grid-column: auto; }
  .hlx-tile-big .hlx-tile-name { font-size: 1.25rem; }
  .hlx-older .hl-list { grid-template-columns: minmax(0, 1fr); }
  .hlx section + section { margin-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { .hlx-tile, .hlx-row { transition: none; } .hlx-tile:hover { transform: none; } }
