
:root{
  --bg:#06101f;
  --bg2:#0b1b31;
  --panel:rgba(10,24,43,.88);
  --panel2:rgba(15,34,58,.82);
  --line:rgba(83,216,245,.22);
  --text:#eef8ff;
  --muted:#9fc2df;
  --cyan:#61e9f5;
  --cyan2:#a9fbff;
  --yellow:#ffd978;
  --shadow:0 24px 60px rgba(0,0,0,.36);
  --radius:24px;
  --font:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  font-family:var(--font);
  background:
    radial-gradient(circle at 18% 12%,rgba(58,127,255,.16),transparent 25%),
    radial-gradient(circle at 82% 4%,rgba(80,236,255,.10),transparent 24%),
    linear-gradient(180deg,#040914 0%,var(--bg) 45%,var(--bg2) 100%);
  min-height:100vh;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.55;
  background-image:
    radial-gradient(circle at 9% 18%,rgba(255,255,255,.9) 0 1px,transparent 1.4px),
    radial-gradient(circle at 80% 16%,rgba(255,255,255,.7) 0 1px,transparent 1.4px),
    radial-gradient(circle at 64% 70%,rgba(255,255,255,.75) 0 1px,transparent 1.4px),
    radial-gradient(circle at 26% 78%,rgba(255,255,255,.55) 0 1px,transparent 1.3px);
}
.wrapper{
  position:relative;
  z-index:1;
  width:min(1280px,calc(100% - 28px));
  margin:auto;
  padding:28px 0 48px;
}
.hero,.toolbar,.card,.detail-card{
  background:linear-gradient(180deg,rgba(14,31,53,.94),rgba(7,17,31,.94));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.hero{border-radius:32px;padding:30px}
.badge{
  display:inline-flex;
  padding:9px 14px;
  border-radius:999px;
  color:var(--cyan);
  border:1px solid rgba(97,233,245,.25);
  background:rgba(97,233,245,.09);
  font-size:13px;
  font-weight:800;
}
.hero h1{
  font-size:clamp(34px,5vw,60px);
  line-height:1.02;
  margin:14px 0 10px;
}
.hero p{
  color:var(--muted);
  line-height:1.65;
  max-width:940px;
  font-size:18px;
  margin:0;
}
.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
  margin-top:24px;
}
.stat{
  padding:16px;
  border-radius:18px;
  background:rgba(97,233,245,.065);
  border:1px solid rgba(97,233,245,.13);
}
.stat strong{display:block;font-size:24px;color:#fff}
.stat span{color:var(--muted);font-size:13px}

.toolbar{
  position:sticky;
  top:10px;
  z-index:20;
  border-radius:20px;
  padding:12px;
  margin:20px 0 28px;
  backdrop-filter:blur(15px);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.search{
  flex:1 1 260px;
  min-width:220px;
  border:1px solid rgba(123,210,255,.18);
  border-radius:14px;
  background:rgba(2,10,20,.55);
  color:var(--text);
  padding:12px 14px;
  outline:none;
}
.search:focus{border-color:var(--cyan)}
.filters{display:flex;flex-wrap:wrap;gap:8px}
.filter{
  border:1px solid rgba(123,210,255,.18);
  color:#dff7ff;
  background:rgba(123,210,255,.06);
  border-radius:999px;
  padding:10px 13px;
  cursor:pointer;
  font-weight:700;
}
.filter.active{
  color:#04111b;
  background:linear-gradient(135deg,var(--cyan),var(--cyan2));
  border-color:transparent;
}
.section-title{font-size:28px;margin:28px 0 16px}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(255px,1fr));
  gap:18px;
}
.card{
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.card:hover{
  transform:translateY(-3px);
  border-color:rgba(97,233,245,.42);
  box-shadow:0 28px 72px rgba(0,0,0,.42),0 0 24px rgba(97,233,245,.07);
}
.visual{
  min-height:245px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:radial-gradient(circle at center,rgba(93,184,255,.16),transparent 65%);
}
.visual img{
  max-width:100%;
  max-height:255px;
  object-fit:contain;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.42));
}
.body{padding:17px 18px 19px;display:flex;flex-direction:column;gap:10px;flex:1}
.type{
  color:var(--cyan);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:800;
  font-size:11px;
}
.body h3{font-size:25px;margin:0}
.body p{margin:0;color:var(--muted);line-height:1.5}
.mini{
  display:grid;
  gap:6px;
  font-size:13px;
  color:#dceeff;
}
.mini span{color:var(--muted)}
.btn{
  margin-top:auto;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:12px 14px;
  border-radius:14px;
  color:#04111b;
  text-decoration:none;
  font-weight:850;
  background:linear-gradient(135deg,var(--cyan),var(--cyan2));
}
.hidden{display:none!important}
.empty{
  display:none;
  padding:24px;
  text-align:center;
  color:var(--muted);
  border:1px dashed var(--line);
  border-radius:18px;
}

/* detail page */
.back{
  display:inline-flex;
  color:var(--cyan);
  text-decoration:none;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(97,233,245,.08);
  border:1px solid rgba(97,233,245,.18);
  margin-bottom:18px;
}
.detail-top{
  display:grid;
  grid-template-columns:minmax(300px,440px) 1fr;
  gap:24px;
}
.detail-card{border-radius:28px;padding:24px}
.detail-image{
  min-height:390px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle at center,rgba(93,184,255,.16),transparent 66%);
}
.detail-image img{width:100%;max-height:400px;object-fit:contain;filter:drop-shadow(0 22px 40px rgba(0,0,0,.44))}
.detail-card h1{font-size:clamp(34px,5vw,52px);margin:0 0 7px}
.subtitle{color:var(--cyan);font-size:18px;margin-bottom:15px}
.lead{color:var(--muted);font-size:17px;line-height:1.7}
.kid{
  margin-top:18px;
  padding:14px 16px;
  border-radius:16px;
  color:#fff2c7;
  background:rgba(255,217,120,.08);
  border:1px solid rgba(255,217,120,.22);
}
.info-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:24px;
  margin-top:24px;
}
table{width:100%;border-collapse:collapse}
th,td{
  vertical-align:top;
  text-align:left;
  padding:11px 0;
  border-bottom:1px solid rgba(151,210,244,.13);
}
th{width:38%;color:var(--muted);font-weight:650;padding-right:16px}
tr:last-child th,tr:last-child td{border-bottom:none}
.facts li{line-height:1.6;margin-bottom:10px}
.source{
  margin-top:20px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
@media(max-width:850px){
  .detail-top,.info-grid{grid-template-columns:1fr}
  .toolbar{top:4px}
  .hero{padding:23px}
}
