/* Web pop-out only. No playback, app, or main-window layout changes. */
html[data-platform="web"] body.favorites-popout-window {
  padding: clamp(3px, 1vw, 8px);
}
html[data-platform="web"] body.favorites-popout-window .favorite-channels-drawer {
  min-width: 0;
  min-height: 0;
  padding: clamp(6px, 2vw, 14px);
  border-radius: 14px;
  overflow: auto;
}
html[data-platform="web"] body.favorites-popout-window .favorite-channels-heading {
  flex-wrap: wrap;
  gap: 4px 8px;
}
html[data-platform="web"] body.favorites-popout-window .favorite-channels-heading h2 {
  font-size: clamp(17px, 3vw, 21px);
}
html[data-platform="web"] body.favorites-popout-window .favorite-channels-heading .muted {
  margin-bottom: 0;
}
html[data-platform="web"] body.favorites-popout-window .favorite-channels-heading-actions {
  flex-wrap: wrap;
  max-width: 100%;
  gap: 4px;
}
html[data-platform="web"] body.favorites-popout-window .favorite-channels-heading-actions button {
  min-height: 32px;
}
html[data-platform="web"] body.favorites-popout-window .favorite-channels-close {
  width: 32px;
  height: 32px;
}
html[data-platform="web"] body.favorites-popout-window .favorite-player {
  min-width: 0;
  padding: 6px 8px;
  margin-top: 5px;
}
html[data-platform="web"] body.favorites-popout-window #favorite-playing-title {
  min-width: 0;
  font-size: 14px;
}
html[data-platform="web"] body.favorites-popout-window #favorite-playing-status {
  gap: 2px 5px;
}
html[data-platform="web"] body.favorites-popout-window #favorite-playing-queue {
  overflow-wrap: anywhere;
}
html[data-platform="web"] body.favorites-popout-window .favorite-quick-sets {
  max-height: 30dvh;
}
html[data-platform="web"] body.favorites-popout-window .favorite-quick-sets summary {
  min-height: 30px;
}
html[data-platform="web"] body.favorites-popout-window .preset-buttons {
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
}
html[data-platform="web"] body.favorites-popout-window .favorite-channels-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1 0 56px;
  min-width: 0;
  min-height: 56px;
  gap: clamp(4px, 1vw, 8px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
html[data-platform="web"] body.favorites-popout-window .favorite-channel {
  min-width: 0;
  min-height: 56px;
  padding: 6px 8px;
  border-radius: 9px;
}
@media (max-width: 719px) {
  html[data-platform="web"] body.favorites-popout-window .favorite-channels-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 519px) {
  html[data-platform="web"] body.favorites-popout-window .favorite-channels-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 219px) {
  html[data-platform="web"] body.favorites-popout-window .favorite-channels-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 519px), (max-height: 399px) {
  html[data-platform="web"] body.favorites-popout-window .favorite-channel {
    min-height: 44px;
    padding: 3px 6px;
    border-radius: 7px;
  }
  html[data-platform="web"] body.favorites-popout-window .favorite-channel > span:nth-child(2) {
    grid-template-rows: 18px 12px;
    row-gap: 1px;
  }
  html[data-platform="web"] body.favorites-popout-window .favorite-channel strong {
    line-height: 18px;
  }
  html[data-platform="web"] body.favorites-popout-window .favorite-channel small,
  html[data-platform="web"] body.favorites-popout-window .favorite-playing-badge {
    height: 12px;
    line-height: 12px;
  }
  html[data-platform="web"] body.favorites-popout-window .favorite-channel-indicator {
    top: 4px;
    left: 4px;
    width: 5px;
    height: 5px;
  }
  html[data-platform="web"] body.favorites-popout-window .favorite-channels-list {
    gap: 4px;
  }
}
@media (max-height: 399px) {
  html[data-platform="web"] body.favorites-popout-window .favorite-channels-drawer {
    padding: 6px;
  }
  html[data-platform="web"] body.favorites-popout-window .favorite-player {
    padding: 4px 6px;
    margin-top: 3px;
  }
}
