/* /videos — layout overrides (load last; bump ?v= on deploy) */
html {
  scroll-behavior: smooth;
}

body.tp-videos-page {
  margin: 0;
  min-height: 100vh;
  background: #000;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Nav — match official site hero bar (Home · Merch only in markup) */
.tp-videos-page .tp-hero-top-nav.is-visible {
  z-index: 1000;
  pointer-events: auto;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.82) 55%,
    rgba(0, 0, 0, 0.48) 100%
  );
}

.tp-videos-page .tp-hero-top-nav {
  padding-left: max(4px, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(4px, env(safe-area-inset-right, 0px)) !important;
}

.tp-videos-page .tp-hero-top-nav .tp-hero-nav {
  gap: 0.7em 2.1em;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  pointer-events: auto;
}

.tp-videos-page .tp-hero-top-nav .tp-hero-nav-link {
  pointer-events: auto;
  cursor: pointer;
}

/* Same white bloom as epk.css / main site hero nav */
.tp-videos-page .tp-hero-top-nav .tp-hero-nav-link:hover,
.tp-videos-page .tp-hero-top-nav .tp-hero-nav-link:focus-visible {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: scale(1.08);
  text-shadow:
    0 0 2px rgba(255, 255, 255, 1),
    0 0 6px rgba(255, 255, 255, 1),
    0 0 14px rgba(255, 255, 255, 0.98),
    0 0 28px rgba(255, 255, 255, 0.88),
    0 0 52px rgba(255, 255, 255, 0.72),
    0 0 88px rgba(255, 255, 255, 0.55),
    0 0 140px rgba(255, 255, 255, 0.4),
    0 0 220px rgba(255, 255, 255, 0.26),
    0 0 300px rgba(255, 255, 255, 0.14) !important;
}

@media (prefers-reduced-motion: reduce) {
  .tp-videos-page .tp-hero-top-nav .tp-hero-nav-link:hover,
  .tp-videos-page .tp-hero-top-nav .tp-hero-nav-link:focus-visible {
    transform: none;
  }
}

#eclipse-merch {
  scroll-margin-top: clamp(80px, 14vw, 128px);
}

.tp-videos-main {
  width: 100%;
  margin: 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
}

/* Full-viewport playlist — beat epk.css 16:9 + store-merch sync-hero margins */
body.tp-videos-page.tp-sync-page .tp-videos-playlist.tp-youtube-full.tp-sync-hero,
body.tp-videos-page .tp-videos-playlist.tp-youtube-full {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 100svh !important;
  min-height: 100dvh !important;
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
}

body.tp-videos-page .tp-videos-playlist .tp-youtube-aspect,
body.tp-videos-page .tp-videos-playlist .tp-sync-yt-aspect {
  position: relative !important;
  width: 100% !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  height: 100svh !important;
  height: 100dvh !important;
  min-height: 100svh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  aspect-ratio: unset !important;
}

body.tp-videos-page .tp-videos-playlist .tp-youtube-iframe,
body.tp-videos-page .tp-videos-playlist .tp-youtube-poster {
  width: 100% !important;
  height: 100% !important;
}

body.tp-videos-page .tp-videos-playlist .tp-youtube-poster-img,
body.tp-videos-page .tp-videos-playlist .tp-premiere-placeholder__video {
  object-fit: cover !important;
  object-position: center center !important;
}

.tp-videos-page .tp-youtube-next {
  position: absolute;
  left: 52px;
  bottom: 132px;
  z-index: 3;
  border: 0;
  background: transparent;
  color: rgba(236, 236, 236, 0.84);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.24em;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.34), 0 0 18px rgba(232, 203, 168, 0.22);
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease, text-shadow 0.22s ease, visibility 0s linear 0.22s;
}

.tp-videos-page .tp-youtube-aspect.is-playback-ready .tp-youtube-next:not(.is-hidden) {
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease, text-shadow 0.22s ease, visibility 0s;
}

.tp-videos-page .tp-youtube-aspect.is-playback-ready:hover .tp-youtube-next:not(.is-hidden),
.tp-videos-page .tp-youtube-aspect.is-playback-ready:focus-within .tp-youtube-next:not(.is-hidden) {
  opacity: 1;
  transform: translateY(0);
}

.tp-videos-page .tp-youtube-next:hover,
.tp-videos-page .tp-youtube-next:focus-visible {
  color: var(--tp-accent-gold);
  text-shadow: 0 0 10px rgba(255, 228, 182, 0.58), 0 0 22px rgba(210, 142, 47, 0.45);
  outline: none;
}

.tp-videos-page .tp-youtube-next.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
}

.tp-videos-page .tp-shell.tp-videos-below,
.tp-videos-page .tp-shell.tp-videos-below #eclipse-merch,
.tp-videos-page .tp-shell.tp-videos-below .tp-footer-panel {
  display: block !important;
  visibility: visible !important;
}

.tp-videos-page .tp-shell.tp-videos-below .tp-footer-panel {
  display: flex !important;
}

.tp-videos-page .tp-videos-below {
  margin-top: 0;
  padding-top: clamp(12px, 3vw, 28px);
  padding-bottom: clamp(32px, 6vw, 64px);
}

.tp-videos-page .tp-videos-below .tp-merch-film {
  margin-top: 0;
}

@media (max-width: 767px) {
  .tp-videos-page .tp-hero-top-nav .tp-hero-nav {
    gap: 0.22em 0.42em !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tp-videos-page .tp-hero-top-nav .tp-hero-nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: clamp(7px, 2.55vw, 10.5px) !important;
    letter-spacing: 0.06em !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.55);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  }

  .tp-videos-page .tp-hero-top-nav .tp-hero-nav-dot {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: clamp(7px, 2.55vw, 10.5px) !important;
    padding: 0 0.04em !important;
  }

  .tp-videos-page .tp-youtube-next {
    left: 34px;
    bottom: 86px;
    font-size: 13px;
    letter-spacing: 0.22em;
  }

  .tp-videos-page .tp-youtube-aspect.is-playback-ready .tp-youtube-next:not(.is-hidden) {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-videos-page .tp-youtube-next {
    transition: none;
  }
}
