* { box-sizing: border-box; }
body {
  margin: 0;
  background: #1E1F22;
  color: #F2F3F5;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}
.wrap { width: 100%; max-width: 420px; }
.brand { text-align: center; margin-bottom: 20px; }
.brand-title { font-size: 22px; font-weight: 800; color: #F2F3F5; }
.brand-sub { font-size: 13px; color: #B5BAC1; margin-top: 4px; }

.card {
  background: #2B2D31;
  border: 1px solid #3F4147;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 20px 35px -18px rgba(0,0,0,.42);
}

.lbl { display: block; font-size: 13px; color: #B5BAC1; margin-bottom: 6px; }
.inp {
  width: 100%;
  background: #2B2D31;
  border: 1px solid #3F4147;
  color: #F2F3F5;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: inherit;
}
.inp:focus { outline: none; border-color: #5865F2; box-shadow: 0 0 0 3px rgba(88,101,242,.22); }

.btn {
  width: 100%;
  border: 1px solid #3F4147;
  background: #2B2D31;
  color: #F2F3F5;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn.primary { background: #5865F2; border-color: #5865F2; color: #fff; }
.btn.primary:hover { background: #4752C4; border-color: #4752C4; }
.btn.ghost { background: transparent; color: #B5BAC1; width: auto; padding: 8px 12px; }
.btn.ghost:hover { background: #35373C; color: #F2F3F5; }
.btn.sm { font-size: 12px; }

.error-banner {
  background: #2B1414;
  border: 1px solid rgba(248,113,113,.4);
  color: #F87171;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}

.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-name { font-size: 17px; font-weight: 800; }
.dash-id { font-size: 18px; font-weight: 800; color: #F2F3F5; margin-top: 4px; }

.progress-row { margin-bottom: 16px; }
.progress-label { font-size: 13px; color: #F2F3F5; margin-bottom: 6px; }
.progress-bar { height: 8px; background: #232428; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: #5865F2; width: 0%; transition: width .25s ease; }

#add-video-box { margin-bottom: 14px; }

.quota-done {
  text-align: center;
  color: #34D399;
  background: #0F2A20;
  border: 1px solid rgba(52,211,153,.35);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.videos-list { display: flex; flex-direction: column; gap: 8px; }
.video-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #232428;
  border: 1px solid #3F4147;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
}
.video-item a { flex: 1; color: #5865F2; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.icon-btn-sm {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #3F4147;
  color: #B5BAC1;
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 12px;
  cursor: pointer;
}
.icon-btn-sm:hover { border-color: #F87171; color: #F87171; }
.video-item .video-num { color: #B5BAC1; flex-shrink: 0; }
