:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #f7f4ff;
  background: #131125;
  --muted: #c4bdd7;
  --border: #3c3454;
  --accent: #ddd0ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #d0b4ff; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.bar { min-height: 4.55rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1rem; font-weight: 750; text-decoration: none; }
.brand-icon, .poster-mark { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .65rem; background: #d4b9ff; }
.brand-icon::before, .poster-mark::before { content: ""; width: 0; height: 0; border-block: .32rem solid transparent; border-left: .55rem solid #24163a; margin-left: .13rem; }
.nav-link { color: var(--muted); font-size: .9rem; text-underline-offset: .25rem; }
.hero { margin: 2rem 0 2.75rem; min-height: 17rem; padding: clamp(1.5rem, 5.5vw, 4rem); display: flex; align-items: end; justify-content: space-between; gap: 1rem; border: 1px solid #5e4c7d; border-radius: 1.35rem; background: radial-gradient(ellipse at 92% 0%, #5d3d84 0, transparent 62%), linear-gradient(125deg, #292042, #211b36); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 4.55rem); font-weight: 850; line-height: 1.09; letter-spacing: -.055em; }
h1 span { display: block; color: var(--accent); }
.hero p { margin-top: .9rem; color: #e4dcf5; }
.hero-meta { color: #e9dcff; font-size: .9rem; white-space: nowrap; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
h2 { font-size: 1.45rem; }
#count, .notice, .site-footer { color: var(--muted); }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem); gap: .9rem; margin-bottom: 1rem; }
.filters label { display: grid; gap: .4rem; font-size: .9rem; color: var(--muted); }
.filters input, .filters select { width: 100%; min-height: 2.9rem; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: .65rem; background: #201a37; color: #faf7ff; }
.filters input { font-size: 1rem; }
.filters input::placeholder { color: #afa6c8; }
.notice { margin: 0 0 1rem; line-height: 1.55; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.card { display: flex; min-width: 0; overflow: hidden; background: #211b34; border: 1px solid var(--border); border-radius: .8rem; }
.art { width: 4.1rem; flex: 0 0 auto; display: grid; place-items: center; background: linear-gradient(155deg, #614291, #332657); }
.card:nth-child(3n + 2) .art { background: linear-gradient(155deg, #794166, #3b274a); }
.card:nth-child(3n) .art { background: linear-gradient(155deg, #365a83, #2c3254); }
.poster-mark { width: 1.75rem; height: 1.75rem; opacity: .9; }
.card-body { display: flex; flex-direction: column; align-items: start; gap: .55rem; min-width: 0; padding: .9rem; }
.metadata { display: flex; flex-wrap: wrap; gap: .25rem .65rem; color: var(--muted); font-size: .82rem; }
.card h3 { font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; margin-bottom: .15rem; }
.share, .demo-link { margin-top: auto; font-size: .9rem; }
.share { color: var(--accent); text-underline-offset: .23rem; }
.share:hover { color: white; }
.demo-link { color: var(--muted); }
.art { position: relative; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.extra { color: var(--muted); font-size: .9rem; max-width: 100%; }
.extra summary { cursor: pointer; color: var(--accent); }
.details-text { display: grid; gap: .4rem; margin-top: .5rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.more, .retry { padding: .65rem 1rem; background: #2d2448; color: var(--accent); border: 1px solid #66578a; border-radius: .65rem; cursor: pointer; }
.more { display: block; margin: 1.4rem auto 0; }
.site-footer { margin-top: 3rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: .9rem; }
@media (max-width: 850px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 565px) {
  .shell { width: calc(100% - 2rem); }
  .hero { min-height: 0; align-items: start; flex-direction: column; margin: 1rem 0 2rem; }
  .grid, .filters { grid-template-columns: minmax(0, 1fr); }
}
