:root {
  --bg: #0f1115; --panel: #181b22; --line: #2a2f3a; --text: #eceef2; --muted: #9aa1ae;
  --accent: #f5c518; --netflix: #e50914; --prime: #1a98ff; --disney: #113ccf;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, sans-serif; }
.top, .filters, .status, .grid, .more, footer, .banner { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.top { padding-top: 28px; }
h1 { margin: 0; font-size: 2rem; letter-spacing: -0.02em; }
h1 span { color: var(--accent); }
.tagline { margin: 2px 0 16px; color: var(--muted); }
#search { display: flex; gap: 8px; }
#q { flex: 1; min-width: 0; }
input, select, button { font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
button { cursor: pointer; }
button:hover { border-color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#search button, #more { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }
.banner { margin-top: 16px; padding: 10px 16px; background: #2b2610; border: 1px solid #5c4f12; border-radius: 8px; color: #f3e3a0; font-size: .9rem; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 20px; }
.group { display: flex; }
.group button { border-radius: 0; margin-left: -1px; }
.group button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.group button:last-child { border-radius: 0 8px 8px 0; }
.group button[aria-pressed="true"] { background: var(--text); color: #111; border-color: var(--text); }
label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
label select { color: var(--text); }
.range input { padding: 0; accent-color: var(--accent); }
.range output { color: var(--text); min-width: 2ch; font-variant-numeric: tabular-nums; }
.status { margin-top: 16px; margin-bottom: 8px; color: var(--muted); font-size: .9rem; min-height: 1.5em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 16px; }
.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #262b36, #15181e); border: 1px solid var(--line); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-weight: 600; color: var(--muted); }
.card:hover .poster { border-color: var(--muted); }
.rating { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: #111; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rating small { font-weight: 600; font-size: .65rem; margin-right: 4px; }
.rating.tmdb { background: #cfd4dc; }
.rating.none { background: #3a404c; color: var(--muted); }
.card h2 { margin: 8px 0 0; font-size: .95rem; line-height: 1.3; }
.meta { color: var(--muted); font-size: .8rem; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.badge { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: #fff; }
.badge.netflix { background: var(--netflix); }
.badge.prime { background: var(--prime); color: #04121f; }
.badge.disney { background: var(--disney); }
.badge.none { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.more { text-align: center; margin-top: 28px; }
footer { margin-top: 40px; padding-bottom: 32px; color: var(--muted); font-size: .8rem; }
