/* Tape component from the reviewed VCR homepage concept. */
.tape{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;min-height:650px;height:calc(100svh - 235px);max-height:950px;overflow:hidden;border:1px solid var(--line);background:#080b09}
.tape__video{position:absolute;z-index:-4;inset:0 0 0 auto;width:79%;height:100%;object-fit:cover;object-position:57% center;filter:saturate(.62) contrast(.94) brightness(.88)}
.tape__shade{position:absolute;z-index:-3;inset:0;background:linear-gradient(90deg,#080b09 1%,#080b09 21%,rgba(8,11,9,.65) 40%,transparent 65%),linear-gradient(0deg,rgba(5,8,6,.92),transparent 25%,transparent 78%,rgba(5,8,6,.55))}
.tape__texture{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.32;background:repeating-linear-gradient(0deg,transparent 0 2px,rgba(0,0,0,.36) 2px 3px);mix-blend-mode:multiply}
.tape__texture::after{content:"";position:absolute;inset:0;opacity:.18;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23noise)' opacity='.8' d='M0 0h180v180H0z'/%3E%3C/svg%3E");mix-blend-mode:screen}
.tape__tracking{position:absolute;z-index:3;pointer-events:none;left:0;right:0;top:74%;height:9px;opacity:0;background:repeating-linear-gradient(0deg,rgba(233,231,220,.13) 0 1px,transparent 1px 3px);transform:skewX(-15deg)}
.tape.is-tracking .tape__tracking{animation:tracking .38s ease-out both}
@keyframes tracking{0%{opacity:0;transform:translateY(5px)}35%{opacity:.65}100%{opacity:0;transform:translateY(24px)}}
.tape__top,.tape__bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:30px 34px;font:16px/1.3 var(--vcr);text-transform:uppercase;text-shadow:1px 1px 0 #000}
.tape__top{letter-spacing:.025em}
.tape__top>span:first-child{min-width:130px}
.tape__top>span:last-child{font-variant-numeric:tabular-nums}
.tape__classification{font-size:13px;color:#c1c2b8;letter-spacing:.12em}
.tape__content{position:relative;z-index:1;padding:28px 5.1% 40px}
.tape .eyebrow{display:flex;gap:10px;align-items:center;margin:0 0 23px;font:14px/1.3 var(--vcr);letter-spacing:.12em;color:#bfc2b5}
.signal-dot{width:6px;height:6px;background:#d6a1ae;box-shadow:0 0 8px #d6a1ae55}
.tape h1{margin:0 0 33px;font:400 clamp(52px,6.4vw,104px)/.99 var(--vcr);letter-spacing:-.025em;text-transform:uppercase;text-shadow:1.3px 0 rgba(212,123,155,.48),-1.3px 0 rgba(122,165,161,.45),0 0 9px rgba(233,231,220,.09)}
.tape .shop{display:flex;align-items:center;justify-content:space-between;width:220px;min-height:54px;padding:12px 19px;background:var(--paper);color:#151713;font:20px/1 var(--vcr);text-transform:uppercase;border:1px solid var(--paper)}
.tape .shop:hover{background:#d6b8c2;border-color:#d6b8c2}
.tape__bottom{align-items:flex-end;margin-top:0}
.tape__caption{margin:0;font-size:14px;letter-spacing:.025em}
.tape__caption span{display:block;margin-top:7px;font-size:11px;color:var(--ink-3)}
.tape__controls{display:flex;gap:10px}
.tape__controls button{min-height:44px;padding:10px 14px;background:#0b0e0bd9;border:1px solid #777b6d;color:var(--paper);font:14px/1 var(--vcr);text-transform:uppercase}
.tape__controls button:hover{background:var(--paper);color:var(--ink)}
.corner{position:absolute;z-index:4;width:10px;height:10px;border-color:#b1b6a5;pointer-events:none}
.corner--tl{top:0;left:0;border-top:1px solid;border-left:1px solid}
.corner--tr{top:0;right:0;border-top:1px solid;border-right:1px solid}
.corner--bl{bottom:0;left:0;border-bottom:1px solid;border-left:1px solid}
.corner--br{bottom:0;right:0;border-bottom:1px solid;border-right:1px solid}
.texture-off .tape__texture,.texture-off .tape__tracking{display:none}
.texture-off .tape__video{filter:none}
.texture-off .tape h1{text-shadow:none}
@media(min-width:1700px){.tape h1{font-size:112px}}
@media(max-width:900px){.tape{min-height:620px}
.tape__classification{display:none}
.tape__video{width:100%;object-position:65% center}
.tape__shade{background:linear-gradient(90deg,rgba(8,11,9,.8),rgba(8,11,9,.25) 75%),linear-gradient(0deg,#080b09,transparent 50%)}
.tape h1{font-size:clamp(52px,8.5vw,76px)}
.tape__top,.tape__bottom{margin-inline:24px}
.tape__content{padding-inline:30px}}
@media(max-width:560px){.tape{height:calc(100svh - 115px);min-height:610px;max-height:850px}
.tape__video{width:100%;object-position:59% center}
.tape__shade{background:linear-gradient(90deg,rgba(8,11,9,.45),transparent),linear-gradient(0deg,#080b09 1%,rgba(8,11,9,.7) 40%,rgba(8,11,9,.08) 80%,rgba(8,11,9,.35))}
.tape__top{margin:20px 17px;font-size:13px}
.tape__top>span:first-child{min-width:0}
.tape__content{margin-top:auto;padding:70px 20px 38px}
.tape .eyebrow{font-size:11px;margin-bottom:18px;letter-spacing:.07em}
.tape h1{font-size:clamp(39px,10.3vw,57px);line-height:1.04;margin-bottom:26px}
.tape .shop{width:190px;min-height:50px;font-size:18px}
.tape__bottom{margin:0 20px 22px;align-items:flex-start;flex-direction:column;gap:20px}
.tape__caption{font-size:11px}
.tape__caption span{font-size:9px}
.tape__controls{width:100%}
.tape__controls button{flex:1;font-size:12px}}
@media(prefers-reduced-motion:reduce){.tape.is-tracking .tape__tracking{animation:none}}

/* CRT pass: distort the picture, leaving the type and controls steady. */
.tape__video {
  transform-origin: center;
  animation: crt-warble 9s ease-in-out infinite paused;
}
.tape__top, .tape__bottom { position: relative; z-index: 1; }
.tape__texture {
  z-index: 0;
  opacity: .64;
  mix-blend-mode: normal;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.43) 0 1px, transparent 1px 3px, rgba(214,225,201,.07) 3px 4px);
  box-shadow: inset 0 0 95px 18px rgba(0,0,0,.38);
}
.tape__texture::after {
  inset: -6px;
  opacity: .27;
  background-size: 180px 180px;
  animation: crt-grain .7s steps(1, end) infinite paused;
}
.tape__texture::before {
  content: "";
  position: absolute;
  inset: -24% 0 auto;
  height: 19%;
  background: linear-gradient(0deg, transparent, rgba(184,208,170,.12) 45%, rgba(0,0,0,.19) 65%, transparent);
  animation: crt-roll 12s linear infinite paused;
}
.tape.is-playing .tape__video,
.tape.is-playing .tape__texture::before,
.tape.is-playing .tape__texture::after { animation-play-state: running; }
@keyframes crt-warble {
  0%, 100% { transform: scale(1.018) translateX(0) skewX(0deg); }
  18% { transform: scale(1.018) translateX(-2px) skewX(-.16deg); }
  37% { transform: scale(1.018) translateX(1.3px) skewX(.12deg); }
  55% { transform: scale(1.018) translateX(-.7px) skewX(-.07deg); }
  76% { transform: scale(1.018) translateX(2px) skewX(.2deg); }
  89% { transform: scale(1.018) translateX(-1px) skewX(-.12deg); }
}
@keyframes crt-grain {
  0%, 100% { transform: translate(0,0); }
  25% { transform: translate(-3px,2px); }
  50% { transform: translate(2px,-3px); }
  75% { transform: translate(-2px,-1px); }
}
@keyframes crt-roll { to { top: 124%; } }
.texture-off .tape__video { animation: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tape__video, .tape__texture::before, .tape__texture::after { animation: none; transform: none; }
  .tape__texture::before { display: none; }
}
