/* Smart Captain Photo Campaign — 7-frame winner story (Instagram-style) */

.smart-captain-winner-story-page {
  min-height: 100dvh;
  background: #000;
  color: #fff;
}

.smart-captain-winner-story-page .spoke-section {
  padding-top: 0.5rem;
}

.smart-captain-winner-story__intro {
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  padding: 0 1.25rem;
  text-align: center;
}

.smart-captain-winner-story__intro .lead {
  margin-bottom: 0.75rem;
}

.smart-captain-winner-story__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.smart-captain-winner-story__viewer {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 204, 0, 0.22),
    0 24px 64px rgba(0, 0, 0, 0.55);
}

.smart-captain-winner-story__progress {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 4px;
}

.smart-captain-winner-story__progress-seg {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.smart-captain-winner-story__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #ffcc00;
  border-radius: inherit;
  transition: width 80ms linear;
}

.smart-captain-winner-story__progress-seg.is-done .smart-captain-winner-story__progress-fill {
  width: 100%;
}

.smart-captain-winner-story__progress-seg.is-active .smart-captain-winner-story__progress-fill {
  width: var(--fill, 0%);
}

.smart-captain-winner-story__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.smart-captain-winner-story__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.smart-captain-winner-story__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.smart-captain-winner-story__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.smart-captain-winner-story__tap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
}

.smart-captain-winner-story__tap button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.smart-captain-winner-story__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 12px;
}

.smart-captain-winner-story__controls button {
  border: 1px solid rgba(255, 204, 0, 0.45);
  background: rgba(0, 0, 0, 0.55);
  color: #ffcc00;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.smart-captain-winner-story__controls button:hover {
  background: rgba(255, 204, 0, 0.12);
}

.smart-captain-winner-story__seo {
  max-width: 42rem;
  margin: 2rem auto 0;
  padding: 0 1.25rem 2rem;
  color: var(--text-2, #cbd5e1);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.smart-captain-winner-story__seo .h3 {
  color: var(--text-1, #f8fafc);
  margin-bottom: 0.75rem;
}

.smart-captain-winner-story__seo ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}

.smart-captain-winner-story__seo li + li {
  margin-top: 0.35rem;
}

.smart-captain-winner-story__seo a {
  color: #ffcc00;
  text-decoration: underline;
}

.smart-captain-winner-story__seo dl {
  margin: 0.75rem 0 0;
}

.smart-captain-winner-story__seo dt {
  margin-top: 0.85rem;
  color: var(--text-1, #f8fafc);
}

.smart-captain-winner-story__seo dd {
  margin: 0.35rem 0 0;
}

.smart-captain-winner-story__caption {
  max-width: 42rem;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  text-align: center;
  color: var(--text-2, #cbd5e1);
  font-size: 0.9375rem;
}

.smart-captain-winner-story__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.65rem;
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem 1rem;
}

.smart-captain-winner-story__thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #111;
  cursor: pointer;
  aspect-ratio: 9 / 16;
}

.smart-captain-winner-story__thumb.is-active {
  border-color: #ffcc00;
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25);
}

.smart-captain-winner-story__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #000;
}

.smart-captains-winner__story-link {
  margin: 1rem 0 0;
  text-align: center;
}

@media (max-width: 520px) {
  .smart-captain-winner-story__viewer {
    width: 100%;
    border-radius: 0;
    aspect-ratio: 9 / 16;
    max-height: min(78dvh, 720px);
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-captain-winner-story__slide {
    transition: none;
  }
  .smart-captain-winner-story__progress-fill {
    transition: none;
  }
}
