/* =====================================================================
   ZAPFLIX — LIVE TV (live_tv.php). Loaded after the page's inline styles
   and css/live-tv-responsive.css. Same language as the movie player:
   glass guide, red LIVE accents, edge scrims, round buttons, ambient light.
   Playback code and element ids are unchanged; js/zapflix-live.js adds
   chips, clock, previous/next, theater mode and the tuning screen.
   ===================================================================== */
.zf-live-page {
  --zl-red: #e50914;
  --zl-red-hi: #ff2c36;
  --zl-red-pill: linear-gradient(135deg, #ff2c36 0%, #e50914 55%, #b00610 100%);
  --zl-glass: rgba(18, 18, 22, 0.82);
  --zl-line: rgba(255, 255, 255, 0.1);
  --zl-ink-2: rgba(255, 255, 255, 0.68);
  --zl-ink-3: rgba(255, 255, 255, 0.45);
  --zl-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --zl-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  background: #050506 !important;
}

/* navbar language button → pill like the rest of the bar */
.zf-live-page .navbar .lang-toggle {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px;
  font-weight: 700;
}
.zf-live-page .navbar .lang-toggle:hover { background: rgba(255, 255, 255, 0.14) !important; color: #fff !important; }
.zf-live-page .navbar .nav-links a.live-link .dot { background: var(--zl-red); }
@media (min-width: 901px) {
  .zf-live-page .wrap { height: calc(100vh - 72px); height: calc(100dvh - 72px); }
}

/* ============================================================ guide */
.zf-live-page .side {
  width: 360px;
  min-width: 360px;
  background: rgba(10, 10, 13, 0.88) !important;
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 0 !important;
  border-inline-end: 1px solid var(--zl-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.zf-live-page .side .hd { padding: 22px 20px 4px; }
.zf-live-page .side .hd h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; gap: 10px; }
.zf-live-page .side .hd .dot { width: 10px; height: 10px; background: var(--zl-red); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.6); }
.zf-live-page .hd-count {
  margin-inline-start: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--zl-ink-2);
  letter-spacing: 0;
}
.zf-live-page .hd-count:empty { display: none; }
.zf-live-page .hd-sub { margin-top: 4px; font-size: 12.5px; color: var(--zl-ink-3); }

.zf-live-page .search { position: relative; margin: 14px 16px 10px; }
.zf-live-page .search svg {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  width: 18px;
  height: 18px;
  fill: var(--zl-ink-3);
  transform: translateY(-50%);
  pointer-events: none;
}
.zf-live-page .search input {
  height: 44px;
  padding: 0 16px !important;
  padding-inline-start: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}
.zf-live-page .search input:focus { box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.7), 0 0 0 4px rgba(229, 9, 20, 0.16) !important; background: rgba(255, 255, 255, 0.08) !important; }
.zf-live-page .search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.6); }

.zf-live-page .chips {
  display: flex;
  gap: 6px;
  padding: 2px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
}
.zf-live-page .chips::-webkit-scrollbar { display: none; }
.zf-live-page .chip {
  flex: none;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.zf-live-page .chip:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.zf-live-page .chip:active { transform: scale(0.95); }
.zf-live-page .chip.on { background: #fff; color: #0a0a0b; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.zf-live-page .chip-fav::before { content: '\2605'; margin-inline-end: 6px; color: #ffd166; }
.zf-live-page .chip-fav.on::before { color: #e0a800; }

.zf-live-page .list { padding: 2px 10px 20px; }
.zf-live-page .list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); }
.zf-live-page .chan {
  position: relative;
  gap: 12px;
  padding: 9px 10px;
  margin-bottom: 2px;
  border: 0 !important;
  border-radius: 16px;
  transform: none !important;
  outline: none;
  transition: background 0.18s var(--zl-ease), box-shadow 0.18s;
}
.zf-live-page .chan:hover { background: rgba(255, 255, 255, 0.05) !important; }
.zf-live-page .chan:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
.zf-live-page .chan.active {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.07)) !important;
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.45) !important;
}
html[dir="rtl"] .zf-live-page .chan.active { background: linear-gradient(270deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.07)) !important; }
.zf-live-page .chan .num {
  flex: none;
  width: 20px;
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.32);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.zf-live-page .chan.active .num { color: var(--zl-red-hi); }
.zf-live-page .chan .logo {
  width: 54px;
  height: 54px;
  padding: 6px;
  border: 0 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  font-size: 18px;
  overflow: hidden;
}
.zf-live-page .chan .meta { flex: 1; min-width: 0; }
.zf-live-page .chan .nm { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zf-live-page .chan .ct { margin-top: 3px; font-size: 12px; color: var(--zl-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zf-live-page .chan .eq { display: none; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.zf-live-page .chan .eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--zl-red-hi); transform-origin: bottom; animation: zlEq 0.9s ease-in-out infinite; }
.zf-live-page .chan .eq i:nth-child(2) { animation-delay: -0.3s; }
.zf-live-page .chan .eq i:nth-child(3) { animation-delay: -0.6s; }
.zf-live-page .chan.active .eq { display: flex; }
@keyframes zlEq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.zf-live-page .chan .fav {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.zf-live-page .chan .fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.zf-live-page .chan:hover .fav,
.zf-live-page .chan:focus-within .fav,
.zf-live-page .chan .fav.on { opacity: 1; }
.zf-live-page .chan .fav:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.zf-live-page .chan .fav.on { color: #ffd166; }
.zf-live-page .chan .fav.on svg { fill: currentColor; }
.zf-live-page .chan .fav:active { transform: scale(0.85); }
@media (hover: none) { .zf-live-page .chan .fav { opacity: 0.7; } }
.zf-live-page .empty { padding: 34px 16px; color: var(--zl-ink-3); }

/* ============================================================ stage */
.zf-live-page .stage { background: #000; isolation: isolate; }
.zf-live-page .ambient {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  z-index: 0;
  opacity: 0;
  filter: blur(64px) saturate(1.6) brightness(0.8);
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.zf-live-page .stage.has-ambient .ambient { opacity: 0.7; }
.zf-live-page .stage.has-ambient #v { background: transparent; }

/* top bar: logo, LIVE, name, category */
.zf-live-page .topbar {
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  justify-content: flex-start;
  gap: 14px;
  padding: 22px 28px 70px;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0) 100%) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  transition: opacity 0.35s var(--zl-ease);
}
.zf-live-page .tb-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 7px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 28px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 20px;
  font-weight: 900;
  overflow: hidden;
}
.zf-live-page .tb-logo:empty { display: none; }
.zf-live-page .tb-logo img,
.zf-live-page .tuning-logo img { width: 100%; height: 100%; object-fit: contain; }
.zf-live-page .tb-meta { min-width: 0; }
.zf-live-page .tb-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zf-live-page .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 10px 4px 8px;
  border-radius: 999px !important;
  background: var(--zl-red-pill);
  box-shadow: 0 6px 16px rgba(229, 9, 20, 0.45) !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.zf-live-page .badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: zlBlink 1.6s ease-in-out infinite;
}
.zf-live-page .badge.behind { background: rgba(255, 255, 255, 0.16); box-shadow: none !important; }
.zf-live-page .badge.behind::before { animation: none; opacity: 0.6; }
@keyframes zlBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.zf-live-page .chname { min-width: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.zf-live-page .tb-cat { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--zl-ink-2); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.zf-live-page .tb-cat:empty { display: none; }
.zf-live-page .tb-clock {
  position: absolute;
  top: 30px;
  inset-inline-end: 28px;
  z-index: 6;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: opacity 0.35s var(--zl-ease);
}
.zf-live-page .tb-clock:empty { display: none; }

/* controls */
.zf-live-page .controls {
  gap: 8px;
  padding: 80px 24px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 100%) !important;
  transition: opacity 0.35s var(--zl-ease);
}
.zf-live-page .cbtn {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  transition: background 0.2s var(--zl-ease), transform 0.2s var(--zl-ease), color 0.2s;
}
.zf-live-page .cbtn:hover { background: rgba(255, 255, 255, 0.14) !important; transform: none; }
.zf-live-page .cbtn:active { transform: scale(0.9); }
.zf-live-page .cbtn svg { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45)); }
.zf-live-page #playBtn { width: 48px; height: 48px; }
.zf-live-page #playBtn svg { width: 30px; height: 30px; }
.zf-live-page .cbtn:focus-visible,
.zf-live-page .live-btn:focus-visible,
.zf-live-page .chip:focus-visible,
.zf-live-page .chan .fav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.zf-live-page .cbtn.on { color: var(--zl-red-hi); }
.zf-live-page .zf-theater-btn[aria-pressed="true"] { color: var(--zl-red-hi); background: rgba(229, 9, 20, 0.14) !important; }

.zf-live-page .live-btn {
  flex: none;
  height: 34px;
  margin: 0 4px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--zl-red-pill);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: background 0.2s, box-shadow 0.2s, filter 0.2s;
}
.zf-live-page .live-btn:hover { background: var(--zl-red-pill); filter: brightness(1.1); }
.zf-live-page .live-btn .d { width: 7px; height: 7px; background: #fff; animation: zlBlink 1.6s ease-in-out infinite; }
.zf-live-page .live-btn.behind { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.zf-live-page .live-btn.behind .d { background: rgba(255, 255, 255, 0.6); animation: none; }
html[dir="rtl"] .zf-live-page .live-btn { letter-spacing: 0; padding: 0 12px 0 14px; }

.zf-live-page .vol input {
  width: 96px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.zf-live-page .vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.zf-live-page .vol input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.zf-live-page .qlabel {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.zf-live-page .qlabel:empty { display: none; }

/* menus (audio, cast) */
.zf-live-page .menu-pop {
  bottom: 58px;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--zl-line) !important;
  border-radius: 18px !important;
  background: rgba(18, 18, 22, 0.92) !important;
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  transform-origin: bottom right;
}
.zf-live-page .menu-pop.open { animation: zlPop 0.24s var(--zl-ease-out); }
@keyframes zlPop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.zf-live-page .menu-pop .h { padding: 8px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--zl-ink-3); }
.zf-live-page .opt { min-height: 42px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: background 0.15s; }
.zf-live-page .opt:hover { background: rgba(255, 255, 255, 0.08); }
.zf-live-page .opt.sel { background: rgba(229, 9, 20, 0.16); box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.45); }
.zf-live-page .opt.sel::before { color: var(--zl-red-hi); }

/* spinner, toast */
.zf-live-page .spinner {
  z-index: 8;
}
@media (max-width: 600px) {
  .zf-live-page .spinner .zf-bl { font-size: 26px; }
}
.zf-live-page .toast {
  bottom: 112px;
  padding: 12px 20px;
  border: 1px solid var(--zl-line);
  border-radius: 18px;
  background: rgba(18, 18, 22, 0.9);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  z-index: 9;
}
.zf-live-page .toast b { color: #ff7a80; }

/* tuning screen while a new channel starts */
.zf-live-page .tuning {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(60% 55% at 50% 48%, rgba(229, 9, 20, 0.14), transparent 70%), rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--zl-ease), visibility 0s linear 0.4s;
  pointer-events: none;
  text-align: center;
}
.zf-live-page .stage.is-switching .tuning { opacity: 1; visibility: visible; transition: opacity 0.25s var(--zl-ease), visibility 0s; }
.zf-live-page .stage.is-switching .spinner { display: none !important; }
.zf-live-page .tuning-logo {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 0 rgba(229, 9, 20, 0.45);
  font-size: 40px;
  font-weight: 900;
  animation: zlTune 1.8s ease-in-out infinite;
}
@keyframes zlTune {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 0 rgba(229, 9, 20, 0.45); transform: scale(1); }
  50% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 0 18px rgba(229, 9, 20, 0); transform: scale(1.03); }
}
.zf-live-page .tuning p { margin: 0; font-size: 15px; color: var(--zl-ink-2); }
.zf-live-page .tuning p b { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; color: #fff; }
.zf-live-page .tuning-bar { position: relative; width: 180px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.zf-live-page .tuning-bar span { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: var(--zl-red-pill); animation: zlSweep 1.2s var(--zl-ease) infinite; }
.zf-live-page .tuning-mark { margin-top: 4px; }
.zf-live-page .tuning-mark .zf-bl { font-size: 24px; }
@keyframes zlSweep { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

/* idle: hide chrome together */
.zf-live-page .stage.idle .tb-clock { opacity: 0 !important; }

/* theater mode: the guide folds away (desktop) */
@media (min-width: 821px) {
  body.zf-live-theater .side { display: none; }
}
@media (max-width: 820px) {
  .zf-live-page .zf-theater-btn { display: none; }
}

/* ============================================================ phones */
@media (max-width: 820px) {
  .zf-live-page .topbar { padding: 10px 14px 40px; padding-inline-end: 14px; gap: 10px; }
  .zf-live-page .tb-logo { width: 38px; height: 38px; padding: 4px; border-radius: 11px; font-size: 15px; }
  .zf-live-page .chname { font-size: 15px; }
  .zf-live-page .tb-cat { display: none; }
  .zf-live-page .tb-clock { top: 14px; inset-inline-end: 14px; padding: 4px 10px; font-size: 12px; }
  .zf-live-page .controls { padding: 34px 8px calc(8px + env(safe-area-inset-bottom)); gap: 2px; }
  .zf-live-page .cbtn { width: 40px; height: 40px; }
  .zf-live-page #playBtn { width: 42px; height: 42px; }
  .zf-live-page #playBtn svg { width: 26px; height: 26px; }
  .zf-live-page .live-btn { height: 30px; font-size: 11px; padding: 0 10px; }
  .zf-live-page .toast { bottom: 70px; font-size: 13px; }
  .zf-live-page .tuning-logo { width: 76px; height: 76px; padding: 10px; border-radius: 20px; font-size: 28px; }
  .zf-live-page .tuning p b { font-size: 17px; }
  .zf-live-page .ch-toggle { background: rgba(18, 18, 22, 0.82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 26px rgba(0, 0, 0, 0.5); border: 0; }
  .zf-live-page .side .hd::before { background: rgba(255, 255, 255, 0.25); }
}
@media (max-width: 480px) {
  .zf-live-page .zf-step { display: none; }
  .zf-live-page #pipBtn { display: none !important; }
}

/* portrait phone: picture on top, the guide right under it (no hidden sheet) */
@media (max-width: 820px) and (orientation: portrait) {
  .zf-live-page .wrap { flex-direction: column; height: calc(100vh - 56px); height: calc(100dvh - 56px - env(safe-area-inset-top, 0px)); }
  .zf-live-page .stage { order: -1; flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 46vh; }
  .zf-live-page .stage.css-fs { aspect-ratio: auto; max-height: none; }
  .zf-live-page .side {
    position: static;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    min-height: 0;
    transform: none !important;
    border-inline-end: 0 !important;
    border-top: 1px solid var(--zl-line) !important;
    border-radius: 0 !important;
  }
  .zf-live-page .side .hd { padding: 14px 16px 2px; }
  .zf-live-page .side .hd::before { display: none; }
  .zf-live-page .side .hd h1 { font-size: 18px; }
  .zf-live-page .hd-sub { display: none; }
  .zf-live-page .search { margin: 10px 14px 8px; }
  .zf-live-page .chips { padding: 2px 14px 10px; }
  .zf-live-page .list { padding: 2px 8px calc(16px + env(safe-area-inset-bottom)); }
  .zf-live-page .ch-toggle,
  .zf-live-page .ch-backdrop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .zf-live-page .chan .eq i,
  .zf-live-page .badge::before,
  .zf-live-page .live-btn .d,
  .zf-live-page .tuning-logo,
  .zf-live-page .tuning-bar span { animation: none; }
}
body.tv-mode .ambient,
body.tv-mode .tuning-bar,
body.tv-mode .tuning-mark { display: none; }
html[dir="rtl"] .zf-live-page .zf-step svg { transform: scaleX(-1); }
