.featured-banner { width: min(100%, 1024px); display: grid; place-items: center; margin: 1rem auto 1.5rem; overflow: hidden; border-radius: 20px; background: #15101b; }
.featured-banner img { display: block; width: 100%; height: auto; }
.watch .social.youtube-short { width: min(100%, 420px); aspect-ratio: 9 / 16; }
.install-dialog { width: min(92vw, 420px); color: #f9f5ff; background: #19121f; border: 1px solid #684650; border-radius: 20px; padding: 24px; z-index: 120; }
.install-dialog::backdrop { background: #08060ad9; }
.install-dialog[open]:not(:modal) { position: fixed; inset: auto 0 90px; }
.install-dialog h2 { border: 0; padding: 0; margin: 0; }
.install-dialog p { color: #eee0f3; }
.install-dialog button { min-height: 44px; }
.install-dialog form { display: flex; flex-wrap: wrap; gap: 8px; }
.install-dialog .secondary { background: #362942; color: white; }
#player-status:empty { display: none; }

.watch .site-layout { grid-template-columns: minmax(0, 1fr); }
.watch .social.youtube { min-height: 200px; }
.ad[hidden], .watched-badge[hidden], .episode-indicator i[hidden], #install-app[hidden] { display: none !important; }
.ad-compact { width: 100%; }
@media (min-width: 320px) and (max-width: 351px) {
  .ad[data-edge-banner] { width: 320px; max-width: none; margin-inline: calc((100% - 320px) / 2) !important; }
}
.ad[data-ad-placement] iframe { display: block; border: 0; }
.episode .episode-indicator { flex: 0 0 auto; margin-inline-start: auto; }
.watched-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d5f5df;
  color: #126234;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
[data-current-watched] { margin-block: 0 10px; }
#history-dialog form { justify-content: flex-end; }


.bottom-nav a[aria-current="page"] span { outline: 2px solid #ffad20; outline-offset: -2px; }
[data-current-watched] { margin-block: 12px; }
@media (max-width: 767px) {
  .watch .social.youtube-short {
    width: min(100%, 420px, max(200px, calc(var(--player-height, 700px) * .5625)));
    max-height: var(--player-height, none);
  }
  .watch video[data-watch-player] { max-height: var(--player-height, none); }
}
