.play-icon {
  border-radius: 5px;
}

.pop-hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.pop-hero-stack p {
  margin: 0;
  color: var(--text-muted);
}

.pop-hero-icon {
  width: clamp(136px, 19vw, 220px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: #0b1320;
  padding: 8px;
  box-shadow: var(--shadow-strong);
}

.gallery-shell {
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--accent-500) 44%, var(--line) 56%);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(23, 36, 56, 0.96), rgba(14, 23, 36, 0.96));
  padding: 16px;
  box-shadow:
    inset 0 0 0 1px rgba(103, 214, 255, 0.15),
    0 18px 44px rgba(2, 10, 22, 0.55);
}

.gallery-stage {
  display: grid;
  place-items: center;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 22%, rgba(103, 214, 255, 0.08), rgba(11, 19, 32, 0.95) 56%);
  padding: 16px;
}

.gallery-stage img {
  width: auto;
  max-height: 540px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.gallery-caption {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 14, 24, 0.62);
  padding: 12px;
}

.gallery-caption h3 {
  margin: 0;
  font-size: 1rem;
}

.gallery-caption p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gallery-controls {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gallery-thumbs {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-thumbs button {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0;
  background: #0b1320;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.gallery-thumbs button img {
  width: 60px;
  height: 126px;
  display: block;
  object-fit: contain;
  background: #0b1320;
}

.gallery-thumbs button[aria-current="true"] {
  opacity: 1;
  transform: translateY(-1px);
  border-color: var(--accent-500);
}

/* PopLingo screenshots should preserve native capture ratio without stretching/cropping. */
.theme-poplingo .proof-card img {
  aspect-ratio: 280 / 592;
  object-fit: contain;
  background: #0b1320;
}

#comparison {
  border-color: rgba(55, 80, 112, 0.72);
  background: linear-gradient(180deg, rgba(17, 28, 42, 0.82), rgba(15, 24, 36, 0.82));
}

#screenshots {
  border-color: color-mix(in srgb, var(--accent-500) 45%, var(--line) 55%);
  background: linear-gradient(180deg, rgba(20, 32, 49, 0.98), rgba(14, 23, 36, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(103, 214, 255, 0.12),
    0 24px 54px rgba(1, 10, 24, 0.62);
}

#features {
  border-color: rgba(55, 80, 112, 0.72);
  background: linear-gradient(180deg, rgba(16, 26, 39, 0.8), rgba(13, 21, 33, 0.8));
}

.faq-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 20, 32, 0.78);
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text-strong);
  font-weight: 700;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .gallery-stage {
    min-height: 360px;
  }

  .gallery-thumbs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }
}
