:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --text:#eaf1ff;
  --muted:#9fb2d6;
  --border:rgba(255,255,255,.12);
  --shadow:0 20px 60px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(167,139,250,.25), transparent 55%),
    radial-gradient(900px 600px at 85% 10%, rgba(125,211,252,.22), transparent 55%),
    var(--bg);
  color:var(--text);
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:28px 18px 60px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:14px;
}

h1{margin:0 0 6px;font-size:34px}
.muted{color:var(--muted)}
.small{font-size:13px}

.controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,.04);
  box-shadow:var(--shadow);
}

.input, .select{
  min-height:40px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}

.input{width:280px}
.select{min-width:180px}

.btn{
  min-height:40px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  font-weight:800;
}
.btn[aria-pressed="true"]{
  background:rgba(167,139,250,.18);
  border-color:rgba(167,139,250,.55);
}

.meta-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:14px;
  gap:10px;
}

.row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

@media (max-width: 980px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 560px){
  .grid{grid-template-columns:1fr}
  .input{width:100%}
  .select{width:100%}
}

.card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow:var(--shadow);
  cursor:pointer;
}

.card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.title{
  margin:0;
  font-weight:950;
  font-size:16px;
}

.org{
  margin:6px 0 0;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}

.heart{
  width:38px;
  height:34px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  font-size:16px;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.badge{
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
  font-weight:850;
}

.desc{
  margin:10px 0 0;
  color:rgba(234,241,255,.90);
  font-size:13px;
  line-height:1.35;
}

.card-footer{
  margin-top:10px;
}
.meta{
  color:rgba(159,178,214,.85);
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.backlink{
  display:inline-block;
  margin-bottom:14px;
  text-decoration:none;
  color:var(--text);
}
.backlink:hover{color:#7dd3fc}

.details{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:14px;
  align-items:start;
}
@media (max-width: 980px){
  .details{grid-template-columns:1fr}
}

.hero{
  min-height:260px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.panel{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:rgba(255,255,255,.04);
  box-shadow:var(--shadow);
}

.linkbtn{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(125,211,252,.45);
  background:rgba(125,211,252,.14);
  color:var(--text);
  text-decoration:none;
  font-weight:800;
}
.linkbtn:hover{border-color:rgba(125,211,252,.8)}
/* ---------- Hamburger menu ---------- */
.topbar-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.menu{
  position:relative;
}

.menu-btn{
  width:44px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  padding:0 12px;
}

.menu-btn span{
  display:block;
  height:2px;
  width:100%;
  background:rgba(234,241,255,.9);
  border-radius:2px;
}

.menu-dropdown{
  position:absolute;
  right:0;
  top:48px;
  min-width:220px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(15,26,46,.98);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:none;
}

.menu-dropdown a{
  display:block;
  padding:12px 12px;
  text-decoration:none;
  color:var(--text);
  font-weight:800;
  font-size:13px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.menu-dropdown a:last-child{
  border-bottom:none;
}

.menu-dropdown a:hover{
  background:rgba(125,211,252,.12);
}

.menu-dropdown.open{
  display:block;
}
