/* Cadre réel : PNG de 1448 × 1086 px (fond et écran transparents). */
.hn-tv-retro {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 900px;
  margin: 24px auto !important;
  aspect-ratio: 1448 / 1086;
  isolation: isolate;
  background: transparent !important;
  box-sizing: border-box;
}
.hn-tv-retro__screen {
  position: absolute;
  left: 10.4%;
  top: 17.3%;
  width: 64.6%;
  height: 59.1%;
  overflow: hidden;
  border-radius: 8% / 11%;
  background: #000;
  z-index: 1;
}
.hn-tv-retro__screen > iframe {
  position: absolute !important;
  display: block !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transform: none !important;
}
.hn-tv-retro__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: var(--hn-tv-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}
/* Gutenberg : supprime la réserve 16:9 du bloc natif qui gênerait la TV. */
.wp-block-embed__wrapper:has(> .hn-tv-retro),
.wp-block-embed__wrapper:has(> iframe.hn-tv-retro) {
  aspect-ratio: auto !important;
}
.wp-block-embed__wrapper:has(> .hn-tv-retro)::before {
  content: none !important;
  display: none !important;
}
@media (max-width: 600px) {
  .hn-tv-retro { margin: 16px auto !important; }
}
