/* Protect archive page — "Ball Hog" palette (court navy + basketball
   orange). Everything here is scoped to .protect-archive-page or pro-*
   classes so the shared archive.css (homepage silver, Che purple) is
   never affected. */

.protect-archive-page {
  margin: 0;
  background: #050505;
  min-height: 100vh;
}

/* ---- Header palette overrides (shared markup, Protect colors) ---- */

/* Basketball-orange Habbo title (deeper burnt tones than Che's gold) */
.protect-archive-page .archive-scrolling-title-track span {
  background: linear-gradient(180deg, #ffb45c 0%, #f07822 55%, #a03c0a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px #1a0c00;
  filter:
    drop-shadow(-1.5px 1.5px 0 #c2551a)
    drop-shadow(-1.5px 1.5px 0 #7a3208)
    drop-shadow(-1px 1px 0 #1a0c00);
}

/* Court-navy spinning globes */
.protect-archive-page .fcf-globe img {
  filter: grayscale(1) sepia(1) hue-rotate(175deg) saturate(3) brightness(0.75);
}

/* Navy boombox art; the breathing glow is the shared white one from
   archive.css (unified across every boombox) */
.protect-archive-page .che-music-player img {
  filter: grayscale(1) sepia(1) hue-rotate(175deg) saturate(2.6) brightness(0.9);
}

/* Playing pulse timed to "re4" (~96 BPM): one glow pulse per beat (0.63s),
   head-tilt snapping over two beats. Overrides the shared 77 BPM default. */
.protect-archive-page .che-music-player.playing {
  animation-duration: 0.63s;
}
.protect-archive-page .che-music-player.playing img {
  animation-duration: 1.26s;
}

/* ---- Background layers (filled by protect-background.js) ---- */

.pro-bg-ticker {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  /* Same 16px/s leftward drift as the asset strip (200px tile / 12.5s), so
     grain and assets read as one moving canvas; both loop seamlessly */
  animation: proGrainDrift 12.5s linear infinite;
  /* Blue monochrome: same recolor family as the page's globes/boombox */
  filter: grayscale(1) sepia(1) hue-rotate(175deg) saturate(3);
}

@keyframes proGrainDrift {
  from { background-position: 0 0; }
  to { background-position: -200px 0; }
}

.pro-bg-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

/* Conveyor strip holding two side-by-side copies of the asset layout.
   Drifting left by exactly one layout width (1920px) per loop lands copy B
   where copy A started, so the scroll never shows a seam. 120s = 16px/s.
   (Same movement as the Che and Osamason pages.) */
.pro-bg-strip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  animation: proFieldDrift 120s linear infinite;
}

@keyframes proFieldDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-1920px); }
}

.pro-bg-item {
  position: absolute;
  opacity: 0.5;
}

.pro-bg-item img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  animation: proTilt 6s step-end infinite;
  /* Blue monochrome: same recolor family as the page's globes/boombox */
  filter: grayscale(1) sepia(1) hue-rotate(175deg) saturate(3) brightness(0.87);
}

/* 6s cycle, one snap turn per kind: creeper at 0s, ball at 2s, hog at 4s */

/* Virginia Creeper logo: wide sprite, contain instead of stretch.
   The art is pure white (no chroma for hue-rotate to shift), so it gets
   darkened first, then colorized blue — reads as true blue monochrome
   instead of pale grey. */
.pro-bg-item-creeper img {
  animation-delay: 0s;
  object-fit: contain;
  filter: brightness(0.62) sepia(1) hue-rotate(175deg) saturate(3);
}

/* Basketballs (images/basketball.png) run orange monochrome
   (overrides the blue base filter) */
.pro-bg-item-ball img {
  animation-delay: 2s;
  animation-name: proTiltHard;
  object-fit: contain;
  filter: grayscale(1) sepia(1) hue-rotate(-15deg) saturate(4) brightness(0.87);
}

/* Ball Hog mascot: near-square sprite, contain instead of stretch so it
   keeps its shape in the square slots */
.pro-bg-item-hog img {
  animation-delay: 4s;
  object-fit: contain;
}

@keyframes proTilt {
  0% { transform: rotate(-8deg); }
  8.33% { transform: rotate(8deg); }
  16.67%, 100% { transform: rotate(0deg); }
}

@keyframes proTiltHard {
  0% { transform: rotate(-14deg); }
  8.33% { transform: rotate(14deg); }
  16.67%, 100% { transform: rotate(0deg); }
}

/* ---- Content row: overview left, video player right ----
   Layout geometry and hand-tuned transforms copied from Che's page */

.pro-content-row {
  position: relative;
  z-index: 3;
  width: min(1200px, 94%);
  margin: 9vh auto 10vh;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Artist overview: fit stage stacked over the stat sheet ---- */

.pro-overview {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translate(-249px, -7px) scale(1.09);
}

.pro-fit-panel,
.pro-info-panel {
  background: #070c16;
  box-shadow: 0 0 22px rgba(240, 110, 34, 0.3);
  padding: 16px;
}

.pro-fit-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pro-fit-stage {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(220, 232, 250, 0.04) 0 1px,
      transparent 1px 3px
    ),
    #0a1220;
  border: 1px solid #1c2c4e;
  padding: 14px 14px 0;
  overflow: hidden;
}

.pro-fit-stage img {
  display: block;
  width: 100%;
  max-width: 230px;
  transform: translateY(13px) scale(1.12);
  transform-origin: bottom center;
  transition: opacity 0.15s ease;
  /* Rim glow hugging the cutout's silhouette, lifting it off the dark stage */
  filter:
    drop-shadow(0 0 1px rgba(220, 232, 250, 0.55))
    drop-shadow(0 0 7px rgba(240, 110, 34, 0.4));
}

.pro-fit-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pro-fit-label {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: #6b82b8;
}

.pro-fit-swap {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: #dce8fa;
  background: #0a1220;
  border: 2px solid #6b82b8;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.pro-fit-swap:hover {
  background: #1c2c4e;
  border-color: #a8c0ee;
}

.pro-fit-swap:active {
  transform: translateY(1px);
}

.pro-info-panel {
  display: flex;
  flex-direction: column;
}

.pro-info-title {
  margin: 0 0 18px;
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: #dce8fa;
  text-shadow: 0 0 8px rgba(240, 110, 34, 0.8);
}

.pro-info-list {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 12px;
}

.pro-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 2px dotted #1c2c4e;
}

.pro-info-row dt {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: #6b82b8;
  white-space: nowrap;
}

.pro-info-row dd {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: #dce8fa;
  text-align: right;
}

/* Clickable info values (name -> Instagram, latest release -> album) */
.pro-info-link {
  color: #dce8fa;
  text-decoration: underline;
  text-decoration-color: #6b82b8;
  text-underline-offset: 3px;
}

.pro-info-link:hover {
  color: #ffb45c;
  text-decoration-color: #ffb45c;
  text-shadow: 0 0 8px rgba(240, 110, 34, 0.8);
}

/* ---- Video player (reuses the shared VHS UI script via che-* ids; all
        styling lives on these pro-* classes) ---- */

.pro-video-player {
  position: relative;
  flex: 1.6 1 420px;
  min-width: 0;
  transform: translate(47px, -15px) scale(1.42);
}

.pro-video-frame {
  position: relative;
  background: #070c16;
  padding: 10px;
  box-shadow: 0 0 22px rgba(240, 110, 34, 0.3);
}

/* Tennis-chain border strips drawn from the user's reference photo
   (round brilliant stones in prong settings — pro-tennis-h.png 52x18,
   pro-tennis-v.png 18x52), same strip geometry and clockwise crawl as
   the Che/Osamason borders. Alternate tiles remain in images/:
   pro-cuban1/2/3 (silver, iced, gunmetal cubans), pro-rope, pro-figaro,
   pro-box, and the older pro-chain tennis cuts. */
.pro-chain {
  position: absolute;
  background-repeat: repeat;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  z-index: 4;
}

.pro-chain-top,
.pro-chain-bottom {
  left: -9px;
  right: -9px;
  height: 18px;
  background-image: url(images/pro-tennis-h.png);
  background-size: 52px 18px;
}

.pro-chain-top { top: -9px; animation: proChainCrawlX 4.4s linear infinite; }
.pro-chain-bottom { bottom: -9px; animation: proChainCrawlX 4.4s linear infinite reverse; }

.pro-chain-left,
.pro-chain-right {
  top: 9px;
  bottom: 9px;
  width: 18px;
  background-image: url(images/pro-tennis-v.png);
  background-size: 18px 52px;
}

.pro-chain-left { left: -9px; animation: proChainCrawlY 4.4s linear infinite reverse; }
.pro-chain-right { right: -9px; animation: proChainCrawlY 4.4s linear infinite; }

/* Shift by exactly one 52px tile so the loop is seamless; the four edge
   directions combine into one clockwise circulation */
@keyframes proChainCrawlX {
  from { background-position: 0 0; }
  to { background-position: 52px 0; }
}

@keyframes proChainCrawlY {
  from { background-position: 0 0; }
  to { background-position: 0 52px; }
}

/* Iced Ball Hog pendant hanging from the bottom-center of the video
   frame, swinging like the other pages' pendants (art is already
   monochrome). Sits BEHIND the border strips (z 3 vs the chains' z 4) so
   its bail tucks under the cuban links like it hangs from the chain. */
.pro-video-pendant {
  position: absolute;
  top: 100%;
  /* Hand-tuned via the pendant tuner on 2026-07-05 (x=3 y=-52 w=147) */
  left: calc(50% + 3px);
  transform: translateX(-50%);
  transform-origin: top center;
  margin-top: -52px;
  width: 147px;
  height: auto;
  z-index: 3;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  pointer-events: none;
  animation: proPendantSwing 5s ease-in-out infinite;
}

@keyframes proPendantSwing {
  0%, 100% { transform: translateX(-50%) rotate(-12deg); }
  50% { transform: translateX(-50%) rotate(12deg); }
}

.pro-video-shell {
  position: relative;
  cursor: pointer;
}

.pro-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05080f;
  object-fit: contain;
}

.pro-video-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(220, 232, 250, 0.05) 0 1px,
    transparent 1px 3px
  );
}

.pro-video-osd {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: "Press Start 2P", monospace;
  letter-spacing: 1px;
  color: #dce8fa;
  text-shadow: 1px 1px 0 #000;
}

.pro-osd-state {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 10px;
}

/* Centered prompt shown while the tape is stopped */
.pro-osd-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  animation: proOsdBlink 1s step-end infinite;
}

.pro-osd-center.hidden {
  display: none;
}

.pro-osd-center-triangle {
  width: 0;
  height: 0;
  border-left: 26px solid #dce8fa;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  filter: drop-shadow(0 0 8px rgba(240, 110, 34, 0.8));
}

@keyframes proOsdBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.pro-osd-counter {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
}

.pro-osd-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 8px;
  color: #8fa6d4;
}
