:root{
  --bg0:#050814;
  --bg1:#0b1220;
  --glass:rgba(255,255,255,.06);
  --glass2:rgba(255,255,255,.085);
  --stroke:rgba(255,255,255,.14);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --muted2:rgba(255,255,255,.55);

  --teal:#19d3c5;
  --indigo:#6d5efc;
  --gold:#ffb703;
  --rose:#ff4d8d;
  --good:#32d296;
  --warn:#ffd166;
  --info:#60a5fa;

  --shadow: 0 22px 55px rgba(0,0,0,.55);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);
  --r: 18px;
  --r2: 26px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(25,211,197,.18), transparent 58%),
    radial-gradient(900px 520px at 88% 8%, rgba(109,94,252,.18), transparent 58%),
    radial-gradient(760px 520px at 76% 86%, rgba(255,77,141,.14), transparent 58%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 55%, var(--bg0) 100%);
}

a{color:inherit;text-decoration:none}
.wrap{max-width:1200px;margin:0 auto;padding:22px 16px 70px}

/* ===== Top Nav ===== */
.topbar{
  position:sticky; top:0; z-index:50;
  margin: 0 0 14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: var(--shadow2);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding: 10px 12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight: 900; letter-spacing: .2px;
}
.brand .dot{
  width:12px;height:12px;border-radius:50%;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  box-shadow: 0 0 0 4px rgba(25,211,197,.18);
}
.nav{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
}
.nav a{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  font-weight: 800; font-size: 12.5px;
  color: rgba(255,255,255,.86);
}
.nav a:hover{background: rgba(255,255,255,.08); transform: translateY(-1px)}
.nav a.active{
  border-color: rgba(25,211,197,.32);
  background: linear-gradient(90deg, rgba(25,211,197,.18), rgba(109,94,252,.15));
}

/* ===== Hero ===== */
.hero{
  border:1px solid var(--stroke);
  border-radius: var(--r2);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  transform-style:preserve-3d;
}
.hero::before{
  content:"";
  position:absolute; inset:-3px;
  background:
    radial-gradient(680px 240px at 18% 18%, rgba(25,211,197,.25), transparent 60%),
    radial-gradient(680px 240px at 86% 10%, rgba(109,94,252,.22), transparent 60%),
    radial-gradient(640px 240px at 85% 92%, rgba(255,77,141,.14), transparent 60%);
  filter: blur(2px);
  pointer-events:none;
}
.hero-inner{position:relative;padding:22px 20px;display:grid;gap:12px}
.kicker{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.badge{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  font-weight: 800;
}
.badge .b-dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--teal);
  box-shadow:0 0 0 4px rgba(25,211,197,.18);
}
.badge.gold{border-color: rgba(255,183,3,.25); background: rgba(255,183,3,.10)}
.badge.gold .b-dot{background: var(--gold); box-shadow:0 0 0 4px rgba(255,183,3,.16)}
.title{
  margin:0;
  font-size: clamp(26px, 2.6vw, 42px);
  line-height:1.1;
  letter-spacing: -0.7px;
}
.subtitle{margin:0;color:var(--muted);font-size:15px;line-height:1.5;max-width:980px}

.meta-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px;margin-top:6px}
.meta{
  grid-column: span 12;
  border-radius: var(--r);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  padding: 12px 12px;
  display:flex; gap:12px; align-items:flex-start;
}
.meta .ico{
  width:34px;height:34px;border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  display:grid;place-items:center;
}
.meta strong{font-size:13px}
.meta p{margin:2px 0 0; color: var(--muted); font-size:13px; line-height:1.35}
@media(min-width:860px){.meta{grid-column: span 4;}}

/* ===== Cards ===== */
.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media(min-width:860px){.grid{grid-template-columns: 1fr 1fr;}}

.card{
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border-radius: var(--r);
  padding: 14px;
  position:relative;
  overflow:hidden;
  transform-style:preserve-3d;
  box-shadow: var(--shadow2);
}
.card::before{
  content:"";
  position:absolute; inset:-1px;
  background:
    radial-gradient(560px 180px at 18% 10%, rgba(25,211,197,.12), transparent 60%),
    radial-gradient(560px 180px at 92% 0%, rgba(109,94,252,.10), transparent 60%);
  pointer-events:none;
}
.card:hover{
  transform: translateY(-2px) rotateX(0.6deg) rotateY(-0.6deg);
}
.card-inner{position:relative}
.topline{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:8px}
.time{
  display:inline-flex; align-items:center; gap:8px;
  font-weight: 950; font-size: 12.8px; letter-spacing:.2px;
}
.tag{
  display:inline-flex; align-items:center;
  padding: 6px 10px; border-radius: 999px;
  font-weight: 950; font-size: 11.5px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.82);
}
.tag.keynote{border-color: rgba(255,183,3,.28); background: rgba(255,183,3,.10)}
.tag.panel{border-color: rgba(255,77,141,.26); background: rgba(255,77,141,.10)}
.tag.break{border-color: rgba(50,210,150,.24); background: rgba(50,210,150,.10)}
.tag.track{border-color: rgba(96,165,250,.28); background: rgba(96,165,250,.10)}
.tag.live{
  border-color: rgba(50,210,150,.35);
  background: rgba(50,210,150,.15);
  box-shadow: 0 0 0 4px rgba(50,210,150,.10);
}
.card h3{margin:0 0 8px; font-size: 15px; line-height:1.25; letter-spacing:-.2px}
.details{display:grid; gap:6px; color: var(--muted); font-size: 13px; line-height:1.35}
.details .line{display:flex; gap:8px}
.details b{color: rgba(255,255,255,.86); font-weight: 900}

/* LIVE highlight */
.card.is-live{
  border-color: rgba(50,210,150,.40);
  box-shadow: 0 26px 70px rgba(50,210,150,.12), var(--shadow2);
}
.card.is-next{
  border-color: rgba(255,209,102,.34);
  box-shadow: 0 26px 70px rgba(255,209,102,.10), var(--shadow2);
}
.countdown{
  margin-top: 10px;
  border-radius: 14px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  padding: 10px 12px;
  display:flex; gap:10px; align-items:center; justify-content:space-between;
}
.countdown small{color: var(--muted2)}
.countdown .big{font-weight: 950; letter-spacing:.2px}

/* ===== Sections + tools ===== */
.section{
  margin-top: 14px;
  border:1px solid var(--stroke);
  border-radius: var(--r2);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.section-head{
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
}
.section-head h2{margin:0;font-size:18px}
.section-head p{margin:6px 0 0; color: var(--muted); font-size:13.5px; line-height:1.5; max-width: 920px}
.tools{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.search{
  display:flex; align-items:center; gap:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  border-radius: 999px;
  padding: 8px 12px;
  min-width: 260px;
}
.search input{
  border:none; outline:none; background:transparent;
  color: var(--text);
  width: 100%;
  font-size: 13px;
}
.search input::placeholder{color: rgba(255,255,255,.48)}
.pill{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  padding: 8px 10px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 900; font-size:12px;
  color: rgba(255,255,255,.82);
}
.pill:hover{background: rgba(255,255,255,.08); transform: translateY(-1px)}

/* ===== Live Bar ===== */
.livebar{
  margin-top: 14px;
  border-radius: var(--r2);
  border: 1px solid rgba(50,210,150,.28);
  background: linear-gradient(90deg, rgba(50,210,150,.16), rgba(109,94,252,.10));
  box-shadow: 0 24px 70px rgba(50,210,150,.10);
  padding: 12px 14px;
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  flex-wrap:wrap;
}
.livebar .left{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.pulse{
  width:10px;height:10px;border-radius:50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(50,210,150,.45);
  animation: pulse 1.4s infinite;
}
@keyframes pulse{
  0%{box-shadow: 0 0 0 0 rgba(50,210,150,.35)}
  70%{box-shadow: 0 0 0 10px rgba(50,210,150,0)}
  100%{box-shadow: 0 0 0 0 rgba(50,210,150,0)}
}
.livebar strong{font-weight:950}
.livebar span{color: rgba(255,255,255,.86)}
.livebar small{color: var(--muted)}
.livebar .right{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.livebar .chip{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 950; font-size: 12px;
}

/* Footer */
.footer{
  margin-top: 16px;
  color: var(--muted2);
  font-size: 12px;
  text-align:center;
}
.footer .box{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius: var(--r2);
  padding: 14px;
}

/* Print */
@media print{
  body{background:#fff;color:#000}
  .topbar,.livebar,.tools{display:none!important}
  .hero,.section,.card{box-shadow:none!important;background:#fff}
}
