/* Tournament highlights page (Bryan 12-04 "wow factor, tasteful"): the header on the tournament banner, the top 3
   cards, the shared player's bar and the Link copied toast. Base tokens + rows: highlights.css. The one loud thing
   is the top 3: big rank numbers in lime on the video, everything else stays quiet. */
.hl-wide { max-width: 960px; }

/* Header: banner photo under a dark wash; no banner = brand gradient with faint court lines */
.hl-hero {
  position: relative; display: flex; min-height: 200px; border-radius: 18px; overflow: hidden; color: #fff;
  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 -60px center / auto 120% no-repeat,
    linear-gradient(135deg, #045571 0%, #0891b2 100%);
}
.hl-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl-hero-in {
  position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: space-between;
  gap: 36px; padding: 14px 16px 20px;
  background: linear-gradient(to top, rgba(3, 28, 38, .82) 0%, rgba(3, 28, 38, .30) 70%, rgba(3, 28, 38, .15) 100%);
}
.hl-hero .hl-top { margin: 0; }
.hl-hero .hl-btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); }
.hl-hero .hl-btn:hover { background: rgba(255, 255, 255, .24); }
.hl-hero h1 { color: #fff; font-size: 1.75rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); overflow-wrap: anywhere; }
.hl-hero .hl-sub { color: rgba(255, 255, 255, .88); margin-top: 6px; }

/* Top 3 */
.hl-sec-title { font-size: 1.5rem; letter-spacing: -0.01em; }
.hl-tops { display: grid; gap: 16px; }
.hl-tc {
  display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; background: var(--hl-surface);
  border: 1.5px solid var(--hl-line); box-shadow: 0 6px 22px rgba(4, 85, 113, .08);
}
.hl-tc.is-shared { border-color: var(--hl-cyan); box-shadow: 0 0 0 3px rgba(8, 145, 178, .25); }
.hl-tc .hl-stage { border-radius: 0; }
.hl-tc-cover { background: linear-gradient(150deg, rgba(3, 28, 38, .72) 0%, rgba(3, 28, 38, .25) 55%, rgba(3, 28, 38, .45) 100%); }
.hl-rank {
  position: absolute; top: 6px; left: 14px; font-size: 4rem; line-height: 1; font-weight: 900; letter-spacing: -0.04em;
  color: var(--hl-lime); text-shadow: 0 2px 14px rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums;
}
.hl-tc-1 .hl-rank { font-size: 5.25rem; }
.hl-tc-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px 16px 16px; min-width: 0; }
.hl-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 8px; padding: 0; }
.hl-tag {
  font-size: 0.75rem; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 999px;
  background: var(--hl-teal-soft); color: var(--hl-teal);
}
.hl-tag-round { background: var(--hl-lime); color: var(--hl-ink); }
.hl-tc-head { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
.hl-tc-1 .hl-tc-head { font-size: 1.375rem; }      /* under the 1.5rem Top 3 heading */
.hl-tc-text { margin: 6px 0 0; font-size: 0.95rem; line-height: 1.5; color: #34444c; }

/* Momentum: the winners' side above the middle line; a dot runs along it while the clip plays */
.hl-mo { position: relative; height: 80px; margin: 14px 0 2px; border-radius: 8px; background: #f6f9fa; }
.hl-mo-plot { position: absolute; top: 24px; right: 46px; bottom: 8px; left: 10px; }
/* the scale: the real chance at the top, middle (even) and bottom of the box (words.curve_top) */
.hl-mo-y { position: absolute; top: 24px; right: 8px; bottom: 8px; display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-end; font-size: 0.6875rem; line-height: 1; color: #5b6770;
  font-variant-numeric: tabular-nums; pointer-events: none; }
.hl-mo-y span:first-child { transform: translateY(-50%); }
.hl-mo-y span:last-child { transform: translateY(50%); }
.hl-mo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hl-mo-mid { stroke: #b7c3ca; stroke-width: 1; stroke-dasharray: 3 4; }
.hl-mo-line { fill: none; stroke: var(--hl-teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hl-mo-label {
  position: absolute; top: 4px; left: 8px; z-index: 1; font-size: 0.6875rem; font-weight: 700; color: var(--hl-teal);
  pointer-events: none;
}
.hl-mo-dot {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--hl-lime);
  border: 2px solid var(--hl-ink); pointer-events: none;
}
.hl-tc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.hl-tc-meta { display: grid; gap: 2px; min-width: 0; margin: 0; font-size: 0.85rem; line-height: 1.35; overflow-wrap: anywhere; }
.hl-tc-cat { font-weight: 800; }
.hl-tc-teams { color: var(--hl-muted); }
.hl-won { color: var(--hl-ink); font-weight: 700; }
.hl-share { flex: 0 0 auto; }

/* Shared category player: the rally's sentence and Share under the video */
.hl-player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px 0; }
.hl-player-text { margin: 0; min-width: 0; font-size: 0.925rem; line-height: 1.45; color: #34444c; }

.hl-toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 60; margin: 0; padding: 10px 16px; border-radius: 10px; background: var(--hl-ink); color: #fff;
  font-size: 0.9rem; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

@media (min-width: 640px) {
  .hl-hero { min-height: 240px; }
  .hl-hero-in { padding: 16px 22px 24px; }
  .hl-hero h1 { font-size: 2.25rem; }
}
@media (min-width: 720px) {
  .hl-tops { grid-template-columns: 1fr 1fr; }
  .hl-tc-wide { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .hl-tc-wide { display: grid; grid-template-columns: 1.55fr 1fr; }
  .hl-tc-wide .hl-stage { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .hl-tc-wide .hl-stage:not(:fullscreen) video { object-fit: cover; object-position: left center; }   /* fills the
     column, no black bands; the trim comes off the right so the stream's scoreboard (top left) stays whole */
  .hl-tc-wide .hl-tc-body { padding: 20px 22px; }
  .hl-toast { bottom: 28px; }
}
.hl-acts { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hl-tc-foot { flex-wrap: wrap; }
.hl-top-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hl-hero-pby { margin-top: 14px; }

/* 'View more highlights below' (Bryan 12-05): the band between the Top 3 and the categories; tap = scroll to the first one */
.hl-more {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; margin-top: 24px; padding: 10px 18px;
  border-radius: 14px; color: #fff; font-size: 1.125rem; font-weight: 800; line-height: 1.3; text-align: center; 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='.12' 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 180% no-repeat,
    linear-gradient(135deg, #045571 0%, #0891b2 100%);
  box-shadow: 0 4px 14px rgba(4, 85, 113, .18); transition: box-shadow .15s, transform .15s;
}
.hl-more:hover { box-shadow: 0 6px 20px rgba(4, 85, 113, .30); }
.hl-more:active { transform: translateY(1px); }
.hl-more:focus-visible { outline: 3px solid var(--hl-cyan); outline-offset: 2px; }
.hl-more-arrow { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--hl-lime); color: var(--hl-ink); }
.hl-more-arrow svg { width: 20px; height: 20px; }
@media (max-width: 479px) { .hl-more { gap: 10px; padding: 10px 14px; font-size: 1rem; } .hl-more-arrow { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: no-preference) {
  .hl-more-arrow { animation: hl-more-bob 1.8s ease-in-out infinite; }
  @keyframes hl-more-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
}
