/* Sonariva TV · count-ins for programmes, scheduled events and YouTube. */
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) {
  --s3-dial-unit: min(.52cqw, .91cqh);
  --s3-motion-cream: #f6e9cc;
  --s3-motion-blue: #9ad8ef;
  --s3-motion-ease: cubic-bezier(.22,.75,.24,1);
  justify-content: center !important;
  background: radial-gradient(ellipse at 50% 51%, #124e65 0%, #0b3549 39%, #061c28 84%) !important;
  color: var(--s3-motion-cream) !important;
  text-align: center !important;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"])::before,
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"])::after {
  display: block !important;
  content: "" !important;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: calc(100 * var(--s3-dial-unit));
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  border-radius: 50%;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"])::before {
  border: max(1px, .1cqw) solid #8dd5e943;
  box-shadow: 0 0 0 calc(3.5 * var(--s3-dial-unit)) #8dd5e910, 0 0 0 calc(7 * var(--s3-dial-unit)) #8dd5e909;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"])::after {
  background: repeating-conic-gradient(from 0deg, #ace6f790 0deg .8deg, transparent .8deg 15deg);
  -webkit-mask-image: radial-gradient(farthest-side, transparent 96%, #000 97% 98%, transparent 99%);
  mask-image: radial-gradient(farthest-side, transparent 96%, #000 97% 98%, transparent 99%);
  animation: s3-motion-dial 1.2s var(--s3-motion-ease) both;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) > .stv-countdown-stage {
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1;
  display: grid !important;
  width: calc(100 * var(--s3-dial-unit)) !important;
  height: calc(100 * var(--s3-dial-unit)) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 16% 6% 14% 6% 28% 9%;
  align-content: center !important;
  align-items: center;
  justify-items: center !important;
  gap: 0 !important;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-stage > * {
  text-align: center !important;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-stage > [hidden] { display: none !important; }
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-logo {
  grid-row: 1;
  width: 34% !important;
  height: 84% !important;
  padding: calc(1.4 * var(--s3-dial-unit)) calc(1.9 * var(--s3-dial-unit)) !important;
  border-radius: calc(1.1 * var(--s3-dial-unit)) !important;
  background: #12394d !important;
  box-shadow: inset 0 0 0 1px #c8edf333 !important;
  object-fit: contain !important;
  object-position: center !important;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-logo.s3-countdown-logo--light {
  background: #f5e9d2 !important;
  box-shadow: inset 0 0 0 1px #fff9 !important;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-eyebrow {
  grid-row: 2;
  color: var(--s3-motion-blue) !important;
  font-size: max(8px, calc(1.75 * var(--s3-dial-unit))) !important;
  line-height: 1.15 !important;
  letter-spacing: .14em !important;
  font-weight: 740 !important;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-title {
  grid-row: 3;
  width: 79% !important;
  color: var(--s3-motion-cream) !important;
  font-size: max(13px, calc(5.35 * var(--s3-dial-unit))) !important;
  line-height: 1.03 !important;
  letter-spacing: -.035em !important;
  font-weight: 740 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden !important;
  text-wrap: balance;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-title:empty { display: none !important; }
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-label {
  grid-row: 4;
  color: var(--s3-motion-blue) !important;
  font-size: max(8px, calc(2.05 * var(--s3-dial-unit))) !important;
  line-height: 1.2 !important;
  font-weight: 740 !important;
  letter-spacing: .15em !important;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-clock {
  grid-row: 5;
  width: 86% !important;
  color: var(--s3-motion-cream) !important;
  font-size: max(23px, calc(24 * var(--s3-dial-unit))) !important;
  line-height: .9 !important;
  font-weight: 750 !important;
  letter-spacing: -.065em !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  text-indent: -.065em;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"])[data-clock-format="hours"] .stv-countdown-clock,
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-clock--long {
  font-size: max(18px, calc(18 * var(--s3-dial-unit))) !important;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-clock.s3-countdown-seconds {
  font-size: max(28px, calc(34 * var(--s3-dial-unit))) !important;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-clock--live {
  color: var(--s3-motion-blue) !important;
  font-size: max(17px, calc(12.8 * var(--s3-dial-unit))) !important;
  letter-spacing: -.04em !important;
  text-indent: 0;
}
html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) .stv-countdown-detail {
  grid-row: 6;
  width: 72% !important;
  color: var(--s3-motion-cream) !important;
  font-size: max(8px, calc(2.2 * var(--s3-dial-unit))) !important;
  line-height: 1.2 !important;
  font-weight: 620 !important;
  text-wrap: balance;
}
@container stv-countdown (max-aspect-ratio:1/1) {
  html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"])::before,
  html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"])::after,
  html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"]) > .stv-countdown-stage {
    --s3-dial-unit: min(.87cqw, .78cqh);
  }
}
@keyframes s3-motion-dial { from { opacity: .15; transform: translate(-50%, -50%) rotate(-18deg); } to { opacity: 1; transform: translate(-50%, -50%) rotate(0); } }
@media (prefers-reduced-motion: reduce) {
  html[data-s3-senal] body .stv-countdown-scene:not([data-stv-program-mode="live"])::after { animation: none !important; }
}
