/* Social mode. Feed | Map stays on screen. The feed is not Loops. */

.mode-switch {
  position: fixed;
  z-index: 460;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(13, 8, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.ob-lock .mode-switch { display: none; }

.mode-switch button {
  min-width: 84px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mode-switch button.on {
  background: #fff;
  color: #0d0820;
}

.feed {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #0d0820;
  color: #fff;
}

.feed[hidden] {
  display: none !important;
}

.fy-feed {
  height: 100%;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.fy-card {
  position: relative;
  height: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #0d0820;
}

.fy-card video,
.fy-card .fy-img,
.fy-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #120a22;
}

.fy-still {
  display: none;
}

.fy-card.is-broken .fy-still {
  display: block;
}

.fy-card.is-live .fy-still {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 45, 149, 0.45), transparent 42%),
    radial-gradient(circle at 70% 80%, rgba(255, 107, 0, 0.35), transparent 40%),
    #1a0f2e;
}

.fy-card.is-promo {
  background: #100c08;
}

/* Promos are full-screen like Live cards (same inset 0 / cover sizing).
   The gold PROMO badge, and sponsor colour keep them apart from Live. */
/* Promo flyer (poster-only, or before the video's first frame): whole flyer, contained,
   over a blurred, darkened copy of itself. The video itself stays full-screen cover. */
.fy-card .fy-fill {
  position: absolute;
  inset: -48px;
  background: #100c08 center / cover no-repeat;
  filter: blur(28px) brightness(0.5) saturate(1.15);
  transform: translateZ(0);
}

.fy-card.is-promo .fy-img {
  object-fit: contain;
  background: transparent;
}

.fy-card.is-promo.has-poster video {
  background: transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fy-card.is-promo.has-poster.has-frame video {
  opacity: 1;
}

.fy-card.is-promo.has-poster.is-broken .fy-still {
  display: none;
}

.fy-card.is-promo .fy-still {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 215, 0, 0.28), transparent 46%),
    #1a140c;
}

.fy-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(8, 4, 16, 0.88), rgba(8, 4, 16, 0));
  pointer-events: none;
}

.fy-kind {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 62px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fy-card.is-live .fy-kind {
  background: #ff2d95;
  color: #fff;
}

.fy-card.is-live .fy-kind i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: fy-pulse 1.6s ease-out infinite;
}

.fy-card.is-promo .fy-kind {
  background: #ffd700;
  color: #1a1204;
  letter-spacing: 0.16em;
}

.fy-card.is-promo .fy-kind i {
  display: none;
}

.fy-meta {
  position: absolute;
  left: 16px;
  right: 72px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 2;
}

.fy-who {
  margin: 0;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fy-card.is-promo .fy-who {
  color: #ffd700;
}

.fy-cap {
  margin: 0;
  max-width: 34rem;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.fy-spot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.fy-spot svg {
  flex: none;
}

.fy-spot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fy-note {
  margin: 0;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.fy-side {
  position: absolute;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Promo-only tap-to-unmute (the video area toggles it too). Gold ring so it reads as a promo control. */
.fy-side .fy-promo-sound {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  border-color: rgba(255, 215, 0, 0.7);
  color: #ffd700;
}

.fy-side .fy-promo-sound.on {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.18);
  color: #fff;
}

.fy-side button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(13, 8, 32, 0.55);
  color: #fff;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.fy-side .fy-sound {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
}

.fy-side .fy-sound.on {
  border-color: #fff;
  color: #fff;
}

.fy-side button.on {
  border-color: #ff2d95;
  color: #ffb3d9;
}

/* Clip actions: Follow (= sheet Follow), React (Live only), Send. Icon over a tiny label, narrow column. */
.fy-side .fy-follow-spot,
.fy-side .fy-share,
.fy-side .fy-react {
  width: 48px;
  min-height: 48px;
  padding: 4px 0 3px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  align-self: flex-end;
  border-radius: 16px;
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.fy-side .fy-follow-spot span,
.fy-side .fy-share span {
  max-width: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fy-side .fy-react {
  font-size: 20px;
}

.fy-side .fy-react small {
  font-size: 9px;
}

.fy-side .fy-react.on {
  border-color: #ff7a1a;
  background: rgba(255, 122, 26, 0.2);
}

.fy-kind .fy-src {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(26, 18, 4, 0.85);
  color: #ffd700;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.fy-kind .fy-src.is-flyer {
  background: rgba(26, 18, 4, 0.55);
  color: #fff3b0;
}

.fy-when {
  margin: 0;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.fy-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fy-acts[hidden],
.fy-when[hidden] {
  display: none;
}

.fy-act {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(13, 8, 32, 0.6);
  color: #fff;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.fy-act.fy-tix {
  border-color: #ffd700;
  background: #ffd700;
  color: #1a1204;
}

.fy-act.fy-going.on {
  border-color: #ff2d95;
  color: #ffb3d9;
}

@media (max-height: 760px) {
  .fy-meta { gap: 6px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
  .fy-side { gap: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); }
  .fy-cap { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fy-spot { min-height: 34px; }
  .fy-act { min-height: 32px; }
}

/* Phones up to ~880 px tall: the flyer already carries the caption text, so drop the caption
   to keep the whole flyer uncovered now that the card has a when/where line and tickets. */
@media (max-height: 880px) {
  .fy-card.is-promo .fy-cap { display: none; }
}

@media (min-height: 881px) {
  .fy-card.is-promo .fy-cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

.fy-empty {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px 24px calc(env(safe-area-inset-bottom, 0px) + 48px);
  scroll-snap-align: start;
}

.fy-empty h2,
.fy-empty p {
  margin: 0;
  font-family: Nunito, system-ui, sans-serif;
}

.fy-empty h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fy-empty p {
  max-width: 22rem;
  color: #c8bdd9;
  font-size: 15px;
  line-height: 1.5;
}

body.mode-feed #map-chrome,
body.mode-feed .sheet,
body.mode-feed .map-vignette {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .fy-card.is-live .fy-kind i {
    animation: none;
  }
  .fy-feed {
    scroll-behavior: auto;
  }
}

@keyframes fy-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
