:root{
  --bg:#0b0f14;
  --accent:#3b82f6;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --glass:rgba(0,0,0,.35);
  --stroke:rgba(255,255,255,.10);
  --danger:#ef4444;
  --shadow:0 20px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  background: radial-gradient(1200px 600px at top, #0f172a 0%, #020617 60%), var(--bg);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
}

a{color:inherit;text-decoration:none}

.container{width:min(1200px,92vw);margin:0 auto}

.topbar{
  position:sticky;top:0;z-index:20;
  background:rgba(2,6,23,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(12px);
}

.topbar-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;align-items:center;gap:12px;
  font-weight:800;letter-spacing:.2px;
}

.logo{
  width:38px;height:38px;border-radius:12px;
  background:linear-gradient(135deg, rgba(59,130,246,.35), rgba(59,130,246,.08));
  border:1px solid rgba(59,130,246,.35);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 28px rgba(0,0,0,.5);
}

.logo i{font-size:18px;color:#93c5fd}

.brand small{display:block;font-weight:600;color:var(--muted);letter-spacing:0}

.actions{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;
}

.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  font-size:12px;font-weight:700;
}

.pill .dot{
  width:8px;height:8px;border-radius:50%;
  background:#fff;animation:pulse 1.2s infinite;
}

.pill.live{
  color:#fff;
  background:linear-gradient(135deg,#ef4444,#dc2626);
  border-color:rgba(255,255,255,.18);
}

@keyframes pulse{
  0%{transform:scale(.8);opacity:.5}
  50%{transform:scale(1);opacity:1}
  100%{transform:scale(.8);opacity:.5}
}

.hero{padding:34px 0 20px}

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}

.card{
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.hero-left{padding:20px}

.kicker{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 12px;border-radius:999px;
  background:rgba(59,130,246,.12);
  border:1px solid rgba(59,130,246,.28);
  color:#93c5fd;
  font-weight:800;font-size:12px;
}

.kicker i{font-size:14px}

.hero h1{
  margin:14px 0 10px;
  font-size:clamp(24px,3.2vw,40px);
  line-height:1.08;
  letter-spacing:-.2px;
}

.hero p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}

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

.stat{
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px 12px;
}

.stat .v{
  font-size:16px;font-weight:900;color:#fff;
}

.stat .k{
  margin-top:4px;
  font-size:12px;font-weight:700;
  color:var(--muted);
}

.hero-right{
  padding:18px;
  display:flex;flex-direction:column;gap:12px;
}

.search{
  display:flex;gap:10px;flex-wrap:wrap;
}

.input{
  flex:1;
  min-width:220px;
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.10);
}

.input i{color:#93c5fd}

.input input{
  width:100%;
  border:none;outline:none;
  background:transparent;
  color:var(--text);
  font-size:14px;
}

.select{
  min-width:170px;
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
}

.select i{color:#93c5fd}

.select select{
  width:100%;
  border:none;outline:none;
  background:transparent;
  color:var(--text);
  font-size:14px;
  appearance:none;
}

.btn{
  appearance:none;
  cursor:pointer;
  color:#fff;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  padding:10px 12px;
  border-radius:14px;
  font-weight:800;
  font-size:12px;
  display:inline-flex;align-items:center;gap:10px;
  transition:transform .06s ease, background .2s ease;
}

.btn:active{transform:scale(.98)}
.btn:hover{background:rgba(255,255,255,.14)}

.btn.primary{
  background:rgba(59,130,246,.22);
  border-color:rgba(59,130,246,.35);
}

.btn.primary:hover{background:rgba(59,130,246,.30)}

.btn i{font-size:16px;line-height:0}

.notice{
  background:rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.25);
  border-radius:16px;
  padding:12px;
  color:#fecaca;
  font-size:12px;
  line-height:1.45;
}

.notice strong{color:#fff}

.notice-blue{
  background:rgba(59,130,246,.10);
  border-color:rgba(59,130,246,.25);
  color:#bfdbfe;
}

.section{padding:10px 0 34px}

.section-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;
  margin:16px 0 12px;
}

.section-head h2{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
}

.section-head p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.item{padding:14px}

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

.item h3{
  margin:0;
  font-size:15px;
  letter-spacing:.2px;
}

.meta{
  margin-top:6px;
  display:flex;gap:10px;flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.meta span{display:inline-flex;align-items:center;gap:6px}
.meta i{color:#93c5fd}

.tag{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--muted);
}

.tag.live{
  background:linear-gradient(135deg,#ef4444,#dc2626);
  border-color:rgba(255,255,255,.18);
  color:#fff;
}

.item-actions{
  margin-top:12px;
  display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;
}

.small{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.footerbar{
  padding:22px 0 34px;
  color:var(--muted);
  font-size:12px;
  border-top:1px solid rgba(255,255,255,.08);
}

.footerbar .row{
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
}

.modal{
  position:fixed;inset:0;
  display:none;
  align-items:center;justify-content:center;
  z-index:50;
  background:rgba(0,0,0,.70);
  backdrop-filter:blur(10px);
  padding:20px;
}

.modal.show{display:flex}

.modal-card{
  width:min(1100px,96vw);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  box-shadow:0 30px 70px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
  overflow:hidden;
}

.modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 16px;
  background:rgba(0,0,0,.38);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.modal-title{
  display:flex;align-items:center;gap:12px;
  font-weight:900;
  letter-spacing:.2px;
}

.modal-title small{
  display:block;
  font-weight:700;
  color:var(--muted);
  margin-top:2px;
}

.modal-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.iconbox{
  width:38px;height:38px;border-radius:12px;
  background:rgba(59,130,246,.16);
  border:1px solid rgba(59,130,246,.28);
  display:flex;align-items:center;justify-content:center;
}

.iconbox i{color:#93c5fd;font-size:18px}

.btn.icon{
  padding:10px 12px;
  border-radius:14px;
}

.video-wrap{
  position:relative;
  background:#000;
}

video{
  width:100%;
  aspect-ratio:16/9;
  display:block;
  background:#000;
}

.loader{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(4px);
  pointer-events:none;
  transition:opacity .25s ease;
}

.loader.hide{opacity:0; display:none}

.spinner{
  width:48px;height:48px;
  border:4px solid rgba(255,255,255,.2);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin 1s linear infinite;
}

@keyframes spin{to{transform:rotate(360deg)}}

.controls{
  position:absolute;
  left:12px; right:12px; bottom:12px;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(10px);
  border-radius:14px;
  padding:10px 10px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:opacity .25s ease;
}

.controls-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.left,.right{display:flex;align-items:center;gap:10px}

.progress{
  width:100%;
  height:8px;
  background:rgba(255,255,255,.14);
  border-radius:999px;
  position:relative;
  cursor:pointer;
  overflow:hidden;
}

.progress .fill{
  width:0%;
  height:100%;
  background:linear-gradient(90deg, rgba(59,130,246,.9), rgba(147,197,253,.95));
}

.progress .knob{
  position:absolute;
  top:50%;
  transform:translate(-50%,-50%);
  left:0%;
  width:14px; height:14px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.5);
  opacity:.95;
}

.time{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
  min-width:110px;
  text-align:right;
}

@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(3,1fr)}
  .grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:640px){
  .grid{grid-template-columns:1fr}
  .topbar-inner{gap:10px}
  .actions{justify-content:flex-start}
  .stats{grid-template-columns:1fr}
  .hero-left{padding:16px}
  .hero-right{padding:16px}
  .time{min-width:auto}
}