:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #12130f;
  color: #f3f3e8;
  --paper: #f3f3e8;
  --muted: #b7b8a8;
  --dim: #8b8d7f;
  --panel: #1b1d16;
  --line: #33352b;
  --lime: #d7f878;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, input, select { font: inherit; }
input, select, button { accent-color: var(--lime); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.wrap { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.12rem; font-weight: 750; letter-spacing: -.055em; text-decoration: none; }
.brand-mark { width: 17px; height: 17px; display: inline-block; background: var(--lime); clip-path: polygon(0 0, 100% 0, 100% 42%, 42% 42%, 42% 100%, 0 100%); }
.header-content nav { display: flex; align-items: stretch; align-self: stretch; gap: 25px; }
.header-content nav a { border-bottom: 2px solid transparent; display: grid; place-items: center; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 650; }
.header-content nav a:hover, .header-content nav a[aria-current] { color: var(--lime); border-color: var(--lime); }
main { min-height: 65vh; padding-block: 51px 72px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.75rem, 5.1vw, 5rem); letter-spacing: -.075em; line-height: .98; margin-bottom: 15px; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 62ch; line-height: 1.55; margin-bottom: 30px; }
.filters { display: grid; grid-template-columns: 1.55fr repeat(6, minmax(0, 1fr)) auto; align-items: end; gap: 9px; margin: 0 0 26px; padding: 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; }
.filters label { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: .74rem; font-weight: 650; }
.filters input, .filters select { padding: 9px 10px; width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #12130f; color: var(--paper); height: 39px; font-weight: 500; font-size: .81rem; text-overflow: ellipsis; }
.filters input::placeholder { color: var(--dim); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; border-radius: 7px; padding: 0 14px; text-decoration: none; color: #19210b; background: var(--lime); border: 1px solid var(--lime); font-weight: 750; font-size: .82rem; cursor: pointer; }
.button:hover { background: #e6ffa1; }
.button.secondary { color: var(--paper); background: var(--panel); border-color: var(--line); }
.button.secondary:hover { border-color: var(--lime); }
.results { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; color: var(--muted); font-size: .84rem; }
.results strong { color: var(--paper); }
.results a { color: var(--lime); text-underline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .16s ease, transform .16s ease; }
.card:hover { border-color: var(--lime); transform: translateY(-2px); }
.poster { background: #23271b; aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 64%, #0008); pointer-events: none; }
.duration, .pick { position: absolute; z-index: 1; border-radius: 5px; font-size: .7rem; font-weight: 750; padding: 4px 6px; }
.duration { right: 9px; bottom: 9px; background: #141710e8; color: white; }
.pick { left: 9px; top: 9px; color: #19210b; background: var(--lime); }
.card-body { padding: 12px 12px 13px; display: flex; flex-direction: column; flex: 1; }
.card-brand { color: var(--muted); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; font-size: .73rem; margin-bottom: 5px; }
.card h2 { font-size: .97rem; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card p { font-size: .77rem; color: var(--muted); line-height: 1.45; margin-bottom: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; border-top: 1px solid var(--line); padding-top: 9px; font-size: .71rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 5px 9px; }
.card-meta span:first-child { color: var(--lime); }
.pagination { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: .83rem; color: var(--muted); }
.status, .empty, .panel { padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--muted); }
footer { border-top: 1px solid var(--line); padding-block: 20px; font-size: .81rem; color: var(--dim); }
.back { display: inline-block; margin-bottom: 22px; color: var(--lime); font-size: .86rem; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.detail-layout { display: grid; grid-template-columns: minmax(250px, 380px) minmax(0, 1fr); gap: clamp(25px, 5vw, 68px); align-items: start; }
.detail-media { display: grid; gap: 13px; justify-items: stretch; }
.detail-media video { width: 100%; max-height: 71vh; aspect-ratio: 9 / 16; display: block; border: 1px solid var(--line); border-radius: 13px; background: #080a06; }
.detail-media .button { justify-self: start; }
.detail h1 { font-size: clamp(2rem, 4vw, 3.75rem); overflow-wrap: anywhere; }
.detail-brand { color: var(--lime); font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 20px; }
.chip { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .77rem; }
.detail .panel { margin-top: 14px; }
.panel h2 { color: var(--paper); font-size: 1.14rem; letter-spacing: -.025em; margin-bottom: 12px; }
.panel p { line-height: 1.55; margin-bottom: 11px; }
.panel p:last-child { margin-bottom: 0; }
.panel .note { font-size: .8rem; color: var(--dim); }
dl { display: grid; grid-template-columns: minmax(83px, 120px) 1fr; gap: 8px 14px; margin: 0; font-size: .88rem; line-height: 1.55; }
dt { color: var(--paper); font-weight: 650; }
dd { margin: 0; overflow-wrap: anywhere; }
.panel ul { font-size: .88rem; padding-left: 18px; line-height: 1.6; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 420px; border-collapse: collapse; text-align: left; font-size: .8rem; }
th, td { padding: 8px 9px 8px 0; border-bottom: 1px solid var(--line); }
th { color: var(--paper); font-weight: 650; }
.stats-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-tile { padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--muted); font-size: .86rem; }
.stat-tile strong { display: block; margin-bottom: 5px; color: var(--lime); font-size: 2rem; letter-spacing: -.045em; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.facet-list { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.facet-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(45px, .65fr) 34px; align-items: center; gap: 9px; }
.facet-list progress { width: 100%; height: 7px; appearance: none; border: 0; }
.facet-list progress::-webkit-progress-bar { background: #303329; border-radius: 5px; }
.facet-list progress::-webkit-progress-value { background: var(--lime); border-radius: 5px; }
.facet-list progress::-moz-progress-bar { background: var(--lime); border-radius: 5px; }
.facet-list li span:last-child { text-align: right; }
@media (max-width: 1200px) {
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 36px); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .detail-layout { grid-template-columns: minmax(200px, 33%) minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  main { padding-top: 36px; }
  .header-content { min-height: 58px; gap: 12px; }
  .header-content nav { gap: 15px; }
  .header-content nav a { font-size: .81rem; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 9px; }
  .detail-layout, .stat-grid { grid-template-columns: 1fr; }
  .detail-media video { max-height: 62vh; }
  .stat-tile { padding: 12px; }
  .stat-tile strong { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
