/* Osamason archive page — "Psykotic" hellfire palette (black + blood red).
   Everything here is scoped to .osamason-archive-page or osa-* classes so
   the shared archive.css (homepage silver, Che purple) is never affected. */

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

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

/* Blood-red Habbo title (silver treatment in archive.css is homepage-only) */
.osamason-archive-page .archive-scrolling-title-track span {
  background: linear-gradient(180deg, #ff7a5c 0%, #e02b2b 55%, #8b0f0f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px #240000;
  filter:
    drop-shadow(-1.5px 1.5px 0 #b01c0c)
    drop-shadow(-1.5px 1.5px 0 #70100a)
    drop-shadow(-1px 1px 0 #240000);
}

/* Blood-red spinning globes */
.osamason-archive-page .fcf-globe img {
  filter: grayscale(1) sepia(1) hue-rotate(-45deg) saturate(4) brightness(0.7);
}

/* Blood-red boombox art; the breathing glow is the shared white one from
   archive.css (unified across every boombox) */
.osamason-archive-page .che-music-player img {
  filter: grayscale(1) sepia(1) hue-rotate(-45deg) saturate(3.2) brightness(0.85);
}

/* Playing pulse timed to "addicted" (~100 BPM): one glow pulse per beat
   (0.6s), head-tilt snapping over two beats. Overrides the shared 77 BPM
   default so the boombox bobs in time with this page's track. */
.osamason-archive-page .che-music-player.playing {
  animation-duration: 0.6s;
}
.osamason-archive-page .che-music-player.playing img {
  animation-duration: 1.2s;
}

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

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

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

.osa-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. */
.osa-bg-strip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  animation: osaFieldDrift 120s linear infinite;
}

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

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

.osa-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: osaTilt 6s step-end infinite;
}

/* 6s cycle, one snap turn per kind: chain at 0s, nocturnal at 2s, drip at 4s */
.osa-bg-item-drip img { animation-delay: 4s; }

/* Diamond skull chain pendant: near-square sprite, contain instead of
   stretch so it keeps its shape in the square slots. Recolored into the
   page's red monochrome (same grayscale+sepia+hue-rotate recipe as the
   header globes/boombox) so it sits with the drip streaks. */
.osa-bg-item-chain img {
  animation-delay: 0s;
  object-fit: contain;
  filter: grayscale(1) sepia(1) hue-rotate(-45deg) saturate(4) brightness(0.55);
}

/* Nocturnal symbol: tall narrow glyph in a square box — contain instead of
   stretch, dimmed from pure white toward the palette's off-white */
.osa-bg-item-nocturnal img {
  animation-delay: 2s;
  animation-name: osaTiltHard;
  object-fit: contain;
  filter: brightness(0.87);
}

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

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

/* ---- Content row: overview left, video player right ---- */

.osa-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 ----
   Transform copied verbatim from Che's hand-tuned .che-overview */

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

.osa-fit-panel,
.osa-info-panel {
  background: #120507;
  box-shadow: 0 0 22px rgba(220, 38, 38, 0.35);
  padding: 16px;
}

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

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

.osa-fit-stage img {
  display: block;
  width: 100%;
  max-width: 230px;
  /* Visual-only enlargement + slight downward shift copied from Che's
     hand-tuned stage: transform doesn't affect layout, so the stage and
     panels keep their exact size */
  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(248, 220, 220, 0.55))
    drop-shadow(0 0 7px rgba(220, 38, 38, 0.4));
}

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

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

.osa-fit-swap {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: #f8dcdc;
  background: #1a070a;
  border: 2px solid #ad5c5c;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.osa-fit-swap:hover {
  background: #4e2226;
  border-color: #d9a3a3;
}

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

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

.osa-info-title {
  margin: 0 0 18px;
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: #f8dcdc;
  text-shadow: 0 0 8px rgba(220, 38, 38, 0.8);
}

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

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

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

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

/* Clickable info value (latest release -> music video) */
.osa-info-link {
  color: #f8dcdc;
  text-decoration: underline;
  text-decoration-color: #ad5c5c;
  text-underline-offset: 3px;
}

.osa-info-link:hover {
  color: #ff7a5c;
  text-decoration-color: #ff7a5c;
  text-shadow: 0 0 8px rgba(220, 38, 38, 0.8);
}

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

/* Transform copied verbatim from Che's hand-tuned .che-video-player */
.osa-video-player {
  position: relative;
  flex: 1.6 1 420px;
  min-width: 0;
  transform: translate(47px, -15px) scale(1.42);
}

.osa-video-frame {
  position: relative;
  background: #120507;
  padding: 10px;
  box-shadow: 0 0 22px rgba(220, 38, 38, 0.35);
}

/* Diamond chain border strips — tiles pre-cut from the fullchain art with
   Pillow (images/osa-chain-h.png 52x18, osa-chain-v.png 18x52), same strip
   geometry and clockwise crawl as Che's cuban-link border */
.osa-chain {
  position: absolute;
  background-repeat: repeat;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  z-index: 4;
  /* Shown in the chain art's original colors (tint reverted 2026-07-05) */
}

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

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

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

.osa-chain-left { left: -9px; animation: osaChainCrawlY 4.4s linear infinite reverse; }
.osa-chain-right { right: -9px; animation: osaChainCrawlY 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 osaChainCrawlX {
  from { background-position: 0 0; }
  to { background-position: 52px 0; }
}

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

/* Skull pendant hanging from the bottom-center of the chain, swinging like
   Che's bassgod pendant, in the jewelry art's original colors */
.osa-video-pendant {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  margin-top: -4px;
  width: 92px;
  height: auto;
  z-index: 5;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  pointer-events: none;
  animation: osaPendantSwing 5s ease-in-out infinite;
}

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

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

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

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

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

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

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

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

.osa-osd-center-triangle {
  width: 0;
  height: 0;
  border-left: 26px solid #f8dcdc;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.8));
}

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

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

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