.player-backup-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0 0;
}
.player-backup-controls[hidden] { display: none !important; }
.player-backup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(214, 178, 96, .26);
  border-radius: 9px;
  background: #151619;
  color: #ddd9cf;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.player-backup-button:hover:not(:disabled) { border-color: #d6b260; color: #f3d88f; }
.player-backup-button[aria-pressed="true"] {
  border-color: #d6b260;
  background: linear-gradient(135deg, #d8b66b, #bd9345);
  color: #18140d;
  font-weight: 700;
}
.player-backup-button:focus-visible { outline: 2px solid #efcd7a; outline-offset: 3px; }
.player-backup-button:disabled { cursor: default; opacity: .66; }
.player-backup-icon { display: inline-block; flex: 0 0 auto; position: relative; width: 14px; height: 14px; }
.player-backup-icon.is-play::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}
.player-backup-icon.is-switch::before,
.player-backup-icon.is-switch::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.player-backup-icon.is-switch::before { top: 2px; left: 1px; transform: skewX(30deg); }
.player-backup-icon.is-switch::after { bottom: 1px; right: 1px; transform: rotate(180deg) skewX(30deg); }
.watch-chat-layout.is-pinned .player-backup-controls { flex: 0 0 auto; padding: 4px 0 0; max-width: none; }
.watch-chat-layout.is-pinned .player-backup-button { min-height: 30px; padding: 4px 8px; font-size: 11px; }
@media (min-width: 720px) {
  .player-backup-controls { max-width: 390px; }
}
@media (max-width: 1050px) {
  .watch-chat-layout.is-pinned.has-active-chat.has-player-backup {
    --backup-source-height: 0px;
    --backup-banner-height: 0px;
  }
  .watch-chat-layout.is-pinned.has-active-chat.has-player-backup.has-player-sources { --backup-source-height: 35px; }
  .watch-chat-layout.is-pinned.has-active-chat.has-player-backup.has-player-banner { --backup-banner-height: clamp(24px, 8.5vw, 50px); }
  .watch-chat-layout.is-pinned.has-active-chat.has-player-backup .video-stage {
    height: min(56.25vw, calc(var(--watch-viewport-height, 100dvh) * .32), max(40px, calc(var(--watch-viewport-height, 100dvh) - 248px - var(--backup-source-height) - var(--backup-banner-height))));
  }
  .watch-chat-layout.is-pinned .player-backup-controls { padding-inline: 6px; }
  .watch-chat-layout.is-pinned.is-short-viewport .player-backup-controls { padding-top: 2px; gap: 6px; }
  .watch-chat-layout.is-pinned.is-short-viewport .player-backup-button { min-height: 28px; padding-block: 3px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .player-backup-button { transition: none; }
}
