/* Featured posters row — three landscape tiles, thin chevron nav (prototype) */

.posters {
  background: #fff;
  padding: var(--section-pad-y, clamp(1.35rem, 3.15vw, 2.35rem)) 0;
  border-top: var(--divider, 1px solid #e8e6e1);
}

.posters__inner {
  max-width: var(--layout-max, 1320px);
  margin: 0 auto;
  padding: 0 var(--layout-gutter, clamp(0.9375rem, 2.85vw, 1.875rem));
}

.posters__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: clamp(0.95rem, 2vw, 1.35rem);
  padding-bottom: 0.65rem;
  border-bottom: var(--divider-soft, 1px solid #e5e2dc);
}

.posters__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.posters__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #666;
  max-width: 36ch;
  line-height: 1.45;
}

.posters__carousel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.35rem, 1.1vw, 0.75rem);
}

.posters__nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: #3d3d3d;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: color 0.2s ease;
}

.posters__nav:hover:not(:disabled) {
  color: #c41e3a;
}

.posters__nav:focus-visible {
  outline: 2px solid #c41e3a;
  outline-offset: 3px;
}

.posters__nav:disabled {
  opacity: 1;
  color: #b5b2ad;
  cursor: not-allowed;
  pointer-events: none;
}

.posters__nav svg {
  display: block;
}

.posters__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
  container-name: posters-carousel;
  --poster-gap: clamp(0.5rem, 1.2cqi, 0.85rem);
  --poster-per-view: 3;
}

@media (max-width: 900px) {
  .posters__viewport {
    --poster-per-view: 2;
  }
}

@media (max-width: 520px) {
  .posters__viewport {
    --poster-per-view: 1;
  }
}

.posters__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--poster-gap);
  width: max-content;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.posters__track .poster-card {
  flex: 0 0 calc((100cqi - (var(--poster-per-view) - 1) * var(--poster-gap)) / var(--poster-per-view));
  min-width: 0;
  box-sizing: border-box;
}

/* Shared poster tile shell */
.poster-card {
  display: block;
  margin: 0;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  aspect-ratio: 3 / 2;
  min-height: 11rem;
}

.poster-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.poster-card:focus-visible {
  outline: 2px solid #c41e3a;
  outline-offset: 3px;
}

.poster-card__inner {
  position: relative;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 2cqi, 1.25rem);
  box-sizing: border-box;
}

/* —— Tile 1: prize / winners —— */
.poster-card--prize {
  background: radial-gradient(125% 120% at 8% 0%, #2a5f3c 0%, #1e6b8a 22%, #c9a227 48%, #c75c32 72%, #4a3568 100%);
  position: relative;
}

.poster-card--prize::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.35) 0%, transparent 0.35%),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.3) 0%, transparent 0.3%),
    radial-gradient(circle at 72% 78%, rgba(255, 255, 255, 0.28) 0%, transparent 0.25%),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.22) 0%, transparent 0.2%),
    radial-gradient(circle at 55% 12%, rgba(255, 255, 255, 0.25) 0%, transparent 0.22%);
  pointer-events: none;
  opacity: 0.9;
}

.poster-card--prize .poster-card__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  gap: 0.35rem;
}

.poster-prize__logo {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(0.55rem, 1.8cqi, 0.7rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  max-width: 14ch;
}

.poster-prize__logo span {
  display: block;
}

.poster-prize__logo-line1 {
  background: linear-gradient(90deg, #7dd3fc, #86efac, #fde047, #fb923c, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(0.75rem, 2.4cqi, 0.95rem);
  letter-spacing: 0.02em;
}

.poster-prize__headline {
  margin: 0.15rem 0 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 5cqi, 1.85rem);
  font-weight: 700;
  color: #f5e6c8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}

.poster-prize__cta {
  margin-top: auto;
  display: inline-block;
  padding: 0.45rem 0.95rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.6rem, 1.8cqi, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #1a1f3a;
  border: none;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* —— Tile 2: pre-order split —— */
.poster-card--preorder .poster-card__inner {
  flex-direction: row;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  gap: 0;
}

.poster-preorder__visual {
  position: relative;
  flex: 0 0 42%;
  min-width: 0;
  background: #e8eef2;
}

.poster-preorder__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.poster-preorder__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: clamp(2.75rem, 12cqi, 3.5rem);
  height: clamp(2.75rem, 12cqi, 3.5rem);
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.45rem, 1.5cqi, 0.55rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.poster-preorder__copy {
  flex: 1;
  min-width: 0;
  background: #a8cce8;
  padding: clamp(0.65rem, 2cqi, 1rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.poster-preorder__text {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.65rem, 2cqi, 0.78rem);
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
}

.poster-preorder__date {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.75rem, 2.2cqi, 0.88rem);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.06em;
}

.poster-preorder__cta {
  align-self: flex-end;
  margin-top: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.55rem, 1.7cqi, 0.65rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  border: none;
  border-radius: 2px;
  pointer-events: none;
}

/* —— Tile 3: exclusive / shop —— */
.poster-card--exclusive {
  background: #2a2a2a;
  border: 2px solid #e6c200;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.poster-card--exclusive:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.poster-card--exclusive .poster-card__inner {
  flex-direction: row;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
}

.poster-exclusive__visual {
  position: relative;
  flex: 0 0 40%;
  min-width: 0;
  background: #1f1f1f;
}

.poster-exclusive__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
}

.poster-exclusive__badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: clamp(2.85rem, 12cqi, 3.6rem);
  height: clamp(2.85rem, 12cqi, 3.6rem);
  border-radius: 50%;
  background: linear-gradient(145deg, #d4af37, #8b6914);
  color: #1a1204;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.42rem, 1.45cqi, 0.52rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.poster-exclusive__badge-w {
  font-size: clamp(0.95rem, 3.5cqi, 1.15rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.05rem;
}

.poster-exclusive__badge-lines {
  display: block;
  line-height: 1.08;
  font-size: 0.92em;
}

.poster-exclusive__right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #2d2d2d;
}

.poster-exclusive__top {
  flex: 1;
  padding: clamp(0.65rem, 2cqi, 1rem);
  display: flex;
  align-items: center;
}

.poster-exclusive__text {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.85rem, 3cqi, 1.05rem);
  font-weight: 600;
  line-height: 1.3;
  color: #f5f5f5;
}

.poster-exclusive__bottom {
  padding: clamp(0.55rem, 1.8cqi, 0.85rem);
  background-color: #ff5c8a;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 55%),
    repeating-linear-gradient(
      -60deg,
      transparent,
      transparent 6px,
      rgba(255, 255, 255, 0.08) 6px,
      rgba(255, 255, 255, 0.08) 7px
    );
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.poster-exclusive__cta {
  padding: 0.4rem 0.8rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.55rem, 1.7cqi, 0.65rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .posters__track {
    transition-duration: 0.01ms;
  }

  .poster-card {
    transition: none;
  }

  .poster-card:hover {
    transform: none;
  }
}

/* ── Admin-managed poster cards (background + overlay) ───────── */
.poster-card--db { position: relative; }
.poster-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-card__overlay { position: absolute; inset: 0; display: flex; padding: 1.25rem; box-sizing: border-box; }
.poster-card__overlay--text {
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.4));
}
.poster-card__heading {
  color: #fff; font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 800; line-height: 1.2;
  margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
.poster-card__subtext {
  color: #f1f1f1; font-size: clamp(.85rem, 1.4vw, 1rem); margin: .5rem 0 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.poster-card__overlay--product {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.18);
}
.poster-card__product-img {
  max-height: 62%;
  max-width: 48%;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.poster-card__btn {
  background: #c41e3a; color: #fff; padding: .6rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3); transition: background .15s, transform .15s;
}
.poster-card__btn:hover { background: #a3172f; transform: translateY(-2px); }
