/* ============================================================
   huanleai.com - Card System (cards.css)
   ============================================================ */

/* Base Card */
.story-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.story-card:active { transform: scale(0.98); }

/* Card Cover */
.card-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg);
}
.card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.story-card:hover .card-cover img { transform: scale(1.05); }

/* Card Badges */
.card-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 10px; border-radius: 10px; font-size: 11px;
  font-weight: 700; z-index: 2; white-space: nowrap;
}
.card-badge.new { background: var(--orange); color: var(--white); }
.card-badge.vip {
  background: linear-gradient(135deg, var(--vip-gold), #FBBF24);
  color: #7C2D12; top: 8px; right: 8px; left: auto;
}
.card-badge.age {
  background: var(--purple-light); color: var(--purple);
  bottom: 8px; left: 8px; top: auto;
}

/* Card Body */
.card-body {
  padding: var(--card-padding);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.4; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.card-age-tag {
  display: inline-block; padding: 1px 8px; border-radius: 8px;
  font-size: 11px; background: var(--purple-light); color: var(--purple);
  font-weight: 500;
}

/* Audio card (horizontal variant for player lists) */
.audio-card {
  display: flex; gap: 12px; padding: 12px;
  background: var(--white); border-radius: 12px;
  align-items: center; transition: background 0.2s; cursor: pointer;
}
.audio-card:hover { background: var(--bg); }
.audio-card .audio-cover {
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--purple-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; overflow: hidden;
}
.audio-card .audio-cover img { width: 100%; height: 100%; object-fit: cover; }
.audio-card .audio-info { flex: 1; min-width: 0; }
.audio-card .audio-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-card .audio-meta { font-size: 12px; color: var(--text-muted); }
.audio-card .audio-play-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange-light); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

/* Placeholder cover */
.cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; background: linear-gradient(135deg, #FEF3C7, #FFEDD5);
}

/* Empty state */
.empty-state {
  text-align: center; padding: 48px 24px; color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }
