/* Pradabagshawty archive page — "B What You B" cover palette: cream paper,
   black cartoon ink, silver greys, warm tan-gold lettering, red/blue
   police-light accents. Everything here is scoped to
   .pradabagshawty-archive-page or pb-* classes so the shared archive.css
   (homepage silver, Che purple) is never affected. */

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

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

/* Tan-gold Habbo title, like the cover's 3D block lettering */
.pradabagshawty-archive-page .archive-scrolling-title-track span {
  background: linear-gradient(180deg, #f6ecd2 0%, #d8b46a 55%, #8a6a2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px #17150f;
  filter:
    drop-shadow(-1.5px 1.5px 0 #b08c46)
    drop-shadow(-1.5px 1.5px 0 #6a5222)
    drop-shadow(-1px 1px 0 #17150f);
}

/* Silver/greyscale spinning globes, like the cover's ink-and-wash art */
.pradabagshawty-archive-page .fcf-globe img {
  filter: grayscale(1) brightness(0.95);
}

/* Silver boombox art; the breathing glow is the shared white one from
   archive.css (unified across every boombox) */
.pradabagshawty-archive-page .che-music-player img {
  filter: grayscale(1) brightness(0.95);
}

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

.pb-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: pbGrainDrift 12.5s linear infinite;
}

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

.pb-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 other archive pages.) */
.pb-bg-strip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  animation: pbFieldDrift 120s linear infinite;
}

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

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

.pb-bg-item img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  object-fit: contain;
  animation: pbTilt 6s step-end infinite;
}

/* 6s cycle, one snap turn per kind: shopper at 0s, tag at 2s, bag at 4s */
.pb-bg-item-shopper img {
  animation-delay: 0s;
}

.pb-bg-item-tag img {
  animation-delay: 2s;
}

.pb-bg-item-bag img {
  animation-delay: 4s;
  animation-name: pbTiltHard;
}

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

@keyframes pbTiltHard {
  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 the other pages */

.pb-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 ---- */

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

.pb-fit-panel,
.pb-info-panel {
  background: #0d0c09;
  box-shadow: 0 0 22px rgba(216, 180, 106, 0.28);
  padding: 16px;
}

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

.pb-fit-stage {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(242, 239, 232, 0.04) 0 1px,
      transparent 1px 3px
    ),
    #12100b;
  border: 1px solid #3a3426;
  padding: 14px 14px 0;
  overflow: hidden;
}

.pb-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(242, 239, 232, 0.55))
    drop-shadow(0 0 7px rgba(216, 180, 106, 0.4));
}

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

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

.pb-fit-swap {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: #f2efe8;
  background: #12100b;
  border: 2px solid #8d887a;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.pb-fit-swap:hover {
  background: #3a3426;
  border-color: #d8c9a3;
}

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

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

.pb-info-title {
  margin: 0 0 18px;
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: #f2efe8;
  text-shadow: 0 0 8px rgba(216, 180, 106, 0.8);
}

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

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

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

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

/* Clickable info values (name -> Instagram, latest release -> album) */
.pb-info-link {
  color: #f2efe8;
  text-decoration: underline;
  text-decoration-color: #8d887a;
  text-underline-offset: 3px;
}

.pb-info-link:hover {
  color: #d8b46a;
  text-decoration-color: #d8b46a;
  text-shadow: 0 0 8px rgba(216, 180, 106, 0.8);
}

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

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

.pb-video-frame {
  position: relative;
  background: #0d0c09;
  padding: 10px;
  box-shadow: 0 0 22px rgba(216, 180, 106, 0.28);
}

/* Single continuous iced tennis chain wrapping the video frame — one loop of
   prong-set white/black stones circulating clockwise around a rounded-rect
   path with connected corners. Rendered by pradabagshawty-background.js onto
   this canvas (strips would read as four separate lines; this is one chain). */
.pb-chain-canvas {
  position: absolute;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  pointer-events: none;
  z-index: 4;
}

/* Iced RL pendant hanging from the bottom-center of the video frame,
   swinging like the other pages' pendants (rl-pendant-cut.png is the
   provided art with the white background flood-keyed to transparency).
   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. */
.pb-video-pendant {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  margin-top: -20px;
  width: 150px;
  height: auto;
  z-index: 3;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  pointer-events: none;
  animation: pbPendantSwing 5s ease-in-out infinite;
}

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

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

.pb-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0907;
  object-fit: contain;
}

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

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

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

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

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

.pb-osd-center-triangle {
  width: 0;
  height: 0;
  border-left: 26px solid #f2efe8;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  filter: drop-shadow(0 0 8px rgba(216, 180, 106, 0.8));
}

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

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

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