:root{
  --bg:#0b1020;
  --card:#121a33;
  --text:#e9ecff;
  --muted:#aab2d5;
  --line:rgba(255,255,255,.10);
  --accent:#6ee7ff;
  --accent2:#a78bfa;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --r:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(110,231,255,.22), transparent 55%),
              radial-gradient(900px 500px at 90% 0%, rgba(167,139,250,.20), transparent 55%),
              var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.wrap{max-width:1100px;margin:0 auto;padding:18px}

.top{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(14px);
  background: rgba(11,16,32,.55);
  border-bottom:1px solid var(--line);
}
.topRow{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.title{font-weight:800;font-size:18px;letter-spacing:.2px}
.subtitle{color:var(--muted);font-size:13px;margin-top:3px}
.meta{display:flex;gap:10px;flex-wrap:wrap}
.pill{
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  padding:8px 10px;
  border-radius:999px;
  font-size:13px;
}
.pillBtn{cursor:pointer}

.hero{display:grid;grid-template-columns: 1.4fr .8fr; gap:18px;align-items:start;margin-top:10px}
.heroCard,.sideCard{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cover{
  height: 260px;
  background-size: cover;
  background-position: center;
  position:relative;
}
.coverEmpty{
  background: rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:center;
}
.coverFade{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(11,16,32,.92));
}
.coverBadge{
  position:absolute; left:14px; bottom:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  padding:8px 10px;
  border-radius: 999px;
  font-size:12px;
  backdrop-filter: blur(10px);
}
.heroBody{padding:18px}
.heroBody h1{margin:0 0 10px;font-size:22px}
.note{color:var(--muted);margin:0 0 12px;line-height:1.5}
.highlights{margin:0;padding-left:18px;color:var(--text);opacity:.92}
.highlights li{margin:6px 0}

.sideCard{padding:14px}
.sideTitle{font-weight:800;margin:6px 4px 12px}
.sideGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stat{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding:12px;
}
.stat .k{color:var(--muted);font-size:12px}
.stat .v{font-size:16px;font-weight:800;margin-top:4px}
.sideHint{
  margin-top:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding:12px;
}
.hintTitle{font-weight:800;margin-bottom:6px}
.hintText{color:var(--muted);font-size:13px;line-height:1.4}

.ctaRow{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.cta{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 14px;border-radius:14px;
  border:1px solid rgba(110,231,255,.45);
  background: rgba(110,231,255,.14);
  color:var(--text);text-decoration:none;font-weight:800;
}
.cta.ghost{
  border-color: var(--line);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}

.toolbar{
  display:flex;justify-content:space-between;align-items:center;
  gap:12px;flex-wrap:wrap;margin-top:14px
}
.tabs{display:flex;gap:10px}
.tab{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  font-weight:650;
}
.tab.active{
  border-color: rgba(110,231,255,.55);
  box-shadow: 0 0 0 4px rgba(110,231,255,.12);
}
.searchBox input{
  width:min(420px, 90vw);
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius: 12px;
  outline:none;
}
.searchBox input::placeholder{color:rgba(233,236,255,.55)}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap:14px;
  margin:16px 0 26px;
}
.card{
  margin:0;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--r);
  overflow:hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.cardBtn{
  position:relative;
  display:block;
  width:100%;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
}
.card img{
  width:100%;
  height:210px;
  object-fit:cover;
  display:block;
  transform: scale(1.0);
  transition: transform .25s ease;
}
.cardBtn:hover img{transform: scale(1.03)}
.badge{
  position:absolute;left:10px;top:10px;
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(110,231,255,.18);
  border: 1px solid rgba(110,231,255,.38);
  backdrop-filter: blur(10px);
}
.badgeVideo{
  background: rgba(167,139,250,.16);
  border-color: rgba(167,139,250,.40);
}
figcaption{
  padding:10px 12px;
  color:var(--muted);
  font-size:13px;
  border-top:1px solid var(--line);
}

.videoThumb{
  height:210px;
  background:
    radial-gradient(600px 280px at 20% 20%, rgba(110,231,255,.22), transparent 55%),
    radial-gradient(500px 240px at 80% 10%, rgba(167,139,250,.20), transparent 55%),
    rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.play{
  width:64px;height:64px;border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.22);
  position:relative;
}
.play:after{
  content:"";
  position:absolute;left:26px;top:20px;
  width:0;height:0;
  border-left:18px solid rgba(233,236,255,.92);
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
}
.videoLabel{
  position:absolute;bottom:12px;
  color:rgba(233,236,255,.82);
  font-size:13px;
}

.empty{
  grid-column: 1 / -1;
  border:1px dashed rgba(255,255,255,.22);
  border-radius: var(--r);
  padding:18px;
  background: rgba(255,255,255,.03);
}
.empty h2{margin:0 0 8px}
.empty p{margin:0;color:var(--muted);line-height:1.5}
code{background: rgba(0,0,0,.25); padding:2px 6px; border-radius:8px; border:1px solid rgba(255,255,255,.12)}

.footer{color:var(--muted);font-size:12px;padding-bottom:26px}

/* Modal */
.modal{position:fixed;inset:0;display:none;z-index:50}
.modal.open{display:block}
.modalBg{position:absolute;inset:0;background: rgba(0,0,0,.65)}
.modalBody{
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:min(1000px, 94vw);
  max-height: 90vh;
  background: rgba(18,26,51,.92);
  border:1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding:14px;
  overflow:hidden;
}
.viewer{display:flex;align-items:center;justify-content:center;max-height: calc(90vh - 90px)}
.viewer img, .viewer video{
  max-width: 100%;
  max-height: calc(90vh - 90px);
  border-radius: 14px;
  background:#000;
}
.close{
  position:absolute;right:12px;top:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  width:40px;height:40px;
  border-radius: 12px;
  cursor:pointer;
}
.modalHint{margin-top:10px;color:var(--muted);font-size:12px;text-align:center}

@media (max-width: 860px){
  .hero{grid-template-columns:1fr}
}
