/* THE COLD FRONT — game highlights page
   (v1.13.0 feature frame; v1.15.0 poly bars; v1.32.0 video-card glow-up) */

/* Featured player: cinematic 16:9 frame with frost border + orange glow. */
.hl-feature {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 236, 246, 0.16);
  background: #040a14;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 90, 31, 0.08);
}
.hl-feature .hl-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.hl-feature iframe,
.hl-feature .hl-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hl-feature .hl-poster {
  cursor: pointer;
  background-size: cover;
  background-position: center;
}
.hl-feature .hl-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0) 40%, rgba(4, 10, 20, 0.72) 100%);
}
.hl-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 90, 31, 0.92);
  border: 3px solid rgba(226, 236, 246, 0.9);
  box-shadow: 0 0 34px rgba(255, 90, 31, 0.55);
  z-index: 2;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hl-poster:hover .hl-play { transform: translate(-50%, -50%) scale(1.07); }
.hl-play::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 26px solid #fff;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}
.hl-now {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(226, 236, 246, 0.1);
  background: rgba(6, 13, 24, 0.72);
}
.hl-now h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.4px;
  flex: 1 1 280px;
}
.hl-now .meta { font-size: 12.5px; }

/* Filter chips */
.hl-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  appearance: none;
  border: 1px solid rgba(226, 236, 246, 0.22);
  background: rgba(10, 21, 36, 0.7);
  color: #e2ecf6;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip[aria-pressed="true"] {
  border-color: #ff5a1f;
  background: rgba(255, 90, 31, 0.16);
  box-shadow: 0 0 14px rgba(255, 90, 31, 0.25);
}

/* Video card grid */
.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.hl-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 236, 246, 0.12);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
    rgba(10, 21, 36, 0.72);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), border-color 0.22s ease, box-shadow 0.22s ease;
  text-align: left;
  padding: 0;
  color: inherit;
  font: inherit;
  width: 100%;
}
/* identity thread: the orange leading edge across the top, shared with the
   rest of the front's card family — reveals under attention. */
.hl-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-hot), var(--orange) 55%, rgba(159, 184, 204, 0.35) 85%, transparent);
  box-shadow: 0 0 14px rgba(255, 90, 31, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.hl-card:hover, .hl-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px -14px rgba(0, 0, 0, 0.7), 0 0 24px -6px rgba(209, 58, 2, 0.35);
  outline: none;
}
.hl-card:hover::before,
.hl-card:focus-visible::before,
.hl-card.is-active::before { opacity: 1; }
.hl-card.is-active { border-color: #ff5a1f; box-shadow: 0 0 0 1px #ff5a1f, 0 10px 30px rgba(0, 0, 0, 0.5); }
.hl-thumb { position: relative; aspect-ratio: 16 / 9; background: #040a14; overflow: hidden; }
.hl-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.001);
  transition: transform 0.35s var(--ease-out), filter 0.35s ease;
}
/* frosted vignette over the frame: keeps the play badge legible on bright footage */
.hl-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.06) 40%, rgba(4, 10, 20, 0.52) 100%);
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.hl-card:hover .hl-thumb img,
.hl-card:focus-visible .hl-thumb img { transform: scale(1.06); }
.hl-thumb .hl-mini-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(4, 10, 20, 0.62);
  border: 2px solid rgba(226, 236, 246, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.22s var(--ease-out), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  z-index: 2;
}
.hl-card:hover .hl-mini-play,
.hl-card:focus-visible .hl-mini-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(209, 58, 2, 0.88);
  border-color: #fff;
  box-shadow: 0 0 22px rgba(255, 90, 31, 0.65);
}
/* touch has no hover to reveal the badge — keep it on, slightly smaller */
@media (hover: none) {
  .hl-thumb .hl-mini-play { opacity: 0.92; transform: translate(-50%, -50%) scale(0.88); }
}
/* pulsing ring around the badge while the card holds attention */
.hl-card:hover .hl-mini-play::after,
.hl-card:focus-visible .hl-mini-play::after {
  content: "";
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 90, 31, 0.7);
  animation: hlPlayPing 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes hlPlayPing {
  from { transform: scale(0.82); opacity: 1; }
  to { transform: scale(1.28); opacity: 0; }
}
.hl-mini-play::before {
  content: "";
  position: absolute;
  left: 55%; top: 50%;
  transform: translate(-50%, -50%);
  border-left: 13px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.hl-body { padding: 12px 14px 14px; }
.hl-title {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.hl-card:hover .hl-title,
.hl-card:focus-visible .hl-title { color: var(--snow); }
.hl-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.hl-kind {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ff5a1f;
  border: 1px solid rgba(255, 90, 31, 0.5);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
  flex: none;
}

/* v1.32.0 — frost-fade entrance, staggered on first paint only.
   Filter/refresh re-renders carry no .cf-enter, so they stay instant. */
@keyframes hlRise {
  from { opacity: 0; transform: translateY(14px); filter: blur(3px); }
}
.hl-card.cf-enter {
  animation: hlRise 0.45s var(--ease-out) backwards;
  animation-delay: calc(var(--hi, 0) * 40ms);
}

/* Skeleton video cards mirroring .hl-card while the feed loads. */
.hl-skel {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d6eaff22;
  background: linear-gradient(150deg, rgba(25, 46, 68, 0.7), rgba(10, 23, 41, 0.85));
  box-shadow: inset 0 0 0 1px rgba(159, 184, 204, 0.06);
}
.hl-skel .skel-shot { display: block; aspect-ratio: 16 / 9; border-radius: 0; }
.hl-skel .skel-copy { padding: 12px 14px 14px; display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .hl-card.cf-enter { animation: none; }
  .hl-card, .hl-card::before, .hl-thumb .hl-mini-play { transition: none; }
  .hl-thumb img { transition: none; }
  .hl-card:hover .hl-thumb img,
  .hl-card:focus-visible .hl-thumb img { transform: none; }
  .hl-card:hover .hl-mini-play::after,
  .hl-card:focus-visible .hl-mini-play::after { animation: none; display: none; }
}

@media (max-width: 640px) {
  .hl-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .hl-title { font-size: 12.5px; }
  .hl-play { width: 68px; height: 68px; }
}
