/* =========================================================
   U of T Sports Hall of Fame: rebuilt with plain HTML/CSS/JS
   Same palette, imagery and layout as the original site, with
   modern motion: glass top bar, scroll reveals, FLIP filtering,
   tile-to-player zoom, and reduced-motion support.
   ========================================================= */

/* The original condensed face. It loads when this page is hosted on
   halloffame.utoronto.ca (the font file already lives at this path there);
   anywhere else it falls back to Barlow Condensed (Google Fonts). */
@font-face {
  font-family: "Trade Gothic Condensed";
  src: local("Trade Gothic Condensed"), local("TradeGothic-Condensed"),
       url("/css/testfont/TradeGothic.otf") format("opentype");
  font-stretch: condensed;
  font-display: swap;
}

:root {
  /* Palette taken from the original stylesheet */
  --navy: #002A5C;
  --navy-deep: #001E37;
  --navy-ink: #001937;
  --navy-night: #00142D;
  --teal: #008BB0;
  --teal-dark: #006681;
  --teal-inset: #00485C;
  --about: #00688B;
  --about-dark: #004860;
  --sky: #7BA4D9;
  --link: #8CC8F0;
  --white: #fff;

  --font: "Trade Gothic Condensed", "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --radius: 10px;
  --tile-radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
/* scroll lock under overlays; --sbw (set in JS) stands in for the removed scrollbar so nothing shifts */
html.is-locked { overflow: hidden; }
html.is-locked body,
html.is-locked .topbar { padding-right: var(--sbw, 0px); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--white);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
}

/* Original background image (repeat + fixed). A fixed pseudo-element
   behaves like background-attachment: fixed, including on iOS. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("https://halloffamemedia-ecbfgeggccf9fbau.a02.azurefd.net/img/HOF_1080P_Bg.jpg") var(--navy-deep) repeat;
}

img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease-out), background-color .25s, color .25s,
              border-color .25s, box-shadow .3s var(--ease-out), opacity .25s;
}
/* light sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--about { background: var(--about); border-color: var(--about); }
.btn--about:hover { background: var(--about-dark); border-color: var(--about-dark); color: #ddd; }

.btn--donate { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--donate::after { background: linear-gradient(110deg, transparent 30%, rgba(0,42,92,.12) 50%, transparent 70%); }
.btn--donate:hover { background: #e4e4e4; border-color: #e4e4e4; color: var(--navy-ink); }

.btn--ghost { background: transparent; border-color: rgba(255,255,255,.22); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

.btn--reset { color: rgba(255,255,255,.55); }
.btn--reset svg { transition: transform .6s var(--ease-out); }
.btn--reset.is-active { color: var(--white); border-color: rgba(123,164,217,.6); }
.btn--reset.is-active:hover svg { transform: rotate(-300deg); }

.btn--continue {
  height: 54px;
  padding: 0 34px;
  background: var(--teal);
  border-color: var(--teal);
  font-weight: 700;
}
.btn--continue:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #ddd;
  box-shadow: inset 0 0 0 5px var(--teal-inset), 0 14px 30px -12px rgba(0,139,176,.7);
}

.btn--lg { height: 54px; padding: 0 34px; font-weight: 700; }
.btn--donate.btn--lg:hover {
  box-shadow: inset 0 0 0 5px #B4B4B4, 0 14px 30px -12px rgba(255,255,255,.45);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--white);
  cursor: pointer;
  transition: background-color .25s, border-color .25s, transform .3s var(--ease-out);
}
.icon-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); transform: scale(1.06); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* =========================================================
   Top bar
   ========================================================= */
.topbar {
  --bar-h: 72px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--bar-h);
  background: rgba(0, 42, 92, .86);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: height .45s var(--ease-out), background-color .45s, box-shadow .45s;
  animation: bar-in .8s var(--ease-out) both;
}
.topbar.is-scrolled {
  --bar-h: 60px;
  background: rgba(0, 30, 62, .92);
  box-shadow: 0 12px 32px -14px rgba(0,0,0,.75);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  height: 100%;
  border-radius: 6px;
}
.brand img {
  display: block;
  height: calc(var(--bar-h) - 22px);
  width: auto;
  transition: height .45s var(--ease-out), transform .4s var(--ease-out);
}
.brand:hover img { transform: scale(1.04); }

/* scroll progress line along the bottom edge */
.topbar__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* desktop: nav dissolves so its children sit in the bar */
.nav { display: contents; }
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  order: 1;
}
.count { order: 2; }
.actions { order: 3; display: flex; gap: 8px; }
.menu-toggle { order: 4; }

.count {
  margin: 0;
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a9c3e6;
}
.count strong {
  display: inline-block;
  min-width: 2ch;
  margin-right: 2px;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.count.is-bump strong { animation: bump .45s var(--ease-out); }

/* ---- form fields ---- */
.field {
  position: relative;
  flex: none;
  width: var(--w, 140px);
  height: 44px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  background: rgba(0, 18, 40, .35);
  transition: border-color .25s, background-color .25s, box-shadow .3s var(--ease-out), opacity .3s;
}
.field:hover { border-color: rgba(255,255,255,.34); }
.field:focus-within {
  border-color: var(--teal);
  background: rgba(0, 18, 40, .6);
  box-shadow: 0 0 0 3px rgba(0,139,176,.35);
}
.field.is-active {
  border-color: rgba(123,164,217,.75);
  background: rgba(0, 104, 139, .28);
}
.field.is-disabled { opacity: .4; pointer-events: none; }

.field__label {
  position: absolute;
  top: 7px;
  left: 12px;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  pointer-events: none;
  white-space: nowrap;
}

.field select,
.field input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 17px 30px 0 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
  text-overflow: ellipsis;
}
.field select:disabled { color: #BABABA; }
.field select option { background: var(--navy); color: var(--white); }
.field input { text-transform: none; cursor: text; }
.field input::placeholder { color: var(--sky); opacity: 1; }
.field input::-webkit-search-cancel-button,
.field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.field--select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--sky);
  border-bottom: 2px solid var(--sky);
  transform: translateY(-20%) rotate(45deg);
  pointer-events: none;
  transition: border-color .25s, transform .35s var(--ease-out);
}
.field--select:hover::after { transform: translateY(5%) rotate(45deg); border-color: var(--white); }

.field__icon,
.field__clear {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--sky);
}
.field__icon { pointer-events: none; transition: opacity .2s, transform .3s var(--ease-out); }
.field__clear {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  right: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  cursor: pointer;
  animation: pop .3s var(--ease-out);
}
.field__clear:hover { background: rgba(255,255,255,.25); }
.field__clear svg { width: 14px; height: 14px; }
.field--search.has-value .field__icon { opacity: 0; transform: translateY(-50%) scale(.5); }

/* ---- hamburger ---- */
.menu-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.menu-toggle:hover { background: var(--navy-night); border-color: var(--navy-night); }
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .45s var(--ease-out), opacity .25s;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.topbar.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar.is-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.topbar.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mid-width desktop: hide the counter so the controls fit */
@media (min-width: 1240px) and (max-width: 1379.98px) {
  .count { display: none; }
}

/* Collapsed top bar: filters move into a drop-down panel */
@media (max-width: 1239.98px) {
  .menu-toggle { display: block; }
  .count { margin-left: auto; font-size: 13px; }
  .count strong { font-size: 18px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
    padding: 16px 20px 20px;
    /* solid: a backdrop-filter nested inside the bar's own blur can't see the page */
    background: rgb(0, 31, 64);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.8);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .5s var(--ease-out), visibility 0s linear .5s;
  }
  .topbar.is-open .nav {
    clip-path: inset(0 0 -60px 0);
    visibility: visible;
    transition: clip-path .55s var(--ease-out), visibility 0s;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
  }
  .field { width: auto; height: 52px; }
  .field__label { top: 9px; }
  .field select, .field input { padding-top: 20px; }
  .field--search { grid-column: span 2; }
  .btn--reset { height: 52px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .btn { height: 48px; }

  /* staggered entrance of panel contents */
  .filters > *, .actions {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s, transform .45s var(--ease-out);
  }
  .topbar.is-open .filters > *,
  .topbar.is-open .actions {
    opacity: 1;
    transform: none;
    transition-delay: calc(80ms + var(--i, 0) * 40ms);
  }
  .topbar.is-open .field.is-disabled { opacity: .4; }
}

@media (max-width: 640px) {
  .topbar__inner { padding: 0 16px; gap: 12px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .field--search { grid-column: 1 / -1; }
  .btn--reset { grid-column: auto; padding: 0 12px; }
  .nav { padding: 14px 16px 18px; }
}

/* =========================================================
   Inductee grid
   ========================================================= */
.grid {
  --tile: 322px;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--tile));
  justify-content: center;
  gap: 20px;
  padding: 96px 16px 96px;
}
@media (max-width: 767.98px) {
  .grid { --tile: 218px; gap: 16px; padding-top: 88px; }
}
@media (max-width: 527.98px) {
  .grid { grid-template-columns: min(100%, 320px); }
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: var(--tile-radius);
  background: none;
  cursor: pointer;
  opacity: .9;
  -webkit-tap-highlight-color: transparent;
  transition: transform .5s var(--ease-out), opacity .3s, box-shadow .5s var(--ease-out);
}
.tile:not(.in) { opacity: 0; }

.tile__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(0, 42, 92, .55);
}
/* loading shimmer: transform-only, so it stays on the compositor */
.tile__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.1) 50%, transparent 75%);
  transform: translateX(-100%);
}
.tile.in:not(.is-loaded) .tile__media::before { animation: shimmer 1.6s linear infinite; }
.tile.is-loaded .tile__media { background: none; }
.tile.is-loaded .tile__media::before { display: none; }

.tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .7s ease, transform .9s var(--ease-out), filter .5s;
}
.tile.is-loaded .tile__media img { opacity: 1; transform: none; }

/* sheen that sweeps across on hover */
.tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .9s var(--ease-out);
  pointer-events: none;
}

.tile__play {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(0, 42, 92, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 10px 30px rgba(0,0,0,.45);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .5s var(--ease-out);
  pointer-events: none;
}
.tile__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--white);
}

.tile__fallback {
  position: absolute;
  inset: auto 0 0;
  padding: 14px;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  background: var(--navy);
}

@media (hover: hover) {
  .tile:hover {
    opacity: 1;
    transform: translateY(-8px);
    box-shadow: 0 26px 44px -18px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.14);
  }
  .tile.is-loaded:hover .tile__media img { transform: scale(1.06); }
  .tile:hover .tile__media::after { transform: translateX(130%); }
  .tile:hover .tile__play { opacity: 1; transform: none; }
}
.tile:focus-visible { opacity: 1; outline-offset: 4px; }
.tile:focus-visible .tile__play { opacity: 1; transform: none; }
.tile:active { transform: translateY(-4px) scale(.98); transition-duration: .15s; }

/* outgoing tiles during filtering */
.ghosts {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.ghost {
  position: absolute;
  border-radius: var(--tile-radius);
  background: center / cover no-repeat;
}

/* empty state */
.empty {
  max-width: 460px;
  margin: -40px auto 0;
  padding: 40px 24px 120px;
  text-align: center;
  animation: rise .6s var(--ease-out) both;
}
.empty__title {
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.empty__text { margin: 0 0 24px; font-size: 18px; color: #c4d6ee; }

/* back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(0, 42, 92, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.7);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.8);
  transition: opacity .35s, transform .5s var(--ease-out), visibility 0s linear .5s, background-color .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--teal); }
.to-top svg { width: 22px; height: 22px; transition: transform .35s var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }

/* =========================================================
   Landing / About overlay
   ========================================================= */
.landing {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--white);
  background: rgba(0, 42, 92, .85);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.landing::backdrop { background: transparent; }
.landing[open] { animation: fade-in .5s ease both; }
.landing.is-leaving { animation: fade-out .5s ease forwards; }
.landing.is-leaving .landing__inner { animation: lift-out .5s var(--ease-in-out) forwards; }

.landing__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 24px 56px;
  text-align: center;
}

.landing__logo {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto;
}

.landing__rule {
  height: 3px;
  margin: 22px 0 26px;
  border: 0;
  background: var(--white);
  transform-origin: center;
}

.landing__copy p {
  margin: 0 0 1em;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: .01em;
}
.landing__copy a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(140,200,240,.4);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.landing__copy a:hover { color: var(--white); text-decoration-color: var(--white); }

.landing__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  margin-top: 30px;
}

.landing[open] .rise {
  animation: rise .9s var(--ease-out) both;
  animation-delay: calc(120ms + var(--i, 0) * 75ms);
}
.landing[open] .landing__logo { animation-name: logo-in; animation-duration: 1.1s; }
.landing[open] .landing__rule { animation: draw 1s var(--ease-out) .3s both; }

@media (max-width: 800px) {
  .landing__logo { width: 85%; }
  .landing__inner { padding: 36px 20px 44px; }
}

/* =========================================================
   Video player
   ========================================================= */
.player {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--white);
}
.player[open] { display: grid; place-items: center; }
.player::backdrop { background: transparent; }

.player__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 20, .84);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.player__frame {
  position: relative;
  width: min(1280px, 92vw, calc((100dvh - 170px) * 16 / 9));
}

.player__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 40px 90px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
}
.player__stage video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}
.player__error {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 14px;
  background: rgba(0,0,0,.7);
  font-size: 18px;
  text-align: center;
}

.player__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 2px 0;
}
.player__info { min-width: 0; }
.player__title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.player__meta {
  margin: 5px 0 0;
  color: var(--sky);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.player__nav { display: flex; gap: 8px; margin-left: auto; }

.player__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,.35);
}

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes logo-in {
  from { opacity: 0; transform: translateY(-18px) scale(.92); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes draw {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes lift-out {
  to { opacity: 0; transform: translateY(-30px) scale(.98); filter: blur(4px); }
}
@keyframes bar-in {
  from { transform: translateY(-100%); }
  to   { transform: none; }
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
@keyframes pop {
  from { transform: translateY(-50%) scale(.4); opacity: 0; }
  to   { transform: translateY(-50%) scale(1); opacity: 1; }
}
@keyframes bump {
  40% { transform: translateY(-3px) scale(1.12); color: var(--link); }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
