html[data-s3-senal]{color-scheme:dark;--s3-ink:#07384d;--s3-cream:#f6e9cc;--s3-blue:#69b2d3}
html[data-s3-senal] body{margin:0!important;display:grid!important;place-items:center!important;height:100vh!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;background:#080f12!important}
#s3-output{width:min(100vw,177.777778vh);height:min(100vh,56.25vw);width:min(100vw,177.777778dvh);height:min(100dvh,56.25vw);box-sizing:border-box;display:grid;grid-template-rows:7.2% minmax(0,1fr) 9%;position:relative;isolation:isolate;container-type:inline-size;overflow:hidden;background:linear-gradient(100deg,#12333e,#08222c);font-family:Manrope,'Helvetica Neue',Arial,sans-serif}
html[data-s3-senal] body #s3-output :is(main#stvBroadcast,main#stv2Broadcast){position:relative!important;inset:auto!important;grid-row:2;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;aspect-ratio:auto!important;box-sizing:border-box;margin:0!important;overflow:hidden!important;align-self:stretch!important;justify-self:stretch!important;transform:none!important}
#s3-cabecera,#s3-pie{position:relative;min-height:0;box-sizing:border-box;z-index:200;overflow:hidden}
#s3-cabecera{grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:.75em;padding:0 3.3%;background:rgb(247 237 218 / 86%);color:#07384d;box-shadow:inset 0 -1px 0 #07384d20}
#s3-redes{display:flex;align-items:center;min-width:0;gap:clamp(6px,1.6cqw,33px);line-height:1.05}
#s3-redes a{display:flex;align-items:baseline;gap:.48em;min-width:0;color:inherit;text-decoration:none;white-space:nowrap}
#s3-redes a:hover,#s3-redes a:focus-visible{text-decoration:underline;text-underline-offset:.18em}
#s3-redes small{font-size:clamp(7px,.70cqw,15px);font-weight:780;text-transform:uppercase;letter-spacing:.075em}
#s3-redes span{font-size:clamp(9px,1.02cqw,23px);font-weight:720;letter-spacing:-.02em}
.s3-id{flex:none;font-size:clamp(11px,1.36cqw,32px);font-weight:780;line-height:1;letter-spacing:-.025em;white-space:nowrap}
#s3-pie{grid-row:3;display:flex;align-items:center;gap:clamp(7px,2cqw,36px);padding-inline:3.3%;background:#083242;color:#fff4df;border-top:1px solid #54889962}
#s3-firma{display:block;flex:none;width:clamp(60px,11cqw,210px);height:85%;transform:translateY(clamp(-6px,-.28cqw,-2px));pointer-events:none}
#s3-firma img{display:block;width:100%;height:100%;object-fit:contain;object-position:right center}
#s3-reloj-aire{flex:1;min-width:0}
html[data-s3-senal] #s3-output .stv-next-loading,
html[data-s3-senal] #s3-output .s3-cuna-entrada[data-tipo=programa]:not(.s3-opening-art-ready){visibility:hidden!important}
html[data-s3-senal] body #s3-output :is(#stvChannelWatermark.stv-channel-watermark,.stv-next-watermark,.stv-next-opening){display:none!important;visibility:hidden!important}
/* The outer bands now carry the masthead, clock and schedule in every scene. */
html[data-s3-senal] #s3-output :is(.stv-next-masthead,.stv-next-rundown){display:none!important}
html[data-s3-senal] #s3-output .stv-next-eyeline{top:3.5cqw}
html[data-s3-senal] #s3-output .stv-next-progress{bottom:4.1cqw}
html[data-s3-senal] #s3-output .stv-next-panel{top:7.4cqw;right:4cqw;bottom:5.2cqw;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
html[data-s3-senal] #s3-output .stv-next-panel>.stv-next-rows{min-height:0}
html[data-s3-senal] #s3-output .stv-next-panel>.stv-next-rows>.stv-next-row{min-height:0}
html[data-s3-senal] #s3-output .stv-next-panel-note{position:static;margin-top:.6cqw;font-size:clamp(8px,1cqw,22px)}
html[data-s3-senal] #s3-output .stv-next-signal[data-scene=news] .stv-next-shade{background:linear-gradient(90deg,#071017f2 0%,#071017ce 40%,#0710175c 70%,#07101719 100%),linear-gradient(0deg,#071017f2 0%,transparent 70%)}
html[data-s3-senal] #s3-output .stv-next-signal[data-scene=news] .stv-next-article{bottom:6cqw;right:6cqw;max-width:82cqw}
html[data-s3-senal] #s3-output .stv-next-headline{font-weight:740!important;line-height:1.09!important;text-shadow:0 .12em .32em #010b10b0}
html[data-s3-senal] #s3-output .stv-next-brief{color:#fff;font-weight:520;text-shadow:0 1px 3px #000;max-width:63ch}
html[data-s3-senal] #s3-output :is(.stv-next-category,.stv-next-byline){font-weight:650}
@media(max-width:630px) and (orientation:portrait){
 html[data-s3-senal][data-stv-next-mobile=true] #s3-output{width:100vw;height:100vh;height:100dvh;grid-template-rows:46px minmax(0,1fr) 72px}
 html[data-s3-senal][data-stv-next-mobile=true] #s3-firma{height:40px;transform:translateY(-13px)}
 html[data-s3-senal][data-stv-next-mobile=true] .s3-id{font-size:13px}
 html[data-s3-senal][data-stv-next-mobile=true] #s3-output .stv-next-eyeline{top:18px!important}
 html[data-s3-senal][data-stv-next-mobile=true] #s3-output .stv-next-signal[data-scene=news] .stv-next-article{right:16px;bottom:58px!important;max-width:none;max-height:calc(100% - 110px)!important}
 html[data-s3-senal][data-stv-next-mobile=true] #s3-output .stv-next-panel{top:52px!important;right:16px;bottom:52px!important}
 html[data-s3-senal][data-stv-next-mobile=true] #s3-output .stv-next-progress{bottom:43px!important}
 html[data-s3-senal][data-stv-next-mobile=true] #s3-output .stv-next-panel-note{margin-top:8px;font-size:10px}
}
#s3-output:fullscreen{width:100vw;height:100vh} 
@container(max-width:600px){
  #s3-redes a{display:grid;gap:2px}
  #s3-redes small{font-size:7px}
  #s3-redes span{font-size:clamp(8px,2.6cqw,12px)}
  #s3-cabecera{gap:5px}
}
@media(max-width:600px) and (orientation:landscape){
  html[data-s3-senal] #s3-output{grid-template-rows:max(7.2%,23px) minmax(0,1fr) max(9%,32px)}
}
html[data-s3-senal] #s3-output :is(#stvRemoteMedia,#stv2RemoteMedia,.stv-remote-media-frame) video{object-fit:contain!important}

/* Keep the 16:9 artwork on the whole canvas. On a slate the two bands are
   drawn on top of the picture, rather than shrinking the picture between them. */
html[data-s3-senal].s3-tarjeta-en-antena #s3-output :is(#s3-cabecera,#s3-pie,main){grid-column:1}
html[data-s3-senal].s3-tarjeta-en-antena body #s3-output :is(main#stvBroadcast,main#stv2Broadcast){
  grid-row:1/-1;z-index:0;
}
html[data-s3-senal].s3-tarjeta-en-antena #s3-output .s3-program-art .s3-program-poster{object-fit:cover!important}
html[data-s3-senal].s3-tarjeta-en-antena #s3-output #stvSharedSoundGate{
  bottom:calc(9% + 1.2cqw)!important;
}
html[data-s3-senal].s3-tarjeta-en-antena #s3-output{--s3-promo-bottom:12%}
@media(max-width:630px) and (orientation:portrait){
  html[data-s3-senal][data-stv-next-mobile=true].s3-tarjeta-en-antena #s3-output{
    --s3-promo-bottom:calc(72px + 3%);
  }
  html[data-s3-senal][data-stv-next-mobile=true].s3-tarjeta-en-antena #s3-output .s3-program-art::before{
    content:"";position:absolute;inset:0;background:var(--s3-art-source) center/cover no-repeat;
    filter:blur(18px) brightness(.53);transform:scale(1.08);
  }
  html[data-s3-senal][data-stv-next-mobile=true].s3-tarjeta-en-antena #s3-output .s3-program-art .s3-program-poster{object-fit:contain!important}
  html[data-s3-senal][data-stv-next-mobile=true].s3-tarjeta-en-antena #s3-output #stvSharedSoundGate{
    bottom:84px!important;
  }
}

/* When the device expands the native player, keep the bands in its picture. */
#s3-output:-webkit-full-screen{width:100vw;height:100vh}
#s3-output .s3-player-fullscreen{
  --s3-head-height:max(7.2%,23px);
  --s3-foot-height:max(9%,32px);
  --s3-promo-bottom:calc(var(--s3-foot-height) + 3%);
}
#s3-output .s3-player-fullscreen > :is(#s3-cabecera,#s3-pie){
  position:absolute;left:0;right:0;
}
#s3-output .s3-player-fullscreen > #s3-cabecera{top:0;height:var(--s3-head-height)}
#s3-output .s3-player-fullscreen > #s3-pie{bottom:0;height:var(--s3-foot-height)}
html[data-s3-senal] #s3-output .s3-player-fullscreen :is(#stvControls,#stvSharedSoundGate){
  bottom:calc(var(--s3-foot-height) + 1.4cqw)!important;
}
html[data-s3-senal] #s3-output .s3-player-fullscreen > .stv-mobile-fullscreen-toggle{
  top:calc(var(--s3-head-height) + 8px)!important;
}
/* CSS-only fullscreen on touch devices rotates the composed frame as one unit. */
html[data-s3-senal].stv-mobile-image-fullscreen #s3-output:has(> .stv-mobile-fullscreen-fallback){
  width:100vw;height:100dvh;
}
html[data-s3-senal].stv-mobile-image-fullscreen #s3-output:has(> .stv-mobile-fullscreen-fallback.stv-mobile-fullscreen-rotated){
  position:fixed;top:0;left:0;width:100dvh;height:100vw;
  transform-origin:top left;transform:translateX(100vw) rotate(90deg);
  grid-template-rows:max(7.2%,23px) minmax(0,1fr) max(9%,32px);
}
#s3-output #stvOpenScreen{border-color:#69b2d3;background:#69b2d326}
#s3-output #stvOpenScreen:is(:hover,:focus-visible){border-color:#e8f6ff;background:#69b2d34d}
