* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #152d49;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}
button,
a,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #3e9cfc;
  outline-offset: 3px;
}
.tv-stage,
.tv-screen-box,
.console-screen {
  position: relative;
  isolation: isolate;
}
.tv-stage {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #091726;
  direction: ltr;
}
.tv-program,
.tv-backdrop,
.tv-ad {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tv-program,
.tv-ad img,
.tv-ad video {
  object-fit: contain;
  background: #07111d;
}
.tv-backdrop {
  background:
    linear-gradient(105deg, #071523cc, #10283fd9),
    url("/images/basra.jpg") center/cover;
}
.tv-stage.has-picture .tv-backdrop {
  display: none;
}
.tv-bug {
  position: absolute;
  z-index: 4;
  right: 3%;
  top: 5%;
  width: clamp(33px, 9%, 84px);
  aspect-ratio: 1;
  filter: drop-shadow(0 2px 5px #0015);
  pointer-events: none;
}
.tv-bug[data-corner$="left"] {
  right: auto;
  left: 3%;
}
.tv-bug[data-corner^="bottom"] {
  top: auto;
  bottom: 15%;
}
.tv-bug i {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.tv-bug[data-motion="fade"] {
  animation: tvFade 7s ease-in-out infinite;
}
.tv-bug[data-motion="spin"] {
  animation: tvSpin 9s ease-in-out infinite;
}
.tv-bug[data-motion="build"] i {
  animation: tvPiece 8s ease-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes tvFade {
  0%,
  15%,
  65%,
  100% {
    opacity: 1;
  }
  84% {
    opacity: 0.16;
  }
}
@keyframes tvSpin {
  0%,
  68% {
    transform: rotate(0);
  }
  88%,
  100% {
    transform: rotate(360deg);
  }
}
@keyframes tvPiece {
  0%,
  5% {
    opacity: 0;
    transform: scale(0.8) translateY(15%);
  }
  19%,
  83% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: none;
  }
}
.tv-rail {
  position: absolute;
  z-index: 5;
  bottom: 0;
  inset-inline: 0;
  background: #09213af2;
  color: #fff;
  display: flex;
  direction: rtl;
  align-items: stretch;
  min-height: 9%;
  font-size: clamp(11px, 1.6vw, 23px);
  border-top: 2px solid #ef3d4f;
}
.tv-rail-label {
  background: #df263d;
  display: grid;
  place-items: center;
  padding-inline: 3%;
  font: bold 0.8em Arial;
  letter-spacing: 0.06em;
}
.tv-rail-window {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  direction: ltr;
}
.tv-crawl {
  display: flex;
  width: max-content;
  min-width: 200%;
  animation: tvScroll var(--seconds, 24s) linear infinite;
  will-change: transform;
}
.tv-crawl b {
  direction: rtl;
  text-align: center;
  white-space: nowrap;
  flex: 0 0 50%;
  padding-inline: 34px;
  font-weight: 600;
  line-height: 1.65;
}
@keyframes tvScroll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.tv-ad {
  z-index: 3;
  display: grid;
  place-items: center;
  color: white;
  background: radial-gradient(
    ellipse at 80% 95%,
    #20527b,
    #112b47 57%,
    #0c1c31
  );
  border-bottom: 4px solid #df2d41;
  overflow: hidden;
}
.tv-ad strong {
  max-width: 84%;
  text-align: center;
  font-size: clamp(17px, 3.4vw, 60px);
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.tv-ad img,
.tv-ad video {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.tv-ad-label {
  position: absolute;
  left: 3%;
  bottom: 14%;
  font-size: clamp(9px, 1.15vw, 15px);
  background: #0b1c32d9;
  padding: 0.3em 0.8em;
  border-radius: 0.25em;
}
.tv-view {
  background: #edf2f6;
  min-height: 100vh;
  padding-bottom: 30px;
}
.tv-mast {
  margin: 0 auto 34px;
  padding: 14px max(5vw, 19px);
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-bottom: 1px solid #d8e2ea;
}
.tv-mast img {
  width: 49px;
  height: 49px;
  object-fit: contain;
}
.tv-mast div {
  display: grid;
  gap: 5px;
}
.tv-mast span {
  font: 10px Arial;
  letter-spacing: 0.17em;
  color: #698097;
}
.tv-mast a {
  color: inherit;
  text-decoration: none;
}
.tv-home {
  margin-inline-start: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.tv-shell {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 12px 45px #102a461a;
  background: #0c2138;
  color: #fff;
}
.tv-view-heading,
.tv-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
}
.tv-view-heading {
  min-height: 58px;
}
.tv-view-heading h1 {
  font-size: clamp(15px, 2.2vw, 25px);
  margin: 0;
}
.tv-mark {
  color: #fd5662;
  display: grid;
  place-items: center;
}
.tv-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 11px;
  background: #d3dce533;
  color: inherit;
}
.tv-status:before {
  content: "";
  height: 7px;
  width: 7px;
  border-radius: 100%;
  background: #8294a5;
}
.tv-status.on {
  color: #fff;
  background: #d92943;
}
.tv-status.on:before {
  background: white;
}
.tv-view-heading .tv-status {
  margin-inline-start: auto;
}
.tv-center,
.slate {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #fff;
  text-align: center;
  padding: 12%;
}
.tv-center span {
  font-weight: 700;
}
.tv-center button {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #de2c44;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 13px 24px;
}
.tv-controls {
  min-height: 45px;
  background: #112b44;
  font-size: 12px;
}
.tv-controls time {
  margin-inline-end: auto;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  color: #c2d5e6;
}
.tv-controls button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: transparent;
  border: 0;
  color: white;
}
.tv-shell:fullscreen,
.tv-shell.screen-max {
  max-width: none;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #040b11;
  border-radius: 0;
}
.tv-shell.screen-max {
  position: fixed;
  z-index: 9999;
  inset: 0;
}
.tv-shell:fullscreen .tv-stage,
.tv-shell.screen-max .tv-stage {
  max-height: calc(100dvh - 110px);
}
.embedded {
  background: transparent;
  padding: 0;
  min-height: 0;
}
.embedded .tv-shell {
  margin: 0;
  max-width: none;
  border-radius: 0;
}
.embedded .tv-view-heading {
  display: none;
}
.embedded .tv-controls {
  height: 42px;
  min-height: 42px;
}
.embedded .tv-shell:fullscreen .tv-view-heading {
  display: flex;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .tv-mast {
    margin-bottom: 14px;
  }
  .tv-shell {
    border-radius: 0;
  }
  .tv-controls,
  .tv-view-heading {
    padding-inline: 10px;
    gap: 9px;
  }
  .tv-center {
    padding: 4% 8%;
    font-size: 13px;
  }
  .tv-center button {
    padding: 9px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tv-bug,
  .tv-bug i,
  .tv-crawl {
    animation: none !important;
  }
  .tv-crawl {
    min-width: 100%;
    width: 100%;
  }
  .tv-crawl b {
    flex: 1;
    white-space: normal;
    font-size: 0.9em;
  }
  .tv-crawl b + b {
    display: none;
  }
}
.tv-standby {
  position: absolute; inset: 0; z-index: 6; isolation: isolate; overflow: hidden;
  display: grid; place-content: center; justify-items: center; gap: clamp(7px, 2.2vw, 21px);
  background: radial-gradient(ellipse at 51% 40%, #254362 0%, #142d49 49%, #0a1c30 100%);
  color: #fff; text-align: center;
}
.tv-standby::before {
  content: ""; position: absolute; z-index: -1; inset: -30%;
  background: repeating-linear-gradient(123deg, transparent 0 29px, #b6d3ef0a 30px, transparent 31px 60px);
}
.tv-ident { position: relative; padding: clamp(3px, .7vw, 7px); }
.tv-ident img {
  display: block; width: clamp(32px, 12vw, 106px); height: auto; aspect-ratio: 1;
  object-fit: contain; border-radius: 10%; background: #fff; box-shadow: 0 4px 17px #05111f66;
}
.tv-ident img { animation: station-ident 5s ease-in-out infinite; }
@keyframes station-ident { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
.tv-ident::before, .tv-ident::after {
  content: ""; position: absolute; inset: -2px; border: 1px solid #90bfdc99; border-radius: 20%;
  animation: station-signal 4s ease-out infinite;
}
.tv-ident::after { animation-delay: -2s; }
@keyframes station-signal { from { transform: scale(.95); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
.tv-standby strong { position: relative; font-size: clamp(12px, 3.4vw, 33px); line-height: 1.4; }
.off-air .tv-controls #sound, .off-air .tv-controls #clock, .off-air .tv-bug, .off-air .tv-rail { display: none; }
.off-air #full { margin-inline-start: auto; }
.embedded .tv-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.embedded .tv-screen-box { flex: 1; min-height: 0; }
.embedded .tv-stage { height: 100%; aspect-ratio: auto; }
.embedded .tv-controls { min-height: 34px; height: 34px; padding: 0 7px; gap: 6px; flex: 0 0 34px; }
.embedded .tv-controls button { min-width: 30px; min-height: 32px; justify-content: center; }
.embedded .tv-controls button span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.embedded .tv-controls #watchState { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.embedded .tv-controls time { font-size: 10px; }
.embedded .tv-standby { gap: 5px; }
.embedded .tv-center { padding: 6px; font-size: 11px; gap: 4px; }
.embedded .tv-center button { padding: 4px 9px; }
@media (max-width: 230px) {
  .embedded .tv-controls { gap: 2px; padding-inline: 4px; }
  .embedded .tv-controls #watchState { flex: 1; }
  .embedded .tv-controls button { min-width: 27px; padding: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-ident img, .tv-ident::before, .tv-ident::after { animation: none; }
  .tv-ident::after { display: none; }
}
.tv-intermission {
  position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; justify-items: center;
  gap: .45em; background: radial-gradient(ellipse at 48% 45%,#294d70,#102a42 66%,#0b1c2d);
  text-align: center; color: white; padding: 5%; direction: inherit;
}
.tv-intermission strong { font-size: clamp(13px,3vw,34px); }
.tv-intermission span { font-size: clamp(10px,1.8vw,20px); font-variant-numeric: tabular-nums; color: #d3e2ef; }

body.program-output{width:100vw;height:100vh;margin:0;overflow:hidden;background:#07111d;cursor:none}
.program-output .tv-mast,.program-output .tv-view-heading,.program-output .tv-controls,.program-output .tv-center{display:none!important}
.program-output .tv-shell,.program-output .tv-screen-box,.program-output .tv-stage{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;padding:0;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none}

.tv-opening{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2%;background:radial-gradient(ellipse at 50% 35%,#1e4060,#0c1f35 72%);color:#f4f7fc;text-align:center;font-family:Tahoma,Arial,sans-serif}
.tv-opening[hidden]{display:none}
.tv-opening img{width:11%;height:auto;max-height:28%;object-fit:contain;border-radius:8%;background:white}
.tv-opening strong{font-size:clamp(11px,2.4vw,30px)}
.tv-opening time{font-size:clamp(16px,4vw,52px);font-variant-numeric:tabular-nums;letter-spacing:.06em}
