/* Mini-preview do layout Eterflix dentro do <aside id="previewAside"> do /memory/create.
   Seletores isolados em .eterflix-preview para não conflitar com o detail real. */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

.eterflix-preview {
  --nx-bg-1: #0b0b0b;
  --nx-bg-2: #181818;
  --nx-text: #ffffff;
  --nx-text-soft: rgba(255, 255, 255, 0.72);
  --nx-red: #e50914;

  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--nx-bg-1);
  color: var(--nx-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eterflix-preview.hidden {
  display: none;
}

.eterflix-preview .nx-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  overflow: hidden;
  background: #000;
}

.eterflix-preview .nx-hero-bg {
  position: absolute;
  inset: -10%;
  background-position: center;
  background-size: cover;
  filter: blur(28px) brightness(0.55);
  transform: scale(1.1);
  background-color: #111;
}

.eterflix-preview .nx-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.eterflix-preview .nx-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.65), transparent 60%);
}

.eterflix-preview .nx-hero-profile {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.eterflix-preview .nx-profile-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--nx-red);
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.eterflix-preview .nx-profile-name {
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eterflix-preview .nx-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eterflix-preview .nx-hero-eyebrow {
  font-family: "Bebas Neue", "Inter", sans-serif;
  letter-spacing: 0.18em;
  color: var(--nx-red);
  font-size: 14px;
  line-height: 1;
}

.eterflix-preview .nx-hero-title {
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #fff;
  margin: 0;
}

.eterflix-preview .nx-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--nx-text-soft);
  flex-wrap: wrap;
}

.eterflix-preview .nx-match {
  color: #46d369;
  font-weight: 600;
}

.eterflix-preview .nx-pill {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.eterflix-preview .nx-row {
  padding: 14px 14px 6px;
}

.eterflix-preview .nx-row-title {
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.eterflix-preview .nx-episodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.eterflix-preview .nx-episode {
  position: relative;
  background: var(--nx-bg-2);
  border-radius: 6px;
  overflow: hidden;
}

.eterflix-preview .nx-episode-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
}

.eterflix-preview .nx-episode-media::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: var(--ep-bg);
  background-position: center;
  background-size: cover;
  filter: blur(18px) brightness(0.55);
  transform: scale(1.1);
}

.eterflix-preview .nx-episode-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.eterflix-preview .nx-episode-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.eterflix-preview .nx-episode-num {
  position: absolute;
  left: 6px;
  bottom: 4px;
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: 32px;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
}

.eterflix-preview .nx-episode-body {
  padding: 6px 8px 8px;
  font-size: 11px;
  color: var(--nx-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
}

.eterflix-preview .nx-about {
  padding: 4px 14px 6px;
}

.eterflix-preview .nx-about-message {
  font-size: 12px;
  line-height: 1.55;
  color: var(--nx-text-soft);
  white-space: pre-wrap;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eterflix-preview .nx-hero-img.is-empty {
  display: none;
}

.eterflix-preview .nx-empty {
  padding: 8px 0 4px;
  font-size: 12px;
  color: var(--nx-text-soft);
  font-style: italic;
}

.eterflix-preview .nx-footer {
  padding: 10px 14px 14px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}
