.live-tv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 290px); gap: 16px; align-items: start; }
.live-tv-watch, .live-tv-guide { min-width: 0; border: 1px solid #e2d3c7; border-radius: 18px; background: #fffaf4; padding: 14px; }
.live-tv-watch header, .live-tv-guide-heading { min-height: 38px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.live-tv-watch header:has(h2[hidden]) { display: none; }
.live-tv-watch h2, .live-tv-guide h2 { margin: 0; font-size: 1rem; }
.live-tv-watch h2 { flex: 1; overflow-wrap: anywhere; }
.live-tv-player { display: flex; flex-direction: column; margin-top: 8px; border-radius: 13px; overflow: hidden; background: #241820; color: #fff6ee; }
.live-tv-stage { position: relative; aspect-ratio: 16 / 9; min-height: 165px; background: #382833; }
.live-tv-stage video { width: 100%; height: 100%; display: block; object-fit: contain; opacity: 0; pointer-events: none; }
.live-tv-stage .live-tv-picture { opacity: 1; background: #171016; }
.live-tv-controls { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 10px; }
.live-tv-controls .ghost { min-height: 42px; padding: 4px 10px; font-size: .85rem; }
.live-tv-player .ghost { color: #fff6ee; border-color: #b99da9; background: #43303e; }
.live-tv-player .ghost:hover:not(:disabled) { border-color: #e3c6d3; background: #5a3e50; }
.live-tv-player button:focus-visible { outline: 2px solid #ffd0a8; outline-offset: 2px; }
.live-tv-live { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: auto; padding: 3px 10px; border-radius: 100px; background: #f5e0e3; color: #7a2f43; font-size: .82rem; font-weight: 700; }
.live-tv-live::before { content: ''; width: .45em; height: .45em; border-radius: 50%; background: currentColor; }
.live-tv-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 16px; text-align: center; background: #382833; }
.live-tv-overlay svg { width: 42px; height: 42px; color: #f0ccb0; }
.live-tv-overlay p { margin: 0; }
.live-tv-player:fullscreen, .live-tv-player-expanded { margin: 0; border-radius: 0; }
.live-tv-player-expanded { position: fixed; inset: 0; z-index: 100; }
.live-tv-player:fullscreen .live-tv-stage, .live-tv-player-expanded .live-tv-stage { flex: 1; min-height: 0; aspect-ratio: auto; }
.live-tv-player:fullscreen .live-tv-controls, .live-tv-player-expanded .live-tv-controls {
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  padding-left: max(10px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
}
.live-tv-guide { display: grid; gap: 10px; }
.live-tv-guide-heading span { color: #73635e; font-size: .78rem; }
.live-tv-guide label { display: grid; gap: 4px; font-size: .85rem; }
.live-tv-guide input, .live-tv-guide select { width: 100%; min-width: 0; min-height: 40px; padding: 6px 10px; font: inherit; }
.live-tv-guide p { margin: 0; }
.live-tv-channels { display: grid; gap: 4px; max-height: clamp(220px, 50vh, 580px); overflow-y: auto; overscroll-behavior: contain; }
.live-tv-channels button { display: grid; gap: 3px; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #382833; font: inherit; text-align: start; }
.live-tv-channels button:hover, .live-tv-channels button[aria-pressed="true"] { background: #f5e0e3; border-color: #e5c6ce; }
.live-tv-channels small { color: #73635e; }
.live-tv-layout [hidden] { display: none; }
@media (max-width: 720px) {
  .live-tv-layout { grid-template-columns: minmax(0, 1fr); }
  .live-tv-channels { max-height: 44vh; }
}
