/* LoveFlix — Netflix-style poster templates (parody brand) */

.lf-page {
  min-height: 100vh;
  background: #0b0b0b;
  color: #fff;
  font-family: "Montserrat", "Sora", system-ui, sans-serif;
}

.lf-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lf-toolbar a,
.lf-toolbar button {
  font-family: inherit;
}

.lf-toolbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  min-width: 0;
  flex: 1;
}

.lf-toolbar-home {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.lf-toolbar-styles,
.lf-toolbar-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.lf-style-link,
.lf-toolbar-lang a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lf-style-link.is-active,
.lf-toolbar-lang a.is-active {
  color: #fff;
  background: #e50914;
  border-color: #e50914;
}

.lf-stage {
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 3rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.lf-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  pointer-events: none;
}

.lf-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.2rem;
  background: #e50914;
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.04em;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.lf-brand-word {
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #e50914;
  text-transform: uppercase;
}

.lf-play {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.35rem;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: 0.95rem;
  border: 0;
}

.lf-play-ico {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent #111;
}

.lf-icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  font-size: 1.1rem;
  font-weight: 700;
}

.lf-match {
  color: #46d369;
  font-weight: 800;
}

.lf-hd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.lf-top10 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.88rem;
}

.lf-top10-badge {
  background: #e50914;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 0.28rem 0.3rem;
  border-radius: 0.15rem;
  text-align: center;
  width: 2.1rem;
}

/* ——— Style 1: classic vertical poster ——— */
.lf-card {
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  min-height: 560px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #141414;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(229, 9, 20, 0.22),
    0 18px 40px rgba(0, 0, 0, 0.55);
}

.lf-s1 .lf-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.lf-s1 .lf-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.05) 32%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

.lf-s1 .lf-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lf-s1 .lf-brand-top {
  position: absolute;
  top: 1.1rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  font-size: 1.35rem;
}

.lf-s1 .lf-body {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.15rem;
  z-index: 2;
}

.lf-s1 .lf-film-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.lf-s1 .lf-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 6.2vw, 2.15rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.lf-s1 .lf-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.lf-s1 .lf-synopsis {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lf-s1 .lf-cast {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.lf-s1 .lf-cast strong {
  color: rgba(255, 255, 255, 0.92);
}

/* ——— Style 2: vertical detail ——— */
.lf-s2 {
  width: min(100%, 420px);
  min-height: 740px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  background: #141414;
}

.lf-s2 .lf-hero {
  position: relative;
  height: clamp(220px, 42vw, 300px);
  min-height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background: #222;
}

.lf-s2 .lf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.15), #141414 96%);
}

.lf-s2 .lf-hero .lf-cover-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lf-s2 .lf-content {
  padding: 0 1.15rem 1.15rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.lf-s2 .lf-film-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lf-s2 .lf-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.lf-s2 .lf-tagline {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

.lf-s2 .lf-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.lf-s2 .lf-synopsis {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.lf-s2 .lf-details {
  display: grid;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.lf-s2 .lf-details div {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.lf-s2 .lf-details strong {
  display: block;
  color: #fff;
  margin-bottom: 0.1rem;
}

.lf-s2 .lf-foot {
  margin-top: auto;
  display: grid;
  gap: 0.4rem;
  padding-top: 0.5rem;
}

.lf-s2 .lf-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— Style 3: wide Netflix detail ——— */
.lf-s3 {
  width: min(100%, 920px);
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #141414;
  border-radius: 14px;
  overflow: hidden;
}

.lf-s3 .lf-left {
  padding: 1.35rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: linear-gradient(90deg, #0f0f0f 55%, rgba(15, 15, 15, 0.55) 100%);
  position: relative;
  z-index: 2;
}

.lf-s3 .lf-right {
  position: relative;
  overflow: hidden;
  background: #222;
  min-height: 220px;
}

.lf-s3 .lf-right::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #0f0f0f 0%, transparent 35%);
}

.lf-s3 .lf-right .lf-cover-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lf-s3 .lf-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.lf-s3 .lf-tagline {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.lf-s3 .lf-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.lf-s3 .lf-synopsis {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.lf-s3 .lf-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.lf-s3 .lf-details strong {
  display: block;
  color: #fff;
  margin-bottom: 0.15rem;
}

.lf-s3 .lf-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lf-s3 .lf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .lf-stage {
    padding: 0.85rem 0.65rem 2.25rem;
  }

  .lf-card.lf-s1 {
    width: 100%;
    max-width: 100%;
    min-height: min(78vh, 680px);
    aspect-ratio: 9 / 16;
  }

  .lf-s1 .lf-body {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.9rem;
  }

  .lf-s1 .lf-title {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .lf-s1 .lf-actions {
    flex-wrap: wrap;
  }

  .lf-s1 .lf-play {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
  }

  .lf-s2 {
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .lf-s2 .lf-hero {
    height: min(46vw, 280px);
    min-height: 240px;
  }

  .lf-s3 {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lf-s3 .lf-right {
    min-height: 260px;
    height: min(52vw, 300px);
    order: -1;
  }

  .lf-s3 .lf-right::before {
    background: linear-gradient(180deg, transparent 35%, #0f0f0f 100%);
  }

  .lf-s3 .lf-left {
    padding: 1rem 1rem 1.15rem;
  }

  .lf-s3 .lf-details {
    grid-template-columns: 1fr;
  }

  .lf-toolbar {
    gap: 0.45rem;
    padding: 0.7rem 0.75rem;
  }

  .lf-toolbar .lf-play {
    width: 100%;
    justify-content: center;
  }
}

/* Form helpers */
.lf-style-pick {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lf-style-pick label {
  display: block;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
}

.lf-style-pick input {
  margin-bottom: 0.35rem;
}

.lf-style-pick label:has(input:checked) {
  border-color: #e50914;
  box-shadow: 0 0 0 1px #e50914;
}

@media (max-width: 640px) {
  .lf-style-pick {
    grid-template-columns: 1fr;
  }
}
