/* ============================
   RADLIFE — BRAND STORY + MUSIC BAR
   ============================ */

/* ===== BRAND STORY SECTION ===== */
.brand-story {
  background: #0d0d0d;
  border-top: 1px solid rgba(230,53,53,0.18);
  border-bottom: 1px solid rgba(230,53,53,0.18);
  padding: 5rem 2rem;
}
.story-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.story-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: #e63535;
  margin-bottom: 3rem;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Split layout */
.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
@media (max-width: 768px) {
  .story-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.story-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  color: #fff;
  margin-bottom: 2rem;
}
.story-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.25rem;
  max-width: 48ch;
}
.story-img {
  width: 100%;
  border-radius: 4px;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.07);
}
.story-img-caption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

/* ===== STORY MANIFESTO FLOW ===== */
.story-manifesto {
  background: #111;
  border: 1px solid rgba(230,53,53,0.2);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  margin-bottom: 5rem;
  overflow-x: auto;
}
.story-manifesto-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sm-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.sm-word {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: #fff;
  letter-spacing: 0.04em;
}
.sm-arrow {
  color: rgba(230,53,53,0.5);
  font-size: 1rem;
}
.sm-red {
  color: #e63535;
}
.sm-caption {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

/* ===== STORY CHAPTER (second block) ===== */
.story-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
  direction: rtl; /* flip image to right */
}
.story-chapter > * { direction: ltr; }
@media (max-width: 768px) {
  .story-chapter {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}
.story-chapter-img-col img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.07);
}
.story-chapter-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 1.5rem;
}

/* ===== OMAHA BADGE ===== */
.story-omaha {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 2.5rem;
}
.story-omaha-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.story-pin-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.story-omaha-city {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: #e63535;
}
.story-omaha-sub {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* ===== STORY SCENE HIGHLIGHT ===== */
.story-scene-highlight .lookbook-scene {
  position: relative;
}
.story-scene-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #e63535;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  z-index: 5;
}
.story-tag {
  background: rgba(230,53,53,0.15) !important;
  border: 1px solid rgba(230,53,53,0.4) !important;
  color: #e63535 !important;
}

/* ===== MUSIC BAR ===== */
.music-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(230,53,53,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
}
.music-bar-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.music-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.music-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  flex-shrink: 0;
}
.music-waveform span {
  display: block;
  width: 3px;
  height: 6px;
  background: rgba(230,53,53,0.4);
  border-radius: 2px;
  transition: height 0.15s ease;
}
.music-waveform.playing span {
  background: #e63535;
  animation: wave 0.8s ease-in-out infinite alternate;
}
.music-waveform span:nth-child(1)  { animation-delay: 0.0s;  --h: 16px; }
.music-waveform span:nth-child(2)  { animation-delay: 0.1s;  --h: 22px; }
.music-waveform span:nth-child(3)  { animation-delay: 0.15s; --h: 12px; }
.music-waveform span:nth-child(4)  { animation-delay: 0.05s; --h: 20px; }
.music-waveform span:nth-child(5)  { animation-delay: 0.2s;  --h: 18px; }
.music-waveform span:nth-child(6)  { animation-delay: 0.08s; --h: 22px; }
.music-waveform span:nth-child(7)  { animation-delay: 0.18s; --h: 10px; }
.music-waveform span:nth-child(8)  { animation-delay: 0.12s; --h: 16px; }
.music-waveform span:nth-child(9)  { animation-delay: 0.03s; --h: 20px; }
.music-waveform span:nth-child(10) { animation-delay: 0.14s; --h: 14px; }
@keyframes wave {
  from { height: 4px; }
  to   { height: var(--h, 16px); }
}

.music-text {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}
.music-title-marquee {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  animation: marquee 18s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.music-muted-badge {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.music-mute-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(230,53,53,0.15);
  border: 1px solid rgba(230,53,53,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e63535;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.music-mute-btn:hover {
  background: rgba(230,53,53,0.3);
  transform: scale(1.08);
}
.music-progress-wrap { display: none; }
@media (min-width: 600px) {
  .music-progress-wrap { display: block; width: 100px; }
}
.music-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.music-progress-fill {
  height: 100%;
  background: #e63535;
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s linear;
}

/* Give body padding for music bar */
body { padding-bottom: 56px; }

/* red-text helper */
.red-text { color: #e63535; }

/* ===== MUSIC BAR — SKIP BUTTONS ===== */
.music-skip-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(230,53,53,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.music-skip-btn:hover {
  background: rgba(230,53,53,0.15);
  border-color: rgba(230,53,53,0.5);
  color: #e63535;
  transform: scale(1.1);
}
.music-skip-btn:active {
  transform: scale(0.95);
}
/* Hide on very small screens */
@media (max-width: 420px) {
  #prevBtn { display: none; }
}

/* ============================================
   PLAYLIST DRAWER
   ============================================ */

/* Backdrop */
.playlist-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9997;
  backdrop-filter: blur(2px);
}
.playlist-backdrop.open { display: block; animation: fadeIn 0.2s ease; }

/* Drawer */
.playlist-drawer {
  position: fixed;
  bottom: 56px;       /* sits above the music bar */
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(420px, 96vw);
  background: #111;
  border: 1px solid rgba(230,53,53,0.25);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34,1.26,0.64,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.7);
}
.playlist-drawer.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Drawer header */
.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.playlist-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #e63535;
}
.playlist-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.playlist-close:hover { background: rgba(230,53,53,0.2); color: #e63535; }

/* Playlist items */
.playlist-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.75rem 0.75rem;
  max-height: 260px;
  overflow-y: auto;
}
.playlist-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.playlist-item:hover { background: rgba(255,255,255,0.05); }
.playlist-item.active { background: rgba(230,53,53,0.1); }

/* Track number / play icon */
.pl-num {
  width: 22px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.playlist-item.active .pl-num { color: #e63535; }

/* Track info */
.pl-info {
  flex: 1;
  min-width: 0;
}
.pl-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-item.active .pl-title { color: #e63535; }
.pl-artist {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* Animated bars for currently playing track */
.pl-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  flex-shrink: 0;
}
.pl-bars span {
  display: block;
  width: 3px;
  background: #e63535;
  border-radius: 2px;
  animation: plBar 0.7s ease-in-out infinite alternate;
}
.pl-bars span:nth-child(1) { animation-delay: 0.0s; --ph: 14px; }
.pl-bars span:nth-child(2) { animation-delay: 0.2s; --ph: 8px;  }
.pl-bars span:nth-child(3) { animation-delay: 0.1s; --ph: 12px; }
.pl-bars span:nth-child(4) { animation-delay: 0.3s; --ph: 6px;  }
@keyframes plBar {
  from { height: 3px; }
  to   { height: var(--ph, 10px); }
}

/* ── Music info button (clickable area for playlist) ── */
.music-info-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.25rem;
  border-radius: 6px;
  transition: background 0.15s;
  overflow: hidden;
}
.music-info-btn:hover { background: rgba(255,255,255,0.05); }

/* Chevron rotates when open */
.playlist-chevron {
  color: rgba(230,53,53,0.6);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Progress bar clickable cursor */
.music-progress-bar { cursor: pointer; }

/* ===== PLAYLIST PILL BUTTON ===== */
.playlist-pill-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 32px;
  border-radius: 20px;
  background: rgba(230,53,53,0.15);
  border: 1px solid rgba(230,53,53,0.45);
  color: #e63535;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.playlist-pill-btn:hover,
.playlist-pill-btn.active {
  background: rgba(230,53,53,0.3);
  border-color: #e63535;
  transform: translateY(-1px);
}
.pl-chevron {
  transition: transform 0.22s ease;
}
/* Hide label text on very small screens, keep icon */
@media (max-width: 480px) {
  .playlist-pill-btn span { display: none; }
  .playlist-pill-btn { padding: 0 9px; gap: 3px; }
}

/* ============================================================
   HAMBURGER MENU + MOBILE NAV DRAWER
   ============================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 9999;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Animate to X when open */
body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 2rem 1.5rem;
}
.mobile-nav-links a {
  display: block;
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 0.9rem 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s;
  min-height: 44px;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.nav-highlight { color: #E8161A; }
.mobile-nav-links .mobile-nav-shop {
  margin-top: 1rem;
  background: #E8161A;
  color: #fff !important;
  border-radius: 4px;
  border-bottom: none;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  /* Hide the header Shop Now on narrow screens (it's in the drawer) */
  .header-cta { display: none; }
  /* Show mobile nav */
  .mobile-nav-drawer { display: flex; }
}

/* ============================================================
   TOUCH TARGET ENLARGEMENT — player controls
   Use ::before pseudo-element to expand tap area without
   changing visual size (WCAG 2.5.5 / 2.5.8)
   ============================================================ */

/* All player control buttons get 44x44 minimum tap area */
.rl-ctrl-btn {
  position: relative;
}
.rl-ctrl-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  width: max(100%, 44px);
  height: max(100%, 44px);
}

/* Queue button: full-area tap target */
.rl-queue-btn {
  position: relative;
}
.rl-queue-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
}

/* Mute button specifically — make it stand out more on mobile */
@media (max-width: 768px) {
  #muteBtn {
    background: rgba(230, 53, 53, 0.12) !important;
    border: 1px solid rgba(230, 53, 53, 0.4) !important;
    border-radius: 6px !important;
  }
  #muteBtn:active {
    background: rgba(230, 53, 53, 0.3) !important;
  }
}
