/* ============================================================
   閲覧履歴カード
   ============================================================ */

.vh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.vh-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--sh-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.vh-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-hover);
  border-color: var(--sky-mid);
}

.vh-thumb {
  width: 90px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a2e;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vh-no-thumb {
  font-size: 26px;
}

.vh-info {
  flex: 1;
  min-width: 0;
}
.vh-cat {
  font-size: 10px;
  color: var(--sky);
  font-weight: 700;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vh-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}
.vh-date {
  font-size: 11px;
  color: var(--text-3);
}

.vh-empty {
  text-align: center;
  color: var(--text-3);
  padding: 60px 0;
  font-size: 14px;
}

/* ===== 閲覧履歴ページ ===== */
.rireki-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}
.rireki-page .sec-head {
  margin-bottom: 24px;
}
.rireki-page .sec-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.rireki-page .sec-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.rireki-page .sec-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-left: 50px;
}

@media (max-width: 640px) {
  .vh-grid {
    grid-template-columns: 1fr;
  }
  .rireki-page {
    padding: 20px 16px 60px;
  }
}