/* RC88 · Sezione Video — testata «cabina di proiezione».
   Stessa voce editoriale di prima (Archivio Storico Video), veste nuova:
   pannello notturno blu-inchiostro, filetti d'oro, rocchetto e pila di
   fotogrammi con il play al centro. Il rosso resta alla Home.
   Le regole sono ancorate a #videoPage così vincono sul foglio precedente
   senza duplicare o riscrivere video-page.css. */

#videoPage .video-section-banner-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

#videoPage .video-section-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(240, 196, 106, .2);
  border-bottom: 1px solid rgba(240, 196, 106, .3);
  background:
    radial-gradient(120% 130% at 86% 2%, rgba(240, 196, 106, .24), transparent 54%),
    radial-gradient(95% 120% at 2% 108%, rgba(206, 94, 84, .2), transparent 58%),
    linear-gradient(126deg, #0f1724 0%, #16243a 44%, #202f3f 74%, #2a2334 100%);
  color: #fdf6e8;
}

/* Trama sottile: righe e colonne appena visibili, solo sul lato destro. */
#videoPage .video-section-banner::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, transparent 0 52%, rgba(240, 196, 106, .07) 52% 52.15%, transparent 52.15% 100%),
    linear-gradient(0deg, transparent 0 49.8%, rgba(255, 255, 255, .05) 49.8% 50%, transparent 50% 100%);
  background-size: 86px 86px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 42%);
  pointer-events: none;
}

/* Un arco d'oro grande e leggero, in alto a destra. */
#videoPage .video-section-banner::after {
  position: absolute;
  z-index: -1;
  top: -230px;
  right: -110px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(240, 196, 106, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(240, 196, 106, .045), 0 0 0 74px rgba(240, 196, 106, .028);
  content: "";
  pointer-events: none;
}

#videoPage .video-section-banner-glow {
  position: absolute;
  z-index: -1;
  top: 12%;
  right: 24%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 196, 106, .18), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

#videoPage .video-section-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(216px, 336px);
  align-items: center;
  gap: clamp(22px, 5vw, 74px);
  width: min(1180px, calc(100% - 32px));
  min-height: 0;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px) clamp(0px, 1.4vw, 18px);
  box-sizing: border-box;
}

#videoPage .video-section-banner-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 700px;
}

/* Il filetto d'apertura: una linea d'oro con il suo rombo. */
#videoPage .video-section-banner-copy::before {
  display: block;
  width: 104px;
  height: 1px;
  margin: 0 0 20px;
  background: linear-gradient(90deg, #e8bd6a, rgba(232, 189, 106, 0));
  content: "";
}

#videoPage .video-section-banner-copy::after {
  position: absolute;
  top: -3px;
  left: 96px;
  width: 7px;
  height: 7px;
  border: 1px solid #e8bd6a;
  background: rgba(232, 189, 106, .3);
  content: "";
  transform: rotate(45deg);
}

#videoPage .video-section-banner h1 {
  max-width: 24ch;
  margin: 0;
  color: #fffdf6;
  font: 900 clamp(2.05rem, 5.4vw, 4rem)/0.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  text-shadow: 0 6px 26px rgba(3, 8, 18, .5);
  text-wrap: balance;
}

#videoPage .video-section-banner-subtitle {
  max-width: 54ch;
  margin: 20px 0 0;
  color: rgba(253, 246, 232, .84);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.55;
}

#videoPage .video-section-banner-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 26px;
  color: #f3dfb4;
  font: 900 11px/1 system-ui, sans-serif;
  letter-spacing: .14em;
}

#videoPage .video-section-banner-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 11px;
  border: 1px solid rgba(240, 196, 106, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}

#videoPage .video-section-banner-meta b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(240, 196, 106, .45);
  border-radius: 50%;
  background: rgba(240, 196, 106, .1);
  color: #f0c46a;
  font-size: 9px;
}

/* ── L'apparato decorativo: rocchetto, pila di fotogrammi, play ── */
#videoPage .video-section-banner-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 226px;
}

#videoPage .video-banner-beam {
  position: absolute;
  top: -46%;
  right: -16%;
  width: 82%;
  height: 196%;
  background: linear-gradient(196deg, rgba(240, 196, 106, .2), rgba(240, 196, 106, 0) 62%);
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 6% 100%);
  filter: blur(5px);
  opacity: .9;
  pointer-events: none;
}

#videoPage .video-banner-reel {
  position: absolute;
  top: -12px;
  left: -16px;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(240, 196, 106, .3);
  border-radius: 50%;
  opacity: .85;
  pointer-events: none;
  animation: videoBannerReel 34s linear infinite;
}

#videoPage .video-banner-reel::after {
  position: absolute;
  inset: 33%;
  border: 1px solid rgba(240, 196, 106, .38);
  border-radius: 50%;
  content: "";
}

#videoPage .video-banner-reel i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1px solid rgba(240, 196, 106, .34);
  border-radius: 50%;
}

#videoPage .video-banner-reel i:nth-child(1) { transform: rotate(0deg) translateY(-33px); }
#videoPage .video-banner-reel i:nth-child(2) { transform: rotate(60deg) translateY(-33px); }
#videoPage .video-banner-reel i:nth-child(3) { transform: rotate(120deg) translateY(-33px); }
#videoPage .video-banner-reel i:nth-child(4) { transform: rotate(180deg) translateY(-33px); }
#videoPage .video-banner-reel i:nth-child(5) { transform: rotate(240deg) translateY(-33px); }
#videoPage .video-banner-reel i:nth-child(6) { transform: rotate(300deg) translateY(-33px); }

#videoPage .video-banner-sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 328px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(240, 196, 106, .2);
  border-radius: 17px;
  background: rgba(255, 255, 255, .035);
  pointer-events: none;
}

#videoPage .video-banner-sheet-back { transform: translate(-50%, -50%) rotate(-5.5deg) scale(.93); }
#videoPage .video-banner-sheet-mid { transform: translate(-50%, -50%) rotate(3.4deg) scale(.965); }

#videoPage .video-banner-frame {
  position: relative;
  display: flex;
  width: min(100%, 328px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(240, 196, 106, .46);
  border-radius: 17px;
  background:
    radial-gradient(circle at 76% 22%, rgba(240, 196, 106, .2), transparent 52%),
    linear-gradient(150deg, #0c1524 0%, #16202f 62%, #221d2c 100%);
  box-shadow: 0 28px 52px rgba(3, 8, 18, .5), 0 0 0 1px rgba(255, 255, 255, .05) inset;
  transition: transform .26s ease, box-shadow .26s ease;
}

/* I fori della pellicola, dentro la cornice del fotogramma. */
#videoPage .video-banner-frame::before,
#videoPage .video-banner-frame::after {
  position: absolute;
  right: 16px;
  left: 16px;
  height: 5px;
  background-image: repeating-linear-gradient(90deg, rgba(240, 196, 106, .5) 0 6px, transparent 6px 18px);
  content: "";
  opacity: .6;
  pointer-events: none;
}

#videoPage .video-banner-frame::before { top: 8px; }
#videoPage .video-banner-frame::after { bottom: 8px; }

#videoPage .video-banner-frame-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 2px;
  color: rgba(243, 223, 180, .9);
  font: 900 10px/1 system-ui, sans-serif;
  letter-spacing: .2em;
}

#videoPage .video-banner-frame-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0c46a;
  box-shadow: 0 0 0 4px rgba(240, 196, 106, .16);
}

#videoPage .video-banner-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff0c8, #e3b158);
  box-shadow: 0 14px 28px rgba(3, 8, 18, .52), 0 0 0 8px rgba(240, 196, 106, .12);
  transform: translate(-50%, -50%);
  transition: transform .26s ease, box-shadow .26s ease;
}

#videoPage .video-banner-play i {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #16243a;
}

/* ── Stati del collegamento che avvolge la testata ── */
#videoPage .video-section-banner-link:hover .video-banner-frame {
  box-shadow: 0 34px 60px rgba(3, 8, 18, .56), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  transform: translateY(-6px);
}

#videoPage .video-section-banner-link:hover .video-banner-play {
  box-shadow: 0 18px 32px rgba(3, 8, 18, .55), 0 0 0 12px rgba(240, 196, 106, .18);
  transform: translate(-50%, -50%) scale(1.06);
}

#videoPage .video-section-banner-link:focus-visible {
  outline: 3px solid #f0c46a;
  outline-offset: -6px;
}

@keyframes videoBannerReel {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  #videoPage .video-section-banner-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 30px 4px 26px;
  }

  #videoPage .video-section-banner h1 { max-width: 20ch; font-size: clamp(1.85rem, 7.4vw, 2.6rem); line-height: 1.02; }
  #videoPage .video-section-banner-subtitle { margin-top: 14px; font-size: 15px; }
  #videoPage .video-section-banner-meta { gap: 8px 10px; margin-top: 20px; font-size: 10px; }
  #videoPage .video-section-banner-art { min-height: 196px; }
  #videoPage .video-banner-frame,
  #videoPage .video-banner-sheet { width: min(100%, 300px); }
  #videoPage .video-banner-frame { padding: 15px; }
  #videoPage .video-banner-reel { top: -22px; left: -34px; width: 92px; height: 92px; }
  #videoPage .video-banner-reel i { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  #videoPage .video-banner-reel i:nth-child(1) { transform: rotate(0deg) translateY(-28px); }
  #videoPage .video-banner-reel i:nth-child(2) { transform: rotate(60deg) translateY(-28px); }
  #videoPage .video-banner-reel i:nth-child(3) { transform: rotate(120deg) translateY(-28px); }
  #videoPage .video-banner-reel i:nth-child(4) { transform: rotate(180deg) translateY(-28px); }
  #videoPage .video-banner-reel i:nth-child(5) { transform: rotate(240deg) translateY(-28px); }
  #videoPage .video-banner-reel i:nth-child(6) { transform: rotate(300deg) translateY(-28px); }
  #videoPage .video-banner-play { width: 56px; height: 56px; }
  #videoPage .video-banner-play i { border-top-width: 8px; border-bottom-width: 8px; border-left-width: 13px; }
}

@media (max-width: 480px) {
  #videoPage .video-section-banner-meta span { padding: 8px 12px 8px 9px; }
  #videoPage .video-banner-reel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #videoPage .video-banner-reel { animation: none; }
  #videoPage .video-banner-frame,
  #videoPage .video-banner-play { transition: none; }
}
