/* Preview-only controls and adaptations for the portrait Ka’ba cover. */
.kaaba-product {
  --paper: var(--cream);
  --ivory: #fffdf8;
  --ink: var(--navy);
  --gold: #86602e;
  --sale-gold: #ffe3a0;
}
.kaaba-product .conversion-intro .intro { padding: 0; }
.kaaba-product :is(main > .wrap:has(> #choose),.conversion-intro.wrap) { width: auto; }
.kaaba-product .conversion-selected-edition { color: var(--navy); }
.kaaba-product .greats-thumbs.thumbs { flex-direction: row; }
.kaaba-product .greats-thumbs.thumbs.expanded { flex-wrap: wrap; max-height: none; }
.kaaba-product .greats-stage .zoom-mark { line-height: 1.1; }
.kaaba-product .greats-stage .pm-sale-badge { line-height: 1.1; }
.kaaba-product .hero-copy .quantity { margin-top: 10px; width: fit-content; }
.kaaba-product .hero-copy .quick-details { margin-top: 12px; }
.kaaba-product #purchase-status:empty { display: none; }
.kaaba-product .sticky-buy > .wrap { width: 100%; padding: 0; }
@media (max-width: 700px) {
  .kaaba-product .greats-stage { aspect-ratio: auto; }
}

.film-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 442px);
  gap: clamp(22px, 4vw, 60px);
  align-items: center;
  padding: 42px clamp(30px, 6vw, 88px);
  margin-block: 0 72px;
  background: #eee8db;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.film-feature h2 em { color: var(--navy); }
.film-feature h2 + p { max-width: 365px; margin: 20px 0 12px; }
.film-feature .quiet-link { display: inline-block; text-align: left; }
.clip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  color: var(--navy);
  text-align: left;
}
.clip-card:hover { border-color: var(--gold); background: #fff8ea; }
.clip-poster {
  flex: none;
  display: grid;
  position: relative;
  place-items: center;
  width: 48px;
  aspect-ratio: 9/16;
  overflow: hidden;
  border-radius: 6px;
  background: #eee8db;
}
.clip-poster img { width: 100%; height: 100%; object-fit: contain; }
.clip-play {
  position: absolute;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #142d3ced;
  color: #ffe3a0;
  font-size: 10px;
  text-indent: 2px;
}
.clip-label { display: grid; gap: 4px; line-height: 1.35; }
.clip-label strong { font-size: 13px; font-weight: 600; }
.clip-label small { font-size: 11px; color: #57515a; }
.film-clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-clip { flex-direction: column; gap: 10px; padding: 8px 8px 12px; text-align: center; }
.feature-clip .clip-poster { width: 100%; }
.feature-clip .clip-play { width: 48px; height: 48px; font-size: 17px; }
.shop-clips { margin-top: 18px; }
.shop-clips .eyebrow { margin-bottom: 8px; }
.shop-clip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

#clip-dialog {
  width: min(460px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
#clip-dialog::backdrop { background: #101b26db; }
.clip-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
#clip-title { font-size: 25px; line-height: 1; }
.clip-dialog-bar form { flex: none; }
.clip-dialog-bar button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; }
#clip-dialog video {
  display: block;
  width: min(100%, calc(65dvh * 9 / 16));
  aspect-ratio: 9/16;
  max-height: 65dvh;
  object-fit: contain;
  margin-inline: auto;
  background: #142d3c;
}
#clip-description { margin: 10px auto 0; max-width: 34ch; font-size: 12px; }

@media (max-width: 900px) {
  .film-feature {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 32px);
    padding: 25px 18px;
    gap: 16px;
    margin-bottom: 45px;
  }
  .film-clips { width: min(100%, 442px); gap: 8px; }
  .feature-clip .clip-play { width: 38px; height: 38px; font-size: 13px; }
}
@media (max-width: 400px) {
  .shop-clip-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-clips .clip-poster { width: 34px; }
}
@media (max-height: 480px) {
  #clip-dialog video {
    width: min(100%, 320px);
    height: min(55dvh, calc(100dvh - 145px));
    aspect-ratio: auto;
  }
}
