:root {
  color-scheme: light;
  --bg: #f3f6fa;
  --panel: #ffffff;
  --field: #f7f8fa;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --accent: #007aff;
  --accent-dark: #0066d6;
  --soft: rgba(0, 122, 255, 0.09);
  --shadow: 0 18px 48px rgba(20, 35, 60, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #120e0a;
    --panel: #221c15;
    --field: #1e1811;
    --ink: #f6f0e6;
    --muted: #a89a89;
    --line: #3d342a;
    --accent: #cf6a35;
    --accent-dark: #f0a868;
    --soft: color-mix(in srgb, var(--accent) 18%, transparent);
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #120e0a;
  --panel: #221c15;
  --field: #1e1811;
  --ink: #f6f0e6;
  --muted: #a89a89;
  --line: #3d342a;
  --accent: #cf6a35;
  --accent-dark: #f0a868;
  --soft: color-mix(in srgb, var(--accent) 18%, transparent);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.movie-app { width: min(1240px, calc(100% - 40px)); margin: 20px auto 80px; }
.movie-header { min-height: 164px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1; }
h2 { margin: 0; font-size: 24px; }
h3 { margin: 0; font-size: 16px; }
.movie-header-actions, .movie-card-actions, .dialog-shell footer { display: flex; align-items: center; gap: 8px; }
.movie-account { min-width: 0; margin-right: 4px; display: flex; align-items: center; gap: 8px; }
.movie-account > span:last-child { min-width: 0; display: grid; gap: 1px; }
.movie-account small { color: var(--muted); font-size: 10px; font-weight: 750; }
.movie-account strong { max-width: 150px; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, .12); }
.account-status-dot.is-error { background: #ff453a; box-shadow: 0 0 0 3px rgba(255, 69, 58, .12); }
.primary-button, .quiet-button, .icon-button, .movie-tabs button, .feeling-options label { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); color: var(--ink); font-weight: 750; text-decoration: none; cursor: pointer; }
.primary-button { border-color: transparent; background: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-dark); }
.quiet-button:hover, .movie-tabs button:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.icon-button { width: 40px; padding: 0; font-size: 26px; font-weight: 400; }
.logout-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.page-switch-link { gap: 7px; text-decoration: none; }
.page-switch-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.movie-stats { margin: 18px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat-item { padding: 18px; min-height: 104px; display: grid; align-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.stat-item span { color: var(--muted); font-size: 12px; font-weight: 750; }
.stat-item strong { font-size: 28px; }

.movie-toolbar { padding: 14px; display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.movie-library-search, .dialog-search { min-height: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
.movie-library-search span, .dialog-search span { color: var(--accent-dark); font-size: 12px; font-weight: 800; }
.movie-library-search input, .dialog-search input, .dialog-shell > label input, .dialog-shell textarea { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.movie-tabs { display: grid; grid-template-columns: repeat(4, auto); gap: 4px; }
.movie-tabs button { min-height: 44px; border-color: transparent; background: transparent; color: var(--muted); }
.movie-tabs button.is-active { background: var(--ink); color: var(--panel); }

.movie-section-heading { margin: 28px 0 14px; display: flex; align-items: end; justify-content: space-between; }
.movie-section-heading > span { color: var(--muted); font-weight: 700; }
.movie-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.movie-card { min-width: 0; position: relative; }
.movie-poster { width: 100%; aspect-ratio: 2 / 3; display: grid; place-items: center; overflow: hidden; background: var(--field); border-radius: 8px; box-shadow: 0 15px 32px rgba(0, 0, 0, 0.16); }
.movie-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.movie-card:hover .movie-poster img { transform: scale(1.025); }
.movie-poster-empty { color: var(--muted); font-size: 38px; font-weight: 800; }
/* 海报是打开资料的入口：按钮只做无障碍与焦点，视觉完全交给里面的 .movie-poster。 */
.movie-poster-button { width: 100%; padding: 0; display: block; border: 0; background: none; cursor: pointer; }
.movie-poster-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.movie-card-copy { padding-top: 11px; min-width: 0; }
.movie-card-copy h3 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.movie-card-copy p { min-height: 34px; margin: 5px 0 9px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.movie-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.movie-chip { padding: 3px 7px; border-radius: 999px; background: var(--soft); color: var(--accent-dark); font-size: 11px; font-weight: 750; }
.movie-card-actions { align-items: stretch; }
.movie-card-actions button { min-width: 0; padding: 0 9px; flex: 1; }
.movie-card-actions .icon-button { flex: 0 0 40px; }
.empty-state { grid-column: 1 / -1; min-height: 280px; display: grid; place-items: center; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 20px; }

.movie-discovery { margin: 6px 0 24px; }
.movie-discovery-rail { min-height: 220px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); grid-template-rows: 1fr; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 2px 14px; scroll-snap-type: inline proximity; }
.discovery-card { min-width: 0; scroll-snap-align: start; }
.discovery-poster { width: 100%; aspect-ratio: 2 / 3; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--field); box-shadow: 0 12px 28px rgba(0, 0, 0, .13); }
.discovery-poster img { width: 100%; height: 100%; object-fit: cover; }
.discovery-card h3 { margin-top: 9px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.discovery-card p { min-height: 32px; margin: 4px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.discovery-card > div > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px; }
.discovery-card button { min-width: 0; min-height: 36px; padding: 0 8px; font-size: 11px; }
.discovery-loading, .discovery-empty { grid-column: 1 / -1; min-width: min(500px, calc(100vw - 28px)); min-height: 200px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); text-align: center; }
.discovery-empty strong { color: var(--ink); }

.movie-cast { margin-top: 18px; }
.movie-cast h3 { margin-bottom: 10px; }
.movie-cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.movie-cast-item { min-width: 0; padding: 0; display: grid; justify-items: center; gap: 5px; border: 0; background: none; color: inherit; text-align: center; cursor: pointer; }
.movie-cast-avatar { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--field); }
.movie-cast-avatar img { width: 100%; height: 100%; object-fit: cover; }
.movie-cast-avatar b { color: var(--muted); font-size: 20px; }
.movie-cast-item strong { max-width: 100%; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.movie-cast-item small { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.movie-cast-item:hover strong { color: var(--accent-dark); }
.movie-cast-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.actor-profile-block { margin-top: 14px; padding: 12px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
.actor-profile-block.is-loading { grid-template-columns: 1fr; color: var(--muted); font-size: 12px; }
.actor-profile-block img, .actor-profile-empty { width: 84px; height: 112px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--panel); object-fit: cover; }
.actor-profile-empty { color: var(--muted); font-size: 28px; font-weight: 800; }
.actor-profile-block p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.6; }
.actor-profile-facts { margin-bottom: 6px !important; color: var(--muted) !important; font-size: 11px !important; font-weight: 750; }

.actor-credit-section { margin-top: 18px; }
.actor-credit-section h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.actor-credit-section h3 span { padding: 1px 8px; border-radius: 999px; background: var(--field); color: var(--muted); font-size: 11px; font-weight: 750; }
.actor-credit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.actor-credit { min-width: 0; padding: 0; display: grid; gap: 5px; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.actor-credit-poster { width: 100%; aspect-ratio: 2 / 3; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--field); }
.actor-credit-poster img { width: 100%; height: 100%; object-fit: cover; }
.actor-credit-poster b { color: var(--muted); font-size: 22px; font-weight: 800; }
.actor-credit strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.actor-credit small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.actor-credit:hover strong { color: var(--accent-dark); }
.actor-credit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.movie-report { margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.movie-report > summary { min-height: 76px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.movie-report > summary::-webkit-details-marker { display: none; }
.movie-report > summary > span:first-child { display: grid; gap: 3px; }
.movie-report > summary small, .movie-report > summary > span:last-child { color: var(--muted); font-size: 11px; font-weight: 750; }
.movie-report > summary strong { font-size: 22px; }
.movie-report-content { padding: 0 0 24px; }
.report-year-label { width: max-content; display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.report-year-label select { min-height: 38px; padding: 0 32px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 16px; }
.annual-hero { margin: 16px 0; padding: 22px 0; display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.annual-hero h3 { max-width: 720px; font-size: clamp(25px, 3vw, 38px); line-height: 1.15; }
.annual-hero strong { font-size: 42px; }
.report-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; }
.report-panel { min-width: 0; }
.report-panel h3 { margin-bottom: 12px; }
.month-chart { height: 170px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.month-chart > div { min-width: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 4px; text-align: center; }
.month-bar { min-width: 0; height: 100%; display: flex; align-items: end; }
.month-bar i { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--accent); opacity: .82; }
.month-chart strong { font-size: 10px; }
.month-chart small { color: var(--muted); font-size: 9px; }
.report-ranking { display: grid; gap: 7px; }
.report-ranking div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.report-ranking span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-ranking strong { color: var(--accent-dark); }
.report-empty { min-height: 180px; display: grid; place-items: center; color: var(--muted); text-align: center; }

.watch-history { display: grid; gap: 8px; }

.movie-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 28px;
}

.movie-pagination span {
  min-width: 92px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}
.history-row { padding: 14px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.history-row img { width: 44px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.history-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.movie-dialog { width: min(900px, calc(100% - 28px)); max-height: min(880px, calc(100dvh - 28px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .28); }
.movie-dialog::backdrop { background: rgba(15, 20, 28, .48); backdrop-filter: blur(10px); }
.dialog-shell { margin: 0; padding: 22px; max-height: inherit; overflow: auto; }
.dialog-shell > header { margin-bottom: 18px; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dialog-shell > label { margin-top: 14px; display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.dialog-shell > label input, .dialog-shell textarea { min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.dialog-shell textarea { resize: vertical; }
.dialog-shell footer { margin-top: 18px; justify-content: flex-end; }
.form-status { min-height: 18px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.movie-search-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.search-result { padding: 10px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
.search-result img, .search-poster-empty { width: 72px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--panel); }
.search-result p { margin: 5px 0 10px; color: var(--muted); font-size: 12px; }
.search-result .primary-button { min-height: 36px; padding: 0 10px; }
fieldset { margin: 14px 0 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.feeling-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.feeling-options label { min-width: 0; background: var(--field); }
.feeling-options label:has(input:checked) { border-color: var(--accent); background: var(--soft); color: var(--accent-dark); }
.feeling-options input { width: auto; margin-right: 6px; }
.movie-detail-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
.movie-detail-hero .movie-poster { width: 150px; }
.movie-detail-hero p { color: var(--muted); line-height: 1.6; }
.official-source { margin-top: 18px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 8px; background: var(--soft); }
.official-source p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.official-source .primary-button, .official-source .quiet-button { flex: 0 0 auto; }
.provider-list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.provider-item { padding: 8px 10px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; }
.provider-item img { width: 28px; height: 28px; border-radius: 6px; }
.provider-item small { display: block; color: var(--muted); }
.danger-button { color: #ff3b30; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 11px 16px; border-radius: 8px; background: var(--ink); color: var(--panel); box-shadow: var(--shadow); font-weight: 750; }
.auth-gate { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.auth-panel { width: min(390px, 100%); padding: 28px; display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.auth-panel h1 { font-size: 34px; }
.auth-panel label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.auth-panel input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font-size: 16px; }

@media (max-width: 980px) {
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .movie-search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .report-grid .report-panel:first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .movie-app { width: min(100% - 24px, 1240px); margin-top: 12px; }
  .movie-header { min-height: 136px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; }
  .movie-header-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 40px auto; gap: 6px; }
  h1 { font-size: 38px; }
  .movie-header-actions .page-switch-link { display: inline-flex; }
  .movie-account small { display: none; }
  /* Keep the healthy mobile header compact, but never reduce an error to color alone. */
  .movie-account:has(.account-status-dot.is-error) small { display: block; }
  .movie-account strong { max-width: 92px; }
  .movie-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movie-toolbar { grid-template-columns: 1fr; }
  .movie-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .movie-tabs button { padding: 0 6px; }
  .movie-tabs button { font-size: 12px; white-space: nowrap; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .movie-discovery-rail { grid-auto-columns: minmax(138px, 42vw); }
  .movie-card-actions { flex-wrap: wrap; }
  .movie-card-actions .icon-button { flex-basis: 36px; }
  .movie-search-results { grid-template-columns: 1fr; }
  .movie-detail-hero { grid-template-columns: 100px minmax(0, 1fr); }
  .movie-detail-hero .movie-poster { width: 100px; }
  .official-source { align-items: stretch; flex-direction: column; }
  .annual-hero { align-items: start; flex-direction: column; }
  .report-grid { grid-template-columns: 1fr; }
  .report-grid .report-panel:first-child { grid-column: auto; }
}

@media (max-width: 420px) {
  .movie-header { align-items: center; }
  .movie-header-actions { display: grid; grid-template-columns: minmax(0, 1fr) 40px 40px auto; }
  .movie-account { justify-self: start; margin: 0; }
  .movie-account strong { max-width: 82px; }
  .movie-header-actions .page-switch-link { width: 40px; padding: 0; }
  .page-switch-label { display: none; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movie-card-actions .quiet-button { min-height: 36px; font-size: 12px; }
  .dialog-shell { padding: 16px; }
  .dialog-search { grid-template-columns: auto minmax(0, 1fr); }
  .dialog-search .primary-button { grid-column: 1 / -1; width: 100%; }
}

/* 两种推荐来源合成一个 tab 切换，共用下面同一条轨道。 */
.discovery-tabs { margin-bottom: 10px; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, auto); gap: 6px; }
.discovery-tabs button { padding: 0 16px; }

/* 观看记录可改可删：原来这里只进不出，记错了只能删掉整部电影。 */
.history-row { grid-template-columns: 44px minmax(0, 1fr) auto auto; }
.history-review { margin-top: 4px !important; font-size: 12px; line-height: 1.5; }
.history-actions { display: flex; align-items: center; gap: 6px; }
.history-actions .quiet-button { min-height: 34px; padding: 0 11px; font-size: 12px; }
.history-actions .icon-button { width: 34px; min-height: 34px; font-size: 20px; }
@media (max-width: 700px) {
  .history-row { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "poster copy" "time actions"; }
  .history-row img, .history-row > span:first-child { grid-area: poster; }
  .history-row > div:not(.history-actions) { grid-area: copy; }
  .history-row time { grid-area: time; align-self: center; }
  .history-actions { grid-area: actions; justify-content: end; }
}

/* 演员照片条与代表作，和电视剧那边的演员详情保持一致。 */
.actor-photo-strip { margin-top: 10px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.actor-photo-strip img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--field); }
.actor-credit.in-library strong { color: var(--accent-dark); }
.actor-credit:not(.in-library) { cursor: default; }
