:root {
  color-scheme: light;
  font: 14px/1.6 Verdana, Geneva, sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
p, h1, h2, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a, a:visited, .reset-button { color: #0000ee; text-decoration: underline; text-underline-offset: 3px; }
a:hover, .reset-button:hover { color: #0044cc; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #0000ee; outline-offset: 4px; }
a .lucide-arrow-up-right { display: inline-block; width: 1em; height: 1em; margin-left: 0.25em; vertical-align: -0.125em; }
[hidden], .no-js .js-only { display: none !important; }
.wrap { width: min(600px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 8px 12px; background: #fff; z-index: 2; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.masthead { margin-top: 48px; margin-bottom: 32px; }
h1 { font-size: 24px; font-weight: 700; line-height: 1.3; }
.masthead p { margin-top: 12px; }
form, fieldset { min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { min-width: 0; margin-bottom: 16px; }
label, legend { display: block; font-size: 13px; margin-bottom: 5px; }
input, select { width: 100%; min-width: 0; height: 36px; padding: 5px 8px; border: 1px solid #aaa; border-radius: 3px; background: #fff; color: #000; font-size: 16px; }
input:focus, select:focus { outline: none; border-color: #0000ee; }
input::placeholder { color: #666; }
.range-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.range-inputs span { font-size: 12px; color: #666; }
.reset-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.reset-button svg { width: 14px; height: 14px; }

.list-heading { margin-top: 32px; margin-bottom: 24px; }
#result-count { font-size: 12px; color: #666; }
.show-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; }
.show-row { min-width: 0; }
.show-row:not([hidden]) ~ .show-row:not([hidden]) { border-top: 1px solid #ddd; padding-top: 32px; }
.show-media { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.show-poster { width: 100%; height: 253px; object-fit: cover; border-radius: 2px; }
.show-info { min-width: 0; }
.show-row h2 { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; overflow-wrap: anywhere; }
.rank { font-variant-numeric: tabular-nums; }
.show-meta, .show-genres { font-size: 12px; }
.show-genres { color: #666; margin-top: 1px; }
.show-description { margin-top: 16px; overflow-wrap: anywhere; }
.show-scene { min-width: 0; }
.scene-frame { width: 100%; height: 253px; display: flex; align-items: center; overflow: hidden; border-radius: 2px; background: #f1f1f1; }
.scene-image { width: 100%; height: 100%; object-fit: cover; }
.scene-crop { width: 100%; aspect-ratio: var(--scene-ratio); overflow: hidden; position: relative; border-radius: 2px; }
.scene-crop img { position: absolute; top: 0; left: 0; width: var(--sheet-scale); max-width: none; height: auto; transform: translate(var(--sheet-x), var(--sheet-y)); }
.image-credit { margin-top: 4px; font-size: 10px; line-height: 1.5; color: #666; overflow-wrap: anywhere; }
.image-credit a, .image-credit a:visited { color: #666; }
.watch-links { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 12px; font-size: 13px; }
.watch-links a { overflow-wrap: anywhere; }
#empty-state { margin-top: 24px; }
.site-footer { margin-top: 64px; padding-bottom: 32px; font-size: 12px; color: #666; }
.site-footer p + p { margin-top: 10px; }

@media (max-width: 560px) {
  .masthead { margin-top: 32px; }
  h1 { font-size: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .show-media { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
  .show-row h2 { font-size: 16px; }
  .show-poster, .scene-frame { height: 141px; }
  .site-footer { padding-bottom: 24px; }
}
