:root { --bg:#0b0f14; --card:#121824; --muted:#9aa4b2; --txt:#e6edf3; --accent:#4f8cff; --danger:#ff5c5c; }
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, #162033 0%, var(--bg) 55%);
  color:var(--txt);
}
.wrap{max-width:920px;margin:0 auto;padding:28px 16px 50px}
.header{margin-bottom:18px}
h1{margin:0 0 6px;font-size:28px}
.muted{color:var(--muted)}
.card{
  background:rgba(18,24,36,0.92);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:16px;
  padding:16px;
  margin:14px 0;
  box-shadow:0 8px 30px rgba(0,0,0,0.25);
}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.rowBetween{justify-content:space-between}
.label{display:block;margin-bottom:8px;font-size:12px;letter-spacing:0.06em;text-transform:uppercase;color:#cbd5e1}
.input{
  flex:1;
  min-width:240px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.09);
  background:rgba(0,0,0,0.25);
  color:var(--txt);
  outline:none;
}
.input:focus{border-color:rgba(79,140,255,0.55)}
.btn{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.06);
  color:var(--txt);
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}
.btn:hover{background:rgba(255,255,255,0.1)}
.btn.primary{background:rgba(79,140,255,0.22);border-color:rgba(79,140,255,0.4)}
.btn.primary:hover{background:rgba(79,140,255,0.3)}
.btn.danger{background:rgba(255,92,92,0.18);border-color:rgba(255,92,92,0.35)}
.select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.09);
  background:rgba(0,0,0,0.25);
  color:var(--txt);
  outline:none;
}
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:12px 0 10px;
}
@media (max-width:720px){ .grid{grid-template-columns:1fr} }
.help{margin-top:6px;font-size:13px}
.msg{margin-top:10px;font-size:14px}
.msg.ok{color:#8ae99b}
.msg.err{color:#ff8b8b}
.msg.warn{color:#ffd27a}
.msg.info{color:#a8c7ff}
.meta{display:flex;gap:12px;align-items:flex-start}
.thumb{
  width:140px;height:78px;object-fit:cover;
  border-radius:12px;border:1px solid rgba(255,255,255,0.08);
  background:#000;
}
.title{font-size:18px;font-weight:650;margin-bottom:4px}
.progressWrap{margin-top:14px}
.bar{
  width:100%;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  overflow:hidden;
}
.barFill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, rgba(79,140,255,0.75), rgba(152,88,255,0.7));
  border-radius:999px;
  transition: width 0.25s ease;
}
.footer{margin-top:14px;font-size:13px}
.hidden{display:none !important}
code{background:rgba(255,255,255,0.08);padding:2px 6px;border-radius:8px}
