/* Hero carousel — Cinematic Black & Gold (phần 2/9, tách từ main.css). */
/* Thứ tự nạp (cascade) của bộ: base → hero → cards → movie → watch → account → categories → search → chrome → motion. */
/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-secondary);
}
@media (min-width: 1024px) {
  /* Laptop 768px cao (1024/1366×768): hero không được chiếm trọn màn hình đầu */
  .hero { height: min(860px, 86svh); max-height: none; }
}
.hero-bg { position: absolute; inset: 0; }
/* Ảnh poster được phóng to phủ hero, bám cạnh trên và mờ dần (gradient opacity) xuống dưới.
   opacity/transition do motion.css quản (ảnh hiện khi .is-loaded + .is-active) */
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 92%);
}
/* Lớp nền tối đá hero: đảm bảo chữ luôn đọc được khi ảnh đã mờ hết ở phần dưới */
.hero-scrim-base {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, #131313 0%, rgba(19, 19, 19, 0.55) 38%, rgba(19, 19, 19, 0) 72%);
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 128px var(--gutter) 40px;
}
/* Slide nội dung hero: slide không .is-active ẩn bằng thuộc tính hidden (không set display
   trên class để không vô hiệu hoá hidden — xem MEM-002); lần bật .is-active chạy animation nhập */
.hero-slide.is-active { animation: heroSlideIn 480ms ease both; }
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(42, 42, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  margin-bottom: var(--space-md);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }
.hero-badge-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-badge-sub { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-secondary); margin-top: var(--space-sm); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.03em; }
.hero-genre-chip {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--gold-bright);
  font-weight: 600;
}
.hero-quality-chip {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--graphite);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}
.hero-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; }
.hero-desc {
  color: var(--text-secondary);
  max-width: 672px;
  margin-top: var(--space-md);
  font-size: 16px;
  line-height: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-lg); }
/* Hàng điều khiển carousel + teaser "Tiếp theo trong tuần" (Stitch p01) */
.hero-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
}
.hero-dots { display: flex; align-items: center; gap: var(--space-xs); }
/* Vùng chạm 24×24 (chuẩn target size); chấm visual 10×6 vẽ bằng background-clip */
.hero-dot {
  width: 24px; height: 24px;
  padding: 9px 7px;
  border-radius: 999px;
  background-color: var(--graphite);
  background-clip: content-box;
  transition: background-color 200ms ease, width 200ms ease;
}
.hero-dot:hover { background-color: var(--text-muted); background-clip: content-box; }
.hero-dot.is-active { width: 46px; background-color: var(--gold); }
.hero-dots-count { margin-left: var(--space-sm); color: var(--text-muted); font-size: 11px; line-height: 14px; letter-spacing: 0.03em; }
.hero-next { display: none; align-items: center; gap: var(--space-md); }
@media (min-width: 640px) { .hero-next { display: flex; } }
.hero-next-label { color: var(--text-muted); font-size: 11px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
/* display:inline-flex của class át rộng [hidden] mặc định — phải tự ẩn tường minh (MEM-002) */
.hero-next-pill[hidden] { display: none; }
.hero-next-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(42, 42, 42, 0.6);
  color: var(--text);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-next-pill:hover { background: var(--interactive); color: var(--text); }
.hero-next-pill:last-child { color: var(--text-secondary); }
.hero-next-pill:last-child .hero-next-dot { background: var(--text-muted); }
.hero-next-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-ep-name { color: var(--text-secondary); opacity: 0.8; }
.hero-empty { min-height: 420px; background: radial-gradient(1200px 400px at 50% 0%, rgba(255, 184, 0, 0.07), var(--bg-secondary)); }
.hero-empty .hero-title { color: var(--gold-bright); }
