*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --accent: #ffb347;
  --accent-soft: rgba(255, 179, 71, 0.12);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --card-bg: #020617;
  --radius-xl: 1.1rem;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.75);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 45%, #000 100%);
  color: var(--text-main);
}

/* Make it feel like a full-screen hero on phone */

main {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.25rem 0.75rem;
}

.hero {
  width: 100%;
  max-width: 1040px;
  margin: auto;
}

.hero-inner {
  background: linear-gradient(145deg, var(--bg-soft), #020617);
  border-radius: 1.75rem;
  padding: 1.75rem 1.25rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

@media (min-width: 768px) {
  main {
    padding: 2.5rem 1.5rem;
  }

  .hero-inner {
    border-radius: 2rem;
    padding: 2.5rem 2.2rem 2rem;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.3rem;
}

.subtitle {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Video strip - phone first */

.video-strip {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.75rem 0.2rem 0.3rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem; /* Let cards breathe to the edge */
}

.video-strip::-webkit-scrollbar {
  height: 6px;
}

.video-strip::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
}

.video-strip::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.9);
  border-radius: 999px;
}

/* Video cards - sized for vertical videos & phone */

.video-card {
  scroll-snap-align: center;
  min-width: 70vw;
  max-width: 80vw;
  background: radial-gradient(circle at top left, #1f2937, var(--card-bg));
  border-radius: var(--radius-xl);
  padding: 0.7rem 0.7rem 0.65rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* On larger screens we don't want them too huge */
@media (min-width: 768px) {
  .video-card {
    min-width: 260px;
    max-width: 320px;
  }
}

.video-wrapper {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 9 / 16; /* Perfect for phone-style vertical videos */
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Meta under the video */

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.friend-name {
  font-weight: 600;
}

.friend-name span {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.friend-note {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Play overlay hint */

.play-hint {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  font-size: 0.7rem;
  color: #e5e7eb;
  backdrop-filter: blur(6px);
}

/* Swipe hint */

.swipe-hint {
  margin: 0.45rem 0 0.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.noscript {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image wrapper - no fixed aspect ratio */
.video-wrapper.image-wrapper {
  aspect-ratio: auto;
  max-height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Horizontal images */
.video-wrapper.image-wrapper.horizontal {
  aspect-ratio: auto;
}

.video-wrapper.image-wrapper.horizontal img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Vertical images */
.video-wrapper.image-wrapper.vertical {
  aspect-ratio: auto;
}

.video-wrapper.image-wrapper.vertical img {
  width: auto;
  height: 100%;
  max-height: 600px;
  object-fit: contain;
}

/* Default image styles */
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}