/* v132 mobile rhythm and interaction corrections. */
@media (max-width: 719px) {
  /* The unwatched check already communicates the next episode. */
  html body #showDialog .episode.next-up::before,
  html body #showDialog .episode.next-up::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }

  html body #showDialog .episode.next-up {
    padding-left: 0 !important;
    color: inherit !important;
    background: transparent !important;
  }

  /* Database header uses one optical size and one vertical center. */
  html body.view-database .mobile-workspace-actions,
  html body.mobile-database-tab .mobile-workspace-actions {
    inset: 5px 4px auto auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 40px !important;
  }

  html body.view-database .mobile-workspace-actions > button,
  html body.mobile-database-tab .mobile-workspace-actions > button {
    box-sizing: border-box !important;
    flex: 0 0 40px !important;
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.view-database .mobile-workspace-actions > button > .material-symbols-rounded,
  html body.mobile-database-tab .mobile-workspace-actions > button > .material-symbols-rounded {
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    font-size: 25px !important;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 25 !important;
    line-height: 25px !important;
    text-align: center !important;
  }

  /* Keep poster-to-title spacing, then pull status and progress upward together. */
  html body.view-database main #library #showGrid > article.show-card.database-card,
  html body.mobile-database-tab main #library #showGrid > article.show-card.database-card {
    grid-template-rows: auto 46px !important;
  }

  html body.view-database main #library #showGrid > article.show-card.database-card > .card-content,
  html body.mobile-database-tab main #library #showGrid > article.show-card.database-card > .card-content {
    box-sizing: border-box !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 5px 0 0 !important;
    grid-template-rows: 19px 12px 10px !important;
  }

  html body.view-database main #library #showGrid > article.show-card.database-card .card-top,
  html body.mobile-database-tab main #library #showGrid > article.show-card.database-card .card-top {
    min-height: 19px !important;
  }

  html body.view-database main #library #showGrid > article.show-card.database-card .next-episode,
  html body.mobile-database-tab main #library #showGrid > article.show-card.database-card .next-episode {
    margin-top: 0 !important;
  }

  html body.view-database main #library #showGrid > article.show-card.database-card .progress-row,
  html body.mobile-database-tab main #library #showGrid > article.show-card.database-card .progress-row {
    align-self: end !important;
    margin-top: 0 !important;
  }

  /* Current-title state belongs to the section heading. */
  html body #personalizeDialog .headline-section-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  html body #personalizeDialog .headline-section-heading > h3 {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  html body #personalizeDialog .headline-section-heading > .random-title-state {
    position: static !important;
    flex: 0 1 auto !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--os-muted, #777a80) !important;
    background: transparent !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    text-align: right !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body #personalizeDialog .random-title-controls {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body #personalizeDialog .random-title-toggle-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body #personalizeDialog .random-title-toggle-row > #randomTitleToggle {
    position: static !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 132px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 16px !important;
  }

  html body #personalizeDialog .random-title-toggle-row > #randomTitleInfo {
    position: static !important;
    flex: 0 0 36px !important;
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: var(--os-muted, #777a80) !important;
    background: transparent !important;
  }

  html body #personalizeDialog .random-title-toggle-row > #randomTitleInfo .material-symbols-rounded {
    font-size: 20px !important;
  }

  html body #personalizeDialog #randomTitleTip {
    position: static !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
  }

  /* Poster and title begin on one shared history-card baseline. */
  html body #historyDialog .history-item {
    align-items: start !important;
  }

  html body #historyDialog .history-poster {
    align-self: start !important;
    margin: 0 !important;
    transform: none !important;
  }

  html body #historyDialog .history-copy {
    align-self: start !important;
    padding-top: 0 !important;
  }

  html body #historyDialog .history-copy > strong {
    margin-top: 0 !important;
  }

  /* Use the scroller padding as the only horizontal profile margin. */
  html body #profileDialog.mobile-tab-page .profile-summary,
  html body #profileDialog.mobile-tab-page .profile-overview,
  html body #profileDialog.mobile-tab-page .mobile-profile-hub,
  html body #profileDialog.mobile-tab-page .profile-activity-section {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  html body #profileDialog.mobile-tab-page .mobile-profile-account,
  html body #profileDialog.mobile-tab-page .mobile-profile-actions {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  html body #profileDialog.mobile-tab-page .mobile-profile-actions > button {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}
