/* Tournament highlights (Bryan 12-04): /highlights and /highlights/<id>. Raw CSS: non-lite pages only have the
   precompiled Tailwind subset in main.css. Brand teal #045571, active cyan #0891b2; one loud thing per screen. */
.hl {
  --hl-ink: #10262e;
  --hl-teal: #045571;
  --hl-teal-soft: #e3f1f5;
  --hl-cyan: #0891b2;
  --hl-lime: #c5f04a;
  --hl-muted: #64707a;
  --hl-line: #e3e8eb;
  --hl-surface: #ffffff;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 120px;
  color: var(--hl-ink);
}
.hl h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.hl-sub { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--hl-muted); font-size: 0.95rem; margin: 4px 0 0; }
.hl-head { margin-bottom: 18px; }

/* Buttons: every action looks like one */
.hl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  border: 1.5px solid var(--hl-teal); color: var(--hl-teal); background: var(--hl-surface);
  cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s;
}
.hl-btn:hover { background: var(--hl-teal-soft); }
.hl-btn-primary { background: var(--hl-teal); color: #fff; }
.hl-btn-primary:hover { background: #03465d; }
.hl-btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.875rem; }
.hl-btn:focus-visible, .hl-card:focus-visible, .hl-row:focus-visible, .hl-cat-head:focus-visible, .hl-play:focus-visible {
  outline: 3px solid var(--hl-cyan); outline-offset: 2px;
}

/* List page: one card per tournament, the whole card is the button */
.hl-list { display: grid; gap: 12px; }
.hl-card {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px;
  background: var(--hl-surface); border: 1.5px solid var(--hl-line); color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.hl-card:hover { border-color: var(--hl-cyan); box-shadow: 0 4px 14px rgba(4, 85, 113, .10); }
.hl-thumb {
  flex: 0 0 auto; width: 88px; height: 56px; border-radius: 10px; object-fit: cover;
  background: linear-gradient(135deg, #045571, #0891b2);
}
.hl-card-text { flex: 1 1 auto; min-width: 0; }
.hl-card-name { display: block; font-weight: 800; font-size: 1rem; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.hl-card-meta { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--hl-muted); font-size: 0.85rem; margin: 4px 0 0; }
.hl-go {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hl-teal); color: #fff;
}
.hl-empty { text-align: center; padding: 56px 16px; }
.hl-empty-icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--hl-cyan); }
.hl-empty h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }

/* Tournament page */
.hl-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hl-top-pager { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 479px) {
  .hl-top-word { display: none; }
  .hl-top-pager .hl-btn { width: 38px; padding: 0; }
  .hl-top .hl-btn-sm { min-height: 38px; }
}
.hl-sec { margin-top: 20px; }
.hl-sec-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 10px; }
.hl-slot:not(:empty) { margin-bottom: 12px; }

/* One open section per category; the bar is the button */
.hl-cat { margin-top: 14px; }
.hl-cat-head {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: 12px;
  border: 1.5px solid var(--hl-line); background: #f6f9fa; cursor: pointer; list-style: none;
  transition: border-color .15s, background-color .15s;
}
.hl-cat-head::-webkit-details-marker { display: none; }
.hl-cat-head:hover { border-color: var(--hl-cyan); background: var(--hl-teal-soft); }
.hl-cat-name { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.3;
  overflow-wrap: anywhere; }
.hl-cat-n { flex: 0 0 auto; color: var(--hl-muted); font-size: 0.8125rem; white-space: nowrap; }
.hl-cat-chev { flex: 0 0 auto; width: 20px; height: 20px; color: var(--hl-teal); transition: transform .15s; }
.hl-cat[open] > .hl-cat-head { margin-bottom: 10px; }
.hl-cat:not([open]) .hl-cat-chev { transform: rotate(-90deg); }

/* Previous / next tournament */
.hl-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.hl-pager-btn { justify-content: flex-start; min-height: 60px; padding: 8px 12px; min-width: 0; }
.hl-pager-next { justify-content: flex-end; text-align: right; grid-column: 2; }
.hl-pager-text { display: grid; min-width: 0; }
.hl-pager-dir { font-size: 0.8125rem; font-weight: 700; color: var(--hl-muted); }
.hl-pager-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 0.9rem; line-height: 1.3; overflow-wrap: anywhere; }
.hl-pager svg { flex: 0 0 auto; }
.hl-stage { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden;
  background: #0b1a20; }
.hl-stage video { width: 100%; height: 100%; display: block; background: #0b1a20; }
.hl-cover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 22, 28, .45); }
.hl [hidden] { display: none !important; }
.hl-play {
  width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--hl-lime); color: var(--hl-ink); box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.hl-play svg { width: 34px; height: 34px; margin-left: 4px; }
.hl-end { display: grid; gap: 10px; justify-items: center; padding: 16px; text-align: center; }
.hl-end .hl-btn { min-width: 220px; }
.hl-end .hl-btn:not(.hl-btn-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.hl-rows { display: grid; gap: 8px; }
.hl-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px;
  border-radius: 12px; border: 1.5px solid var(--hl-line); background: var(--hl-surface); color: inherit;
  cursor: pointer; font: inherit; transition: border-color .15s, background-color .15s;
}
.hl-row:hover { border-color: var(--hl-cyan); }
.hl-row.is-on { border-color: var(--hl-teal); background: var(--hl-teal-soft); }
.hl-row-n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 0.875rem; background: var(--hl-teal-soft); color: var(--hl-teal);
}
.hl-row.is-on .hl-row-n { background: var(--hl-teal); color: #fff; }
.hl-row-text { flex: 1 1 auto; min-width: 0; }
.hl-row-head { display: block; font-weight: 800; font-size: 1rem; line-height: 1.3; }
.hl-row-meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 2px; color: var(--hl-muted); font-size: 0.85rem;
  line-height: 1.35; overflow-wrap: anywhere; }
.hl-row-round { font-weight: 700; color: var(--hl-teal); }
@media (min-width: 640px) {
  .hl { padding-top: 28px; }
  .hl h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hl * { transition: none !important; }
}

/* The locked player's bar (js/highlights_lock.js, Bryan 12-04): only the rally can be played; shown after the first
   play, fades while playing with no pointer movement */
.hl-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: none; align-items: center; gap: 2px;
  padding: 22px 6px 4px; color: #fff; background: linear-gradient(to top, rgba(4, 20, 26, .82), rgba(4, 20, 26, 0));
  transition: opacity .2s; }
.hl-stage.has-bar .hl-bar { display: flex; }
.hl-stage.is-idle .hl-bar { opacity: 0; pointer-events: none; }
.hl-stage.is-idle { cursor: none; }
.hl-bar-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0;
  border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.hl-bar-btn:hover { background: rgba(255, 255, 255, .14); }
.hl-bar-btn svg { width: 22px; height: 22px; }
.hl-bar-track { position: relative; flex: 1 1 auto; min-width: 60px; height: 44px; margin: 0 8px; cursor: pointer;
  touch-action: none; }
.hl-bar-track::before, .hl-bar-fill { content: ""; position: absolute; left: 0; top: 50%; height: 5px; margin-top: -2.5px;
  border-radius: 3px; }
.hl-bar-track::before { right: 0; background: rgba(255, 255, 255, .32); }
.hl-bar-fill { width: 0; background: var(--hl-lime); }
.hl-bar-knob { position: absolute; left: 0; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.hl-bar-time { flex: none; padding: 0 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hl-bar-btn:focus-visible, .hl-bar-track:focus-visible { outline: 3px solid var(--hl-lime); outline-offset: -3px; }
.hl-stage:fullscreen { border-radius: 0; aspect-ratio: auto; background: #000; }
.hl-stage:fullscreen video { height: 100%; object-fit: contain; background: #000; }
@media (max-width: 360px) { .hl-bar-time { display: none; } }
@media (prefers-reduced-motion: reduce) { .hl-bar { transition: none; } }
