:root{
  --bg:#0f1724; --card:#0b1220; --muted:#9aa4b2; --accent:#4f46e5; --glass: rgba(255,255,255,0.03);
  --radius:12px; --gap:18px; --maxw:1200px;
  color-scheme: dark;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,#071026 0%, #041022 100%); color:#e6eef6; -webkit-font-smoothing:antialiased;
  padding:32px; display:flex; justify-content:center; align-items:flex-start;
}
.container{width:100%; max-width:var(--maxw)}
header{
  display:flex; gap:16px; align-items:center; justify-content:space-between; margin-bottom:22px;
}
.logo{display:flex; gap:12px; align-items:center}
.logo .hex{width:48px;height:48px;background:linear-gradient(135deg,var(--accent),#06b6d4); border-radius:10px; display:grid;place-items:center;font-weight:700}
h1{font-size:20px;margin:0}
p.lead{margin:0;color:var(--muted)}
.controls{display:flex;gap:12px;align-items:center}
.search{padding:8px 12px;border-radius:10px;background:var(--glass);border:1px solid rgba(255,255,255,0.03);min-width:180px}
.toggle{display:flex;gap:8px;background:transparent}
.btn{padding:8px 12px;border-radius:10px;background:linear-gradient(90deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.04);cursor:pointer}
.grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:var(--gap)}
.card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02)); border-radius:var(--radius); overflow:hidden; border:1px solid rgba(255,255,255,0.03); box-shadow: 0 6px 18px rgba(2,6,23,0.6);
  display:flex; flex-direction:column; min-height:220px; text-align:center;}
.card .media{height:160px; background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; font-size:60px; color:white;}
.card .media i {font-size: 60px; color: white}
.card .content{padding:14px; display:flex;flex-direction:column;gap:8px}
.meta{display:flex;justify-content:space-between;align-items:center}
.title{font-weight:600}
.desc{color:var(--muted);font-size:13px}
.status{padding:6px 8px;border-radius:999px;font-size:12px}
.status.finished{background:rgba(79,70,229,0.12); color:var(--accent);border:1px solid rgba(79,70,229,0.12)}
.status.ongoing{background:rgba(245,158,11,0.08); color:#f59e0b; border:1px solid rgba(245,158,11,0.06)}
.card .actions{display:flex;gap:10px;margin-top:auto;justify-content:center}
.link-btn{display:inline-block;padding:8px 10px;border-radius:10px;text-decoration:none;border:1px solid rgba(255,255,255,0.04);background:linear-gradient(180deg,rgba(255,255,255,0.01),rgba(0,0,0,0.02));}
footer{margin-top:26px;color:var(--muted);font-size:13px;display:flex;justify-content:space-between;align-items:center}
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,0.6);z-index:60}
.modal .box{max-width:94%;max-height:90%;border-radius:12px;overflow:hidden}
.modal img{display:block;max-width:100%;max-height:100%}
.social-icons {display: flex;gap: 10px;font-size: 20px;}
.social-icons a {color: var(--muted);transition: color 0.2s;}
.social-icons a:hover {color: var(--accent);}
@media (max-width:1000px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ body{padding:18px} header{flex-direction:column;align-items:flex-start;gap:12px} .grid{grid-template-columns:1fr} .logo .hex{width:44px;height:44px} .controls {flex-direction: column;align-items: stretch;gap: 8px;width: 100%;} .controls .search {width: 100%;} .controls .toggle {justify-content: flex-start;}}