/* Entities & Editorial v2 (Actors, Collections, Reviews, Live Updates). Loaded on demand. */

/* =========================================================================
 * 1. Actor Profile v2 (.md-actor-detail)
 * ========================================================================= */
.md-actor-detail .md-actor-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  grid-template-columns: clamp(148px, 18vw, 208px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  border-radius: 22px;
  border: 1px solid var(--md-line);
  background:
    radial-gradient(circle at 12% 18%, rgb(225 29 72 / 12%), transparent 46%),
    linear-gradient(155deg, var(--md-surface) 0%, var(--md-bg) 100%);
  box-shadow: 0 16px 40px -14px rgb(0 0 0 / 45%);
}

.md-actor-detail .md-entity-poster--avatar {
  border-radius: 20px;
  border: 1px solid var(--md-line-strong);
  box-shadow: 0 18px 38px -10px rgb(0 0 0 / 55%);
}

.md-actor-detail .md-entity-copy h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: var(--md-letter-spacing-display, -0.028em);
  line-height: 1.12;
  margin: 0.35rem 0 0.6rem;
}

.md-actor-detail .md-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin: 1.15rem 0;
}

.md-actor-detail .md-fact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--md-line);
  background: var(--md-bg);
}

.md-actor-detail .md-fact dt {
  color: var(--md-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-transform: none;
}

.md-actor-detail .md-fact dd {
  color: var(--md-text);
  font-family: var(--md-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: break-word;
}

.md-actor-verified-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--md-line);
  background: var(--md-bg);
  color: var(--md-muted);
  font-size: 12px;
  font-weight: 600;
}

.md-actor-verified-stamp time {
  color: var(--md-text);
  font-weight: 700;
}

.md-actor-verified-stamp .md-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--md-success);
  box-shadow: 0 0 0 3px rgb(52 211 153 / 18%);
}

html[data-md-theme="light"] .md-actor-detail .md-actor-hero {
  background:
    radial-gradient(circle at 12% 18%, rgb(225 29 72 / 6%), transparent 46%),
    linear-gradient(155deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 10px 30px -12px rgb(24 24 27 / 10%);
}

html[data-md-theme="light"] .md-actor-detail .md-fact {
  background: #f4f4f5;
}

@media (max-width: 767px) {
  .md-actor-detail .md-actor-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 1.25rem;
    border-radius: 18px;
    gap: 1rem;
  }

  .md-actor-detail .md-entity-poster--avatar {
    width: 112px;
    max-width: 112px;
  }

  .md-actor-detail .md-entity-copy {
    min-width: 0;
    width: 100%;
  }

  .md-actor-detail .md-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .md-actor-detail .md-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================================
 * 2. Curated Collections v2 (.md-collection-hero, .md-collection-card)
 * ========================================================================= */
.md-collection-hero {
  width: var(--md-content);
  margin: 1rem auto 0;
  min-height: 320px;
  border-radius: 22px;
  border: 1px solid var(--md-line-strong);
  box-shadow: var(--md-shadow);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgb(9 9 11 / 95%) 10%, rgb(9 9 11 / 68%) 55%, rgb(9 9 11 / 38%) 100%),
    var(--md-collection-cover);
}

.md-collection-hero__inner {
  min-height: 320px;
  padding: clamp(2rem, 4vw, 3.25rem);
}

.md-collection-hero__inner h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  letter-spacing: var(--md-letter-spacing-display, -0.028em);
}

.md-collection-card {
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / 32%);
}

html[data-md-theme="light"] .md-collection-card {
  box-shadow: 0 6px 20px -6px rgb(24 24 27 / 8%);
}

/* =========================================================================
 * 3. Editorial Reviews & Live Updates v2
 * ========================================================================= */
.md-review-drama-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.md-review-drama-card__poster {
  display: block;
  width: 148px;
  aspect-ratio: var(--md-poster-aspect, 9 / 16);
  border-radius: 12px;
  border: 1px solid var(--md-line);
  overflow: hidden;
  box-shadow: var(--md-shadow-sm);
}

.md-review-drama-card__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-review-drama-card h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0.15rem 0 0;
}

.md-review-drama-card h2 a {
  color: var(--md-text);
  text-decoration: none;
}

.md-review-drama-card h2 a:hover {
  color: var(--md-brand);
}

.md-review-drama-card p {
  color: var(--md-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.md-review-drama-card__cta {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.md-update-timeline--archive .md-update-item {
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.md-update-timeline--archive .md-update-item:hover {
  border-color: var(--md-line-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgb(0 0 0 / 35%);
}

html[data-md-theme="light"] .md-update-timeline--archive .md-update-item:hover {
  box-shadow: 0 10px 24px -10px rgb(24 24 27 / 10%);
}
