/* 我的档案：稍后看 / 最近看过。独立文件，不改动共享 css。 */
.retention-me {
  margin: 28px 0 8px;
  padding: 18px 18px 6px;
  border: 1px solid rgba(78, 92, 136, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
}

.retention-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.retention-head small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #8a8f7d;
}

.retention-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
  color: #3c4665;
}

.retention-block {
  margin: 16px 0 14px;
}

.retention-block h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #4e5c88;
}

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

.retention-item {
  position: relative;
  min-width: 0;
}

.retention-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.retention-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #ecebe2;
}

.retention-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12.5px;
  line-height: 1.35;
  color: #3c4665;
}

.retention-meta {
  overflow: hidden;
  font-size: 11px;
  color: #8a8f7d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.retention-empty {
  grid-column: 1 / -1;
  margin: 2px 0 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #8a8f7d;
}

.retention-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(30, 34, 48, .62);
  color: #fff;
  font-size: 10.5px;
  cursor: pointer;
}

.retention-remove:disabled {
  opacity: .6;
  cursor: default;
}

@media (max-width: 520px) {
  .retention-me {
    padding: 14px 14px 2px;
    border-radius: 14px;
  }

  .retention-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
  }
}

/* ---------- B4：锁定预览（空态结构化卡片） ---------- */
.lock-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 14px;
  text-align: center;
  color: #788294;
}
.lock-preview-visual {
  font-size: 28px;
  line-height: 1;
  opacity: .55;
}
.lock-preview-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #4a5468;
}
.lock-preview-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #8b95a5;
}

/* ---------- B2：favorites recent → /history 引导卡片 ---------- */
.me-recent-guide {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(74, 84, 104, .18);
  background: rgba(244, 241, 232, .55);
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
}
.me-recent-guide:hover {
  background: rgba(231, 201, 120, .18);
}
.me-recent-guide-title {
  font-size: 13px;
  font-weight: 600;
  color: #4a5468;
}
.me-recent-guide-hint {
  font-size: 12px;
  color: #8b95a5;
}

