/* ── REELS — Custom cards ── */

#reels { position: relative; overflow: hidden; }

.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
}

/* Each card is a link — full 9:16 reel shape */
.reel-card {
  display: block;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(223,183,76,0.2);
  background: #021f17;
  text-decoration: none;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  cursor: pointer;
}
.reel-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(223,183,76,0.45);
  border-color: rgba(223,183,76,0.5);
}

/* Thumbnail area — fills card */
.reel-thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Actual thumbnail image */
.reel-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease, transform 0.5s ease;
  opacity: 0;
}
.reel-thumb-img.loaded { opacity: 1; }
.reel-card:hover .reel-thumb-img { transform: scale(1.04); }

/* Fallback shown while thumbnail loads */
.reel-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(160deg, #043927 0%, #021f17 100%);
  transition: opacity 0.4s ease;
}
.reel-thumb-fallback span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: rgba(223,183,76,0.55);
  letter-spacing: 0.14em;
}
.reel-thumb-img.loaded + .reel-thumb-fallback,
.reel-thumb-fallback.hidden { opacity: 0; pointer-events: none; }

/* Dark gradient overlay at bottom */
.reel-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(2,15,10,0.95) 0%, rgba(2,15,10,0.6) 50%, transparent 100%);
  pointer-events: none;
}

/* Play button — centred */
.reel-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(223,183,76,0.18);
  border: 2px solid rgba(223,183,76,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: background 0.28s, border-color 0.28s, transform 0.28s;
}
.reel-card:hover .reel-play-btn {
  background: rgba(223,183,76,0.32);
  border-color: var(--gold);
  transform: translate(-50%, -50%) scale(1.1);
}
.reel-play-btn svg { margin-left: 4px; }

/* Info block — sits above the gradient at bottom */
.reel-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 18px 18px;
  z-index: 3;
}
.reel-account {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(223,183,76,0.7);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.reel-title {
  font-family: 'Alestyn', 'Palatino Linotype', 'Book Antiqua', Palatino, serif, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 4px;
}
.reel-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 860px) {
  .reels-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 580px;
  }
  .reel-card:last-child {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
  }
}
@media (max-width: 520px) {
  .reels-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  .reel-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }
}
