:root{
  --bg1:#2b0a57;
  --bg2:#5b1aa8;
  --bg3:#120026;
  --card:#16072a;
  --text:#f5f2ff;
  --muted:#cfc7ff;
  --stroke: rgba(255,255,255,.12);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 450px at 18% 10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(700px 350px at 82% 18%, rgba(0,255,255,.10), transparent 60%),
    radial-gradient(900px 500px at 55% 90%, rgba(255,0,200,.12), transparent 60%),
    linear-gradient(140deg, var(--bg1), var(--bg2) 55%, var(--bg3));
  min-height:100vh;
}

.wrap{
  width:min(1100px, 92vw);
  margin:0 auto;
}

.top{
  padding:34px 0 18px 0;
}

.brand h1{
  margin:0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing:.2px;
}
.sub{
  margin:8px 0 0 0;
  color: var(--muted);
  line-height:1.3;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration:none;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.btn.ghost{
  background: transparent;
}

.panel{
  background: rgba(0,0,0,.18);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 10px 0 50px 0;
}

.panelHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding: 6px 6px 14px 6px;
}

.panelHead h2{
  margin:0;
  font-size: 20px;
}

.filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.chip{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
}
.chip.active{
  background: rgba(255,255,255,.18);
}

.grid{
  display:grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 650px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card{
  background: rgba(0,0,0,.25);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.art{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit:cover;
  background: rgba(255,255,255,.06);
}

.meta{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.titleRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.title{
  font-weight:700;
  line-height:1.2;
}
.year{
  color: var(--muted);
  font-size: 13px;
  white-space:nowrap;
}

.badge{
  display:inline-flex;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.07);
  color: var(--muted);
  font-size: 12px;
}

.links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.linkBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.08);
  color: var(--text);
  text-decoration:none;
  font-size: 13px;
}

.icon{
  width:18px;
  height:18px;
  border-radius: 4px;
}

.footnote{
  padding: 10px 6px 0 6px;
}
.small{
  color: var(--muted);
  font-size: 12px;
}
