/* ============================================================================
   Maker Radio — /player "Listen Live" dashboard.  At-a-glance: everything fits
   the viewport between the header and the ever-present bottom bar; only the
   Recently-played panel scrolls. Bar styles live in site-player.css.
   ============================================================================ */

.player-page { background: var(--black); }

@media (min-width: 900px) {
  /* min-height (not height) + no overflow lock: identical dashboard layout when
     everything fits, but the page scrolls normally when content is taller than
     the viewport minus the (now taller) fixed bottom bar — nothing gets trapped. */
  .player-page { min-height: 100vh; display: flex; flex-direction: column; box-sizing: border-box; }
  .player-page .site-header { flex: 0 0 auto; width: 100%; } /* fill to its 1100 max so it lines up with .player */
  .player { flex: 1 1 auto; min-height: 0; }
}

.player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 400px);
  gap: clamp(16px, 2.4vw, 34px);
  /* Same 1100px container + horizontal padding as .site-header / main / .site-footer,
     so the album-to-events row lines up exactly under the logo-to-nav row. */
  max-width: 1100px; width: 100%; margin: 0 auto;
  padding: clamp(14px, 2.2vw, 26px) 1.4rem;
  box-sizing: border-box;
}

/* ---- Left column: now playing + bio + discography ------------------------ */
.np-col { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 24px); min-height: 0; position: relative; }

.np-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: center; }
.np-art {
  width: clamp(132px, 15vw, 188px); height: clamp(132px, 15vw, 188px);
  object-fit: cover; border-radius: 14px; background: #111; box-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.np-meta { min-width: 0; }
.np-eyebrow { font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin: 0 0 8px; }
/* ON THE AIR studio-light pill (site feedback #19) — only present when the live
   feed is real; setEyebrow() strips it for demo/offline states. */
.np-eyebrow.is-live { display: inline-flex; align-items: center; gap: 7px; color: #ff6b62; border: 1px solid rgba(255, 82, 82, .45); border-radius: 999px; padding: 3px 11px; }
.on-air-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 7px rgba(255, 59, 48, .85); animation: onAirPulse 2.2s ease-in-out infinite; }
@keyframes onAirPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .on-air-dot { animation: none; } }
/* Fixed slots: clamp + reserved height so the layout never jumps between tracks */
.np-song { font-family: 'Heebo', sans-serif; font-weight: 800; font-size: clamp(24px, 3vw, 40px); line-height: 1.06; color: var(--white); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.12em; }
.np-artist { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(15px, 1.6vw, 20px); color: var(--pink); margin: 8px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-album { color: var(--muted); font-size: 14px; margin: 5px 0 0; min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Content floats into its fixed slot; images preload then swap in. */
@keyframes npFloatIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.np-anim { animation: npFloatIn .34s ease both; }
.np-watch {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; text-decoration: none;
  font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; color: var(--white);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 7px 15px;
  transition: background .15s, border-color .15s;
}
.np-watch:hover { background: rgba(255,0,0,.16); border-color: #ff4d4d; }
.np-watch svg { color: #ff4d4d; }
/* display:inline-flex above beats the hidden attribute's UA display:none — restore it */
.np-watch[hidden] { display: none; }
/* No verified video: button stays visible but inert and greyed */
.np-watch.disabled { opacity: .35; filter: grayscale(1); pointer-events: none; }

/* Bio: clamped — no long scroll. Fades after a few lines. */
.np-bio {
  color: #cfcfd6; font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 72ch;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden;
  min-height: 8em;   /* reserve ~5 lines so the discography below never jumps */
}
/* Fallback/station blurb: show in full, never clamped, never an (i) bubble */
.np-bio.full { -webkit-line-clamp: initial; display: block; min-height: 0; overflow: visible; }
/* (i) circle shown only when the bio is truncated; hover it to read the full text */
.bio-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; margin-top: 8px; padding: 0; border-radius: 50%;
  border: 1px solid var(--cyan); background: transparent; color: var(--cyan);
  font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 12px; line-height: 1;
  cursor: pointer; transition: background .15s, color .15s;
}
.bio-info:hover { background: var(--cyan); color: #000; }

/* Discography: one horizontal strip */
.np-strip { min-height: 0; }
.np-strip-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 0 12px; }
.album-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.album-row::-webkit-scrollbar { height: 6px; }
.album-row::-webkit-scrollbar-thumb { background: #2a2a32; border-radius: 999px; }
.album-card { flex: 0 0 auto; width: clamp(92px, 9vw, 116px); text-decoration: none; color: var(--white); }
.album-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; background: #111; transition: transform .18s; }
.album-card:hover img { transform: translateY(-3px); }
.album-card .album-name { font-size: 12px; margin: 6px 0 0; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-card .album-year { font-size: 11px; color: var(--muted); }

/* Upcoming shows: local (≤50mi of Chico) highlighted, regional listed plainly */
.concerts { display: flex; flex-direction: column; gap: 8px; }
.concert-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white);
  padding: 8px 11px; border-radius: 10px; background: rgba(255,255,255,.04);
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.concert-card:hover { background: rgba(255,255,255,.08); }
.concert-card.local { background: rgba(0,209,255,.10); border-color: rgba(0,209,255,.4); }
.concert-date { flex: 0 0 auto; min-width: 46px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .03em; color: var(--cyan); text-transform: uppercase; }
.concert-info { min-width: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.concert-venue { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.concert-loc { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.concert-badge { flex: 0 0 auto; font-family: 'Poppins', sans-serif; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #001620; background: var(--cyan); border-radius: 999px; padding: 3px 8px; }

/* ---- Right column: recently played (top, scrolls) + events (below) ------- */
.right-col { display: flex; flex-direction: column; gap: 20px; min-height: 0; }

/* Recently played: compact rows, 5 shown by default, "Show more" expands+scrolls */
.history-block { flex: 0 0 auto; min-height: 0; display: flex; flex-direction: column; }
.right-col.history-open .history-block { flex: 1 1 auto; }
.history { list-style: none; margin: 0; padding: 0 6px 0 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.history::-webkit-scrollbar { width: 6px; }
.history::-webkit-scrollbar-thumb { background: #2a2a32; border-radius: 999px; }
.history.collapsed { overflow: hidden; }
.history.collapsed li:nth-child(n+6) { display: none; }
.history li { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid #141417; }
.history li img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; background: #111; flex: 0 0 auto; }
.history .h-text { min-width: 0; }
.history .h-title { font-size: 13px; font-weight: 600; color: var(--white); }
.history .h-artist { font-size: 11.5px; color: var(--muted); }
.history .h-text > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-btn {
  align-self: flex-start; margin-top: 8px; padding: 4px 0; background: none; border: none; cursor: pointer;
  color: var(--pink); font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.more-btn:hover { text-decoration: underline; }

/* Events: readable flyer strip; hover enlarges the flyer in the center */
/* NOTE: scoped under .events so these beat main.css's homepage `.event-card img`
   rule (the player reuses the .event-card class). */
.events-block { flex: 0 0 auto; }
.events { display: flex; flex-direction: column; gap: 14px; }
.events .event-card { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--white);
  background: none; border: none; border-radius: 0; padding: 0; overflow: visible; }
.events .event-thumb { flex: 0 0 auto; width: 58px; height: auto; object-fit: contain; border-radius: 8px; background: #111; margin: 0; transition: transform .15s; cursor: zoom-in; }
.events .event-card:hover .event-thumb { transform: translateY(-2px); }
.events .event-body { min-width: 0; flex: 1 1 auto; }
/* Date + time on ONE line, then the FULL title below (never truncated) */
.events .event-when { font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--cyan); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.events .event-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; margin-top: 3px; }
.events .event-card:hover .event-name { color: var(--pink); }
.muted-note { color: var(--muted); font-size: 14px; }

/* Enlarged flyer popup — fades + scales in on thumbnail hover (no instant "bam"). */
.event-popup {
  position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.72); pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
}
.event-popup[hidden] { display: none; }
.event-popup.show { opacity: 1; visibility: visible; }
.event-popup img {
  max-width: min(440px, 82vw); max-height: 82vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.75);
  transform: scale(.94); transition: transform .26s cubic-bezier(.2,.7,.3,1);
}
.event-popup.show img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .event-popup, .event-popup img { transition: none; }
}

/* Full-bio reader (shown on hover when the description is clamped) */
.bio-popup { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.7); pointer-events: none; padding: 24px; }
.bio-popup[hidden] { display: none; }
.bio-popup-card {
  max-width: 620px; max-height: 76vh; overflow: hidden; background: #121217; border: 1px solid #26262e;
  border-radius: 16px; padding: 28px 30px; box-shadow: 0 28px 80px rgba(0,0,0,.7);
}
.bio-popup-card h3 { font-family: 'Heebo', sans-serif; font-weight: 800; font-size: 22px; color: var(--white); margin: 0 0 12px; }
.bio-popup-card p { color: #d7d7df; font-size: 15px; line-height: 1.65; margin: 0; }

/* ---- Mobile: stack, allow natural page scroll --------------------------- */
@media (max-width: 899px) {
  /* minmax(0,1fr), not bare 1fr: long unbreakable track/venue text must truncate,
     not stretch the column past the viewport (caused a sideways wobble on phones). */
  .player { grid-template-columns: minmax(0, 1fr); padding-bottom: 90px; }
  .np-hero { grid-template-columns: 1fr; justify-items: start; text-align: left; }
  .np-art { width: 56vw; max-width: 260px; height: auto; aspect-ratio: 1; }
  .np-bio { -webkit-line-clamp: 6; }
}

/* ---- Promo / station-ID branding overlay --------------------------------- */
.promo-overlay {
  display: none;          /* shown via .active class */
  position: absolute;
  inset: 0;
  background: var(--black);
  z-index: 10;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  min-height: 220px;
}
.promo-overlay.active { display: flex; }
.promo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;     /* above the video */
  z-index: 1;
  animation: promoPulse 2s ease-in-out infinite;
}
.promo-logo { width: 140px; height: auto; }
.promo-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}
/* Between-song upcoming-event flyer (shown in place of the branding video) */
.promo-flyer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: flex-end;
  text-decoration: none;
  overflow: hidden;
  background: var(--black);
}
.promo-flyer.active { display: flex; animation: flyerFade 0.6s ease; }
.promo-flyer-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show the whole poster, never crop event details */
}
.promo-flyer-cap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0));
}
.promo-flyer-kicker {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.promo-flyer-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: #fff;
}
.promo-flyer-when {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
}
@keyframes flyerFade { from { opacity: 0; } to { opacity: 1; } }

@keyframes promoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
