:root {
  color-scheme: light;

  --color-canvas: #f6f7f8;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f3f5;
  --color-text: #1c2126;
  --color-text-muted: #5d6670;
  --color-border: #e2e6e9;
  --color-border-strong: #c8ced4;
  --color-accent: #24292f;
  --color-accent-contrast: #ffffff;
  --color-focus: #3b4652;
  --color-danger: #b42318;
  --color-danger-hover: #8f1c13;
  --color-danger-surface: #fef3f2;

  --color-google-surface: #ffffff;
  --color-google-border: #747775;
  --color-google-text: #1f1f1f;

  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-google: 'Google Sans', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-xl: 1.75rem;
  --leading-tight: 1.25;
  --leading-normal: 1.5;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-full: 999px;

  --shadow-popover: 0 12px 32px rgb(24 32 40 / 14%), 0 2px 8px rgb(24 32 40 / 8%);
  --skeleton-gradient: linear-gradient(
    90deg,
    var(--color-surface-muted) 25%,
    var(--color-border) 50%,
    var(--color-surface-muted) 75%
  );

  --header-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: var(--header-height);
  padding: 0 var(--space-5);
}

.site-header__nav,
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-header__nav {
  position: relative;
  flex: none;
}

.site-header__actions {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  border-radius: var(--radius-sm);
}

.brand__icon {
  display: block;
  width: 32px;
  height: 32px;
}

.menu-toggle,
.search-toggle {
  display: none;
}

.menu-toggle {
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--color-surface-muted);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  width: min(280px, calc(100vw - 2 * var(--space-4)));
  max-height: calc(100vh - var(--header-height) - 2 * var(--space-4));
  padding: var(--space-2);
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
}

.mobile-menu__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.mobile-menu__link:hover,
.mobile-menu__link[aria-current="page"] {
  color: var(--color-text);
  background: var(--color-surface-muted);
}

.mobile-menu__locale {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-2) 0;
  border-top: 1px solid var(--color-border);
}

.header-link {
  flex: none;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.header-link:hover,
.header-link[aria-current="page"] {
  color: var(--color-text);
  background: var(--color-surface-muted);
}

.locale {
  position: relative;
  flex: none;
}

.locale-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  height: 40px;
  padding: 0 var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.locale-button:hover {
  background: var(--color-border);
}

.locale-button__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.locale-button__code {
  letter-spacing: 0.04em;
}

.locale-panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 20;
  width: min(320px, calc(100vw - 2 * var(--space-4)));
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
}

.locale-panel__heading,
.mobile-menu__heading {
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.locale-settings {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.locale-settings__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.locale-settings__label {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
}

.locale-select {
  position: relative;
  display: flex;
  flex-direction: column;
}

.locale-select__trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--space-2) var(--space-6) var(--space-2) var(--space-3);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  text-align: left;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.locale-select__trigger:hover {
  background: var(--color-border);
}

.locale-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.locale-select__chevron {
  position: absolute;
  top: 50%;
  right: var(--space-3);
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transform: translateY(-50%);
}

.locale-settings__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  cursor: pointer;
}

.locale-settings__switch-control {
  position: relative;
  flex: none;
  width: 38px;
  height: 20px;
}

.locale-settings__switch-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.locale-settings__switch-track {
  position: absolute;
  inset: 0;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
}

.locale-settings__switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgb(24 32 40 / 20%);
}

.locale-settings__switch-input:checked + .locale-settings__switch-track {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.locale-settings__switch-input:checked + .locale-settings__switch-track::after {
  transform: translateX(18px);
}

.locale-settings__switch-input:focus-visible + .locale-settings__switch-track {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.locale-settings__hint {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

.locale-settings__error {
  margin: 0;
  color: var(--color-danger);
  font-size: var(--text-xs);
}

.search {
  position: relative;
  flex: 0 1 360px;
  min-width: 0;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: var(--space-3);
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.search-toggle {
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.search-toggle:hover {
  background: var(--color-border);
}

.search-toggle__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 var(--space-3) 0 calc(var(--space-3) + 16px + var(--space-2));
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-input:focus {
  background: var(--color-surface);
}

.search-panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 20;
  width: min(420px, calc(100vw - 2 * var(--space-4)));
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
}

.search-scroll {
  max-height: min(70vh, 520px);
  padding: var(--space-2);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-scroll:focus-visible {
  outline-offset: -2px;
}

.search-count {
  margin: 0;
  /* .search-scroll's 8px inset plus a row's 12px inset, so the text
     aligns with result titles across the divider. */
  padding: var(--space-2) calc(var(--space-2) + var(--space-3));
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  border-bottom: 1px solid var(--color-border);
}

.search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-result {
  padding: 0;
}

.search-result__link {
  display: block;
  padding: var(--space-3);
  color: inherit;
  text-decoration: none;
}

.search-result__link:hover {
  background: var(--color-surface-muted);
}

.search-result__link:focus-visible {
  outline-offset: -2px;
}

.search-result + .search-result,
.search-result + .search-skeleton,
.search-skeleton + .search-result,
.search-skeleton + .search-skeleton {
  border-top: 1px solid var(--color-border);
}

.search-row__head,
.search-row__line {
  display: flex;
  align-items: center;
}

.search-row__head {
  justify-content: space-between;
  gap: var(--space-3);
  min-height: calc(var(--text-md) * var(--leading-normal));
}

.search-row__line {
  gap: var(--space-2);
  min-height: calc(var(--text-sm) * var(--leading-normal));
  margin-top: var(--space-1);
}

.search-result__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-weight: 500;
  line-height: var(--leading-normal);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result__meta {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 20px;
  padding: 0 var(--space-2);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.search-result__type {
  margin-left: auto;
}

.search-result__year {
  white-space: nowrap;
}

.search-result__details {
  margin: var(--space-1) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.search-result__details-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-skeleton {
  padding: var(--space-3);
}

.search-skeleton__bar {
  display: block;
  height: 12px;
  background: var(--skeleton-gradient);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
}

.search-skeleton__bar--title {
  width: 55%;
  height: 14px;
}

.search-skeleton__bar--year {
  flex: none;
  width: 40px;
  height: 12px;
  margin-left: auto;
}

.search-skeleton__bar--badge {
  flex: none;
  width: 64px;
  height: 20px;
  margin-left: auto;
  border-radius: var(--radius-full);
}

.search-skeleton__bar--line {
  width: 38%;
}

@media (prefers-reduced-motion: no-preference) {
  .search-skeleton__bar {
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
  }
}

@keyframes skeleton-shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.search-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.search-state__text {
  margin: 0;
  padding: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.search-state .search-state__text {
  padding: 0;
}

.search-state .button {
  width: auto;
  max-width: 260px;
}

.button.search-retry {
  width: auto;
  min-width: 120px;
  margin: var(--space-3) auto;
}

@media (max-width: 560px) {
  .brand,
  .header-link,
  .locale {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-menu {
    display: flex;
  }

  .search {
    position: static;
    flex: none;
  }

  .search-toggle {
    display: grid;
  }

  .search-field {
    display: none;
  }

  .search--expanded {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: var(--space-2);
  }

  .search--expanded .search-toggle {
    display: none;
  }

  .search--expanded .search-field {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
  }

  .search--expanded .search-icon {
    display: none;
  }

  .search--expanded .search-input {
    padding-left: var(--space-3);
  }

  .search-panel {
    top: 100%;
    right: var(--space-4);
    left: var(--space-4);
    width: auto;
  }
}

.account {
  position: relative;
}

.avatar-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.avatar-button:hover {
  background: var(--color-border);
}

.avatar-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: min(260px, calc(100vw - 2 * var(--space-4)));
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
}

@media (prefers-reduced-motion: no-preference) {
  .account-panel:not([hidden]),
  .locale-panel:not([hidden]),
  .search-panel:not([hidden]),
  .mobile-menu:not([hidden]),
  .role-select__menu:not([hidden]),
  .locale-select__menu:not([hidden]),
  .title__lists-panel:not([hidden]),
  .modal__dialog {
    animation: panel-in 120ms ease-out;
  }

  .locale-settings__switch-track {
    transition: background-color 120ms ease, border-color 120ms ease;
  }

  .locale-settings__switch-track::after {
    transition: transform 120ms ease;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.account-loading,
.account-name {
  margin: 0;
}

.account-loading {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.account-name {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.account-divider {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 40px;
  padding: 0 var(--space-3);
  color: var(--color-text);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.button:hover {
  background: var(--color-surface-muted);
}

.button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.google-mark {
  flex: none;
  width: 18px;
  height: 18px;
}

.button--google {
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  color: var(--color-google-text);
  font-family: var(--font-google);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  background: var(--color-google-surface);
  border: 1px solid var(--color-google-border);
  border-radius: 4px;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
}

.page-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.page-heading__title {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.page-heading__title .page-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-lead,
.page-state {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

.page-state__text {
  margin: 0;
}

.page-action {
  width: auto;
  min-width: 120px;
  margin-top: var(--space-4);
}

.privacy,
.about {
  max-width: 760px;
}

.privacy__updated {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.privacy__section,
.about__section {
  margin-top: var(--space-5);
}

.privacy__heading,
.about__heading {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.privacy__text,
.privacy__list,
.about__text {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.privacy__list {
  padding-left: var(--space-5);
}

.privacy__list li + li {
  margin-top: var(--space-2);
}

.privacy__link,
.about__link {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy__link:hover,
.about__link:hover {
  color: var(--color-text-muted);
}

.about__notice {
  color: var(--color-text);
}

.about__service {
  margin-top: var(--space-4);
}

.about__service-name {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}

.about__tmdb-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.about__tmdb-logo {
  display: block;
  height: 20px;
  width: auto;
}

.icon-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.icon-button:hover {
  color: var(--color-text);
  background: var(--color-surface-muted);
}

.icon-button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.icon-button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.icon-button__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button--danger {
  color: var(--color-danger);
}

.icon-button--danger:hover {
  color: var(--color-danger-hover);
  background: var(--color-danger-surface);
  border-color: var(--color-danger);
}

.back-link {
  display: inline-block;
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.back-link:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.title__heading {
  position: relative;
}

.title__heading .page-title {
  overflow-wrap: anywhere;
}

.title__hint {
  cursor: help;
}

.title__hint[data-tooltip]::after {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  inset-inline-start: 0;
  z-index: 20;
  width: max-content;
  max-width: min(260px, 100%);
  padding: var(--space-1) var(--space-2);
  color: var(--color-accent-contrast);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--leading-normal);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  content: attr(data-tooltip);
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  opacity: 0;
}

.title__hint[data-tooltip]:hover::after,
.title__hint[data-tooltip]:focus-visible::after {
  opacity: 1;
}

.title__year {
  margin-inline-start: var(--space-2);
  color: var(--color-text-muted);
  font-weight: 400;
  white-space: nowrap;
  border-bottom: 1px dotted var(--color-text-muted);
}

.title__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.title__meta-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.title__rating {
  display: inline-flex;
  gap: var(--space-1);
  align-items: center;
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px dotted var(--color-text-muted);
}

.title__rating-star {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.title__countryball {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
}

.title__countryball-ball {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

.title__countryball-flag {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title__countryball-layer {
  position: absolute;
  inset: 0;
  display: block;
}

.title__countryball-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--color-text-muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

#title-view {
  margin-top: calc(-1 * var(--space-6));
  margin-bottom: calc(-1 * var(--space-6));
}

.title__hero {
  position: relative;
  padding-block: var(--space-5);
}

.title__backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 100vw;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}

.title__backdrop::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(
    180deg,
    rgb(246 247 248 / 90%),
    rgb(246 247 248 / 78%)
  );
}

.title__backdrop-image,
.title__poster-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title__hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.title__hero--with-poster .title__hero-inner {
  grid-template-columns: 360px minmax(0, 1fr);
}

.title__hero-body {
  min-width: 0;
}

.title__poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.title__actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-4);
}

.title__list-picker {
  position: relative;
}

.title__action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.title__action-button:hover {
  background: var(--color-surface-muted);
}

.title__action-button--saved {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.title__action-button--saved:hover {
  background: var(--color-surface-muted);
}

.title__action-button--saved .title__action-icon {
  fill: currentColor;
}

.title__action-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title__lists-panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  z-index: 10;
  width: min(260px, calc(100vw - 2 * var(--space-5)));
  max-height: min(320px, calc(100vh - 160px));
  padding: var(--space-2);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
}

.title__lists-state {
  margin: 0;
  padding: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.title__lists-state-text {
  margin: 0;
}

.title__lists-retry {
  width: auto;
  min-width: 0;
  min-height: 32px;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

.title__lists-options {
  padding: 0;
  margin: 0;
  list-style: none;
}

.title__lists-option {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.title__lists-option:hover {
  background: var(--color-surface-muted);
}

.title__lists-checkbox {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.title__lists-checkbox:disabled {
  cursor: progress;
}

.title__lists-name {
  overflow-wrap: anywhere;
}

.title__lists-action-error {
  padding: 0 var(--space-3);
  margin: var(--space-2) 0 0;
  color: var(--color-danger);
  font-size: var(--text-sm);
}

.title__section-title {
  margin: var(--space-5) 0 0;
  font-size: var(--text-md);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.title__overview-text {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.title__learn-more-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  margin: var(--space-3) 0 0;
}

.title__learn-more {
  color: var(--color-accent);
  font-weight: 500;
  text-underline-offset: 2px;
}

.title__seasons {
  position: relative;
  z-index: 1;
  margin-top: var(--space-5);
}

.title__included {
  padding-bottom: var(--space-6);
}

.title__seasons-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-3);
  padding: 2px 2px var(--space-2);
  margin: var(--space-4) 0 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.title__seasons-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.season-tile {
  position: relative;
  display: block;
  width: clamp(96px, 12vw, 132px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  cursor: help;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.season-tile:hover {
  border-color: var(--color-border-strong);
}

.season-tile:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

.season-tile__poster,
.season-tile__poster-image,
.season-tile__fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.season-tile__poster-image {
  object-fit: cover;
}

.season-tooltip {
  position: fixed;
  z-index: 40;
  width: min(320px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  padding: var(--space-3);
  overflow-y: auto;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
}

.season-tooltip__head {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-tight);
}

.season-tooltip__name {
  font-weight: 600;
}

.season-tooltip__year {
  color: var(--color-text-muted);
  font-weight: 400;
}

.season-tooltip__meta {
  margin: var(--space-1) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.season-rating {
  white-space: nowrap;
}

.season-rating__star {
  width: 16px;
  height: 16px;
  margin-inline-end: var(--space-1);
  vertical-align: -0.2em;
  fill: currentColor;
}

.season-tooltip__overview,
.season-modal__overview {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  overflow-wrap: anywhere;
}

.season-tooltip__link,
.season-modal__link {
  display: inline-block;
  margin-top: var(--space-2);
  color: var(--color-accent);
  font-weight: 500;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .title__hero--with-poster .title__hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .title__hero-inner {
    gap: var(--space-3);
  }

  .title__hero-body {
    display: contents;
  }

  .title__heading {
    order: 0;
  }

  .title__poster {
    order: 1;
    justify-self: center;
    width: min(320px, 100%);
    margin-block: var(--space-1);
  }

  .title__meta {
    order: 2;
    margin-top: 0;
  }

  #title-loading,
  #title-error {
    order: 3;
    margin-top: 0;
  }

  #title-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    order: 3;
  }

  #title-content > * {
    margin-top: 0;
  }

  .title__overview {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .title__overview > * {
    margin-top: 0;
  }

  .title__seasons-strip {
    gap: var(--space-2);
  }

  .season-tile {
    width: clamp(88px, 26vw, 112px);
  }
}

@media (max-width: 560px) {
  .title__hero {
    padding-block: var(--space-4);
  }

  .title__seasons {
    margin-top: var(--space-4);
  }

  .season-tile {
    width: clamp(84px, 30vw, 104px);
  }

  .season-tooltip {
    font-size: var(--text-sm);
  }
}

.users-table {
  width: 100%;
  margin-top: var(--space-5);
  overflow: visible;
  font-size: var(--text-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
}

.users-table th,
.users-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: middle;
}

.users-table thead th {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-border);
}

.users-table thead th:first-child {
  border-top-left-radius: var(--radius-md);
}

.users-table thead th:last-child {
  border-top-right-radius: var(--radius-md);
}

.users-table tbody tr + tr td {
  border-top: 1px solid var(--color-border);
}

.users-table tbody tr.users-table__row--inactive td {
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
}

.users-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-md);
}

.users-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-md);
}

.users-table__id {
  color: var(--color-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-xs);
  overflow-wrap: anywhere;
}

.users-table__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.users-table__name-text {
  overflow-wrap: anywhere;
}

.users-table__date {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.users-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.users-avatar__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.users-avatar__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.pill--you {
  height: 18px;
  color: var(--color-accent-contrast);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.pill--role {
  height: 28px;
  padding: 0 var(--space-3);
  color: var(--color-text);
  cursor: default;
}

.pill--unverified {
  color: var(--color-text-muted);
  border-style: dashed;
}

.pill--state {
  height: 22px;
  color: var(--color-text-muted);
}

.users-table__no-role {
  color: var(--color-text-muted);
}

.role-select {
  position: relative;
  display: inline-flex;
}

.role-select__trigger {
  gap: var(--space-1);
  height: 28px;
  padding: 0 var(--space-3);
  font-family: inherit;
  cursor: pointer;
}

.role-select__trigger:hover {
  background: var(--color-border);
}

.role-select__trigger.pill--state {
  color: var(--color-text);
}

.role-select__chevron {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-select__menu,
.locale-select__menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  right: 0;
  z-index: 30;
  min-width: 140px;
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
}

.role-select__menu--above,
.locale-select__menu--above {
  top: auto;
  bottom: calc(100% + var(--space-1));
}

.locale-select__menu {
  right: 0;
  left: 0;
  min-width: 0;
  font-size: var(--text-sm);
}

.role-select__option,
.locale-select__option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.role-select__option:hover,
.locale-select__option:hover {
  background: var(--color-surface-muted);
}

.role-select__option--danger {
  color: var(--color-danger);
}

.role-select__option--danger:hover {
  background: var(--color-danger-surface);
}

.role-select__option:focus-visible,
.locale-select__option:focus-visible {
  outline-offset: -2px;
}

.role-select__check,
.locale-select__check {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  visibility: hidden;
}

.role-select__option[aria-checked="true"] .role-select__check,
.locale-select__option[aria-checked="true"] .locale-select__check {
  visibility: visible;
}

@media (max-width: 560px) {
  .locale-select__menu {
    position: static;
    margin-top: var(--space-1);
    box-shadow: none;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(28 33 38 / 45%);
}

.modal__dialog {
  position: relative;
  width: min(420px, 100%);
  margin: 0;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
}

.modal__title {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.modal__text {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.modal__error {
  margin: var(--space-3) 0 0;
  color: var(--color-danger);
  font-size: var(--text-sm);
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.modal__actions .button {
  width: auto;
  min-width: 96px;
}

.profile-export__dialog {
  width: min(560px, 100%);
  max-height: calc(100vh - 2 * var(--space-4));
  max-height: calc(100dvh - 2 * var(--space-4));
  overflow-y: auto;
}

.profile-export__code {
  position: relative;
  margin-top: var(--space-4);
  overflow: hidden;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.profile-export__pre {
  max-height: min(320px, 40vh);
  max-height: min(320px, 40dvh);
  margin: 0;
  padding: var(--space-4);
  padding-inline-end: calc(var(--space-4) + var(--space-6));
  overflow: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.profile-export__pre code {
  font: inherit;
}

.profile-export__copy {
  position: absolute;
  top: var(--space-2);
  inset-inline-end: var(--space-2);
  width: 32px;
  height: 32px;
  background: var(--color-surface);
  box-shadow: var(--shadow-popover);
}

.profile-export__copy .icon-button__icon {
  width: 18px;
  height: 18px;
}

.profile-export__status {
  min-height: calc(var(--text-sm) * var(--leading-normal));
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.profile-export__dialog .modal__actions {
  flex-wrap: wrap;
}

.season-modal__dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2 * var(--space-4));
  max-height: calc(100dvh - 2 * var(--space-4));
}

.season-modal__header {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: var(--space-3);
}

.season-modal__header > .modal__title {
  flex: 1 1 auto;
  min-width: 0;
}

.season-modal__close {
  margin-top: calc(-1 * var(--space-2));
}

.season-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.season-modal__body > .season-modal__overview {
  margin-top: var(--space-4);
}

.button--primary {
  color: var(--color-accent-contrast);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.button--primary:hover {
  background: var(--color-focus);
}

.button--danger {
  color: var(--color-accent-contrast);
  background: var(--color-danger);
  border-color: var(--color-danger);
}

.button--danger:hover {
  background: var(--color-danger-hover);
  border-color: var(--color-danger-hover);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .users-table__id-column,
  .users-table__created-column {
    display: none;
  }

  .users-table__state-column {
    padding-inline: var(--space-2);
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    padding: 0 var(--space-4);
  }
}

.profile {
  max-width: 480px;
  margin-top: var(--space-5);
}

.profile__card {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.profile__identity {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.profile__avatar .users-avatar {
  width: 72px;
  height: 72px;
}

.profile__avatar .users-avatar__icon {
  width: 36px;
  height: 36px;
}

.profile__name {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  overflow-wrap: anywhere;
}

.profile__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.lists {
  margin-top: var(--space-5);
}

.lists__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.list-card {
  position: relative;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.list-card:hover {
  border-color: var(--color-border-strong);
}

.list-card__link {
  color: inherit;
  text-decoration: none;
}

.list-card__link::after {
  position: absolute;
  inset: 0;
  content: '';
  border-radius: inherit;
}

.list-card__link:focus-visible {
  outline: none;
}

.list-card:has(.list-card__link:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.list-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.list-card__title-group {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.list-card__title {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.list-card__edit,
.list-card__delete {
  position: relative;
  z-index: 1;
}

.list-card__gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(84px, 1fr);
  grid-template-columns: repeat(8, minmax(84px, 1fr));
  grid-template-rows: auto;
  gap: var(--space-3);
  margin-top: var(--space-4);
  overflow: hidden;
}

.list-card__poster {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
}

.list-card__poster-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card__poster:focus-visible {
  outline-offset: -2px;
}

.lists__add {
  width: 100%;
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  border-style: dashed;
}

.lists__add:hover {
  color: var(--color-text);
}

.list-rows {
  margin: var(--space-4) 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.list-row {
  position: relative;
}

.list-row:has(.list-row__remove:not([hidden])) {
  --list-row-action-space: calc(var(--space-3) * 2 + 36px);
}

.list-row + .list-row {
  border-top: 1px solid var(--color-border);
}

.list-row__remove {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-end: var(--space-3);
  z-index: 1;
}

.list-row__link {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-3);
  padding-inline-end: var(--list-row-action-space, var(--space-3));
  color: inherit;
  text-decoration: none;
}

.list-row__link:hover {
  background: var(--color-surface-muted);
}

.list-row__link:focus-visible {
  outline-offset: -2px;
}

.list-row__poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.list-row__poster-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-row__backdrop {
  display: none;
}

.list-row__backdrop-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-row__body {
  min-width: 0;
}

.list-row__title {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: var(--leading-tight);
}


.list-row__overview {
  display: -webkit-box;
  margin: var(--space-2) 0 0;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.list-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.list-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.list-form__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
}

.list-form__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 0 var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
}

.list-form__input {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-3);
  color: var(--color-text);
  font: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
}

.list-form__input:focus {
  border-color: var(--color-focus);
}

.list-form__input[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.list-form__error {
  margin: 0;
  color: var(--color-danger);
  font-size: var(--text-sm);
}

@media (max-width: 560px) {
  .list-card {
    padding: var(--space-3);
  }

  .list-card__gallery {
    grid-auto-columns: minmax(72px, 1fr);
    grid-template-columns: repeat(8, minmax(72px, 1fr));
    gap: var(--space-2);
  }

  .list-rows {
    display: grid;
    gap: var(--space-3);
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .list-row {
    overflow: hidden;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
  }

  .list-row--with-backdrop {
    background: var(--color-canvas);
  }

  .list-row:has(.list-row__remove:not([hidden])) {
    --list-row-action-space: calc(var(--space-2) * 2 + 32px);
  }

  .list-row__link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    min-height: clamp(144px, 36vw, 180px);
    padding: var(--space-3);
    padding-top: var(--list-row-action-space, var(--space-3));
  }

  .list-row__link:hover {
    background: transparent;
  }

  .list-row__poster {
    display: none;
  }

  .list-row__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
  }

  .list-row__backdrop::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(
      180deg,
      rgb(246 247 248 / 90%),
      rgb(246 247 248 / 78%)
    );
  }

  .list-row__body {
    position: relative;
    z-index: 1;
  }

  .list-row__remove {
    z-index: 2;
    inset-block-start: var(--space-2);
    inset-inline-end: var(--space-2);
  }

  .icon-button {
    width: 32px;
    height: 32px;
  }

  .icon-button__icon {
    width: 18px;
    height: 18px;
  }
}
