/*
 * MyMappi v673 — compact, poster-style Memory Capsule video previews.
 * The real player opens only after the person chooses a clip.
 */

html body .app-shell .full-memory-capsule .memory-capsule-video-shelf,
html body main.app-shell .full-memory-capsule .memory-capsule-video-shelf {
  display: grid !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: clamp(18px, 2.8vw, 24px) 0 0 !important;
  padding: clamp(14px, 2.4vw, 18px) !important;
  gap: 13px !important;
  overflow: hidden !important;
  border: 1px solid rgba(15, 112, 106, 0.12) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 224, 194, 0.17), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 251, 0.96), rgba(234, 247, 242, 0.9)) !important;
  box-shadow: 0 14px 34px rgba(7, 67, 69, 0.07) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-heading,
html body main.app-shell .full-memory-capsule .memory-capsule-video-heading {
  display: flex !important;
  min-width: 0 !important;
  align-items: center !important;
  gap: 10px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-heading-icon,
html body main.app-shell .full-memory-capsule .memory-capsule-video-heading-icon {
  display: grid !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  border: 1px solid rgba(17, 139, 121, 0.17) !important;
  border-radius: 13px !important;
  color: #08786e !important;
  background: rgba(220, 247, 238, 0.85) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-heading-icon svg,
html body main.app-shell .full-memory-capsule .memory-capsule-video-heading-icon svg {
  width: 18px !important;
  height: 18px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-heading > span:last-child,
html body main.app-shell .full-memory-capsule .memory-capsule-video-heading > span:last-child {
  display: grid !important;
  min-width: 0 !important;
  gap: 2px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-heading strong,
html body main.app-shell .full-memory-capsule .memory-capsule-video-heading strong {
  color: #124750 !important;
  font-size: 0.82rem !important;
  font-weight: 810 !important;
  line-height: 1.24 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-heading small,
html body main.app-shell .full-memory-capsule .memory-capsule-video-heading small {
  color: #647f83 !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-list,
html body main.app-shell .full-memory-capsule .memory-capsule-video-list {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(240px, 74%) !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 1px 1px 5px !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain !important;
  scroll-snap-type: inline mandatory !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-list::-webkit-scrollbar,
html body main.app-shell .full-memory-capsule .memory-capsule-video-list::-webkit-scrollbar {
  display: none !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-list.is-single,
html body main.app-shell .full-memory-capsule .memory-capsule-video-list.is-single {
  grid-auto-flow: row !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-item,
html body main.app-shell .full-memory-capsule .memory-capsule-video-item {
  min-width: 0 !important;
  scroll-snap-align: start !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-preview,
html body main.app-shell .full-memory-capsule .memory-capsule-video-preview {
  display: grid !important;
  box-sizing: border-box !important;
  grid-template-columns: 112px minmax(0, 1fr) 28px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 104px !important;
  padding: 7px !important;
  align-items: center !important;
  gap: 11px !important;
  overflow: hidden !important;
  border: 1px solid rgba(16, 98, 100, 0.12) !important;
  border-radius: 18px !important;
  color: #103f49 !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 9px 22px rgba(6, 55, 60, 0.06) !important;
  cursor: pointer !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-preview:hover,
html body main.app-shell .full-memory-capsule .memory-capsule-video-preview:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(15, 141, 124, 0.28) !important;
  box-shadow: 0 13px 28px rgba(6, 74, 72, 0.1) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-preview:focus-visible,
html body main.app-shell .full-memory-capsule .memory-capsule-video-preview:focus-visible {
  outline: 3px solid rgba(31, 185, 156, 0.28) !important;
  outline-offset: 3px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-art,
html body main.app-shell .full-memory-capsule .memory-capsule-video-art {
  position: relative !important;
  display: grid !important;
  width: 112px !important;
  height: 90px !important;
  overflow: hidden !important;
  place-items: center !important;
  border-radius: 14px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 78% 22%, rgba(117, 238, 199, 0.52), transparent 30%),
    linear-gradient(145deg, #0a5663, #0c8479 58%, #23a576) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-art > img,
html body main.app-shell .full-memory-capsule .memory-capsule-video-art > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: var(--home-photo-position, center 36%) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-art > img.memory-capsule-video-mappi,
html body main.app-shell .full-memory-capsule .memory-capsule-video-art > img.memory-capsule-video-mappi {
  box-sizing: border-box !important;
  padding: 9px 14px 0 !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  opacity: 0.82 !important;
  filter: saturate(0.9) drop-shadow(0 6px 10px rgba(0, 35, 47, 0.17)) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-art-shade,
html body main.app-shell .full-memory-capsule .memory-capsule-video-art-shade {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(145deg, rgba(3, 35, 43, 0.02), rgba(3, 40, 49, 0.38)) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-play,
html body main.app-shell .full-memory-capsule .memory-capsule-video-play {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.74) !important;
  border-radius: 50% !important;
  color: #075661 !important;
  background: rgba(255, 255, 250, 0.91) !important;
  box-shadow: 0 8px 20px rgba(2, 34, 42, 0.24) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-play svg,
html body main.app-shell .full-memory-capsule .memory-capsule-video-play svg {
  width: 17px !important;
  height: 17px !important;
  margin-left: 2px !important;
  fill: currentColor !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-art > small,
html body main.app-shell .full-memory-capsule .memory-capsule-video-art > small {
  position: absolute !important;
  right: 7px !important;
  bottom: 7px !important;
  z-index: 1 !important;
  padding: 4px 7px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  color: #f5fffb !important;
  background: rgba(3, 44, 52, 0.66) !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-copy,
html body main.app-shell .full-memory-capsule .memory-capsule-video-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 3px !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-copy strong,
html body main.app-shell .full-memory-capsule .memory-capsule-video-copy strong {
  overflow: hidden !important;
  color: #123f49 !important;
  font-size: 0.83rem !important;
  font-weight: 810 !important;
  line-height: 1.22 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-copy small,
html body main.app-shell .full-memory-capsule .memory-capsule-video-copy small {
  color: #6a8387 !important;
  font-size: 0.67rem !important;
  font-weight: 620 !important;
}

html body .app-shell .full-memory-capsule .memory-capsule-video-arrow,
html body main.app-shell .full-memory-capsule .memory-capsule-video-arrow {
  width: 18px !important;
  height: 18px !important;
  justify-self: center !important;
  color: #1b8a7b !important;
}

@media (max-width: 640px) {
  html body .app-shell .full-memory-capsule .memory-capsule-video-shelf,
  html body main.app-shell .full-memory-capsule .memory-capsule-video-shelf {
    padding: 13px !important;
    border-radius: 20px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-video-list,
  html body main.app-shell .full-memory-capsule .memory-capsule-video-list {
    grid-auto-columns: minmax(224px, 88%) !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-video-preview,
  html body main.app-shell .full-memory-capsule .memory-capsule-video-preview {
    grid-template-columns: 96px minmax(0, 1fr) 24px !important;
    min-height: 94px !important;
    gap: 9px !important;
  }

  html body .app-shell .full-memory-capsule .memory-capsule-video-art,
  html body main.app-shell .full-memory-capsule .memory-capsule-video-art {
    width: 96px !important;
    height: 80px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .full-memory-capsule .memory-capsule-video-preview,
  html body main.app-shell .full-memory-capsule .memory-capsule-video-preview {
    transition: none !important;
  }
}
