/* VHS Cassette Spinner — based on tape.svg anatomy */

.vhs-cassette-spinner_wrapper__zcFqG {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: vhs-cassette-spinner_vhsJitter__GjCrU 7s ease-in-out infinite;
}

/* ─── Cassette shell ─────────────────────────────────── */
/* 220 × 125 px matches the SVG's 224 × 125 proportions  */
.vhs-cassette-spinner_cassette__GxWK0 {
  position: relative;
  width: 220px;
  height: 125px;
  background: #303129;
  border-radius: 4px 4px 9px 9px;
  border: 1px solid #252521;
  box-shadow:
    0 3px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ─── Top header strip ───────────────────────────────── */
/* Two-tone: very-dark top band + slightly-lighter guide area */
.vhs-cassette-spinner_topStrip__z2I0p {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 35px;
  background: linear-gradient(
    180deg,
    #191a13 0px,   #191a13 11px,
    #3e4035 11px,  #3e4035 33px
  );
  border-radius: 3px 3px 0 0;
}

/* Centre notch in the guide area */
.vhs-cassette-spinner_topStrip__z2I0p::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 14px;
  background: #272920;
  border-radius: 0 0 3px 3px;
  border: 1px solid #1c1d17;
  border-top: none;
}

/* ─── Reels — on the left and right sides ────────────── */
/* In a real VHS the reels flank the centre tape window.  */
.vhs-cassette-spinner_reel__CrAov {
  position: absolute;
  top: 45px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #191a13;
  overflow: hidden;
}

.vhs-cassette-spinner_reelLeft__FTed2  { left: 15px; }
.vhs-cassette-spinner_reelRight__Rp_J9 { right: 15px; }

/* 5-spoke conic pattern using SVG colours (#191a13 / #b5b4ad) */
.vhs-cassette-spinner_reelFace__7h56a {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #191a13 0%, #191a13 20%, transparent 20%),
    conic-gradient(
      from 0deg,
      #191a13  0deg  66deg,  #b5b4ad  66deg  72deg,
      #191a13 72deg 138deg,  #b5b4ad 138deg 144deg,
      #191a13 144deg 210deg, #b5b4ad 210deg 216deg,
      #191a13 216deg 282deg, #b5b4ad 282deg 288deg,
      #191a13 288deg 354deg, #b5b4ad 354deg 360deg
    );
}

.vhs-cassette-spinner_reelLeft__FTed2  .vhs-cassette-spinner_reelFace__7h56a { animation: vhs-cassette-spinner_spinCW__jowy0 1.8s linear infinite; }
.vhs-cassette-spinner_reelRight__Rp_J9 .vhs-cassette-spinner_reelFace__7h56a { animation: vhs-cassette-spinner_spinCW__jowy0 2.8s linear infinite; }

/* Hub cap */
.vhs-cassette-spinner_reelHub__968EQ {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #191a13;
  border: 1px solid #2e2d25;
  z-index: 2;
}

/* Amber spindle dot — our accent */
.vhs-cassette-spinner_reelHub__968EQ::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d4820e;
  box-shadow: 0 0 5px #d4820e, 0 0 10px rgba(212, 130, 14, 0.45);
}

/* ─── Central tape window ────────────────────────────── */
/* Light cream band between the reels, exactly as in the SVG */
.vhs-cassette-spinner_window__FsBEq {
  position: absolute;
  top: 48px;
  left: 76px;
  right: 76px;
  height: 47px;
  background: #e6e6d6;
  border-radius: 1px;
  border: 1px solid #282920;
  overflow: hidden;
}

/* Coloured horizontal stripes — from the SVG palette */
.vhs-cassette-spinner_stripe__DmwER {
  position: absolute;
  left: 0; right: 0;
}

.vhs-cassette-spinner_stripeTeal__3JxNU   { top: 24px; height: 4px; background: #2b836f; }
.vhs-cassette-spinner_stripeYellow__I0pK_ { top: 28px; height: 3px; background: #e4a42d; }
.vhs-cassette-spinner_stripeOrange__uvIJD { top: 31px; height: 3px; background: #e57128; }
.vhs-cassette-spinner_stripeRed__1HERW    { top: 33px; height: 2px; background: #ce3d31; }
.vhs-cassette-spinner_stripePink__7Ban_   { top: 35px; height: 3px; background: #dd5075; }

/* ─── Bottom label ───────────────────────────────────── */
.vhs-cassette-spinner_label__RjiIH {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 26px;
  background: linear-gradient(180deg, #282920 0%, #1e1e18 100%);
  border-top: 1px solid #191a13;
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.vhs-cassette-spinner_labelBrand__mYjo7 {
  color: #d4820e;
  font-family: 'VT323', 'Azeret Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-shadow: 0 0 6px rgba(212, 130, 14, 0.5);
  line-height: 1;
}

.vhs-cassette-spinner_labelText__uO2O_ {
  color: #d4820e;
  font-family: 'VT323', 'Azeret Mono', monospace;
  font-size: 12px;
  letter-spacing: 6px;
  text-shadow: 0 0 6px rgba(212, 130, 14, 0.5);
  animation: vhs-cassette-spinner_textPulse__GFUEc 1.9s ease-in-out infinite;
}

.vhs-cassette-spinner_labelBar__4AB85 {
  width: 65%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    #d4820e 0,       #d4820e 2px,
    transparent 2px, transparent 6px
  );
  background-size: 6px 2px;
  opacity: 0.5;
  animation: vhs-cassette-spinner_barScroll__gwibV 0.45s linear infinite;
}

/* ─── Status line ────────────────────────────────────── */
.vhs-cassette-spinner_status__NbK63 {
  color: #7a5030;
  font-family: 'VT323', 'Azeret Mono', monospace;
  font-size: 19px;
  letter-spacing: 5px;
  animation: vhs-cassette-spinner_textPulse__GFUEc 2.6s ease-in-out infinite;
}

/* ─── Keyframes ──────────────────────────────────────── */
@keyframes vhs-cassette-spinner_spinCW__jowy0 {
  to { transform: rotate(360deg); }
}

@keyframes vhs-cassette-spinner_textPulse__GFUEc {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.4; }
}

@keyframes vhs-cassette-spinner_barScroll__gwibV {
  from { background-position: 0 0; }
  to   { background-position: 6px 0; }
}

@keyframes vhs-cassette-spinner_vhsJitter__GjCrU {
  0%,  82%, 100% { transform: none;          filter: none; }
  83% { transform: translateX(-2px);         filter: brightness(1.08) saturate(1.3); }
  84% { transform: translateX(3px);          filter: brightness(0.94); }
  85% { transform: translateX(-1px);         filter: none; }
  86% { transform: translateX(2px);          filter: brightness(1.04); }
  87% { transform: none; }
  88% { transform: translateX(-1px); }
  89% { transform: none; }
}

