/*
 * iTV Uganda Watch Live — premium player console v29
 * Scope: /itv-uganda/watch-live/ only.
 * This file deliberately does not style any other iTV, iRadio or iThink Media player.
 */

body[data-itv-section="watch-live"] .itv-watch-player-section {
  position: relative;
  overflow: hidden;
  padding: 54px 0 72px;
  background:
    radial-gradient(circle at 50% -10%, rgba(33, 163, 255, .12), transparent 38%),
    radial-gradient(circle at 8% 55%, rgba(80, 99, 255, .07), transparent 31%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

body[data-itv-section="watch-live"] .itv-watch-player-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(10, 72, 123, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 72, 123, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
}

body[data-itv-section="watch-live"] .itv-watch-player-container {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  margin-inline: auto;
}

body[data-itv-section="watch-live"] .itv-watch-player-frame {
  width: min(100%, 820px);
  margin-inline: auto;
}

body[data-itv-section="watch-live"] .live-player[data-ithm-player="itv"] {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

body[data-itv-section="watch-live"] .ithm-player-shell.itv-watch-console {
  --itv-cyan: #39c7ff;
  --itv-blue: #1688f2;
  --itv-violet: #7367ff;
  --itv-red: #ff315c;
  --itv-ink: #020b14;
  --itv-panel: #071b2d;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 820px;
  overflow: hidden;
  border: 1px solid rgba(84, 202, 255, .62);
  border-radius: 26px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 12% 0%, rgba(55, 194, 255, .18), transparent 28%),
    linear-gradient(145deg, #020b14 0%, #07192a 58%, #061321 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .045) inset,
    0 0 26px rgba(47, 185, 255, .24),
    0 0 64px rgba(32, 114, 255, .13),
    0 28px 75px rgba(0, 20, 42, .34);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

body[data-itv-section="watch-live"] .ithm-player-shell.itv-watch-console:hover {
  border-color: rgba(110, 218, 255, .82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .055) inset,
    0 0 34px rgba(47, 193, 255, .29),
    0 0 78px rgba(32, 114, 255, .16),
    0 31px 82px rgba(0, 20, 42, .38);
}

body[data-itv-section="watch-live"] .ithm-player-shell.itv-watch-console.itv-is-live {
  border-color: rgba(255, 71, 105, .74);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .055) inset,
    0 0 25px rgba(255, 49, 92, .26),
    0 0 65px rgba(39, 167, 255, .18),
    0 30px 78px rgba(0, 20, 42, .38);
}

body[data-itv-section="watch-live"] .ithm-player-shell.itv-watch-console::before {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .045) inset,
    0 0 22px rgba(66, 203, 255, .12) inset;
}

body[data-itv-section="watch-live"] .ithm-player-shell.itv-watch-console::after {
  content: "";
  position: absolute;
  z-index: 19;
  top: 0;
  left: -35%;
  width: 28%;
  height: 100%;
  pointer-events: none;
  opacity: .26;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
  animation: itvConsoleShine 9s ease-in-out infinite;
}

@keyframes itvConsoleShine {
  0%, 60% { left: -38%; }
  78%, 100% { left: 118%; }
}

/* Source selector */
body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(96, 198, 255, .17);
  background:
    linear-gradient(180deg, rgba(2, 11, 20, .98), rgba(3, 15, 27, .94));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head button {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #9bb9cf;
  background: transparent;
  font-size: .91rem;
  font-weight: 900;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head button::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(.45);
  background: linear-gradient(90deg, var(--itv-cyan), #fff, var(--itv-violet));
  box-shadow: 0 0 10px rgba(57, 199, 255, .65);
  transition: opacity .2s ease, transform .2s ease;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head button:hover {
  color: #fff;
  background: rgba(38, 138, 208, .12);
  border-color: rgba(77, 190, 255, .22);
  transform: translateY(-1px);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head button.active {
  color: #fff;
  border-color: rgba(87, 205, 255, .56);
  background:
    radial-gradient(circle at 50% 0%, rgba(101, 217, 255, .18), transparent 60%),
    linear-gradient(135deg, rgba(22, 116, 194, .78), rgba(17, 58, 100, .9));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .055) inset,
    0 7px 20px rgba(0, 102, 189, .24),
    0 0 20px rgba(57, 199, 255, .12);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head button.active::after {
  opacity: 1;
  transform: scaleX(1);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head .quality {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(70, 195, 255, .16);
  border-radius: 999px;
  color: #88dcff;
  background: rgba(22, 72, 108, .22);
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .055em;
  white-space: nowrap;
}

body[data-itv-section="watch-live"] .itv-quality-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--itv-cyan);
  box-shadow: 0 0 0 4px rgba(57, 199, 255, .09), 0 0 11px rgba(57, 199, 255, .85);
  animation: itvQualityPulse 1.8s ease-in-out infinite;
}

body[data-itv-section="watch-live"] .itv-is-live .itv-quality-dot {
  background: var(--itv-red);
  box-shadow: 0 0 0 4px rgba(255, 49, 92, .10), 0 0 12px rgba(255, 49, 92, .9);
}

@keyframes itvQualityPulse {
  50% { opacity: .42; transform: scale(.78); }
}

/* Video stage */
body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(18, 102, 164, .18), transparent 50%),
    #01060b;
  box-shadow: 0 -1px rgba(255, 255, 255, .025) inset, 0 1px rgba(0, 0, 0, .55) inset;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-viewport::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(110, 210, 255, .055) 4px);
  mix-blend-mode: screen;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-viewport::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  box-shadow:
    0 0 42px rgba(13, 144, 235, .13) inset,
    0 0 95px rgba(0, 0, 0, .72) inset;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-viewport > [data-stage],
body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-viewport iframe,
body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-viewport video,
body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-viewport img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border: 0;
  display: block;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-overlay {
  left: 16px;
  top: 15px;
  z-index: 7;
  gap: 7px;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-badge {
  padding: 6px 10px;
  border: 1px solid rgba(91, 191, 255, .19);
  border-radius: 8px;
  color: #e9f8ff;
  background: rgba(3, 20, 35, .78);
  box-shadow: 0 7px 22px rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .035em;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-badge.live {
  border-color: rgba(255, 131, 153, .54);
  background: linear-gradient(135deg, #ff315c, #d9143d);
  box-shadow: 0 0 20px rgba(255, 49, 92, .34), 0 8px 22px rgba(0, 0, 0, .25);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-slate {
  background:
    radial-gradient(circle at 72% 32%, rgba(49, 173, 255, .25), transparent 31%),
    radial-gradient(circle at 25% 76%, rgba(105, 82, 255, .15), transparent 36%),
    linear-gradient(140deg, #03101d 0%, #082b49 58%, #0b426e 100%);
}

body[data-itv-section="watch-live"] .itv-watch-console.is-slate .ithm-player-slate::before {
  opacity: .14;
  filter: saturate(.92) brightness(1.22) drop-shadow(0 0 20px rgba(47, 177, 255, .25));
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-slate strong {
  color: #fff;
  text-shadow: 0 5px 30px rgba(0, 0, 0, .45);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-slate p {
  color: #b7d4e8;
}

/* Keep the console alive while off-air. Shared site CSS hides these rows in slate mode. */
body[data-itv-section="watch-live"] .itv-watch-console.is-slate .ithm-player-controls {
  display: grid !important;
}
body[data-itv-section="watch-live"] .itv-watch-console.is-slate .ithm-player-meta {
  display: grid !important;
}
body[data-itv-section="watch-live"] .itv-watch-console.is-slate .itv-signal-deck {
  display: grid !important;
}
body[data-itv-section="watch-live"] .itv-watch-console.is-slate .ithm-player-ticker {
  display: grid !important;
}

/* Controls */
body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 40px 46px 40px 40px minmax(140px, 1fr) 40px 40px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, .025);
  border-bottom: 1px solid rgba(98, 193, 255, .105);
  background:
    radial-gradient(circle at 14% 0%, rgba(42, 166, 245, .12), transparent 30%),
    linear-gradient(180deg, #071b2d 0%, #061625 100%);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 39px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(96, 197, 255, .25);
  border-radius: 12px;
  color: #eaf8ff;
  background:
    linear-gradient(145deg, rgba(19, 64, 99, .88), rgba(8, 34, 55, .98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .035) inset,
    0 7px 16px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button:hover {
  color: #fff;
  border-color: rgba(101, 214, 255, .62);
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(23, 96, 148, .96), rgba(10, 43, 70, .98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .055) inset,
    0 0 18px rgba(50, 190, 255, .20),
    0 10px 20px rgba(0, 0, 0, .29);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button:active {
  transform: translateY(0) scale(.95);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button:focus-visible,
body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head button:focus-visible {
  outline: 2px solid #94e3ff;
  outline-offset: 3px;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button.primary {
  width: 46px;
  color: #fff;
  border-color: rgba(125, 224, 255, .72);
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, .34), transparent 24%),
    linear-gradient(135deg, #1b9cff 0%, #176ddf 55%, #6658f7 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .12) inset,
    0 0 20px rgba(35, 161, 255, .36),
    0 9px 22px rgba(5, 74, 163, .36);
}

body[data-itv-section="watch-live"] .itv-watch-console.itv-is-playing .ithm-player-controls button.primary {
  border-color: rgba(255, 143, 163, .75);
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, .28), transparent 24%),
    linear-gradient(135deg, #ff4268, #e21f50 58%, #9d245e);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .11) inset,
    0 0 23px rgba(255, 49, 92, .39),
    0 9px 22px rgba(121, 8, 48, .34);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-progress {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 8px;
  overflow: visible;
  border: 1px solid rgba(79, 184, 246, .13);
  border-radius: 999px;
  background: linear-gradient(180deg, #0a2a42, #082238);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .42) inset, 0 0 12px rgba(30, 145, 221, .08);
  cursor: pointer;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-progress::after {
  content: "";
  position: absolute;
  inset: -7px 0;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-progress span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1688f2 0%, #39c7ff 56%, #9beaff 100%);
  box-shadow: 0 0 13px rgba(57, 199, 255, .58);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-progress span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  background: #39c7ff;
  box-shadow: 0 0 0 4px rgba(57, 199, 255, .10), 0 0 14px rgba(57, 199, 255, .75);
}

/* Programme metadata */
body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 8px 14px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(8, 31, 51, .98), rgba(5, 23, 39, .98));
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta > span {
  min-width: 0;
}

body[data-itv-section="watch-live"] .itv-meta-label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 0 3px !important;
  color: #63ccf8 !important;
  font-size: .57rem !important;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-itv-section="watch-live"] .itv-meta-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39c7ff;
  box-shadow: 0 0 9px rgba(57, 199, 255, .72);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #f8fcff;
  font-size: .9rem;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta small {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: #9db8cb;
  font-size: .7rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta > small {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(75, 174, 234, .14);
  border-radius: 999px;
  color: #b9d8e9;
  background: rgba(7, 38, 61, .72);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Permanent animated iTV signal pulse */
body[data-itv-section="watch-live"] .itv-signal-deck {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  height: 62px;
  min-height: 62px;
  box-sizing: border-box;
  padding: 7px 14px;
  border-top: 1px solid rgba(90, 195, 255, .10);
  border-bottom: 1px solid rgba(90, 195, 255, .12);
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 160, 240, .10), transparent 55%),
    linear-gradient(180deg, #061827, #051522);
}

body[data-itv-section="watch-live"] .itv-signal-copy,
body[data-itv-section="watch-live"] .itv-signal-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8dcde9;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .085em;
  white-space: nowrap;
  text-transform: uppercase;
}

body[data-itv-section="watch-live"] .itv-signal-copy i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3bc9ff;
  box-shadow: 0 0 0 4px rgba(59, 201, 255, .08), 0 0 12px rgba(59, 201, 255, .72);
  animation: itvSignalLamp 1.6s ease-in-out infinite;
}

body[data-itv-section="watch-live"] .itv-signal-mode {
  padding: 5px 8px;
  border: 1px solid rgba(69, 185, 246, .15);
  border-radius: 999px;
  color: #70bede;
  background: rgba(9, 43, 68, .56);
  letter-spacing: .05em;
}

body[data-itv-section="watch-live"] .itv-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 34px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

body[data-itv-section="watch-live"] .itv-waveform span {
  flex: 1 1 3px;
  max-width: 5px;
  min-width: 2px;
  height: calc(var(--wave-height, 45) * 1%);
  min-height: 5px;
  border-radius: 999px;
  transform-origin: center;
  background: linear-gradient(180deg, #a7ecff 0%, #39c7ff 38%, #177be9 100%);
  box-shadow: 0 0 8px rgba(57, 199, 255, .34);
  animation: itvWaveIdle var(--wave-speed, 1.25s) ease-in-out infinite alternate;
  animation-delay: calc(var(--wave-index, 1) * -43ms);
}

body[data-itv-section="watch-live"] .itv-watch-console.itv-is-playing .itv-waveform span {
  background: linear-gradient(180deg, #fff1f5 0%, #ff5276 38%, #7e55ff 100%);
  box-shadow: 0 0 10px rgba(255, 65, 105, .44);
  animation-name: itvWaveActive;
  animation-duration: calc(var(--wave-speed, 1.25s) * .64);
}

body[data-itv-section="watch-live"] .itv-watch-console.itv-is-live .itv-signal-copy i {
  background: #ff315c;
  box-shadow: 0 0 0 4px rgba(255, 49, 92, .09), 0 0 13px rgba(255, 49, 92, .86);
}

@keyframes itvSignalLamp {
  50% { opacity: .45; transform: scale(.76); }
}

@keyframes itvWaveIdle {
  0% { transform: scaleY(.36); opacity: .5; }
  55% { transform: scaleY(.82); opacity: .92; }
  100% { transform: scaleY(.48); opacity: .68; }
}

@keyframes itvWaveActive {
  0% { transform: scaleY(.28); opacity: .64; }
  45% { transform: scaleY(1.08); opacity: 1; }
  100% { transform: scaleY(.44); opacity: .74; }
}

/* Updates ticker physically attached to the console */
body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-ticker {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-height: 37px;
  overflow: hidden;
  border: 0;
  background: #030e18;
  white-space: nowrap;
}

body[data-itv-section="watch-live"] .itv-ticker-label {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff315c, #d81740);
  box-shadow: 10px 0 24px rgba(255, 49, 92, .18);
  font-size: .67rem;
  font-weight: 950;
  letter-spacing: .065em;
  text-transform: uppercase;
}

body[data-itv-section="watch-live"] .itv-ticker-label span {
  display: inline !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  animation: none !important;
  transform: none !important;
}

body[data-itv-section="watch-live"] .itv-ticker-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px rgba(255, 255, 255, .78);
  animation: itvTickerDot 1.25s ease-in-out infinite;
}

@keyframes itvTickerDot {
  50% { opacity: .35; transform: scale(.72); }
}

body[data-itv-section="watch-live"] .itv-ticker-window {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 37, 59, .99), rgba(4, 19, 32, .99));
}

body[data-itv-section="watch-live"] .itv-ticker-window::before,
body[data-itv-section="watch-live"] .itv-ticker-window::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
}

body[data-itv-section="watch-live"] .itv-ticker-window::before {
  left: 0;
  background: linear-gradient(90deg, #09253a, transparent);
}

body[data-itv-section="watch-live"] .itv-ticker-window::after {
  right: 0;
  background: linear-gradient(270deg, #041320, transparent);
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-ticker span[data-ticker] {
  display: inline-flex;
  align-items: center;
  min-width: 100%;
  min-height: 37px;
  padding: 0 0 0 100%;
  color: #cae9f8;
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .012em;
  animation: itvWatchTicker 25s linear infinite;
  will-change: transform;
}

body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-ticker:hover span[data-ticker] {
  animation-play-state: paused;
}

@keyframes itvWatchTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Tablet and mobile */
@media (max-width: 760px) {
  body[data-itv-section="watch-live"] .itv-watch-player-section {
    padding: 32px 0 48px;
  }

  body[data-itv-section="watch-live"] .itv-watch-player-container,
  body[data-itv-section="watch-live"] .itv-watch-player-frame,
  body[data-itv-section="watch-live"] .live-player[data-ithm-player="itv"] {
    width: 100%;
    max-width: 100%;
  }

  body[data-itv-section="watch-live"] .ithm-player-shell.itv-watch-console {
    border-radius: 19px !important;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .04) inset,
      0 0 23px rgba(47, 185, 255, .19),
      0 18px 44px rgba(0, 20, 42, .28) !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head {
    min-height: 54px;
    gap: 4px !important;
    padding: 6px !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head::-webkit-scrollbar {
    display: none;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head button {
    flex: 1 0 auto;
    min-width: 82px;
    min-height: 37px;
    padding: 8px 9px !important;
    border-radius: 11px !important;
    font-size: .74rem !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-head .quality {
    display: none !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-viewport,
  body[data-itv-section="watch-live"] .itv-watch-console.is-slate .ithm-player-viewport {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-overlay {
    left: 8px !important;
    top: 8px !important;
    gap: 4px !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-badge {
    padding: 4px 7px !important;
    border-radius: 6px;
    font-size: .55rem !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-slate {
    padding: 16px 13px !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-slate .ithm-slate-signal {
    display: flex !important;
    height: 30px;
    margin-bottom: 10px;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-slate .ithm-slate-signal span {
    width: 5px;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-slate strong {
    max-width: 17rem;
    font-size: .98rem !important;
    line-height: 1.23 !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-slate p {
    max-width: 18rem;
    margin-top: 6px !important;
    font-size: .7rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls,
  body[data-itv-section="watch-live"] .itv-watch-console.is-slate .ithm-player-controls {
    display: grid !important;
    grid-template-columns: 34px 42px 34px minmax(54px, 1fr) 34px 34px !important;
    gap: 5px !important;
    padding: 8px !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls [data-back] {
    display: none !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls [data-mute] {
    display: grid !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button.primary {
    width: 42px !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button svg {
    width: 15px;
    height: 15px;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-progress {
    height: 7px;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta,
  body[data-itv-section="watch-live"] .itv-watch-console.is-slate .ithm-player-meta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding: 9px 10px !important;
  }

  body[data-itv-section="watch-live"] .itv-meta-label {
    margin-bottom: 3px !important;
    font-size: .52rem !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta strong {
    font-size: .82rem !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta small {
    font-size: .65rem !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta > small {
    padding: 5px 7px;
    font-size: .57rem !important;
  }

  body[data-itv-section="watch-live"] .itv-signal-deck,
  body[data-itv-section="watch-live"] .itv-watch-console.is-slate .itv-signal-deck {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    height: 52px;
    min-height: 52px;
    padding: 7px 10px;
  }

  body[data-itv-section="watch-live"] .itv-signal-copy {
    font-size: .52rem;
    letter-spacing: .065em;
  }

  body[data-itv-section="watch-live"] .itv-signal-copy span {
    display: none;
  }

  body[data-itv-section="watch-live"] .itv-signal-mode {
    display: none;
  }

  body[data-itv-section="watch-live"] .itv-waveform {
    gap: 2px;
    height: 34px;
  }

  body[data-itv-section="watch-live"] .itv-waveform span {
    min-width: 1px;
    max-width: 4px;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-ticker,
  body[data-itv-section="watch-live"] .itv-watch-console.is-slate .ithm-player-ticker {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 35px;
  }

  body[data-itv-section="watch-live"] .itv-ticker-label {
    padding: 0 9px;
    gap: 5px;
    font-size: .55rem;
    letter-spacing: .04em;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-ticker span[data-ticker] {
    min-height: 35px;
    font-size: .64rem;
  }
}

@media (max-width: 390px) {
  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls,
  body[data-itv-section="watch-live"] .itv-watch-console.is-slate .ithm-player-controls {
    grid-template-columns: 32px 40px 32px minmax(42px, 1fr) 32px 32px !important;
    gap: 4px !important;
    padding: 7px !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button {
    width: 32px !important;
    height: 32px !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-controls button.primary {
    width: 40px !important;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta > small {
    display: none;
  }

  body[data-itv-section="watch-live"] .itv-watch-console .ithm-player-meta {
    grid-template-columns: 1fr;
  }

  body[data-itv-section="watch-live"] .itv-ticker-label {
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-itv-section="watch-live"] .ithm-player-shell.itv-watch-console::after,
  body[data-itv-section="watch-live"] .itv-quality-dot,
  body[data-itv-section="watch-live"] .itv-signal-copy i,
  body[data-itv-section="watch-live"] .itv-waveform span,
  body[data-itv-section="watch-live"] .itv-ticker-label i {
    animation: none !important;
  }
}
