/* flow.css — Shared Apple-style flow for Featured + Latest
   HARD FIX: Prev/Play/Next on ONE LINE (DOM has ff-playbar + ff-controls) */

/* Ensure stage can anchor absolute controls */
.ff-stage{
  position: relative !important;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Viewport stays as the card area */
.ff-viewport{
  position: relative;
  width: min(980px, 92vw);
  height: 300px;
  margin-top: 18px;
  display: grid;
  place-items: center;
  overflow: visible;
}

/* ---- Card (keep your glass B) ---- */
.ff-card{
  position:absolute;
  width: 520px;
  height: 220px;
  border-radius: 26px;
  padding: 18px;
  display:flex;
  gap: 18px;
  align-items:center;

  background: radial-gradient(circle at top, rgba(var(--spot-rgb), .58), rgba(var(--bg-rgb), .96));
  border: 1px solid rgba(232,247,245,.10);
  box-shadow: 0 18px 46px rgba(0,0,0,.78);
  overflow:hidden;

  transition:
    transform 420ms cubic-bezier(.22,.9,.22,1),
    opacity 420ms ease,
    filter 420ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.ff-center{
  background:
    radial-gradient(circle at 30% 15%, rgba(var(--spot-rgb), .30), transparent 45%),
    linear-gradient(180deg, rgba(30,130,135,.55), rgba(6,30,35,.78));
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border-color: rgba(var(--spot-rgb), .48);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 28px 78px rgba(0,0,0,.86),
    0 0 34px rgba(var(--spot-rgb), .22);
}
.ff-center:hover{
  border-color: rgba(var(--spot-rgb), .78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 36px 92px rgba(0,0,0,.90),
    0 0 46px rgba(var(--spot-rgb), .30);
}

/* positions */
.ff-farleft{ transform: translateX(-520px) scale(.78); opacity:0; filter: blur(2px); pointer-events:none; }
.ff-left   { transform: translateX(-320px) scale(.88); opacity:.35; filter: blur(1px); }
.ff-right  { transform: translateX(320px)  scale(.88); opacity:.35; filter: blur(1px); }
.ff-farright{ transform: translateX(520px) scale(.78); opacity:0; filter: blur(2px); pointer-events:none; }

/* cover/meta */
.ff-cover{
  width:168px; height:168px; border-radius:20px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(232,247,245,.10);
  box-shadow: 0 0 26px rgba(var(--spot-rgb), .12);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}
.ff-meta{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.ff-title{
  font-size:18px; font-weight:900; letter-spacing:.10em; text-transform:uppercase;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ff-sub{
  font-size:12px; letter-spacing:.10em; text-transform:uppercase;
  color: rgba(232,247,245,.60);
}

/* ========== ONE-LINE CONTROLS (Prev | Play | Next) ========== */
/* Your JS renders:
   <div class="ff-playbar"><button class="ff-play-btn">Play</button></div>
   <div class="ff-controls"><button class="ff-btn">Prev</button><button class="ff-btn">Next</button></div>
   We force both containers to the SAME Y and place Prev/Next around Play.
*/

/* Anchor Y just below the viewport */
.ff-playbar,
.ff-controls{
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: calc(18px + 300px + 20px) !important; /* marginTop + viewportHeight + gap */
  z-index: 20 !important;
  margin: 0 !important;
}

/* Play in the center */
.ff-playbar{
  width: 180px !important;
  display:flex !important;
  justify-content:center !important;
  pointer-events:auto !important;
}

/* Prev/Next stretch left/right of the play */
.ff-controls{
  width: 520px !important; /* spans enough to sit left/right */
  display:flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0 !important;
  pointer-events: none; /* let only buttons capture clicks */
}
.ff-controls > button{ pointer-events:auto; }

/* Normalize BOTH prev/next */
.ff-btn{
  height: 46px !important;
  width: 140px !important;
  border-radius: 14px !important;

  display:grid !important;
  place-items:center !important;

  background: rgba(var(--panel-rgb), .52) !important;
  border: 2px solid rgba(var(--spot-rgb), .55) !important;
  color: rgba(232,247,245,.92) !important;

  font-size: 11px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;

  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;

  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease !important;
}
.ff-btn:hover{
  border-color: rgba(var(--spot-rgb), .95) !important;
  box-shadow: 0 0 26px rgba(var(--spot-rgb), .55) !important;
  transform: translateY(-1px) !important;
}
.ff-btn:focus,
.ff-btn:active{ box-shadow:none !important; }

/* Play button */
.ff-play-btn{
  height: 46px !important;
  width: 180px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(var(--spot-rgb), .95), rgba(var(--spot-rgb), .70)) !important;
  color:rgb(var(--panel-rgb)) !important;
  font-weight:800 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase !important;
  border: none !important;
  box-shadow: 0 0 40px rgba(var(--spot-rgb), .60) !important;
  cursor:pointer !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.ff-play-btn:hover{
  box-shadow: 0 0 56px rgba(var(--spot-rgb), .85) !important;
  transform: translateY(-1px) scale(1.03) !important;
}

/* Mobile */
@media(max-width:640px){
  .ff-viewport{ height:260px; }
  .ff-card{ width:340px; height:200px; }
  .ff-cover{ width:120px; height:120px; }
  .ff-left{ transform: translateX(-210px) scale(.86); }
  .ff-right{ transform: translateX(210px) scale(.86); }
  .ff-farleft{ transform: translateX(-360px) scale(.78); }
  .ff-farright{ transform: translateX(360px) scale(.78); }

  .ff-playbar,
  .ff-controls{
    top: calc(18px + 260px + 18px) !important;
  }
  .ff-controls{ width: 360px !important; }
  .ff-btn{ width: 120px !important; }
  .ff-playbar{ width: 160px !important; }
  .ff-play-btn{ width: 160px !important; }
}
