/* ═══════════════════════════════════════════════════════════════════════════
   Real Estate Moguls — Episodes Archive (Netflix Homescreen)
   All classes prefixed rem-nx-
   ═══════════════════════════════════════════════════════════════════════════ */


/* Page-level background safety net */
.rem-main-content:has(.rem-nx-hero),
.rem-main-content:has(.rem-nx-row) {
  background: var(--authority, #0D1B2A);
}


/* ── HERO ────────────────────────────────────────────────────────────────── */

.rem-nx-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--authority, #0D1B2A);
  position: relative;
  border-bottom: 1px solid var(--accent, #C9A84C);
}
.rem-nx-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px 48px 56px;
}
.rem-nx-hero-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  align-self: center;
  position: relative;
}
.rem-nx-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(13,27,42,0) 50%, rgba(13,27,42,1) 100%);
  pointer-events: none;
}
.rem-nx-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rem-nx-hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.rem-nx-hero-badges span {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding: 4px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255, 0.08);
  border: 1px solid rgba(255,255,255, 0.08);
}
.rem-nx-hero-series {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #C9A84C);
  margin-bottom: 8px;
}
.rem-nx-hero-title {
  font-family: var(--font-display, 'Afacad', sans-serif);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 10px;
}
.rem-nx-hero-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255, 0.4);
  margin-bottom: 20px;
}
.rem-nx-hero-btns {
  display: flex;
  gap: 10px;
}
.rem-nx-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary, #29ABE2);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.rem-nx-hero-play:hover { background: #1e96c8; }
.rem-nx-hero-info {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255,255,255, 0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255, 0.12);
  transition: background 0.2s;
}
.rem-nx-hero-info:hover { background: rgba(255,255,255, 0.12); }


/* ── ROWS ────────────────────────────────────────────────────────────────── */

.rem-nx-row {
  padding: 36px 0 12px 56px;
  background: var(--authority, #0D1B2A);
}
.rem-nx-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 56px;
  margin-bottom: 18px;
}
.rem-nx-row-title {
  font-family: var(--font-display, 'Afacad', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.rem-nx-row-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.rem-nx-row-link:hover { color: #fff; }

.rem-nx-divider {
  height: 1px;
  background: rgba(255,255,255, 0.04);
  margin: 4px 56px;
}

.rem-nx-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 56px;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.rem-nx-scroll::-webkit-scrollbar { display: none; }


/* ── CARDS ────────────────────────────────────────────────────────────────── */

.rem-nx-card {
  flex-shrink: 0;
  width: 300px;
  cursor: pointer;
  transition: transform 0.2s;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
}
.rem-nx-card:hover { transform: translateY(-4px); }

.rem-nx-card--sm { width: 220px; }

.rem-nx-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a2f45, var(--slate, #4A5568));
  overflow: hidden;
  margin-bottom: 10px;
}
.rem-nx-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rem-nx-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(41,171,226, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.rem-nx-card:hover .rem-nx-card-play { opacity: 1; }

.rem-nx-card-dur {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0, 0.6);
  padding: 2px 6px;
  letter-spacing: 0.04em;
}

.rem-nx-card-series {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #29ABE2);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.rem-nx-card-title {
  font-family: var(--font-display, 'Afacad', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.rem-nx-card-host {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255, 0.35);
}

.rem-nx-card--sm .rem-nx-card-title { font-size: 14px; }
.rem-nx-card--sm .rem-nx-card-host { font-size: 10px; }


/* ── HOSTS ────────────────────────────────────────────────────────────────── */

.rem-nx-hosts {
  padding: 48px 56px 56px;
  background: var(--authority, #0D1B2A);
  border-top: 1px solid rgba(255,255,255, 0.06);
}
.rem-nx-hosts-eye {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #C9A84C);
  margin-bottom: 24px;
}
.rem-nx-hosts-grid {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rem-nx-hosts-grid::-webkit-scrollbar { display: none; }

.rem-nx-host-card {
  flex-shrink: 0;
  width: 160px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.rem-nx-host-card:hover { transform: translateY(-3px); }

.rem-nx-host-av {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent, #C9A84C);
  margin: 0 auto 12px;
  display: block;
}
.rem-nx-host-av--empty {
  background: var(--slate, #4A5568);
}

.rem-nx-host-name {
  font-family: var(--font-display, 'Afacad', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.rem-nx-host-role {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255, 0.35);
}
.rem-nx-host-count {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #29ABE2);
  margin-top: 6px;
}


/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .rem-nx-hero { grid-template-columns: 1fr; }
  .rem-nx-hero-text { padding: 32px 32px; }
  .rem-nx-hero-img { max-height: 360px; }
  .rem-nx-row { padding-left: 32px; }
  .rem-nx-row-head { padding-right: 32px; }
  .rem-nx-scroll { padding-right: 32px; }
  .rem-nx-divider { margin-left: 32px; margin-right: 32px; }
  .rem-nx-hosts { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 768px) {
  .rem-nx-hero-text { padding: 24px 24px; }
  .rem-nx-hero-title { font-size: 24px; }
  .rem-nx-hero-img { max-height: 280px; }
  .rem-nx-hero-btns { flex-wrap: wrap; }
  .rem-nx-row { padding-left: 24px; }
  .rem-nx-row-head { padding-right: 24px; }
  .rem-nx-scroll { padding-right: 24px; }
  .rem-nx-card { width: 260px; }
  .rem-nx-card--sm { width: 200px; }
  .rem-nx-divider { margin-left: 24px; margin-right: 24px; }
  .rem-nx-hosts { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 480px) {
  .rem-nx-hero-title { font-size: 22px; }
  .rem-nx-hero-meta { font-size: 11px; }
  .rem-nx-hero-badges span { font-size: 8px; padding: 3px 8px; }
}
