/* JMO Shop-O-Rama — retro home-shopping channel */

@font-face { font-family: fallback-check; src: local("Impact"); }

:root {
  --gold: #f5c542;
  --hot-pink: #ff3d8f;
  --teal: #19c2b8;
  --cream: #fff6e0;
  --deep: #14082e;
  --panel: rgba(20, 8, 46, 0.82);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  color: var(--cream);
}

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.set {
  position: relative;
  width: 100vw;
  height: 56.25vw;      /* keep 16:9 */
  max-height: 100vh;
  max-width: 177.78vh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #3c1a78 0%, #24104f 45%, #14082e 100%);
  animation: tape-wobble 9s ease-in-out infinite;
}

/* subtle diagonal studio stripes */
.set::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 61, 143, 0.06) 0 3vw,
    transparent 3vw 7vw,
    rgba(25, 194, 184, 0.05) 7vw 10vw,
    transparent 10vw 14vw
  );
  animation: stripes-drift 40s linear infinite;
  pointer-events: none;
}

@keyframes stripes-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(14vw); }
}

@keyframes tape-wobble {
  0%, 92%, 100% { transform: translateY(0) skewX(0deg); }
  93% { transform: translateY(0.15%) skewX(0.12deg); }
  95% { transform: translateY(-0.1%) skewX(-0.1deg); }
  97% { transform: translateY(0.05%) skewX(0.05deg); }
}

/* ---------- Top bar ---------- */

.topbar {
  position: absolute;
  top: 2.2%;
  left: 3%;
  right: 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.logo {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 3.2vw;
  letter-spacing: 0.05em;
  transform: rotate(-2deg);
  text-shadow:
    0.15vw 0.15vw 0 #7a1f5c,
    0.3vw 0.3vw 0 rgba(0, 0, 0, 0.5),
    -0.08vw 0 0 rgba(255, 0, 60, 0.55),
    0.08vw 0 0 rgba(0, 220, 255, 0.55);
}
.logo-shop { color: var(--gold); }
.logo-o    { color: var(--cream); font-size: 2.2vw; }
.logo-rama { color: var(--hot-pink); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.2vw;
}

.live-bug {
  display: flex;
  align-items: center;
  gap: 0.4vw;
  background: #c40f0f;
  border: 0.15vw solid #ff8a8a;
  padding: 0.25vw 0.8vw;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.3vw;
  letter-spacing: 0.12em;
  border-radius: 0.3vw;
  box-shadow: 0 0 1vw rgba(255, 40, 40, 0.7);
}

.live-dot {
  width: 0.7vw;
  height: 0.7vw;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.1s steps(2, start) infinite;
}

.clock {
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 1.5vw;
  color: var(--teal);
  background: rgba(0, 0, 0, 0.55);
  padding: 0.25vw 0.7vw;
  border-radius: 0.3vw;
  text-shadow: 0 0 0.6vw rgba(25, 194, 184, 0.8);
}

@keyframes blink { 50% { opacity: 0.15; } }

/* ---------- Showcase ---------- */

.showcase {
  position: absolute;
  top: 10.5%;
  left: 3%;
  right: 3%;
  bottom: 24%;
  display: flex;
  gap: 2%;
  z-index: 4;
}

.product-panel {
  flex: 1.55;
  display: flex;
  align-items: center;
  gap: 2.5%;
  background: var(--panel);
  border: 0.2vw solid rgba(245, 197, 66, 0.55);
  border-radius: 1vw;
  padding: 1.5vw;
  box-shadow: inset 0 0 4vw rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s ease;
}

.product-panel.swapping { opacity: 0; }

.pedestal-wrap {
  position: relative;
  flex: 0 0 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero {
  width: 15vw;
  height: 15vw;
  display: grid;
  place-items: center;
  border-radius: 0.7vw;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  font-size: 11vw;
  line-height: 1;
  filter: drop-shadow(0 1vw 1.2vw rgba(0, 0, 0, 0.6));
  animation: hero-float 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-1.2vw) rotate(2deg); }
}

.pedestal {
  width: 78%;
  height: 2.4vw;
  margin-top: -0.6vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(245, 197, 66, 0.55), rgba(245, 197, 66, 0.06) 70%);
}

.badge {
  position: absolute;
  top: 4%;
  left: -4%;
  background: var(--hot-pink);
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1vw;
  letter-spacing: 0.08em;
  padding: 0.45vw 0.9vw;
  transform: rotate(-12deg);
  border-radius: 0.3vw;
  box-shadow: 0.2vw 0.2vw 0 rgba(0, 0, 0, 0.45);
  animation: badge-pulse 1.6s ease-in-out infinite;
  z-index: 3;
}

@keyframes badge-pulse {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50%      { transform: rotate(-12deg) scale(1.08); }
}

.sparkle {
  position: absolute;
  width: 1.1vw;
  height: 1.1vw;
  background:
    linear-gradient(#fff, #fff) 50% 0 / 18% 100% no-repeat,
    linear-gradient(#fff, #fff) 0 50% / 100% 18% no-repeat;
  filter: drop-shadow(0 0 0.4vw #fff);
  opacity: 0;
  animation: sparkle 2.8s ease-in-out infinite;
  z-index: 3;
}
.s1 { top: 18%; right: 12%; animation-delay: 0s; }
.s2 { top: 42%; left: 6%;  animation-delay: 0.9s; }
.s3 { top: 8%;  left: 30%; animation-delay: 1.8s; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1) rotate(45deg); }
}

.product-copy { flex: 1; min-width: 0; }

.product-name {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 3.4vw;
  line-height: 1.05;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-shadow:
    0.18vw 0.18vw 0 #7a1f5c,
    -0.07vw 0 0 rgba(255, 0, 60, 0.5),
    0.07vw 0 0 rgba(0, 220, 255, 0.5);
}

.product-tag {
  margin-top: 0.6vw;
  font-size: 1.55vw;
  font-style: italic;
  color: var(--hot-pink);
  text-shadow: 0.1vw 0.1vw 0 rgba(0, 0, 0, 0.6);
}

.features {
  margin-top: 1.1vw;
  list-style: none;
  font-size: 1.35vw;
  line-height: 1.7;
}

.features li { opacity: 0; animation: feature-in 0.4s ease forwards; }
.features li::before { content: "★ "; color: var(--gold); }
.features li:nth-child(1) { animation-delay: 0.15s; }
.features li:nth-child(2) { animation-delay: 0.55s; }
.features li:nth-child(3) { animation-delay: 0.95s; }

@keyframes feature-in {
  from { opacity: 0; transform: translateX(1.5vw); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Price panel ---------- */

.price-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, rgba(122, 31, 92, 0.9), rgba(20, 8, 46, 0.92));
  border: 0.25vw solid var(--gold);
  border-radius: 1vw;
  padding: 1.2vw 1.5vw;
  text-align: center;
  box-shadow: 0 0 2vw rgba(245, 197, 66, 0.25);
}

.item-no {
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 1.15vw;
  color: var(--teal);
  letter-spacing: 0.15em;
}

.retail {
  font-size: 1.5vw;
  color: #cbb8ff;
}
.retail s { color: #ff8a8a; text-decoration-thickness: 0.18vw; }

.price-label {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.25vw;
  letter-spacing: 0.14em;
  color: var(--cream);
}

.price {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 5vw;
  line-height: 1;
  color: #7cff5e;
  text-shadow:
    0.2vw 0.2vw 0 #1c5c12,
    0 0 1.6vw rgba(124, 255, 94, 0.75);
  animation: price-throb 1.3s ease-in-out infinite;
}

.price.dropping { animation: price-drop 0.6s ease; }

@keyframes price-throb {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes price-drop {
  0%   { transform: scale(1.6) rotate(-4deg); filter: brightness(2); }
  100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

.payments {
  font-size: 1.2vw;
  font-style: italic;
  color: var(--gold);
}

.stock { margin-top: 0.4vw; }

.stock-label {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.15vw;
  letter-spacing: 0.08em;
  color: #ff8a8a;
}

.stock-bar {
  margin-top: 0.4vw;
  height: 1vw;
  border: 0.12vw solid rgba(255, 255, 255, 0.45);
  border-radius: 0.5vw;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}

.stock-fill {
  height: 100%;
  width: 60%;
  background: repeating-linear-gradient(
    45deg, #ff3d8f 0 0.8vw, #ff7ab5 0.8vw 1.6vw);
  transition: width 0.8s ease;
}

.sold {
  font-size: 1.1vw;
  color: #cbb8ff;
  letter-spacing: 0.06em;
}

.countdown-box {
  margin-top: 0.4vw;
  background: rgba(0, 0, 0, 0.55);
  border: 0.15vw solid var(--hot-pink);
  border-radius: 0.5vw;
  padding: 0.5vw 0;
}

.countdown-label {
  font-size: 1vw;
  letter-spacing: 0.2em;
  color: var(--hot-pink);
}

.countdown {
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 2.6vw;
  color: var(--cream);
  text-shadow: 0 0 0.8vw rgba(255, 61, 143, 0.8);
}

.countdown.urgent { color: #ff5252; animation: blink 0.7s steps(2, start) infinite; }

/* ---------- Lower third ---------- */

.lower-third {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 8.5%;
  z-index: 5;
}

.call-now {
  display: flex;
  align-items: center;
  gap: 1.5vw;
  background: linear-gradient(90deg, #c40f0f, #7a1f5c 70%, rgba(122, 31, 92, 0));
  border-left: 0.6vw solid var(--gold);
  padding: 0.5vw 1.5vw;
  border-radius: 0.3vw;
}

.call-flash {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 2vw;
  letter-spacing: 0.1em;
  color: var(--gold);
  animation: blink 0.9s steps(2, start) infinite;
}

.phone {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 2.6vw;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow:
    0.15vw 0.15vw 0 rgba(0, 0, 0, 0.6),
    -0.07vw 0 0 rgba(255, 0, 60, 0.5),
    0.07vw 0 0 rgba(0, 220, 255, 0.5);
}

.host-strap {
  margin-top: 0.4vw;
  display: inline-block;
  background: rgba(0, 0, 0, 0.65);
  font-size: 1.1vw;
  letter-spacing: 0.14em;
  padding: 0.3vw 1vw;
  border-radius: 0.3vw;
  color: var(--teal);
}

/* ---------- Ticker ---------- */

.ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.5%;
  background: linear-gradient(180deg, #f5c542, #d9a51e);
  overflow: hidden;
  z-index: 6;
  border-top: 0.2vw solid #fff1c4;
}

.ticker-track {
  position: absolute;
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.7vw;
  letter-spacing: 0.06em;
  color: #3a2402;
  will-change: transform;
}

.ticker-track span { padding: 0 2.5vw; }

/* ---------- VHS overlays ---------- */

.static-burst {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
}

.tracking-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 3.5%;
  top: -10%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.14) 40%,
    rgba(180, 220, 255, 0.22) 55%,
    rgba(255, 255, 255, 0) 100%);
  filter: blur(0.15vw);
  z-index: 8;
  opacity: 0;
  pointer-events: none;
}

.tracking-bar.rolling { animation: tracking-roll 2.4s linear; }

@keyframes tracking-roll {
  0%   { top: 105%; opacity: 1; }
  100% { top: -10%; opacity: 1; }
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0 2px,
    rgba(0, 0, 0, 0.18) 2px 3px
  );
  mix-blend-mode: multiply;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.42) 100%);
}

.vhs-osd {
  position: absolute;
  top: 10.5%;
  left: 3.5%;
  z-index: 12;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 1.8vw;
  color: #eaffea;
  text-shadow: 0 0 0.5vw rgba(180, 255, 180, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.vhs-osd.visible { opacity: 0.85; }

/* glitch jolt applied to the whole set during static bursts */
.set.glitching {
  animation: glitch-jolt 0.32s steps(3) 1;
}

@keyframes glitch-jolt {
  0%   { transform: translate(0.4%, -0.3%) skewX(1.4deg); filter: hue-rotate(18deg) saturate(1.6); }
  50%  { transform: translate(-0.5%, 0.2%) skewX(-1.8deg); filter: hue-rotate(-14deg) saturate(2); }
  100% { transform: translate(0, 0) skewX(0); filter: none; }
}
