#real-live {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: #0b0a09;
  --live-panel: #141310;
  --live-row: #1b1916;
  --live-border: #40362a;
  --live-outline: #765c34;
  --live-gold: #e4c17f;
  --live-muted: #bdb5a7;
}
#live-top {
  position: absolute;
  top: 13px;
  right: 35px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 15px;
}
#live-clock { color: #f6f2ea; font-size: 24px; text-align: right; }
#live-notifications { position: relative; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; background: transparent; border-color: transparent; }
#live-inbox-badge { position: absolute; top: 2px; right: 1px; color: #21180e; background: var(--gold); border-radius: 10px; font-size: 11px; padding: 1px 4px; }
#live-grid {
  position: absolute;
  left: 34px;
  top: 64px;
  width: 1371px;
  height: 715px;
  display: grid;
  grid-template-columns: 264px 473px minmax(0, 1fr);
  gap: 13px;
}
#live-category-panel, #live-channel-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--live-panel);
  border: 1px solid var(--live-outline);
  border-radius: 13px;
  overflow: hidden;
  padding: 9px;
}
.live-brand { height: 44px; flex: 0 0 44px; margin: 0 5px 5px; display: flex; gap: 9px; align-items: center; }
.live-brand img { width: 84px; height: 32px; object-fit: contain; }
.live-brand h1 { font-size: 23px; margin: 0; padding-left: 12px; border-left: 1px solid var(--live-outline); }
#live-categories, #live-channels {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 4px 8px;
}
#real-live .live-shortcut, #live-categories button, #live-channels button {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-align: left;
  min-width: 0;
  min-height: 40px;
  background: var(--live-row);
  border: 1px solid var(--live-border);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 17px;
}
#real-live .live-shortcut { margin-bottom: 2px; gap: 11px; }
.live-shortcut::before {
  content: '';
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  background: var(--live-gold);
  -webkit-mask: var(--shortcut) center / contain no-repeat;
  mask: var(--shortcut) center / contain no-repeat;
}
#live-search { --shortcut: url(assets/android-icons/search.png); }
#live-favorites { --shortcut: url(assets/live-controls/heart.png); }
#live-recent { --shortcut: url(assets/live-controls/recent.png); }
#live-home { --shortcut: url(assets/android-icons/home.png); }
.live-home { border-top: 1px solid var(--live-border); padding-top: 7px; margin-top: 4px; flex-shrink: 0; }
#live-home { margin: 0; }
#live-category-title { color: var(--live-gold); margin: 0 6px 3px; font-size: 18px; line-height: 28px; }
#live-channels button { min-height: 46px; gap: 9px; }
#live-channels button .channel-name, #live-categories button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#live-channels button .channel-ordinal { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--live-gold); width: 36px; flex: 0 0 36px; text-align: center; }
#live-channels .channel-caption { min-width: 0; display: flex; flex-direction: column; gap: 1px; flex: 1; }
#live-channels .channel-buffer { flex: 0 0 auto; font-size: 12px; color: var(--live-muted); font-variant-numeric: tabular-nums; }
.channel-program { color: var(--live-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-program:empty { display: none; }
.vhd-channel-logo { width: 34px; height: 29px; object-fit: contain; flex: 0 0 34px; background: #131310; border-radius: 3px; }
#live-categories button:focus, #live-channels button:focus, #real-live .live-shortcut:focus {
  outline: 1px solid var(--live-gold); outline-offset: 0; background: #342819; color: #fff;
}
#live-categories button[aria-pressed="true"], #live-channels button[aria-pressed="true"],
#real-live .live-shortcut[aria-pressed="true"] { border-color: #8c6d40; background: #32291b; }
#live-player-stack { min-width: 0; position: relative; }
#live-video-area {
  height: 342px;
  background: #000;
  border: 1px solid var(--live-outline);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
}
#live-video-area:focus { outline: 1px solid var(--live-gold); outline-offset: 0; }
#live-video { width: 100%; height: 100%; position: absolute; top: 0; left: 0; object-fit: contain; }
#live-player-empty { position: relative; width: min(94%, 630px); text-align: center; padding: 18px; background: #090909c9; border-radius: 9px; }
#live-player-title { font-size: 20px; margin: 0; }
#live-player-message { color: var(--muted); font-size: 16px; line-height: 1.48; margin: 8px 0 0; }
#live-player-message:empty { display: none; }
#live-now-playing {
  position: absolute;
  top: 354px;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 20px;
  background: var(--live-panel);
  border: 1px solid var(--live-outline);
  border-radius: 13px;
}
#live-now-playing h2 { color: var(--live-gold); font-size: 14px; letter-spacing: 1px; margin: 0 0 13px; }
.now-channel { display: flex; align-items: center; gap: 12px; }
.now-channel .now-channel-logo { display: block; width: 44px; height: 36px; object-fit: contain; }
#live-current-logo:empty { display: none; }
#live-channel-title { font-size: 24px; margin: 0; }
#live-program, #live-guide-next { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#live-program { font-size: 21px; margin: 16px 0 5px; }
#live-program-time, #live-guide-next-time { font-size: 15px; color: var(--live-muted); margin: 5px 0; }
#live-guide-next { font-size: 17px; margin: 15px 0 0; color: #e1dacb; }
#live-remote-hint {
  position: absolute;
  bottom: 13px;
  right: 20px;
  left: 20px;
  color: var(--live-muted);
  font-size: 13px;
  border-top: 1px solid var(--live-border);
  padding-top: 11px;
  margin: 0;
}
#live-program-progress, #live-tune-progress { display: block; width: 100%; height: 3px; border: 0; margin: 7px 0; }
#real-live progress::-webkit-progress-bar { background: #45505e; }
#real-live progress::-webkit-progress-value { background: var(--gold); }
#live-list-empty { font-size: 16px; margin: 12px; color: var(--live-muted); }
#live-channel-panel:has(#live-list-empty:not([hidden])) #live-channels { flex: 0 0 auto; }
#live-retry { margin: 8px 12px; }
#live-state { position: absolute; left: 38px; bottom: 8px; margin: 0; color: #f3d38b; font-size: 14px; pointer-events: none; z-index: 3; }
#live-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  padding: 28px 120px;
  display: flex;
  justify-content: center;
  gap: 14px;
  background: #101012de;
  z-index: 3;
}
#real-live #live-overlay button { flex: 1 1 0; height: 54px; min-width: 0; padding: 0 14px; font-size: 14px; text-align: left; }
#real-live #live-overlay button:not([hidden]) { display: flex; align-items: center; gap: 9px; }
#live-tune-banner {
  position: absolute;
  left: 821px;
  top: 356px;
  width: 560px;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #091627f4;
  border: 1px solid #455a71;
  border-radius: 8px;
  font-size: 12px;
  pointer-events: none;
  z-index: 4;
}
#live-tune-number, #live-tune-quality { color: var(--gold); font-weight: 700; flex: 0 0 auto; }
#live-tune-logo img { display: block; width: 23px; height: 23px; object-fit: contain; border-radius: 3px; }
#live-tune-logo:empty { display: none; }
.live-tune-channel { flex: 1 1 0; display: flex; align-items: center; min-width: 0; gap: 7px; }
#live-tune-name, #live-tune-category, #live-tune-program, #live-tune-next { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#live-tune-category:empty { display: none; }
#live-tune-category, #live-tune-left, #live-tune-next { color: #c2cad5; }
#live-tune-guide { flex: 1.4 1 0; min-width: 0; }
.live-tune-current { display: flex; gap: 8px; align-items: center; }
#live-tune-program { flex: 1; }
#live-tune-left { flex: 0 0 auto; }
#live-tune-progress { height: 2px; margin: 2px 0; }
#real-live.fullscreen #live-top, #real-live.fullscreen #live-grid > #live-category-panel,
#real-live.fullscreen #live-grid > #live-channel-panel, #real-live.fullscreen #live-now-playing { display: none; }
#real-live.fullscreen #live-grid { top: 0; left: 0; width: 1440px; height: 810px; display: block; }
#real-live.fullscreen #live-player-stack, #real-live.fullscreen #live-video-area { height: 100%; border: 0; border-radius: 0; }
#real-live.fullscreen #live-state { bottom: 114px; }
#real-live.fullscreen #live-tune-banner {
  left: 50%; transform: translateX(-50%); top: auto; bottom: 40px; width: 68%;
  height: 60px; padding: 6px 14px; gap: 14px; font-size: 16px; border-radius: 13px;
}
#real-live.fullscreen #live-overlay:not([hidden]) ~ #live-tune-banner { bottom: 122px; }
#real-live.fullscreen #live-tune-name { font-size: 19px; }
#real-live.fullscreen #live-tune-logo img { width: 30px; height: 30px; }

#live-chooser-scrim, #live-find-scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5; }
#live-chooser {
  position: absolute;
  left: 72px;
  top: 20px;
  width: 946px;
  height: 770px;
  padding: 14px;
  border: 1px solid #a88a55;
  border-radius: 16px;
  background: #0b0a0aeb;
  display: flex;
  flex-direction: column;
}
#live-chooser > header, #live-find > header { display: flex; align-items: center; height: 54px; gap: 16px; flex: 0 0 54px; }
#live-chooser > header img, #live-find > header img { width: 114px; height: 44px; object-fit: contain; }
#live-chooser > header h2, #live-find > header h2 { margin: 0; font-size: 28px; border-left: 1px solid var(--live-outline); padding-left: 16px; }
#live-close-channels, #live-find-close { margin-left: auto; width: 46px; height: 43px; padding: 0; font-size: 27px; }
#live-chooser-body { flex: 1; min-height: 0; margin-top: 12px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 13px; }
#live-chooser-body #live-category-panel, #live-chooser-body #live-channel-panel { background: #141310ad; }
#live-chooser-body .live-brand, #live-chooser-body .live-home { display: none; }
#live-find-scrim { z-index: 6; background: #0006; }
#real-live:has(#live-find-scrim:not([hidden])) #live-chooser { visibility: hidden; }
#live-find {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 19px 36px 21px;
  background: #0b0a09;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#live-find-scrim.player #live-find {
  top: 20px;
  left: 72px;
  right: auto;
  bottom: auto;
  width: 946px;
  height: 770px;
  padding: 17px 27px 22px;
  border: 1px solid #a88a55;
  border-radius: 16px;
  background: #0b0a0aef;
}
#live-find-query { width: 100%; height: 60px; flex-shrink: 0; padding: 0 17px; font-size: 26px; background: var(--live-panel); border-color: var(--live-outline); }
#live-find-scopes { display: flex; flex-wrap: wrap; gap: 12px; }
#live-find-scopes button { min-width: 184px; height: 46px; padding: 0 10px; font-size: 17px; }
.live-find-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 575px) minmax(0, 1fr); gap: 24px; padding-top: 3px; }
#live-find-scrim.player .live-find-body { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 17px; }
#live-find-keys { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
#live-find-keys button, #live-find-actions button { background: var(--live-row); border-color: var(--live-border); }
#live-find button:focus { outline: 1px solid var(--live-gold); outline-offset: 0; background: #453620; }
#live-find-keys button { height: 57px; padding: 0; font-size: 23px; }
#live-find-scrim.player #live-find-keys button { height: 50px; font-size: 21px; }
#live-find-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
#live-find-actions button, #live-find-jump { height: 45px; padding: 0 10px; }
#live-find-jump { margin-top: 14px; min-width: 150px; }
.live-find-result-area { border-left: 1px solid var(--live-border); padding-left: 13px; display: flex; flex-direction: column; min-height: 0; }
#live-find-results-title { margin: 0 0 8px; font-size: 22px; }
#live-find-results { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: auto; gap: 5px; padding: 3px; }
#live-find-results button {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0; width: 100%; min-height: 56px;
  padding: 7px 9px; text-align: left; background: var(--live-row); border-color: var(--live-border);
}
.live-find-result-label { min-width: 0; display: flex; flex-direction: column; }
.live-find-result-label strong, .live-find-result-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-find-result-label strong { font-size: 17px; }
.live-find-result-label small, #live-find-status { color: var(--live-muted); font-size: 14px; margin: 4px 0; }
