:root {
  --app-bg: #f4f4f7;
  --app-surface: rgba(255, 255, 255, 0.92);
  --app-card: #fff;
  --app-text: #17171b;
  --app-muted: #777781;
  --app-border: rgba(20, 20, 30, 0.08);
  --app-accent: #6c5ce7;
  --app-green: #24a36a;
  --app-orange: #f1973f;
  --app-blue: #4c78ff;
  --app-radius: 22px;
  --app-shadow: 0 12px 35px rgba(36, 35, 58, 0.07);
}

html {
  font-size: 16px;
  min-height: 100%;
  background: var(--app-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--app-text);
  background:
    radial-gradient(circle at 8% -5%, rgba(108, 92, 231, 0.09), transparent 28rem),
    var(--app-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: -0.012em;
}

a {
  color: inherit;
}

.app-container {
  max-width: 880px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--app-border);
  background: rgba(244, 244, 247, 0.78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.navbar {
  min-height: 64px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: 0;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(145deg, #7b68ee, #5547c9);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.28);
  font-size: 0.65rem;
}

.navbar .nav-link {
  color: #55545e;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-circle,
.nav-account {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30, 28, 50, 0.08);
}

.nav-account {
  color: #fff;
  background: #292830;
  font-size: 0.85rem;
  font-weight: 750;
}

.nav-account::after {
  display: none;
}

.account-menu {
  position: absolute !important;
  top: calc(100% + 0.5rem) !important;
  right: 0 !important;
  left: auto !important;
  min-width: 240px;
  margin: 0 !important;
  padding: 0.5rem;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--app-shadow);
}

.account-menu .dropdown-item {
  border-radius: 10px;
}

.header-library-actions {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.65rem;
}

.segmented-control.header-segmented-control {
  width: 100%;
  max-width: 320px;
  flex: 0 1 320px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  border-radius: 12px;
}

.header-segmented-control a {
  padding: 0.42rem 0.65rem;
  font-size: 0.76rem;
}

.header-segmented-control .header-add-tab {
  padding-right: 0;
  padding-left: 0;
  font-size: 1.05rem;
}

.header-library-actions + .navbar-nav {
  margin-left: 0.5rem;
}

.app-main {
  min-height: calc(100vh - 150px);
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.3rem;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.2rem, 9vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.compact-heading h1 {
  font-size: clamp(2.2rem, 8vw, 3.25rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--app-accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.heading-copy {
  margin: 0.75rem 0 0;
  color: var(--app-muted);
}

.btn-add-desktop {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 46px;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  max-width: 320px;
  margin-bottom: 0;
  padding: 4px;
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.12);
}

.segmented-control a {
  padding: 0.55rem 1rem;
  color: #696872;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.segmented-control a.active {
  color: var(--app-text);
  background: #fff;
  box-shadow: 0 2px 7px rgba(27, 26, 42, 0.09);
}

.library-section {
  margin-bottom: 2.4rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding: 0 0.2rem;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0.18rem 0 0 1.25rem;
  color: var(--app-muted);
  font-size: 0.78rem;
}

.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--app-orange);
}

.section-dot-tobeannounced {
  background: var(--app-blue);
}

.section-dot-ended {
  background: #a5a4ad;
}

.count-badge {
  min-width: 30px;
  padding: 0.25rem 0.55rem;
  color: #777681;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.media-list {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  background: var(--app-card);
  box-shadow: var(--app-shadow);
}

.media-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
}

.media-card + .media-card {
  border-top: 1px solid var(--app-border);
}

.media-poster-wrap {
  align-self: start;
}

.media-poster {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #e8e8ed;
  box-shadow: 0 6px 18px rgba(26, 25, 39, 0.14);
}

.media-poster-fallback,
.search-poster-fallback {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, #8d82de, #453c86);
  font-size: 2rem;
  font-weight: 800;
}

.media-content,
.min-width-0 {
  min-width: 0;
}

.media-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.media-kicker {
  margin-bottom: 0.18rem;
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.media-title-row h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.status-chip {
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem;
  color: #2a6d4c;
  border-radius: 999px;
  background: #e7f7ef;
  font-size: 0.69rem;
  font-weight: 780;
  white-space: nowrap;
}

.status-tba {
  color: #4a5ead;
  background: #ebefff;
}

.status-ended {
  color: #6c6b74;
  background: #efeff2;
}

.media-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  margin-top: 0.5rem;
  color: var(--app-muted);
  font-size: 0.76rem;
}

.media-facts strong {
  color: #4f4e56;
}

.next-title {
  overflow: hidden;
  margin: 0.35rem 0 0;
  color: #55545c;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-actions {
  margin-top: 0.65rem;
}

.progress-button,
.watch-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  color: #5d5c65;
  border: 0;
  background: transparent;
  font-size: 0.73rem;
  font-weight: 620;
  text-align: left;
}

.watch-toggle {
  width: auto;
  gap: 0.35rem;
  color: var(--app-accent);
}

.watch-toggle.watched {
  color: var(--app-green);
}

.watch-toggle.wont-watch {
  color: #777681;
}

.watch-progress {
  overflow: hidden;
  height: 4px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: #ececf1;
}

.watch-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b68ee, #5bc8af);
}

.episode-drawer {
  margin-top: 0.65rem;
  padding: 0.75rem 0 0.2rem;
  border-top: 1px solid var(--app-border);
}

.episode-empty {
  margin: 0 0 0.8rem;
  padding: 0.7rem 0.8rem;
  color: #666570;
  border-radius: 12px;
  background: #f4f3f8;
  font-size: 0.7rem;
  line-height: 1.4;
}

.watch-block + .watch-block {
  margin-top: 0.9rem;
}

.watch-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}

.watch-block-heading > div {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.watch-block-heading strong {
  font-size: 0.78rem;
}

.watch-block-heading span {
  color: var(--app-muted);
  font-size: 0.67rem;
}

.season-bulk-toggle {
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1.5px solid #c8c7cf;
  border-radius: 50%;
  background: transparent;
  font-size: 0.72rem;
}

.season-bulk-toggle.watched {
  border-color: var(--app-green);
  background: var(--app-green);
}

.season-bulk-toggle.wont-watch {
  border-color: #8d8b95;
  background: #8d8b95;
}

.episode-list {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 13px;
  background: #fafafd;
}

.episode-row {
  display: grid;
  grid-template-columns: 24px 52px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  transition: opacity 140ms ease, background 140ms ease;
}

.episode-row + .episode-row {
  border-top: 1px solid var(--app-border);
}

.episode-row.watched {
  background: #f5faf7;
  opacity: 0.62;
}

.episode-row.watched .episode-copy strong {
  text-decoration: line-through;
}

.episode-row.wont-watch {
  background: #f4f4f6;
  opacity: 0.54;
}

.episode-row.wont-watch .episode-copy strong {
  text-decoration: line-through;
}

.episode-check {
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1.5px solid #c8c7cf;
  border-radius: 50%;
  background: transparent;
  font-size: 0.72rem;
}

.episode-check.watched {
  border-color: var(--app-green);
  background: var(--app-green);
}

.episode-check.wont-watch {
  border-color: #8d8b95;
  background: #8d8b95;
}

.episode-coordinate {
  color: #666570;
  font-size: 0.62rem;
  font-weight: 750;
  white-space: nowrap;
}

.episode-copy {
  display: grid;
  min-width: 0;
}

.episode-copy strong {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-copy small {
  color: var(--app-muted);
  font-size: 0.62rem;
}

.progress-error {
  margin: 0.45rem 0 0;
  color: #b42318;
  font-size: 0.68rem;
}

.media-card {
  transition: opacity 180ms ease, transform 180ms ease;
}

.media-card.is-completing {
  opacity: 0;
  transform: translateY(-4px);
}

.media-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.provider-list {
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-height: 28px;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 125px;
  padding: 0.18rem 0.4rem 0.18rem 0.22rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: #f8f8fa;
  color: #5f5e67;
  font-size: 0.62rem;
  font-weight: 650;
  white-space: nowrap;
}

.provider-badge img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
}

.provider-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-empty {
  color: var(--app-muted);
  font-size: 0.68rem;
}

.card-menu {
  padding: 0 0.3rem;
  color: #8c8b94;
  border: 0;
  background: transparent;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dropdown-menu {
  border: 1px solid var(--app-border);
  border-radius: 14px;
  box-shadow: var(--app-shadow);
}

.dropdown-item {
  font-size: 0.88rem;
}

.empty-state {
  display: grid;
  min-height: 350px;
  place-items: center;
  align-content: center;
  padding: 3rem 1.5rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  place-items: center;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(145deg, #7b68ee, #5547c9);
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(108, 92, 231, 0.24);
}

.empty-icon:hover {
  color: #fff;
  transform: translateY(-1px);
}

.empty-state h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 750;
}

.empty-state p {
  max-width: 340px;
  margin: 0.5rem 0 1.2rem;
  color: var(--app-muted);
}

.compact-empty {
  min-height: 260px;
}

.search-shell {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--app-shadow);
}

.search-shell input {
  min-width: 0;
  padding: 0.55rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}

.search-shell input[type="search"]::-webkit-search-cancel-button,
.search-shell input[type="search"]::-webkit-search-decoration {
  appearance: none;
  -webkit-appearance: none;
}

.search-shell button {
  padding: 0.6rem 1rem;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: #24232a;
  font-size: 0.85rem;
  font-weight: 700;
}

.search-icon {
  padding-left: 0.45rem;
  color: var(--app-muted);
  font-size: 1.4rem;
}

.search-clear {
  color: var(--app-muted);
  font-size: 1.4rem;
  text-decoration: none;
}

.search-results {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  background: #fff;
  box-shadow: var(--app-shadow);
}

.search-result {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
}

.search-result + .search-result {
  border-top: 1px solid var(--app-border);
}

.search-result > img,
.search-poster-fallback {
  width: 68px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 11px;
}

.search-result h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.search-added-button,
.search-added-button:disabled {
  color: #27774c;
  border: 1px solid rgba(39, 119, 76, 0.16);
  background: rgba(52, 199, 89, 0.12);
  opacity: 1;
  font-weight: 700;
}

.original-title,
.result-overview {
  margin: 0.18rem 0 0;
  color: var(--app-muted);
  font-size: 0.72rem;
}

.result-overview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.provider-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.settings-stack {
  display: grid;
  gap: 1rem;
}

.settings-panel {
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  background: #fff;
  box-shadow: var(--app-shadow);
}

.settings-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.settings-panel-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 760;
}

.settings-panel-heading p:not(.settings-label) {
  margin: 0.3rem 0 0;
  color: var(--app-muted);
  font-size: 0.78rem;
}

.settings-label {
  margin: 0 0 0.25rem;
  color: var(--app-accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.provider-option {
  cursor: pointer;
}

.provider-option-card {
  position: relative;
  display: grid;
  min-height: 112px;
  place-items: center;
  align-content: center;
  gap: 0.55rem;
  padding: 1rem 0.6rem;
  border: 1.5px solid var(--app-border);
  border-radius: 18px;
  background: #fff;
  color: #5c5b64;
  font-size: 0.74rem;
  font-weight: 650;
  text-align: center;
  transition: 140ms ease;
}

.provider-option-card img,
.provider-letter {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
}

.provider-letter {
  display: grid;
  place-items: center;
  color: #fff;
  background: #555;
  font-size: 1.1rem;
}

.provider-check {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: none;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--app-accent);
  font-size: 0.7rem;
}

.provider-option input:checked + .provider-option-card {
  border-color: var(--app-accent);
  background: #f6f4ff;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.provider-option input:checked + .provider-option-card .provider-check {
  display: grid;
}

.settings-save {
  position: sticky;
  bottom: env(safe-area-inset-bottom);
  z-index: 10;
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(244, 244, 247, 0.86);
  backdrop-filter: blur(16px);
}

.app-alert {
  border: 0;
  border-radius: 16px;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));
  color: var(--app-muted);
  font-size: 0.68rem;
}

.landing-hero {
  display: grid;
  min-height: 70vh;
  align-items: center;
  gap: 3rem;
}

.landing-copy h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3rem, 11vw, 5.8rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.landing-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin: 1.4rem 0;
  color: var(--app-muted);
  font-size: 1.08rem;
}

.landing-preview {
  max-width: 390px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 30px 80px rgba(44, 39, 88, .14);
  transform: rotate(1.5deg);
}

.preview-top,
.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem .35rem;
  font-weight: 700;
}

.preview-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: .8rem;
  padding: .8rem;
  border-radius: 18px;
  background: #fff;
}

.preview-poster {
  aspect-ratio: 2/3;
  border-radius: 12px;
  background: linear-gradient(145deg, #83b7dc, #52458d);
}

.preview-card div:last-child {
  display: grid;
  align-content: center;
  gap: .35rem;
}

.preview-card small {
  color: var(--app-muted);
}

.preview-progress {
  height: 4px;
  border-radius: 9px;
  background: #ececf2;
}

.preview-progress span {
  display: block;
  width: 67%;
  height: 100%;
  border-radius: inherit;
  background: var(--app-accent);
}

.preview-row {
  margin-top: .45rem;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
}

.form-control:focus,
.form-check-input:focus,
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 0.25rem rgba(108, 92, 231, 0.18);
  outline: 0;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 210px);
  place-items: center;
  padding: 2rem 0 4rem;
}

.auth-card {
  width: min(100%, 500px);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(44, 39, 88, 0.1);
}

.auth-card h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 820;
  letter-spacing: -0.055em;
}

.auth-intro,
.auth-switch {
  color: var(--app-muted);
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.auth-form .form-control {
  border-color: rgba(20, 20, 27, 0.12);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.9);
}

.auth-submit {
  min-height: 52px;
  border-radius: 999px;
  font-weight: 700;
}

.auth-switch {
  margin: 1.25rem 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--app-text);
  font-weight: 700;
}

@media (min-width: 576px) {
  .media-card {
    grid-template-columns: 112px 1fr;
    gap: 1.25rem;
    padding: 1.1rem;
  }

  .media-poster {
    width: 112px;
  }

  .media-title-row h3 {
    font-size: 1.2rem;
  }

  .provider-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .app-main {
    padding-top: 2rem;
  }

  .media-card {
    grid-template-columns: 126px 1fr;
    padding: 1.25rem;
  }

  .media-poster {
    width: 126px;
    border-radius: 17px;
  }

  .provider-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .settings-save {
    bottom: 0;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
  }
}

@media (max-width: 575.98px) {
  .navbar > .app-container {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  .app-main {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .media-card {
    grid-template-columns: 82px 1fr;
    gap: 0.8rem;
    padding: 0.85rem;
  }

  .media-poster {
    width: 82px;
    border-radius: 12px;
  }

  .provider-badge span {
    display: none;
  }

  .provider-badge {
    padding: 0.16rem;
  }

  .search-result {
    grid-template-columns: 62px 1fr auto;
    gap: 0.7rem;
  }

  .search-result > img,
  .search-poster-fallback {
    width: 62px;
  }

  .result-overview {
    display: none;
  }

  .search-result .btn {
    padding: 0.42rem 0.7rem;
    font-size: 0.76rem;
  }

}

@media (max-width: 359.98px) {
  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .header-library-actions {
    gap: 0.3rem;
  }

  .header-library-actions + .navbar-nav {
    margin-left: 0.3rem;
  }

  .header-segmented-control a {
    padding-right: 0.35rem;
    padding-left: 0.35rem;
    font-size: 0.66rem;
  }

  .nav-account {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
