/* 资源解锁：紧凑版（左二维码 + 右提示，输入框在下） */
.mv-resources .mv-res-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
  width: 100%;
  box-sizing: border-box;
}

/* 中部：左二维码 + 右提示语（不起新行） */
.mv-resources .mv-res-mid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.mv-resources .mv-res-qr { flex: 0 0 84px; }
.mv-resources .mv-res-qr img,
.mv-resources .mv-res-qr-empty {
  width: 84px;
  height: 84px;
  border-radius: 3px;
  background: #f2f2f2;
  display: block;
  object-fit: contain;
}
.mv-resources .mv-res-qr-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ddd;
  color: #999;
  font-size: 11px;
}
.mv-resources .mv-res-hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  word-break: break-word;
  padding-top: 2px;
}

/* 下部：输入框 + 按钮（同一行，高度小） */
.mv-resources .mv-res-bottom { width: 100%; }
.mv-resources .mv-res-form {
  display: flex;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}
.mv-resources .mv-res-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  line-height: 30px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 12px;
  box-sizing: border-box;
}
.mv-resources .mv-res-btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: #37a;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.mv-resources .mv-res-btn:hover { background: #2b6a99; }

.mv-resources .mv-res-msg { margin: 6px 0 0; font-size: 12px; color: #c33; min-height: 14px; }
.mv-resources .mv-res-list { margin: 8px 0 0; padding: 0; list-style: none; }
.mv-resources .mv-res-list li { margin: 0 0 5px; font-size: 12px; line-height: 1.5; }
.mv-resources .mv-res-link { color: #37a; text-decoration: none; word-break: break-all; }
.mv-resources .mv-res-link:hover { text-decoration: underline; }
.mv-resources .mv-res-list li[data-type="magnet"] .mv-res-link::after {
  content: " (磁力)";
  color: #999;
  font-size: 11px;
}

/* 极窄（<200px）：才允许换行 */
@container (max-width: 200px) {
  .mv-resources .mv-res-mid { flex-direction: column; align-items: center; text-align: center; }
  .mv-resources .mv-res-form { flex-wrap: wrap; }
}

/* 隐藏元素强制生效（避免被 display:flex 覆盖） */
.mv-resources [hidden],
.mv-resources .mv-res-mid[hidden] {
  display: none !important;
}
.mv-resources .mv-res-mid[style*="display: none"] {
  display: none !important;
}
.mv-resources .mv-res-list[hidden] {
  display: none !important;
}
