/* ── Hero ── */
.live-hero {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
}

.live-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1f7a67;
  background: #ecf8f2;
  border: 1px solid #b7dfc9;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  margin-bottom: 0.65rem;
}

.live-hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text);
  margin: 0;
}

.live-hero p {
  margin: 0.45rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 55ch;
}

.live-stats {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.live-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  min-width: 130px;
}

.live-stat span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.live-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.1rem;
}

/* ── Filters ── */
.live-filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.live-filter-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 0.6rem;
  align-items: end;
}

.live-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.live-field input,
.live-field select {
  width: 100%;
  padding: 0.52rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}

.live-field input:focus,
.live-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13,59,102,0.1);
}

.live-filter-actions {
  display: flex;
  gap: 0.4rem;
  align-items: flex-end;
}

.live-result-count {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Grid ── */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.live-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.live-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.live-card-img-link {
  display: block;
  line-height: 0;
  background: #f2ece0;
}

.live-card-img-link:hover { text-decoration: none; }

.live-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.live-card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #f2ece0, #e8dfc8);
}

.live-card-body {
  flex: 1;
  padding: 0.75rem;
}

.live-card-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-card-title a {
  color: var(--text);
  text-decoration: none;
}

.live-card-title a:hover { color: var(--brand); }

.live-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.4rem;
}

.lc-chip {
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--muted);
}

.lc-chip-grade {
  background: var(--accent-soft);
  border-color: #e8d9b5;
  color: #6c4715;
}

.live-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.live-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.live-card-buy {
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  background: linear-gradient(180deg, #1f7a67 0%, #166b59 100%);
  border-color: #166b59;
}

.live-card-buy:hover {
  background: #166b59;
}

.live-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.live-empty p { margin: 0.2rem 0; color: var(--muted); font-size: 0.92rem; }
.live-empty p:first-child { color: var(--text); }

/* ── Mobile ── */
@media (max-width: 760px) {
  .live-hero {
    text-align: left;
    padding: 1rem 0.5rem 0.5rem;
  }

  .live-hero h1 { font-size: 1.6rem; }
  .live-hero p { margin-left: 0; }

  .live-stats { justify-content: flex-start; }
  .live-stat { min-width: 0; flex: 1; }

  .live-filter-panel { margin: 0 0.5rem 0.75rem; }

  .live-filter-form {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .live-filter-form .live-field:first-child { grid-column: span 2; }
  .live-filter-actions { grid-column: span 2; }

  .live-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  .live-card-img { height: 160px; }
  .live-card-img-placeholder { height: 160px; }

  .live-card-body { padding: 0.55rem; }
  .live-card-title { font-size: 0.8rem; }
  .live-card-footer { padding: 0.45rem 0.55rem; }
  .live-card-price { font-size: 0.95rem; }
  .live-card-buy { font-size: 0.75rem; padding: 0.35rem 0.55rem; }
}
