/* WildLove Exclusive Feed: TikTok Reels + Tinder Swipe Match */
.feed-stage {
  position: relative;
  width: min(440px, 100%);
  height: calc(100dvh - 128px);
  min-height: 540px;
  max-height: 820px;
  margin: 12px auto 0;
  border-radius: 26px;
  overflow: hidden;
  background: #09070d;
  border: 1px solid var(--rule-gold);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), 0 0 40px rgba(225, 29, 72, 0.14);
  display: flex;
  flex-direction: column;
}

.feed-topbar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(7, 6, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 245, 248, 0.14);
}
.feed-mode-btn {
  padding: 7px 15px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(250, 244, 248, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.feed-mode-btn[aria-pressed=true] {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.42);
}

/* --- MODE 1: REELS (Vertical TikTok/Insta Snap Feed) --- */
.reels-track {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
}
.reels-track::-webkit-scrollbar { display: none; }

.reel-slide {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #09070d;
}
.reel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  animation: reel-kenburns 14s ease-in-out infinite alternate;
  transition: filter 0.25s ease;
}
.reel-photo.blurred { filter: blur(26px) brightness(0.62); animation: none; transform: scale(1.08); }
@keyframes reel-kenburns {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.075) translateY(-1.5%); }
}
.reel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 6, 10, 0.42) 0%,
    rgba(7, 6, 10, 0) 22%,
    rgba(7, 6, 10, 0) 44%,
    rgba(7, 6, 10, 0.78) 74%,
    rgba(7, 6, 10, 0.97) 100%
  );
}

/* Right-side TikTok Floating Action Rail */
.reel-rail {
  position: absolute;
  right: 12px;
  bottom: 92px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
}
.rail-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.22rem;
  background: rgba(10, 8, 14, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.rail-btn:hover .rail-ico { transform: scale(1.08); border-color: var(--gold); }
.rail-btn.liked .rail-ico {
  background: var(--crimson);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.55);
}
.rail-btn.chat-orb .rail-ico {
  background: var(--grad);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.55);
}
.rail-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  color: rgba(255, 248, 250, 0.92);
}

/* Bottom Reel Caption & Live DM Bubble */
.reel-info {
  position: absolute;
  left: 16px;
  right: 72px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.reel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.reel-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.reel-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.reel-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}
.reel-age {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-soft);
}
.reel-dm-bubble {
  padding: 9px 13px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(16, 12, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 185, 121, 0.28);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #fcf1f5;
}
.reel-dm-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.reel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.reel-tags span {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: #f8e8ef;
}
.reel-cta {
  margin-top: 2px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--grad);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45);
  align-self: flex-start;
  transition: filter 0.15s, transform 0.15s;
}
.reel-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Desktop floating scroll arrows beside Reels */
.reels-nav-arrows {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reels-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 6, 10, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.reels-arrow:hover { border-color: var(--gold); }

/* --- MODE 2: SWIPE MATCH (Tinder Left / Right Deck) --- */
.swipe-wrap {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 64px 14px 16px;
  gap: 12px;
  background:
    radial-gradient(circle 340px at 50% 25%, rgba(225, 29, 72, 0.16), transparent 70%),
    #09070d;
}
.swipe-deck {
  flex: 1;
  position: relative;
  min-height: 0;
}
.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #120e18;
  border: 1px solid var(--rule-gold);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.65);
  user-select: none;
  touch-action: none;
  cursor: grab;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card.behind {
  transform: scale(0.95) translateY(12px);
  opacity: 0.65;
  pointer-events: none;
}
.swipe-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  pointer-events: none;
}
.swipe-card img.blurred { filter: blur(24px) brightness(0.65); transform: scale(1.08); }
.swipe-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 6, 10, 0.16) 0%, transparent 35%, rgba(7, 6, 10, 0.78) 72%, rgba(7, 6, 10, 0.97) 100%);
}
.swipe-stamp {
  position: absolute;
  top: 24px;
  z-index: 5;
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s linear;
}
.swipe-stamp.like {
  left: 18px;
  transform: rotate(-12deg);
  border: 3px solid var(--gold);
  color: var(--gold-soft);
  background: rgba(225, 29, 72, 0.45);
  backdrop-filter: blur(6px);
}
.swipe-stamp.pass {
  right: 18px;
  transform: rotate(12deg);
  border: 3px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(7, 6, 10, 0.6);
  backdrop-filter: blur(6px);
}
.swipe-card-body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.swipe-card-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.06;
  color: #fff;
}
.swipe-card-body .swipe-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-soft);
}
.swipe-card-body p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.38;
  color: rgba(250, 240, 245, 0.9);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.swipe-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 4px 0 2px;
}
.swipe-btn {
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.swipe-btn:hover { transform: scale(1.08); }
.swipe-btn.pass {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--surface-2);
  color: #e6dae2;
  font-size: 1.45rem;
}
.swipe-btn.super {
  width: 48px;
  height: 48px;
  border: 1px solid var(--rule-gold);
  background: rgba(230, 185, 121, 0.16);
  color: var(--gold-soft);
  font-size: 1.2rem;
}
.swipe-btn.like {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--grad);
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.5);
}
.swipe-hint {
  margin: 0;
  text-align: center;
  font-size: 0.71rem;
  color: var(--muted);
}

/* Match Celebration Overlay */
.match-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: radial-gradient(circle at 50% 35%, rgba(225, 29, 72, 0.34), rgba(7, 6, 10, 0.96) 72%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 22px;
  gap: 12px;
  animation: match-fade 0.26s ease;
}
@keyframes match-fade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.match-avatar-ring {
  width: 124px;
  height: 124px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--gold));
  box-shadow: 0 0 42px rgba(225, 29, 72, 0.55);
}
.match-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid #09070d;
  display: block;
}
.match-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.15rem;
  font-weight: 700;
  background: linear-gradient(120deg, #fff 15%, #f3d7a3 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.match-sub {
  margin: 0;
  font-size: 0.92rem;
  color: #f3e4ec;
  max-width: 30ch;
}
.match-quote {
  margin: 2px 0 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rule-gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold-soft);
  max-width: 34ch;
}
.match-actions {
  display: grid;
  gap: 8px;
  width: min(280px, 100%);
}

/* Community Showcase Banner */
.community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 14px;
  padding: 16px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16), rgba(230, 185, 121, 0.09));
  border: 1px solid var(--rule-gold);
}
.community-banner h2 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 1.32rem;
}
.community-banner p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}
.community-banner .primary {
  width: auto;
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.84rem;
}

/* Language Picker in Header */
.lang-select {
  min-height: 36px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-select:hover { border-color: var(--rule-gold); }

/* Mobile Full-Bleed Feed Stage */
@media (max-width: 780px) {
  .feed-stage {
    width: 100%;
    height: calc(100dvh - 134px - var(--tg-safe-top) - var(--tg-safe-bottom));
    min-height: 480px;
    max-height: none;
    margin: 6px 0 0;
    border-radius: 20px;
  }
  .reels-nav-arrows { display: none; }
  .reel-name { font-size: 1.55rem; }
  .lang-select { min-height: 34px; padding: 4px 7px; font-size: 0.72rem; }
}
