/* Normal controls have their own row below the video; fullscreen owns its overlay. */
.player-controls-host {order:-1;min-width:0;background:#07121b}
.player-controls-host[hidden] {display:none}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] #details[data-surface='details'] #real-playback>.player-controls-host {display:none}
.priva-video-frame:focus:not(:focus-visible) {outline:none}
.player-controls-page {transition:opacity .18s ease,visibility .18s;opacity:1;visibility:visible}
.player-controls-page.is-idle {opacity:0;visibility:hidden;pointer-events:none}
.priva-video-frame.controls-idle {cursor:none}
@media(prefers-reduced-motion:reduce){.player-controls-page{transition:none}}
body[data-motion='reduced'] .player-controls-page {transition:none}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud .player-controls-page {
  position:relative;inset:auto;z-index:4;display:flex;flex-wrap:wrap;gap:8px;
  padding:14px 18px;border:1px solid #d9efff40;border-radius:18px;color:#f4f8ff;
  background:linear-gradient(120deg,#40556dbd,#152941db);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);
  box-shadow:inset 0 1px 0 #ffffff18,0 12px 38px #0005;
}
.player-live-identity {display:flex;align-items:center;gap:12px;width:100%;min-width:0;order:-4;margin-bottom:3px}
.player-live-identity>img {width:36px;height:36px;object-fit:contain;border-radius:8px;flex:none}
.player-live-labels {min-width:0;flex:1}
.player-live-labels small {display:block;font-size:11px;color:#bbccdf;line-height:1.4}
.player-live-labels strong {display:block;font-size:15px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-live-quality,.player-live-badge {font-size:10px;font-weight:700;border:1px solid #c7e6ff55;border-radius:5px;padding:3px 6px;white-space:nowrap}
.player-live-badge {color:#84e9ff;border-color:#84e9ff60}
.player-live-epg {width:100%;order:-3;margin:1px 0 0}
.player-live-epg progress {appearance:none;-webkit-appearance:none;width:100%;height:4px;border:0;border-radius:6px;display:block;background:#d2e6f433;overflow:hidden}
.player-live-epg progress::-webkit-progress-bar {background:#d2e6f433;border-radius:6px}
.player-live-epg progress::-webkit-progress-value {background:var(--glassy-accent,#66ddfa);border-radius:6px}
.player-live-epg progress::-moz-progress-bar {background:var(--glassy-accent,#66ddfa);border-radius:6px}
.player-live-epg-text {display:flex;justify-content:space-between;gap:16px;font-size:11px;color:#c4d2e2;line-height:1.5;margin-top:6px}
.player-live-epg-text>span:last-child {text-align:right;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.player-live-epg-text>span:first-child {flex:none}
.player-controls .player-live-identity[hidden],.player-controls .player-live-epg[hidden],.player-controls .player-live-quality[hidden],.player-controls [hidden] {display:none!important}
.player-controls-dock .player-live-identity,.player-controls-dock .player-live-epg {display:none}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud .player-language span,
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud .player-settings span {display:none}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud .player-controls button {min-height:40px;min-width:40px;padding:8px;margin:0;border:1px solid #d8ecff22;border-radius:10px}
.has-live-hud .player-controls .ui-icon {width:20px;height:20px}
.has-live-hud .player-time {font-size:11px;letter-spacing:.4px}
.has-live-hud .priva-fullscreen-button {display:none}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .priva-video-frame:fullscreen>.player-controls-page,
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .priva-video-frame:-webkit-full-screen>.player-controls-page {position:absolute;inset:auto 18px 18px;z-index:4;border-radius:18px}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .glassy-live-stage {width:100%;height:auto;aspect-ratio:16/9;min-height:320px}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .glassy-live-stage>.priva-video-frame {position:absolute;inset:0;background:transparent}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .glassy-live-stage video {margin:0}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .glassy-live-stage>.glassy-live-play {top:36%;z-index:5}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .glassy-live-stage>.glassy-on-air {display:none}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud:fullscreen,
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud:-webkit-full-screen {position:relative;display:block;width:100vw;height:100vh;background:#000;padding:0}
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud:fullscreen>video,
body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud:-webkit-full-screen>video {position:absolute;inset:0;width:100%;height:100%;max-height:none!important;aspect-ratio:auto;object-fit:contain;flex:none}
body[data-skin='glassy'][data-presentation][data-variant='glassy'][data-transparency='reduced'] .has-live-hud .player-controls-page {background:#263c53;backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:600px){
 body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud .player-controls-page {padding:12px 10px;gap:5px;border-radius:14px}
 body[data-skin='glassy'][data-presentation][data-variant='glassy'] .priva-video-frame:fullscreen>.player-controls-page,
 body[data-skin='glassy'][data-presentation][data-variant='glassy'] .priva-video-frame:-webkit-full-screen>.player-controls-page {inset:auto 8px 8px}
 .player-live-labels strong {font-size:13px}.player-live-labels small {font-size:10px}.player-live-identity {gap:8px}
 .player-live-identity>img {width:28px;height:28px}
 .player-live-epg-text {display:block;font-size:10px}.player-live-epg-text>span {display:block;text-align:left!important}
 body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud .player-controls button {min-width:36px;min-height:40px;padding:6px}
 body[data-skin='glassy'][data-presentation][data-variant='glassy'] .has-live-hud .player-controls-page :is(.player-toggle,.player-seek-back,.player-seek-forward) {position:static;transform:none;width:36px;height:40px}
 .has-live-hud .player-controls-page .player-time {flex:0 1 auto;order:0}
 .has-live-hud .player-controls input[aria-label='Lautstärke'] {display:none}
 body[data-skin='glassy'][data-presentation][data-variant='glassy'] #details[data-surface='page'] .has-live-hud #design-video {min-height:320px;max-height:none}
}
@media(min-width:961px){
 body[data-skin='glassy'][data-presentation][data-variant='glassy'] .glassy-live-stage {height:clamp(320px,calc(100dvh - 275px),540px);aspect-ratio:auto}
}

/* Fullscreen owns the whole viewport, including for movies and episodes.
   Page-height limits must not shrink the picture above the overlay controls.
   Keep prefixed rules separate for older webOS engines. */
.priva-video-frame:fullscreen:not(.smart-open) {
  position:relative;display:block!important;width:100vw;height:100vh;
  min-width:0;min-height:0;max-width:none;max-height:none;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#000;
}
.priva-video-frame:fullscreen:not(.smart-open)>video {
  position:absolute;inset:0;top:0;right:0;bottom:0;left:0;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;
  aspect-ratio:auto!important;object-fit:contain;object-position:center;flex:none!important;border-radius:0!important;
}
.priva-video-frame:-webkit-full-screen:not(.smart-open) {
  position:relative;display:block!important;width:100vw;height:100vh;
  min-width:0;min-height:0;max-width:none;max-height:none;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#000;
}
.priva-video-frame:-webkit-full-screen:not(.smart-open)>video {
  position:absolute;inset:0;top:0;right:0;bottom:0;left:0;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;
  aspect-ratio:auto!important;object-fit:contain;object-position:center;flex:none!important;border-radius:0!important;
}
