* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: Inter, Arial, sans-serif; color: #eeeaf7; background: #0d0b14; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #c5a1ff; outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; background: #734ac0; padding: 12px; z-index: 5; }
.skip-link:focus { top: 12px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 24px max(24px, calc((100vw - 1120px)/2)); border-bottom: 1px solid #292334; background: #12101b; }
.brand { font-size: 25px; font-weight: 800; white-space: nowrap; }
.brand span { color: #b68aff; }
header nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: #b9b2c9; }
header nav a:hover, header nav a[aria-current] { color: #c8a3ff; }
main { max-width: 1120px; margin: auto; padding: 42px 24px 60px; min-height: 80vh; }
.eyebrow { font-size: 12px; letter-spacing: 2px; font-weight: bold; color: #bb91ff; }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 12px 0; }
.intro > p:last-child { color: #b7afc5; line-height: 1.6; }
.filters { margin: 30px 0; padding: 24px; border: 1px solid #332a45; border-radius: 18px; background: #17121f; }
label { display: block; font-size: 13px; margin-bottom: 9px; color: #c9c0d8; }
input, select { width: 100%; min-width: 0; padding: 13px 12px; border: 1px solid #45374e; border-radius: 9px; background: #0f0c16; color: #eeeaf7; }
input::placeholder { color: #8c819b; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 12px; }
button { background: #8e57dc; color: white; border: 1px solid transparent; border-radius: 9px; padding: 12px 20px; font-weight: bold; }
button:hover { background: #a06de6; }
button.secondary { background: #21192c; border-color: #493657; }
button.secondary:hover { background: #342341; }
button:disabled { opacity: .45; cursor: default; }
.results-header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
h2 { margin: 0; font-size: 22px; }
#resultCount, #catalogMessage { color: #bfb4d0; line-height: 1.6; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.catalog-card { background: #181220; border: 1px solid #332a40; border-radius: 14px; overflow: hidden; min-width: 0; }
.catalog-card:hover { border-color: #a671e7; }
.card-link { display: block; height: 100%; }
.cover { aspect-ratio: 3 / 4; background: linear-gradient(135deg, #32204c, #120c22); position: relative; display: flex; align-items: center; justify-content: center; }
.cover img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.cover-fallback { font-size: 40px; font-weight: bold; color: #c3a3ec; }
.type-badge { position: absolute; bottom: 12px; left: 12px; padding: 6px 9px; border-radius: 6px; background: #0d071cdf; font-size: 12px; }
.card-info { padding: 16px; }
.card-info h3 { font-size: 17px; margin: 0 0 10px; overflow-wrap: anywhere; }
.card-info p { font-size: 12px; color: #b4a6c4; line-height: 1.6; margin: 6px 0; }
.card-info .status { color: #d0b1ff; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 32px; font-size: 14px; }
footer { border-top: 1px solid #292334; padding: 24px; color: #9b8ea9; text-align: center; font-size: 13px; }
@media (max-width: 850px) { .filter-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { header { padding: 20px 16px; } header nav { gap: 14px; font-size: 12px; } main { padding: 28px 16px 44px; } .filters { padding: 16px; } .filter-grid { grid-template-columns: 1fr; } .catalog-grid { gap: 12px; } .card-info { padding: 12px; } .card-info h3 { font-size: 15px; } .pagination { gap: 10px; } }