:root { color-scheme: dark; --bg: #151411; --panel: #201e19; --line: #39352c; --text: #f3eee3; --muted: #b4ada0; --amber: #e8b260; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px 18px; background: var(--amber); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { min-height: 82px; padding: 18px clamp(20px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; font-size: 15px; letter-spacing: -.02em; }
.brand strong { font-weight: 500; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--amber); color: var(--amber); font: italic 22px Georgia, serif; border-radius: 50%; }
.header-note, .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.header-note { color: var(--muted); }
main, footer { width: min(1440px, 100%); margin: auto; padding-inline: clamp(20px, 5vw, 80px); }
main { min-height: calc(100svh - 180px); padding-top: 40px; padding-bottom: 60px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--amber); margin: 0 0 12px; }
h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 500; letter-spacing: -.055em; line-height: 1; margin: 0; }
h1 span { color: var(--amber); }
.updated { color: var(--muted); font-size: 12px; margin: 0 0 4px; }
fieldset { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); display: grid; grid-template-columns: minmax(180px, 2fr) minmax(120px, 1fr) minmax(100px, .8fr) minmax(150px, 1.2fr) auto; align-items: end; gap: 14px; }
fieldset > div { min-width: 0; }
label { display: block; color: var(--muted); font-size: 11px; margin: 0 0 8px; letter-spacing: .04em; }
input, select { width: 100%; min-height: 44px; border: 1px solid #50493c; border-radius: 4px; padding: 10px 12px; background: var(--bg); color: var(--text); font-size: 13px; }
input::placeholder { color: #a19a8b; }
select { padding-right: 24px; }
.reset-button, .close-button { color: var(--muted); border: 0; background: transparent; min-height: 44px; padding: 8px; font-size: 12px; }
.reset-button:hover, .close-button:hover { color: var(--amber); }
fieldset:disabled { opacity: .6; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 28px 0 20px; }
.results-heading h2 { font-size: 15px; font-weight: 500; margin: 0; }
#status { color: var(--muted); font-size: 12px; margin: 0; text-align: right; }
.poster-grid { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; }
.poster-grid li { min-width: 0; }
.movie-card { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; color: var(--text); border-radius: 5px; }
.poster { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 2 / 3; width: 100%; border: 1px solid #4b4232; border-radius: 5px; background: radial-gradient(ellipse at 20% 0%, #4b3822, transparent 75%), #24211a; transition: border-color .18s, transform .18s; }
.poster::before { content: ""; position: absolute; inset: 12px; border: 1px solid #a6874b33; border-radius: 100px 100px 2px 2px; }
.poster-monogram { font: italic clamp(38px, 5vw, 68px) Georgia, serif; color: #d5ae73; }
.poster-caption { margin-top: 22px; color: #c3ad8b; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--panel); }
.movie-title { display: block; margin-top: 12px; font-size: 13px; line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.movie-year { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.movie-card:hover .poster { border-color: var(--amber); transform: translateY(-3px); }
.movie-card:hover .movie-title { color: var(--amber); }
.state { text-align: center; padding: 55px 20px; border: 1px dashed var(--line); border-radius: 6px; }
.state-symbol { color: var(--amber); font: 38px Georgia, serif; }
.state h3 { font-size: 20px; font-weight: 500; }
.state p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.primary-button { min-height: 44px; padding: 10px 22px; border: 0; border-radius: 4px; color: var(--bg); background: var(--amber); font-size: 13px; font-weight: 600; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 24px; font-size: 11px; color: var(--muted); }
dialog { width: min(610px, calc(100% - 32px)); max-height: calc(100svh - 48px); border: 1px solid #6b5738; border-radius: 10px; padding: clamp(22px, 5vw, 38px); color: var(--text); background: #211e18; box-shadow: 0 30px 100px #0008; }
dialog::backdrop { background: #090807d9; backdrop-filter: blur(5px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-top .eyebrow { margin: 0; }
.close-button { display: flex; align-items: center; gap: 10px; }
.close-button span { font-size: 23px; }
dialog h2 { font: 500 clamp(27px, 5vw, 38px)/1.2 Georgia, serif; margin: 26px 0 12px; overflow-wrap: anywhere; }
.detail-meta { color: var(--muted); font-size: 13px; }
.detail-genres { color: var(--amber); font-size: 12px; margin: 18px 0 32px; }
.detail-overview { font-size: 15px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
@media (min-width: 1400px) { .poster-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1000px) { fieldset { grid-template-columns: 2fr 1fr 1fr; } .search-field { grid-column: 1 / -1; } .reset-button { grid-column: 1 / -1; justify-self: end; min-height: 30px; } }
@media (max-width: 540px) { .site-header { min-height: 72px; } .header-note { display: none; } main { padding-top: 28px; } .section-heading { align-items: start; flex-direction: column; gap: 15px; } fieldset { grid-template-columns: 1fr 1fr; padding: 14px; gap: 12px; } fieldset > div:last-of-type { grid-column: 1 / -1; } .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } footer { flex-direction: column; gap: 8px; } }
#search-panel > summary { display: none; cursor: pointer; min-height: 48px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 14px; }
@media (max-width: 540px) { #search-panel > summary { display: list-item; list-style-position: inside; } #search-panel[open] > summary { margin-bottom: 10px; color: var(--amber); } input, select { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
