/* OnlyShows 0.9.1: denser mobile surfaces and a focused watch history. */
.history-older-button {
  width: 100%;
  min-height: 44px;
  margin: 14px 0 2px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: var(--surface-container-low);
  color: var(--on-surface);
  font: 650 13px/1 var(--font-ui);
  cursor: pointer;
}

.history-older-button:hover {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

@media (max-width: 719px) {
  .top-actions #updatesButton,
  .hero .stats,
  .hero .more-data-button {
    display: none !important;
  }

  .hero {
    padding: 15px 0 11px !important;
  }

  .hero h1 {
    margin-bottom: 0 !important;
  }

  .mobile-list-view .show-card {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    min-height: 133px !important;
    padding: 8px !important;
    gap: 10px !important;
    align-items: center !important;
    overflow: hidden;
  }

  .mobile-list-view .poster-frame {
    width: 78px !important;
    height: 117px !important;
    min-height: 117px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
  }

  .mobile-list-view .poster,
  .mobile-list-view .poster-placeholder {
    width: 78px !important;
    height: 117px !important;
    min-height: 117px !important;
    border-radius: 14px !important;
  }

  .mobile-list-view .card-content {
    min-height: 117px !important;
    padding: 3px 3px 3px 0 !important;
  }

  .mobile-list-view .card-episode-row {
    flex: 0 0 auto !important;
  }

  .mobile-list-view .progress-row,
  .mobile-list-view .upcoming-air-date {
    margin-top: 7px !important;
  }

  .history-list {
    gap: 10px !important;
  }

  .history-item {
    min-height: 116px !important;
    padding: 8px 12px 8px 8px !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    grid-template-rows: 1fr auto !important;
    column-gap: 12px !important;
    overflow: hidden;
    align-items: stretch;
  }

  .history-poster {
    grid-column: 1 !important;
    grid-row: 1 / -1 !important;
    width: 76px !important;
    height: 100px !important;
    min-height: 0 !important;
    align-self: center !important;
    border-radius: 14px !important;
  }

  .history-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    padding-top: 5px !important;
  }

  .history-time {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 2px 0 7px !important;
  }
}
