:root{
  --bg:#0b1020;
  --card:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.12);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --accent:#7dd3fc;
  --radius:16px;
  --shadow:0 18px 60px rgba(0,0,0,.45);
  --mono:ui-monospace,Menlo,Consolas,monospace;
  --sans:ui-sans-serif,system-ui,Segoe UI,Roboto,Arial;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--sans);
  background:radial-gradient(1000px 600px at 20% 0%, rgba(125,211,252,.10), transparent 60%),
             var(--bg);
  color:var(--text);
}

.bar{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--stroke);
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.65);
}

.brand{display:flex; align-items:center; gap:12px;}
.dot{width:10px;height:10px;border-radius:999px;background:var(--accent);box-shadow:0 0 18px rgba(125,211,252,.55);}
.title{font-weight:700}
.sub{color:var(--muted); font-size:12px; margin-top:2px;}

.controls{display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
.field{
  background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  border-radius:999px;
  padding:8px 10px;
  color:var(--text);
  outline:none;
  min-width:140px;
}
.field:focus{border-color:rgba(125,211,252,.55)}

.btn{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  user-select:none;
}
.btn:hover{border-color:rgba(125,211,252,.55)}
.btn:disabled{opacity:.45; cursor:not-allowed}
.btn.on{border-color:rgba(125,211,252,.85); box-shadow:0 0 0 3px rgba(125,211,252,.12) inset;}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
  display:grid;
  gap:16px;
}

.panel{
  border:1px solid var(--stroke);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.panelHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--stroke);
}
.panelTitle{font-weight:700}
.hint{color:var(--muted); font-size:12px;}
.panelBtns{display:flex; gap:8px; align-items:center; flex-wrap:wrap;}

.status{
  padding:10px 14px;
  border-top:1px solid var(--stroke);
  color:var(--muted);
  font-family:var(--mono);
  font-size:12px;
  white-space:pre-wrap;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:12px;
  padding:14px;
}

.tile{
  position:relative;
  border:1px solid var(--stroke);
  border-radius:14px;
  overflow:hidden;
  background:rgba(0,0,0,.25);
  aspect-ratio: 16 / 10;
}

.tile video, .tile audio{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.tag{
  position:absolute;
  top:10px; left:10px;
  padding:6px 8px;
  border-radius:999px;
  font-size:12px;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.18);
  z-index:2;
}
