/* ═══════════════════════════════════════════════════════════════
   OllieBoard — Landing Sequence + Audio Player
   Place in: assets/styles/landing.css  OR  styles/landing.css
═══════════════════════════════════════════════════════════════ */

/* ── Landing overlay ─────────────────────────────────────────── */
#ollie-landing-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.5s ease;
}
#ollie-landing-overlay.ollie-landing-visible { opacity: 1; }
#ollie-landing-overlay.ollie-landing-exit    { opacity: 0; transition: opacity 0.4s ease; }

.ollie-landing-blur {
  position: absolute; inset: 0;
  backdrop-filter: blur(20px) brightness(0.4);
  -webkit-backdrop-filter: blur(20px) brightness(0.4);
  background: rgba(13, 13, 21, 0.55);
}

/* ── Modal card ─────────────────────────────────────────────── */
.ollie-landing-modal {
  position: relative; z-index: 1;
  background: #13121a;
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 22px;
  padding: 36px 32px 28px;
  max-width: 420px; width: calc(100vw - 40px);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.07),
    0 28px 80px rgba(0,0,0,0.85),
    0 0 50px rgba(201,168,76,0.05) inset;
}

/* ── Logo ──────────────────────────────────────────────────── */
.ollie-modal-logo {
  width: 160px;
  height: auto;
  display: block;
  /* strip the dark background so only the mark + type show */
  /* background matches logo — no blend mode needed */
}

/* ── Headline ───────────────────────────────────────────────── */
.ollie-landing-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
  font-weight: 900;
  color: #C9A84C;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0; line-height: 1.05;
}

/* ── Body copy ──────────────────────────────────────────────── */
.ollie-landing-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem; color: #9A8E72;
  text-align: center; line-height: 1.65; margin: 0;
  max-width: 310px;
}

/* ── Track selector ─────────────────────────────────────────── */
.ollie-track-selector { width: 100%; display: flex; flex-direction: column; gap: 8px; }

.ollie-track-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #5A4E30; text-align: center;
}

.ollie-track-list {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  max-height: 108px; overflow-y: auto; padding: 4px 0;
  scrollbar-width: thin; scrollbar-color: #5A4E30 transparent;
}
.ollie-track-list::-webkit-scrollbar { width: 3px; }
.ollie-track-list::-webkit-scrollbar-thumb { background: #5A4E30; border-radius: 2px; }

.ollie-track-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em;
  color: #7A6E50;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.14);
  border-radius: 20px; padding: 5px 12px;
  cursor: pointer; transition: all 0.16s ease; white-space: nowrap;
}
.ollie-track-btn:hover { color: #C9A84C; border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.1); }
.ollie-track-btn.active { color: #0a0804; background: #C9A84C; border-color: #C9A84C; font-weight: 700; }

/* ── Enter button ────────────────────────────────────────────── */
.ollie-enter-btn {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #0a0804;
  background: linear-gradient(135deg, #C9A84C 0%, #F0D080 50%, #C9A84C 100%);
  background-size: 200% 200%;
  border: none; border-radius: 50px;
  padding: 14px 40px; cursor: pointer;
  box-shadow: 0 4px 24px rgba(201,168,76,0.45), 0 0 40px rgba(201,168,76,0.12);
  animation: ollieShimmer 3s ease infinite;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.ollie-enter-btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(201,168,76,0.6); }
.ollie-enter-btn:active { transform: translateY(0); }
.ollie-enter-btn:disabled { opacity: 0.55; cursor: default; transform: none; animation: none; }
.ollie-enter-icon { font-size: 0.75rem; }

@keyframes ollieShimmer {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* ── Don't show again ─────────────────────────────────────────── */
.ollie-skip-label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; color: #5A4E30;
  cursor: pointer; user-select: none;
}
.ollie-skip-label input[type="checkbox"] {
  accent-color: #C9A84C;
  width: 14px; height: 14px; cursor: pointer;
}

/* ── Tagline ─────────────────────────────────────────────────── */
.ollie-landing-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem; color: #3A3020;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   Full-screen video
═══════════════════════════════════════════════════════════════ */
#ollie-video-wrap {
  position: fixed; inset: 0; z-index: 9100;
  background: #080604;
  opacity: 0; transition: opacity 0.35s ease;
}
#ollie-video-wrap.ollie-video-visible { opacity: 1; }
#ollie-video-wrap.ollie-video-exit   { opacity: 0; }

#ollie-intro-video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ═══════════════════════════════════════════════════════════════
   Audio player — top right, persistent
═══════════════════════════════════════════════════════════════ */
#ollie-audio-player {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 8000;
  background: rgba(10, 8, 5, 0.88);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 14px;
  padding: 10px 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 200px; max-width: 240px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.06);
  backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}
#ollie-audio-player.oap-visible {
  opacity: 1; transform: translateY(0);
}

/* Track name */
.oap-track-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 600;
  color: #C9A84C; letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 100%;
}

/* Controls row */
.oap-controls {
  display: flex; align-items: center; gap: 4px;
}

.oap-btn {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px;
  color: #9A8472;
  font-size: 0.85rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
}
.oap-btn:hover {
  color: #C9A84C;
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.08);
}

.oap-btn-play {
  color: #C9A84C;
  border-color: rgba(201,168,76,0.3);
  font-size: 0.9rem;
  width: 36px; height: 36px;
}
.oap-btn-play:hover { background: rgba(201,168,76,0.15); }

.oap-btn-stop { font-size: 0.7rem; }

.oap-btn-menu {
  font-size: 0.78rem;
  border-color: transparent;
}

/* Track list dropdown */
.oap-track-menu {
  display: none; flex-direction: column; gap: 2px;
  width: 100%; max-height: 200px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #5A4E30 transparent;
}
.oap-track-menu.oap-menu-open { display: flex; }
.oap-track-menu::-webkit-scrollbar { width: 3px; }
.oap-track-menu::-webkit-scrollbar-thumb { background: #5A4E30; }

.oap-track-item {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; font-weight: 500;
  color: #7A6E50; background: transparent;
  border: none; border-radius: 6px;
  padding: 5px 8px; text-align: left;
  cursor: pointer; transition: all 0.12s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oap-track-item:hover  { color: #C9A84C; background: rgba(201,168,76,0.08); }
.oap-track-item.active { color: #C9A84C; font-weight: 700; }

/* ── Mobile adjustments ────────────────────────────────────── */
@media (max-width: 480px) {
  #ollie-audio-player {
    top: 10px; right: 10px;
    min-width: 160px; max-width: 180px;
    padding: 8px 10px;
  }
  .ollie-landing-modal { padding: 28px 20px 22px; gap: 14px; }
  .ollie-modal-logo    { width: 120px; }
}

/* ── Spotify button ─────────────────────────────────────────── */
.oap-btn-spotify {
  color: #1DB954 !important;
  border-color: rgba(29, 185, 84, 0.25) !important;
  font-size: 0.7rem;
}
.oap-btn-spotify:hover {
  background: rgba(29, 185, 84, 0.12) !important;
  border-color: rgba(29, 185, 84, 0.5) !important;
  color: #1DB954 !important;
}

/* ── Spotify connect prompt ─────────────────────────────────── */
#oap-spotify-prompt {
  width: 100%;
  animation: oapSlideIn 0.2s ease;
}
@keyframes oapSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.oap-spotify-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 10px 8px;
  background: rgba(29, 185, 84, 0.07);
  border: 1px solid rgba(29, 185, 84, 0.2);
  border-radius: 8px;
  position: relative;
}
.oap-spotify-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.oap-spotify-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1DB954;
  letter-spacing: 0.03em;
}
.oap-spotify-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  color: #7A8E78;
  line-height: 1.4;
}
.oap-spotify-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #000;
  background: #1DB954;
  border: none;
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  align-self: center;
  transition: background 0.15s ease;
}
.oap-spotify-btn:hover { background: #1ed760; }
.oap-spotify-close {
  position: absolute;
  top: 6px; right: 6px;
  background: transparent;
  border: none;
  color: #4A5A48;
  font-size: 0.65rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.oap-spotify-close:hover { color: #1DB954; }