/* ANDRIK R130 — скрытая живая оболочка плеера для Control */

/* siteFrame всегда выше встроенного mini-player. */
body.control-shell-mode.site-mode .site-view{
  z-index:60!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

/* Плеер не display:none: YouTube iframe остаётся живым и музыка не прерывается.
   Но блок физически вынесен за экран и не может показать обложку поверх Control. */
body.control-shell-mode.site-mode .player-shell,
body.control-shell-mode.site-mode.player-dismissed .player-shell,
body.control-shell-mode.site-mode.background-playing.player-dismissed .player-shell{
  display:grid!important;
  position:fixed!important;
  left:-10000px!important;
  right:auto!important;
  top:0!important;
  bottom:auto!important;
  width:2px!important;
  min-width:2px!important;
  max-width:2px!important;
  height:2px!important;
  min-height:2px!important;
  max-height:2px!important;
  overflow:hidden!important;
  opacity:.001!important;
  visibility:visible!important;
  pointer-events:none!important;
  z-index:1!important;
  transform:none!important;
  animation:none!important;
  box-shadow:none!important;
  border:0!important;
}

/* В Control не нужен стандартный restore-кружок Player Shell:
   управление выполняет зелёная кнопка самого Control. */
body.control-shell-mode.site-mode #andrik-restore-mini-player{
  display:none!important;
}

/* Полный плеер снова видим после явной команды «Большой плеер»,
   потому что тогда класс site-mode снимается. */
body.control-shell-mode:not(.site-mode) .player-shell{
  left:auto!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}


/* R139 — жёсткая защита от появления большой обложки под Control. */
body.control-shell-mode.site-mode .site-view{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  z-index:2147483000!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  background:#02060a!important;
}

body.control-shell-mode.site-mode .site-view iframe{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  opacity:1!important;
  background:#02060a!important;
}

body.control-shell-mode.site-mode .player-shell,
body.control-shell-mode.site-mode .app,
body.control-shell-mode.site-mode .library,
body.control-shell-mode.site-mode .topbar{
  pointer-events:none!important;
}

body.control-shell-mode.site-mode .player-shell{
  left:-20000px!important;
  top:-20000px!important;
  width:1px!important;
  height:1px!important;
  min-width:1px!important;
  min-height:1px!important;
  max-width:1px!important;
  max-height:1px!important;
  opacity:.001!important;
  overflow:hidden!important;
}


/* R141 — Control всегда закрывает весь Player Shell. */
body.control-shell-mode.site-mode #siteView,
body.control-shell-mode.site-mode .site-view{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  min-height:100vh!important;
  z-index:2147483647!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  background:#02070b!important;
  transform:none!important;
}
body.control-shell-mode.site-mode #siteFrame,
body.control-shell-mode.site-mode .site-view iframe{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  opacity:1!important;
  visibility:visible!important;
  background:#02070b!important;
}
body.control-shell-mode.site-mode #playerShell{
  position:fixed!important;
  left:-30000px!important;
  top:-30000px!important;
  right:auto!important;
  bottom:auto!important;
  width:1px!important;
  min-width:1px!important;
  max-width:1px!important;
  height:1px!important;
  min-height:1px!important;
  max-height:1px!important;
  opacity:.001!important;
  overflow:hidden!important;
  pointer-events:none!important;
  transform:none!important;
  z-index:1!important;
}
