:root{
  --bg:#0b0c10;
  --card:#14161d;
  --text:#e8eaf0;
  --muted:#a7adbd;
  --accent:#4f7cff;
  --border:#262a36;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:var(--bg);
  color:var(--text);
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
code{background:#0f1117; border:1px solid var(--border); padding:2px 6px; border-radius:8px; color:var(--text)}
.topbar{
  position:sticky; top:0;
  background:#0f1117;
  border-bottom:1px solid var(--border);
  padding:12px 16px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand-link{color:var(--text); font-weight:700}
.nav a{margin-left:12px; color:var(--muted)}
.container{max-width:1100px; margin:20px auto; padding:0 16px;}
.footer{max-width:1100px; margin:24px auto; padding:0 16px; color:var(--muted); font-size:12px;}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.25);
}
h1{margin:0 0 10px 0; font-size:20px}
h2{margin:0 0 10px 0; font-size:16px; color:var(--text)}
.muted{color:var(--muted); font-size:13px; line-height:1.4}
.alert{
  background:#2a1d1d;
  border:1px solid #503030;
  color:#ffd2d2;
  padding:10px;
  border-radius:10px;
  margin:10px 0;
}
.form{display:flex; flex-direction:column; gap:10px}
label{font-size:13px; color:var(--muted)}
input[type="text"], input[type="password"], textarea, select{
  width:100%;
  background:#0f1117;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  color:var(--text);
  outline:none;
}
input[type="file"]{color:var(--muted)}
textarea{resize:vertical}
button, .btn-secondary{
  border:none;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:600;
}
button{background:var(--accent); color:white}
.btn-secondary{
  background:#202433;
  color:var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:10px 12px;
}
.row{display:flex; gap:10px; align-items:center}
.row2{display:grid; grid-template-columns: 1fr 180px; gap:10px}
.grid{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
@media (max-width: 900px){ .grid{grid-template-columns:1fr} .row2{grid-template-columns:1fr} }
.list{display:flex; flex-direction:column; gap:10px}
.list-item{border:1px solid var(--border); border-radius:12px; padding:12px; display:flex; justify-content:space-between; gap:10px}
.list-title{font-weight:700}
.list-sub{font-size:12px; color:var(--muted); margin-top:4px}
.viewer{display:grid; grid-template-columns: 1.3fr 0.7fr; gap:14px}
@media (max-width: 1000px){ .viewer{grid-template-columns:1fr} }
.player-wrap{background:#000; border-radius:12px; overflow:hidden; border:1px solid var(--border)}
video{width:100%; height:auto; display:block}
.comments{display:flex; flex-direction:column; gap:10px}
.comment{border:1px solid var(--border); border-radius:12px; padding:10px; background:#0f1117}
.comment-head{display:flex; align-items:center; gap:10px; margin-bottom:6px}
.timechip{
  background:#202433;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
}
.author{font-weight:700; font-size:12px}
.date{margin-left:auto; color:var(--muted); font-size:12px}
.comment-body{white-space:pre-wrap; font-size:13px; line-height:1.35}
