/* QALEFY TV-first launcher and sofa-scale controls.
   Colours align with the QALEFY Mixes existing dark/amber brand treatment,
   using the first-party Q logo included with the site. */
:root {
  --qalefy-night: #0a0b11;
  --qalefy-panel: #191820;
  --qalefy-panel-raised: #24212a;
  --qalefy-orange: #ffa32d;
  --qalefy-gold: #ffd18a;
  --qalefy-cream: #fff6ec;
  --qalefy-muted: #bfb6b2;
}
html,body { background: var(--qalefy-night); }
body { margin: 0; }
body .site-shell > .site-header,
body .site-shell > .intro,
body .site-shell > .library,
body .site-shell > .minimal-footer { display: none !important; }

#tvLauncher {
  position: fixed;
  z-index: 2147483643;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  background:
    radial-gradient(circle at 81% 26%, rgba(239,143,43,.20), transparent 31%),
    radial-gradient(circle at 11% 96%, rgba(100,57,70,.29), transparent 36%),
    linear-gradient(115deg,#0a0b11 0%,#111018 48%,#1b1414 100%);
  color: var(--qalefy-cream);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#tvLauncher[hidden] { display:none !important; }
#tvLauncher * { box-sizing:border-box; }
#tvLauncher .tv-launch-glow {
  position: fixed;
  width: 45vw; height: 45vw;
  right: -15vw; top: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,135,24,.13) 0%, transparent 72%);
  pointer-events: none;
}
#tvLauncher .tv-launch-header {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 4.2vw 20px;
  gap: 20px;
}
#tvLauncher .tv-launch-brand {
  display: flex; align-items: center; gap: 17px;
  color: var(--qalefy-cream);
  font-size: 31px; letter-spacing: .065em; font-weight: 800;
}
#tvLauncher .tv-launch-brand strong { color: var(--qalefy-orange); }
#tvLauncher .tv-launch-logo {
  width: 68px; height: 68px; object-fit: contain;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,210,137,.30);
  border-radius: 17px;
  padding: 8px;
}
#tvLauncher .tv-launch-unlisted {
  color: var(--qalefy-muted);
  font-weight: 700; font-size: 16px; letter-spacing: .15em;
  border: 1px solid rgba(255,230,186,.15);
  background: rgba(10,10,14,.44);
  padding: 14px 20px; border-radius: 100px;
}
#tvLauncher .tv-launch-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, .65fr);
  min-height: calc(100vh - 118px);
  padding: 10px 4.2vw 36px;
  gap: 3.5vw;
}
#tvLauncher .tv-launch-main { min-width:0; }
#tvLauncher .tv-launch-heading { padding: 4px 0 24px; }
#tvLauncher .tv-launch-eyebrow {
  color: var(--qalefy-orange); font-size: 17px; font-weight: 800;
  letter-spacing: .20em; margin: 0 0 12px;
}
#tvLauncher #tvLaunchHeading {
  color: var(--qalefy-cream);
  font-size: 65px; font-weight: 850;
  letter-spacing: -.045em; line-height: 1.04;
  margin: 0 0 12px;
}
#tvLauncher #tvLaunchHeading em {
  font-style: normal;
  color: var(--qalefy-orange);
}
#tvLauncher .tv-launch-intro {
  color: #d1c9c5;
  font-size: 23px; line-height: 1.4;
  margin: 0; max-width: 830px;
}
#tvLauncher .tv-playlist {
  display: grid; gap: 13px;
  padding: 0;
  margin: 5px 0 20px;
}
#tvLauncher .tv-playlist-button {
  width: 100%;
  display: flex; align-items: center;
  gap: 22px;
  min-height: 111px;
  padding: 18px 24px;
  border: 2px solid rgba(255,220,179,.18);
  border-radius: 22px;
  background: linear-gradient(90deg,rgba(60,48,48,.68),rgba(32,29,36,.90));
  color: var(--qalefy-cream);
  font: inherit; text-align: left;
  cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
#tvLauncher .tv-playlist-button .tv-playlist-number {
  width: 56px; min-width: 56px; height: 56px;
  border: 1px solid rgba(255,210,147,.30);
  border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,172,72,.10);
  color: #ffbf6a;
  font-size: 22px; font-weight: 900;
}
#tvLauncher .tv-playlist-text { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width:0; }
#tvLauncher .tv-playlist-title { font-size: 28px; font-weight: 850; line-height:1.13; letter-spacing:-.012em; }
#tvLauncher .tv-playlist-description { font-size: 18px; line-height: 1.25; color: #cbbfc0; font-weight: 600; }
#tvLauncher .tv-playlist-arrow {
  width: 58px; min-width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; justify-content:center; align-items:center;
  background: rgba(255,163,45,.12);
  color: var(--qalefy-gold);
  font-size: 31px;
}
#tvLauncher .tv-playlist-button:hover,
#tvLauncher .tv-playlist-button:focus,
#tvLauncher .tv-playlist-button:focus-visible {
  border-color: #ffe0a8;
  outline: 5px solid var(--qalefy-orange) !important;
  outline-offset: 2px;
  color: #18110e;
  background: linear-gradient(100deg, #ffd184 0%, #ff9d28 84%, #fb901e 100%);
  box-shadow: 0 0 0 7px rgba(13,12,17,.9), 0 13px 42px rgba(246,149,38,.31);
}
#tvLauncher .tv-playlist-button:hover .tv-playlist-number,
#tvLauncher .tv-playlist-button:focus .tv-playlist-number {
  color: #20140b;
  background: rgba(35,20,12,.12);
  border-color: rgba(35,20,12,.26);
}
#tvLauncher .tv-playlist-button:hover .tv-playlist-description,
#tvLauncher .tv-playlist-button:focus .tv-playlist-description { color:#543819; }
#tvLauncher .tv-playlist-button:hover .tv-playlist-arrow,
#tvLauncher .tv-playlist-button:focus .tv-playlist-arrow { color:#22150c; background:rgba(35,20,12,.14); }
#tvLauncher .tv-launch-hint {
  color: #bdb5b0; font-size: 19px; font-weight: 650;
  margin: 19px 0 0;
}
#tvLauncher .tv-launch-hint span {
  margin: 0 7px 0 0;
  background: #332d32;
  color: var(--qalefy-gold);
  border: 1px solid rgba(255,200,135,.20);
  padding: 6px 12px;
  border-radius: 10px;
  white-space: nowrap;
}
#tvLauncher .tv-launch-hint span:not(:first-child) { margin-left: 21px; }
#tvLauncher .tv-launch-art {
  display:flex; flex-direction:column;
  justify-content:center; align-items:center;
  min-width:0; text-align:center;
  padding: 22px 8px;
  border:1px solid rgba(255,198,111,.10);
  border-radius: 38px;
  background: radial-gradient(circle at 50% 38%, rgba(248,165,70,.18),transparent 46%),rgba(255,255,255,.016);
  position:relative; overflow:hidden;
}
#tvLauncher .tv-launch-halo {
  width: min(26vw,375px); height: min(26vw,375px);
  border: 2px solid rgba(255,173,70,.50);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 0 0 25px rgba(251,157,51,.035),0 0 0 50px rgba(251,157,51,.032),0 0 75px rgba(248,139,37,.17);
}
#tvLauncher .tv-launch-halo-inner {
  width: 69%; height:69%;
  border:1px solid rgba(255,191,105,.29);
  border-radius:50%; display:flex; align-items:center;justify-content:center;
  background:radial-gradient(circle,rgba(255,185,89,.16),rgba(16,13,18,.65));
}
#tvLauncher .tv-launch-halo img { width: 62%; height:62%; object-fit:contain; }
#tvLauncher .tv-art-kicker {
  margin: 45px 0 9px; font-size: 17px;
  color: var(--qalefy-orange); letter-spacing:.24em; font-weight:800;
}
#tvLauncher .tv-art-copy {
  margin:0; color:var(--qalefy-cream); font-size:43px;
  line-height:1.04;letter-spacing:-.04em;font-weight:900;
}
#tvLauncher .tv-art-bars {
  display:flex; align-items:center; justify-content:center;
  gap:7px; height:48px; margin-top:20px;
}
#tvLauncher .tv-art-bars i {
  display:block; width:7px; height:26px;
  border-radius:10px; background:linear-gradient(#ffd58b,#ff9224);opacity:.72;
}
#tvLauncher .tv-art-bars i:nth-child(3n) { height:44px; }
#tvLauncher .tv-art-bars i:nth-child(2n) { height:17px; }

/* Still using the existing full-screen player: increase all primary controls
   one further step for TV readability, with a stronger brand accent. */
#player.is-immersive .tv-primary-controls .tv-control {
  min-height: 100px;
  font-size: 22px;
  border-radius: 22px;
}
#player.is-immersive .tv-primary-controls .tv-control-icon {font-size: 44px;}
#player.is-immersive .tv-primary-controls .tv-control-label {font-size: 21px;}
#player.is-immersive .tv-primary-controls .main-control.tv-control {
  min-height: 110px;
  color:#201209;
  background: linear-gradient(125deg,#ffd18a,#ff9c2d);
  border-color:#ffdeaa;
}
#player.is-immersive .tv-secondary-controls .tv-secondary-button {
  min-height: 77px;
  font-size: 20px;
}
#player.is-immersive .tv-secondary-controls .tv-volume-group { min-height:77px;font-size:20px; }
#player.is-immersive .tv-transport .time {font-size: 22px;}
#player.is-immersive .player-top-button {min-height:76px;font-size:23px;}
#player.is-immersive .mix-switcher {width:650px; max-width:calc(100% - 40px);}
#player.is-immersive .mix-switcher-item {
  min-height:106px;
  font-size:26px;
  padding:18px 23px;
}
#player.is-immersive .mix-switcher-item span {font-size:19px;}
#player.is-immersive .mix-switcher-heading {font-size:32px;}
#player.is-immersive .mix-switcher-close {min-width:70px;min-height:65px;font-size:24px;}
#player.is-immersive .tv-control:focus,
#player.is-immersive .tv-secondary-button:focus,
#player.is-immersive .player-top-button:focus,
#player.is-immersive .mix-switcher-item:focus {
  outline:5px solid #ffa32d !important;
  border-color:#fff0d5 !important;
}

/* 720p TV / smaller desktops */
@media(max-width:1400px) {
  #tvLauncher .tv-launch-header {padding-top:17px;padding-bottom:10px;}
  #tvLauncher .tv-launch-logo {width:53px;height:53px;}
  #tvLauncher .tv-launch-brand {font-size:23px;}
  #tvLauncher .tv-launch-body {grid-template-columns:minmax(0,1.4fr) minmax(245px,.6fr);gap:2.2vw;padding-top:0;}
  #tvLauncher #tvLaunchHeading {font-size:48px;}
  #tvLauncher .tv-launch-intro {font-size:17px;}
  #tvLauncher .tv-launch-heading {padding-bottom:15px;}
  #tvLauncher .tv-launch-eyebrow {font-size:13px;}
  #tvLauncher .tv-playlist {gap:9px;}
  #tvLauncher .tv-playlist-button {min-height:82px;padding:10px 17px;gap:13px;border-radius:18px;}
  #tvLauncher .tv-playlist-number {width:45px;min-width:45px;height:45px;font-size:18px;}
  #tvLauncher .tv-playlist-title {font-size:22px;}
  #tvLauncher .tv-playlist-description {font-size:15px;}
  #tvLauncher .tv-playlist-arrow {width:43px;min-width:43px;height:43px;font-size:24px;}
  #tvLauncher .tv-launch-hint {font-size:15px;}
  #tvLauncher .tv-art-copy {font-size:33px;}
  #tvLauncher .tv-launch-halo {width:24vw;height:24vw;}
  #player.is-immersive .tv-primary-controls .tv-control {min-height:82px;}
  #player.is-immersive .tv-primary-controls .main-control.tv-control {min-height:90px;}
  #player.is-immersive .tv-primary-controls .tv-control-icon {font-size:35px;}
  #player.is-immersive .tv-primary-controls .tv-control-label {font-size:18px;}
  #player.is-immersive .tv-secondary-controls .tv-secondary-button,
  #player.is-immersive .tv-secondary-controls .tv-volume-group {min-height:62px;font-size:17px;}
  #player.is-immersive .player-top-button {min-height:60px;font-size:18px;}
}
/* Mobile: playlist is still primary; decorative right panel disappears. */
@media(max-width:800px) {
  #tvLauncher .tv-launch-header {padding:16px;}
  #tvLauncher .tv-launch-unlisted {font-size:10px;padding:9px 12px;}
  #tvLauncher .tv-launch-body {display:block;padding:0 16px 25px;}
  #tvLauncher .tv-launch-art {display:none;}
  #tvLauncher #tvLaunchHeading {font-size:44px;}
  #tvLauncher .tv-playlist-title {font-size:20px;}
  #tvLauncher .tv-playlist-description {font-size:13px;}
  #tvLauncher .tv-playlist-button {min-height:82px;gap:11px;padding:12px;}
  #tvLauncher .tv-playlist-arrow {width:39px;min-width:39px;height:43px;}
  #tvLauncher .tv-launch-hint {font-size:13px;line-height:2;}
  #tvLauncher .tv-launch-hint span:not(:first-child) {margin-left:6px;}
  #player.is-immersive .tv-primary-controls .tv-control {min-height:59px;}
  #player.is-immersive .tv-primary-controls .main-control.tv-control {min-height:64px;}
  #player.is-immersive .tv-primary-controls .tv-control-icon {font-size:24px;}
  #player.is-immersive .tv-primary-controls .tv-control-label {font-size:11px;}
  #player.is-immersive .tv-secondary-controls .tv-secondary-button,
  #player.is-immersive .tv-secondary-controls .tv-volume-group {min-height:53px;font-size:11px;}
  #player.is-immersive .player-top-button {min-height:48px;font-size:14px;}
}
@media(max-height:700px) and (min-width:801px) {
  #tvLauncher .tv-launch-heading {padding-bottom:12px;}
  #tvLauncher .tv-playlist-button {min-height:72px;}
  #tvLauncher .tv-playlist {gap:7px;}
  #tvLauncher .tv-launch-hint {margin-top:12px;}
  #tvLauncher .tv-launch-unlisted {font-size:12px;}
}


/* The root URL is the actual full-screen-style player, not a separate page.
   When its playlist is open, keep playback controls hidden underneath it. */
#player.is-immersive.playlist-open .transport,
#player.is-immersive.playlist-open .player-top-actions,
#player.is-immersive.playlist-open .buffer-indicator,
#player.is-immersive.playlist-open .stream-diagnostics {
  display: none !important;
}
#player.is-immersive.playlist-open .video-stage {background: var(--qalefy-night) !important;}
#player.is-immersive #tvLauncher[hidden] {display: none !important;}

/* Phone-size layout: comfortable tap targets without oversized TV controls.
   TV/desktop breakpoints above 768px retain the generous sofa-scale design. */
@media (max-width: 767px) {
  #tvLauncher .tv-launch-glow { display: none; }
  #tvLauncher .tv-launch-header {padding: 10px 13px 8px;gap: 8px;}
  #tvLauncher .tv-launch-brand {gap: 9px;font-size: 16px;letter-spacing: .03em;}
  #tvLauncher .tv-launch-logo {width: 37px;height: 37px;padding: 4px;border-radius: 10px;}
  #tvLauncher .tv-launch-unlisted {
    font-size: 9px;
    letter-spacing: .04em;
    padding: 7px 8px;
    white-space: nowrap;
  }
  #tvLauncher .tv-launch-body {padding: 0 13px 18px;}
  #tvLauncher .tv-launch-heading {padding: 3px 0 13px;}
  #tvLauncher .tv-launch-eyebrow {font-size: 9px;margin-bottom: 6px;letter-spacing:.12em;}
  #tvLauncher #tvLaunchHeading {font-size: clamp(26px,7.3vw,35px);margin-bottom: 7px;line-height:1.08;}
  #tvLauncher .tv-launch-intro {font-size: 13px;line-height: 1.4;}
  #tvLauncher .tv-playlist {gap: 7px;margin: 2px 0 12px;}
  #tvLauncher .tv-playlist-button {
    min-height: 62px;
    gap: 10px;
    padding: 8px 11px;
    border-width: 1px;
    border-radius: 13px;
  }
  #tvLauncher .tv-playlist-number {
    width: 33px;min-width: 33px;height: 33px;
    border-radius: 9px;font-size: 13px;
  }
  #tvLauncher .tv-playlist-text {gap: 3px;}
  #tvLauncher .tv-playlist-title {font-size: 15px;line-height:1.15;}
  #tvLauncher .tv-playlist-description {font-size: 11px;line-height:1.15;}
  #tvLauncher .tv-playlist-arrow {
    width: 31px;min-width: 31px;height: 34px;
    border-radius: 9px;font-size: 16px;
  }
  #tvLauncher .tv-launch-hint {font-size: 11px;line-height:1.8;margin: 9px 0 0;}
  #tvLauncher .tv-launch-hint span {padding: 3px 5px;border-radius: 5px;margin:0 3px 0 0;}
  #tvLauncher .tv-launch-hint span:not(:first-child) {margin-left: 6px;}

  #player.is-immersive .tv-transport {
    bottom: 6px !important;
    width: calc(100% - 12px);
    padding: 8px;
    border-radius: 14px;
    max-height: 65vh;
  }
  #player.is-immersive .tv-transport .timeline-row {
    grid-template-columns: 43px minmax(0,1fr) 43px;
    gap: 6px;margin-bottom: 7px;
  }
  #player.is-immersive .tv-transport .time {font-size: 11px;}
  #player.is-immersive .tv-control-grid {gap: 6px;}
  #player.is-immersive .tv-primary-controls.controls {
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 4px;
  }
  #player.is-immersive .tv-primary-controls .tv-control {
    min-width: 0;
    min-height: 51px;
    padding: 4px 1px;
    border-width: 1px;
    border-radius: 9px;
    gap: 3px;
  }
  #player.is-immersive .tv-primary-controls .main-control.tv-control {min-height: 54px;}
  #player.is-immersive .tv-primary-controls .tv-control-icon,
  #player.is-immersive .tv-primary-controls .main-control .tv-control-icon {font-size: 20px;}
  #player.is-immersive .tv-primary-controls .tv-control-label {font-size: 9px;line-height:1.12;}
  #player.is-immersive .tv-secondary-controls {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 5px;
  }
  #player.is-immersive .tv-secondary-controls .tv-secondary-button {
    min-height: 45px;
    padding: 5px 6px;
    border-radius: 9px;
    border-width: 1px;
    font-size: 12px;
  }
  #player.is-immersive .tv-secondary-controls .tv-secondary-icon {font-size: 17px;}
  #player.is-immersive .tv-secondary-controls .tv-volume-group {
    min-height: 45px;
    flex-direction: row;
    gap: 6px;
    padding: 6px;
    border-width: 1px;
    border-radius: 9px;
    font-size: 12px;
  }
  #player.is-immersive .tv-secondary-controls .volume {min-width: 45px;min-height:22px;}
  #player.is-immersive .player-top-actions {top: 7px;right: 7px;gap: 6px;}
  #player.is-immersive .player-top-button {
    min-height: 43px;
    padding: 6px 11px;
    border-radius: 10px;
    border-width: 1px;
    font-size: 13px;
  }
  #player.is-immersive .mix-switcher {
    top: 58px;right: 7px;
    width: calc(100% - 14px);
    max-height: calc(100% - 69px);
    padding: 12px;
    border-radius: 15px;
  }
  #player.is-immersive .mix-switcher-heading {font-size: 19px;margin-bottom: 9px;}
  #player.is-immersive .mix-switcher-close {min-width: 43px;min-height: 42px;font-size: 15px;}
  #player.is-immersive .mix-switcher-item {
    min-height: 56px;padding: 9px 12px;font-size: 16px;border-radius: 11px;
  }
  #player.is-immersive .mix-switcher-item span {font-size: 12px;}
  #player.is-immersive .player-error {padding: 17px;border-radius: 13px;}
  #player.is-immersive .player-error strong {font-size: 20px;}
}
@media (max-width: 360px) {
  #tvLauncher .tv-playlist-title {font-size: 14px;}
  #player.is-immersive .tv-primary-controls .tv-control-label {font-size: 8px;}
}


/* Free-tier upgrade: small illustrated tiles, no external images or video
   thumbnails, and accessible resume status saved on this device only. */
#tvLauncher .tv-playlist-art {
  position: relative;
  width: 73px;
  min-width: 73px;
  height: 73px;
  font-family: Arial,Helvetica,sans-serif;
  font-size: 39px;
  font-weight: 800;
  border: 2px solid rgba(255,245,210,.3);
  border-radius: 19px;
  color: #fff2d8;
  text-shadow: 0 3px 12px rgba(0,0,0,.5);
  box-shadow: inset 0 0 24px rgba(255,245,215,.15);
}
#tvLauncher .tv-playlist-art--sunrise {
  background: radial-gradient(circle at 68% 25%,#ffec93 0%,#f4a447 34%,#a04742 72%,#321b38 100%);
  color:#251b1d;
}
#tvLauncher .tv-playlist-art--fireplace {
  background:radial-gradient(ellipse at 50% 80%,#ffce7a 0%,#db6827 35%,#80342e 68%,#241b26 100%);
}
#tvLauncher .tv-playlist-art--christmas {
  background:radial-gradient(circle at 26% 25%,#e8f5ff 0%,#86b9bd 22%,#285768 54%,#112a3c 100%);
  color:#fff;
}
#tvLauncher .tv-playlist-art--autumn {
  background:radial-gradient(ellipse at 53% 77%,#ffd48f 0%,#c97436 35%,#63392d 63%,#191b20 100%);
}
#tvLauncher .tv-playlist-resume {
  display:block;
  font-size:15px;
  font-weight:800;
  letter-spacing:.015em;
  color:#ffce85;
  line-height:1.15;
}
#tvLauncher .tv-playlist-button:hover .tv-playlist-resume,
#tvLauncher .tv-playlist-button:focus .tv-playlist-resume {
  color:#613817;
}

/* Keep just the core transport visible by default. Settings are expandable. */
#player .tv-secondary-controls[hidden],
#player.is-immersive .tv-secondary-controls[hidden] {
  display: none !important;
}
#player.is-immersive.settings-open .tv-secondary-controls {
  grid-template-columns: repeat(5,minmax(0,1fr));
  border-top: 1px solid rgba(255,206,147,.25);
  padding-top: 12px;
}
#player.is-immersive .player-settings-button[aria-expanded="true"] {
  background: #ffac43;
  border-color:#ffcc91;
  color: #21140c;
}
#player.is-immersive .tv-secondary-controls #autoNext.active {
  color:#ffcc80;
  border-color:#ffb24b;
}
#player.is-immersive.settings-open .tv-transport {
  max-height: 62vh;
}
#player.is-immersive .tv-secondary-controls .tv-secondary-button:focus,
#player.is-immersive .tv-secondary-controls .volume:focus {
  outline: 4px solid #ffb24b !important;
  outline-offset: 3px;
}
@media(max-width:1400px) {
  #tvLauncher .tv-playlist-art {
    width:52px;
    min-width:52px;
    height:52px;
    font-size:30px;
    border-radius:13px;
  }
  #tvLauncher .tv-playlist-resume {font-size:13px;}
  #player.is-immersive.settings-open .tv-secondary-controls {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:767px) {
  #tvLauncher .tv-playlist-art {
    width:36px;
    min-width:36px;
    height:36px;
    font-size:20px;
    border-width:1px;
    border-radius:9px;
  }
  #tvLauncher .tv-playlist-resume {font-size:10px;}
  #player.is-immersive.settings-open .tv-secondary-controls {
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding-top:7px;
    gap:5px;
  }
  #player.is-immersive.settings-open .tv-transport {max-height:73vh;}
  #player.is-immersive .player-top-actions {flex-wrap:nowrap;}
  #player.is-immersive .player-top-button {
    min-height:39px;
    font-size:12px;
    padding:5px 8px;
  }
}

/* Passive playback QA history: appears only with ?debug=1 on the playlist. */
#tvLauncher .tv-qa-report {
  margin: 14px 0 10px;
  padding: 14px 20px;
  border: 1px solid rgba(255,178,75,.42);
  border-radius: 14px;
  background: rgba(17,16,23,.84);
  color: #ffe0ac;
  font: 700 15px/1.7 Consolas, monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
}
#tvLauncher .tv-qa-report[hidden] {display: none !important;}
@media(max-width:767px) {
  #tvLauncher .tv-qa-report {
    font-size: 11px;
    line-height: 1.45;
    padding: 10px 12px;
    margin: 8px 0;
  }
}
