/* Matte screening-room palette, with one accent reserved for decisions. */
:root {
  color-scheme: dark;
  --canvas: #171714;
  --surface: #20201c;
  --raised: #282822;
  --ink: #f4f0e7;
  --muted: #b9b5a7;
  --rule: #49473d;
  --accent: #e0eb9b;
  --on-accent: #202413;
  --sans: Inter, Arial, sans-serif;
  --serif: "PT Serif", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
}
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); line-height: 1.15; font-weight: 400; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button[disabled] { cursor: default; opacity: .67; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.shell, .masthead-inner { width: min(100% - 5rem, 1240px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 60px;
  gap: 1.5rem;
}
.wordmark {
  font: 700 1.47rem/1 var(--serif);
  letter-spacing: -.06em;
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  min-width: 0;
  justify-self: start;
}
.wordmark img { flex: none; border-radius: 6px; }
.wordmark span { min-width: 0; overflow-wrap: anywhere; }
.nav { display: flex; gap: 1.15rem; align-self: stretch; }
.nav a {
  display: grid;
  place-items: center;
  position: relative;
  color: var(--muted);
  min-height: 44px;
  font-size: .91rem;
}
.nav a:hover, .nav a[aria-current], .account:hover { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--ink); }
.account { justify-self: end; display: grid; align-content: center; min-height: 44px; min-width: 0; font-weight: 600; font-size: .88rem; }
.account-profile { line-height: 1.25; text-align: right; }
.account-name { max-width: min(26vw, 12rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .76rem; font-weight: 500; }
.account-profile[aria-current] > :first-child { color: var(--accent); }
main { flex: 1; }
.wide-main { width: 100%; }
.wide-main .notice-wrap { width: min(100% - 2rem, 1240px); margin-inline: auto; }
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: clamp(1.25rem, 3.5vw, 2.6rem) 0 1.1rem;
}
.page-heading p { margin-top: .35rem; color: var(--muted); overflow-wrap: anywhere; }
.filters {
  display: flex;
  gap: .3rem;
  margin: 0 0 1.25rem;
  overflow-x: auto;
  padding: .25rem;
  margin-inline-start: -.25rem;
}
.filters a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: .92rem;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: .88rem;
  white-space: nowrap;
}
.filters a:hover, .filters a[aria-current] { color: var(--ink); background: var(--raised); border-color: var(--rule); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(265px, 310px); gap: clamp(1.5rem, 3.6vw, 3.3rem); align-items: start; }
.film-panel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  background: #26241f;
  border-block: 1px solid var(--rule);
}
.film-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #171714 4%, rgb(23 23 20 / .94) 34%, rgb(23 23 20 / .69) 100%);
}
.film-backdrop { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 43%; }
.film-backdrop-portrait { object-position: 65% 27%; filter: blur(9px); }
.film-content {
  --poster-width: clamp(6rem, min(16vw, 34vh), 13.5rem);
  display: grid;
  grid-template-columns: var(--poster-width) minmax(0, 1fr);
  grid-template-areas: "poster heading" "poster summary" "poster controls";
  grid-template-rows: auto auto auto;
  column-gap: clamp(.9rem, 3vw, 2.65rem);
  row-gap: .65rem;
  align-items: start;
  align-content: center;
  padding-block: clamp(.95rem, 2.6vh, 1.5rem);
}
.film-content:not(.shell) { padding-inline: 1rem; }
.film-content:not(:has(.film-poster:not([hidden]))) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "summary" "controls"; }
.film-poster { grid-area: poster; width: 100%; display: block; border-radius: 7px; aspect-ratio: 2 / 3; overflow: hidden; background: var(--raised); box-shadow: 0 8px 24px #0004; }
.film-poster[hidden] { display: none; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-heading { grid-area: heading; min-width: 0; }
.film-heading h1, .film-heading h2 { font-size: clamp(1.35rem, 3.1vw, 2.65rem); color: var(--ink); }
.film-heading h2 a:hover, .pick-name:hover { text-decoration: underline; text-underline-offset: .18em; }
.film-year { font-family: var(--sans); font-size: .58em; color: var(--muted); white-space: nowrap; }
.film-original { font-size: .82rem; color: var(--muted); margin-top: .15rem; overflow-wrap: anywhere; }
.film-summary { grid-area: summary; min-width: 0; max-width: 72ch; }
.film-controls { grid-area: controls; min-width: 0; }
.film-meta { margin-top: .34rem; color: #e4dfd0; font-size: .81rem; font-weight: 600; overflow-wrap: anywhere; }
.film-score { display: inline-flex; align-items: baseline; gap: .28rem; margin-top: .45rem; padding: .15rem .45rem; border: 1px solid #78814e; border-radius: 4px; color: var(--accent); background: #171714a8; font-size: .75rem; }
.film-score strong { font-size: 1rem; }
.film-detail .film-content { --poster-width: clamp(8rem, 19vw, 15rem); padding-block: clamp(1rem, 4vh, 2.25rem); }
.film-detail-extra { margin-top: 1rem; }
.overview { color: #e4dfd0; font-size: .91rem; overflow-wrap: anywhere; white-space: pre-line; }
.feature[data-swipe] { touch-action: pan-y; }
.actions, .detail-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.film-controls .button { min-height: 40px; padding: .45rem .7rem; }
.feed-toolbar, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.feed-toolbar { min-height: 52px; }
.feed-toolbar .filters { margin-bottom: 0; min-width: 0; }
.feed-history { flex: none; font-size: .79rem; }
.feed-evening { margin-top: 1.45rem; }
.feed-extra { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .65rem; }
.evening-preview .title-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: .8rem; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: .63rem .95rem;
  border-radius: 5px;
  background: transparent;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover:enabled, a.button.primary:hover { background: #f0f6bd; }
.button.outline { border-color: var(--rule); color: var(--ink); }
.button.outline:hover:enabled, a.button.outline:hover { background: var(--raised); border-color: var(--rule); }
.result-save { white-space: nowrap; }
.source-logo { display: inline-block; }
.source-logo img { display: block; object-fit: contain; }
.full { width: 100%; }
.feedback { margin-top: .8rem; color: var(--muted); font-size: .81rem; }
.feedback:empty { display: none; }
.wide-main:has(> .feed-feedback) { position: relative; }
.feed-feedback {
  position: absolute; z-index: 1; inset: 4rem 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: .4rem; pointer-events: none;
}
.feed-feedback .feedback:not(:empty, .visually-hidden) {
  padding: .55rem .8rem; margin: 0; border: 1px solid var(--rule);
  border-radius: 6px; background: var(--surface); color: var(--ink);
}
.feed-feedback .button { pointer-events: auto; background: var(--surface); }
.feed-placeholder span { display: block; max-width: 32rem; height: .75rem; margin: .9rem 0; border-radius: 5px; background: var(--raised); }
.feed-placeholder span:first-child { width: 55%; height: 1.7rem; }
.feed-placeholder span:last-child { width: 72%; }
#feed-content[aria-busy="true"] .feed-card :is(.film-poster, .empty),
#feed-content[aria-busy="true"] .feed-card:not(:has(.film-poster:not([hidden]))) .feature { position: relative; }
#feed-content[aria-busy="true"] .feed-card .film-poster img { filter: blur(7px) brightness(.65); }
.feed-card .feature :is(.film-backdrop, .film-heading, .film-summary, .film-controls) { transition: opacity .14s ease; }
#feed-content[aria-busy="true"] .feed-card .feature :is(.film-backdrop, .film-heading, .film-summary, .film-controls) { opacity: .65; }
.feed-card :is(.film-poster, .empty)::before, .feed-card .feature::before {
  position: absolute; inset: 0; margin: auto; width: 1.65rem; height: 1.65rem; pointer-events: none;
  border: 2px solid #f1f0e35c; border-top-color: var(--accent); border-radius: 50%;
}
#feed-content[aria-busy="true"] .feed-card :is(.film-poster, .empty)::before,
#feed-content[aria-busy="true"] .feed-card:not(:has(.film-poster:not([hidden]))) .feature::before {
  content: ""; z-index: 1; animation: feed-spin .8s linear infinite;
}
.profile-panel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.profile-panel legend { margin-bottom: .55rem; }
@keyframes feed-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .feed-card .feature :is(.film-backdrop, .film-heading, .film-summary, .film-controls) { transition: none; }
  #feed-content[aria-busy="true"] .feed-card :is(.film-poster, .empty, .feature)::before { animation: none; }
}
.rail { padding: .15rem 0 0 clamp(1.25rem, 2.2vw, 1.85rem); border-left: 1px solid var(--rule); min-width: 0; }
.rail h2 { margin-bottom: .45rem; }
.rail p { color: var(--muted); font-size: .93rem; }
.pick-list, .line-list, .results { list-style: none; padding: 0; margin: 0 0 1rem; }
.pick-list > li, .line-list > li, .results > li { border-bottom: 1px solid var(--rule); }
.pick-row { display: flex; align-items: center; gap: .85rem; padding: .78rem 0; }
.poster {
  width: 44px;
  aspect-ratio: 2/3;
  border-radius: 3px;
  overflow: hidden;
  display: block;
  flex: none;
  background: var(--raised);
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-text { display: grid; gap: .18rem; min-width: 0; }
.pick-name { justify-self: start; font-size: .96rem; font-weight: 600; overflow-wrap: anywhere; }
.small-meta, .pick-reason { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.reading .poster { width: 62px; }
.reading .pick-name { font-size: 1.08rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .23em; }
.text-link:hover { color: var(--muted); }
.footer {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  margin-top: 3.4rem;
  padding-block: .8rem;
  color: var(--muted);
  font-size: .77rem;
}
.footer a { min-height: 44px; display: inline-flex; align-items: center; }
.footer span { align-self: center; }
.empty, .notice { padding: 1.6rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 7px; }
.empty p { margin: .75rem 0 1.1rem; color: var(--muted); }
.notice { margin-top: 1.25rem; }
.reading { width: min(100%, 670px); }
.auth-panel { max-width: 460px; margin: 3.5rem auto 1rem; }
.stack { display: grid; gap: 1rem; }
.stack > section + section { padding-top: 1.45rem; border-top: 1px solid var(--rule); }
.stack h2 { margin-bottom: .6rem; }
.spaced { margin-top: 1.15rem; }
.muted { color: var(--muted); }
.field { display: grid; gap: .42rem; }
input:not([type="checkbox"]), select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: .55rem .75rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
}
input::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--accent); }
.field label { font-size: .9rem; font-weight: 600; }
.form-hint, .errorlist { font-size: .85rem; }
.errorlist { margin: 0; color: #f6c9bb; }
.search-form { display: flex; gap: .55rem; margin-bottom: 1rem; }
.line-list > li { min-height: 44px; padding: .3rem 0; }
.discovery-layout { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.results > li > form { margin-bottom: .85rem; }
.button.quiet { color: var(--muted); background: transparent; }
.button.quiet:hover { color: var(--ink); background: var(--raised); }
.button.danger { color: #efb3a8; }
.button.media-action { background: #252823; color: var(--accent); border-color: #626c3f; }
.button.media-action:hover { background: #373e2a; }
.description-panel { margin-top: 1rem; padding: .65rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
.description-panel summary { cursor: pointer; color: var(--ink); font-weight: 600; padding-block: .35rem; }
.description-panel summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.description-panel p { margin-top: .75rem; overflow-wrap: anywhere; white-space: pre-line; }
.rating-scale, .filter-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rating-scale { padding-top: .6rem; }
.rating-scale [aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.rating-dialog {
  width: min(26rem, calc(100% - 2rem)); margin: auto; padding: 1.2rem;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink);
  box-shadow: 0 16px 48px #0006;
}
.rating-dialog::backdrop { background: #080806bb; }
.rating-dialog h2 { font-size: 1.35rem; }
.rating-dialog .rating-scale { padding: .8rem 0 .5rem; }
.rating-dialog .rating-scale .button { min-width: 2.65rem; }
.personal-score { color: var(--accent); font-weight: 650; font-size: .88rem; }
.filter-fields { display: grid; gap: .75rem; padding: .85rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 7px; }
.library-filters { grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); align-items: start; }
.filter-fields > .errorlist { grid-column: 1 / -1; }
.library-filters .field { grid-template-rows: auto 1fr; }
.filter-fields :is(input, select) { font-size: .88rem; padding-inline: .55rem; }
.filter-actions { align-self: end; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: .65rem 0; }
.view-switch { display: flex; margin-inline-start: auto; padding: .15rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
.view-switch[hidden] { display: none; }
.view-switch .button { min-height: 35px; padding: .35rem .6rem; }
.view-switch [aria-pressed="true"] { background: var(--raised); color: var(--ink); border-color: var(--rule); }
.title-item .title-art { width: 58px; }
.title-score { color: var(--accent); font-weight: 650; }
.title-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.library-content .pick-name { font-size: 1.08rem; }
.library-content :is(.small-meta, .pick-reason) { font-size: .9rem; }
.library-content .filter-fields :is(input, select) { font-size: .95rem; }
.room-heading > div { min-width: 0; }
.room-title { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .45rem; min-width: min(100%, 16rem); }
.room-title-field { position: relative; min-width: 0; }
.room-title h1, .room-title input[name="name"] { font: 400 clamp(1.6rem, 3vw, 2.35rem)/1.15 var(--serif); letter-spacing: -.035em; }
.room-title.is-editing h1 { visibility: hidden; }
.room-title input[name="name"] { position: absolute; inset: 0; min-height: 0; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: inset 0 -1px #777b57; }
.room-title input[name="name"]:focus-visible { outline: 1px solid #777b57; outline-offset: 2px; }
.room-title input[name="name"]::selection { color: var(--ink); background: #3c4230; }
.room-title-actions { display: grid; grid-template-columns: repeat(2, 2.35rem); gap: .2rem; }
.room-title-actions .button { width: 2.35rem; min-height: 2.35rem; padding: 0; font-size: 1.15rem; }
.room-rename-error:not(:empty) { position: absolute; z-index: 1; inset: 100% 0 auto; padding: .4rem; color: #efb3a8; background: var(--surface); }
.room-invite-code { display: flex; flex-wrap: wrap; gap: .55rem; }
.room-invite-code { align-items: end; margin: .8rem 0 .4rem; }
.room-invite-code input { width: 6.5rem; font-size: 1.2rem; font-variant-numeric: tabular-nums; letter-spacing: .15em; }
.room-results { display: grid; gap: 1.25rem; margin-top: 1.7rem; }
.room-results > section { min-width: 0; }
.room-results > section:first-child { padding-top: 1rem; border-top: 1px solid var(--rule); }
.room-results h2 { margin-bottom: .45rem; }
.room-results-heading { margin-bottom: .45rem; }
.room-results-heading h2 { margin-bottom: 0; }
.room-match-list .title-item { align-items: start; }
.room-match-list .title-art { width: clamp(3.4rem, 8vw, 6rem); }
.room-results .title-excerpt { font-size: .9rem; }
[data-title-layout="grid"] .title-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(142px, 100%), 1fr)); gap: .85rem; }
[data-title-layout="grid"] .title-results > li { min-width: 0; padding: .55rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 7px; }
[data-title-layout="grid"] .title-results > .result-empty { grid-column: 1 / -1; background: none; border: 0; }
[data-title-layout="grid"] .title-item { display: grid; align-items: start; gap: .55rem; padding: 0; }
[data-title-layout="grid"] .title-item .title-art { width: 100%; }
[data-title-layout="grid"] .title-excerpt { display: none; }
.room-results[data-title-layout="grid"] .title-excerpt { display: -webkit-box; }
[data-title-layout="grid"] .title-results > li > form { margin: .5rem 0 0; }
.profile-layout, .settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.settings-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.profile-side { display: grid; gap: .8rem; }
.profile-panel { padding: clamp(.9rem, 2vw, 1.3rem); border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); min-width: 0; }
.profile-panel h2 { margin-bottom: .65rem; }
.library-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr)); gap: .45rem; }
.library-shortcuts a { border: 1px solid var(--rule); border-radius: 6px; }
.library-shortcuts a { display: grid; gap: .25rem; padding: .65rem; overflow-wrap: anywhere; }
.library-shortcuts strong { font: 400 1.9rem/1 var(--serif); color: var(--accent); }
.library-shortcuts span { color: var(--muted); font-size: .82rem; }
.library-shortcuts a:hover { background: var(--raised); }
.profile-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem; }
.profile-account h2 { margin-bottom: .25rem; }
.account-facts { margin: 0; }
.account-facts div { display: grid; grid-template-columns: 1fr 1.2fr; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.account-facts dt { color: var(--muted); font-size: .88rem; }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }
.genre-tags { display: flex; flex-wrap: wrap; gap: .35rem .65rem; list-style: none; padding: 0; margin: .3rem 0 0; }
.genre-tags li { color: var(--muted); font-size: .88rem; padding: .2rem .5rem; border: 1px solid var(--rule); border-radius: 4px; }
.genre-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); gap: .2rem 1rem; }
.genre-options label { display: flex; gap: .5rem; align-items: center; padding: .4rem 0; cursor: pointer; overflow-wrap: anywhere; }
.genre-options input { flex: none; }
.management-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; list-style: none; padding: .8rem 0; margin: 0 0 1rem; border-block: 1px solid var(--rule); }
.management-metrics li { display: grid; gap: .25rem; padding: .25rem .6rem; overflow-wrap: anywhere; }
.management-metrics strong { font: 400 clamp(1.4rem, 3vw, 2rem)/1 var(--serif); }
.management-metrics span, .management-count { color: var(--muted); font-size: .85rem; }
.management-search { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 42rem; }
.management-search input { flex: 1 1 15rem; width: auto; }
.management-count { margin: .65rem 0; }
.management-table { overflow-x: auto; border: 1px solid var(--rule); border-radius: 7px; }
.management-table table { border-collapse: collapse; width: 100%; text-align: start; }
.management-table :is(th, td) { text-align: start; padding: .7rem .85rem; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.management-table thead { background: var(--raised); }
.management-table tbody { background: var(--surface); }
.management-table tbody tr:last-child > * { border-bottom: 0; }
.management-table small { display: block; color: var(--muted); font-weight: 400; }
.account-status { color: var(--muted); white-space: nowrap; }
.account-active { color: var(--accent); }

@media (max-width: 900px) {
  .shell, .masthead-inner { width: calc(100% - 2.5rem); }
  .layout { grid-template-columns: minmax(0, 1fr) minmax(220px, 245px); gap: 1.25rem; }
  .rail { padding-inline-start: 1.15rem; }
  .masthead-inner { grid-template-columns: 1fr auto; padding-top: .45rem; gap: 0 .75rem; }
  .nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; }
  .account { grid-row: 1; grid-column: 2; }
}
@media (max-width: 680px) {
  .shell, .masthead-inner { width: calc(100% - 2rem); }
  .masthead-inner { grid-template-columns: 1fr auto; gap: 0 .75rem; padding-top: .45rem; }
  .nav { grid-row: 2; grid-column: 1 / -1; gap: 0 .85rem; }
  .nav a { min-height: 37px; font-size: .82rem; }
  .account { grid-row: 1; grid-column: 2; }
  .layout { display: block; }
  .rail { border: 0; border-top: 1px solid var(--rule); margin-top: 1.7rem; padding: 1.25rem 0 0; }
  .film-content, .film-detail .film-content { --poster-width: clamp(4rem, 20vw, 6.5rem); grid-template-areas: "poster heading" "summary summary" "controls controls"; }
  .film-content { row-gap: .5rem; }
  .film-content .film-heading { align-self: center; }
  .film-panel::after { background: linear-gradient(0deg, #171714 10%, rgb(23 23 20 / .74) 100%); }
  .film-controls .button { padding-inline: .57rem; font-size: .78rem; }
  .feed-toolbar { flex-wrap: wrap; gap: 0; }
  .feed-history { min-height: 32px; }
  .filters a { padding-inline: .75rem; }
  .page-heading { flex-wrap: wrap; }
  .discovery-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .profile-layout, .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .discovery-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .discovery-fields > .field:first-of-type { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
