
:root {
  --bg:#070b12; --bg-2:#0b1220; --panel:#0f1625cc; --glass:rgba(255,255,255,.06);
  --text:#e6edf3; --muted:#9aa5b1; --brand:#0ea5e9; --brand-2:#2563eb; --accent:#22d3ee;
  --card:#0d1524; --border:#1b2434; --ring:#6ee7ff66; --shadow:0 18px 60px rgba(0,0,0,.45);
  --radius-xl:22px; --radius-lg:18px; --radius-md:14px;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto;line-height:1.6;color:var(--text);background:var(--bg);
  background-image:radial-gradient(1000px 600px at 110% -10%,#0ea5e944 0%,transparent 60%),
                   radial-gradient(900px 520px at -20% -20%,#8b5cf633 0%,transparent 60%),
                   radial-gradient(1100px 620px at 20% 120%,#06b6d433 0%,transparent 60%);}
a{text-decoration:none;color:inherit}
.container{width:min(1240px,92vw);margin:0 auto;}
/* Top */
.topbar{position:sticky;top:0;z-index:60;backdrop-filter:blur(14px) saturate(1.3);background:linear-gradient(90deg,#8b5cf61a,#06b6d41a),var(--panel);border-bottom:1px solid var(--border)}
.topbar .row{display:flex;align-items:center;gap:16px;padding:12px 0}
.logo{display:flex;align-items:center;gap:12px;font-weight:800}
.logo i{width:30px;height:30px;border-radius:10px;background:conic-gradient(from 90deg,var(--brand),var(--brand-2),var(--accent));box-shadow:inset 0 0 0 2px #ffffff22,0 8px 20px #00000055}
.wordmark{font-family:Orbitron,Inter,system-ui;letter-spacing:.6px}
.search .search-field{width:100%;background:var(--glass);color:var(--text);border:1px solid var(--border);border-radius:14px;padding:12px 14px;outline:none;transition:border .2s,box-shadow .2s;box-shadow:var(--shadow)}
.search .search-field:focus{border-color:var(--brand);box-shadow:0 0 0 6px var(--ring)}
.actions{display:flex;gap:10px}
.btn{border:1px solid var(--border);background:linear-gradient(180deg,#ffffff07,#00000010);color:var(--text);padding:10px 14px;border-radius:12px;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.btn.primary{background:linear-gradient(90deg,var(--brand-2),var(--brand));border:none;color:#fff}
.nav{display:flex;gap:12px;flex-wrap:wrap;padding:8px 0 16px}
.chip{font-size:13px;padding:8px 12px;border:1px solid var(--border);border-radius:999px;color:var(--muted);background:var(--glass)}
.chip.active{color:#fff;background:linear-gradient(90deg,var(--brand-2),var(--brand));border-color:transparent;box-shadow:0 6px 20px #00f0ff33}

/* Elegant small top-only 3D (hover triggers motion) */
.mast3d{position:relative;height:clamp(80px,10vw,120px);margin:10px 0 6px;perspective:900px}
.text3d{position:relative;height:100%;display:grid;place-items:center;transform-style:preserve-3d;transition:transform .2s ease-out}
.text3d .layer{position:absolute;will-change:transform;font-family:Orbitron,Inter,system-ui;font-weight:800;letter-spacing:.6px;font-size:clamp(26px,6vw,72px);line-height:1;color:transparent;-webkit-text-stroke:2px #67e8f9cc;text-shadow:0 0 12px #22d3ee40;filter:drop-shadow(0 8px 18px rgba(0,0,0,.3));transform:translateZ(calc(var(--i)*1.2px))}
.text3d .layer.top{color:#fff;background:linear-gradient(90deg,var(--brand),var(--brand-2));-webkit-background-clip:text;background-clip:text;-webkit-text-stroke:0;text-shadow:0 4px 18px #00e5ff44,0 0 20px #2563eb33}
.mast3d:hover .text3d{transform:rotateX(6deg) rotateY(6deg)}
@media (prefers-reduced-motion:reduce){.mast3d:hover .text3d{transform:none}}

/* Ticker */
.ticker{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:22px;background:linear-gradient(90deg,#ff1843,#f59e0b);box-shadow:var(--shadow)}
.ticker .label{position:absolute;inset:0 auto 0 0;width:120px;background:#00000050;display:flex;align-items:center;justify-content:center;font-weight:700}
.ticker .stream{white-space:nowrap;animation:slide 28s linear infinite;padding-left:130px;font-weight:600}@keyframes slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* Grid & Cards */
.grid{display:grid;grid-template-columns:2.2fr 1fr;gap:26px}
@media(max-width:1024px){.grid{grid-template-columns:1fr}}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.cards{grid-template-columns:1fr}}
.card{background:linear-gradient(180deg,#ffffff06,#00000016);border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.ratio-16x9{position:relative}
.ratio-16x9::before{content:"";display:block;padding-top:56.25%}
.ratio-16x9 > .thumb-link, .ratio-16x9 img{position:absolute;inset:0;width:100%;height:100%}
.fit{object-fit:cover;width:100%;height:100%;border-radius:0}
.body{padding:16px;display:flex;flex-direction:column;gap:10px}
h3{margin:0;font-size:clamp(16px,1.35vw,19px)}
.excerpt{color:var(--muted);font-size:14px}
.ai-actions{display:flex;gap:8px;flex-wrap:wrap}
.ai-btn{font-size:12px;padding:7px 9px;border:1px dashed var(--border);border-radius:10px;background:#00000020}

/* Sidebar & Footer */
.widget{background:linear-gradient(180deg,#ffffff06,#00000016);border:1px solid var(--border);border-radius:18px;padding:16px;margin-bottom:18px;box-shadow:var(--shadow)}
footer{margin:34px 0 80px;color:var(--muted);display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}

/* Utils */
.section-title{display:flex;align-items:center;justify-content:space-between;margin:18px 0}
.under{height:2px;background:linear-gradient(90deg,var(--brand-2),var(--brand));border-radius:999px;box-shadow:0 8px 26px #00e5ff44}
.row{display:flex}.center{align-items:center}.gap-8{gap:8px}.mb-16{margin-bottom:16px}.mb-20{margin-bottom:20px}.mt-16{margin-top:16px}
.toast{position:fixed;bottom:20px;right:20px;background:var(--panel);border:1px solid var(--border);color:var(--text);padding:12px 14px;border-radius:12px;box-shadow:var(--shadow);display:none;max-width:360px}
