/* ── MUSIC PAGE ─────────────────────────────────────────────── */

.right {
  overflow-y: scroll; overflow-x: hidden;
  display: flex; flex-direction: column;
}

.video-section-wrap {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 2rem 3vw 1.5rem; flex-shrink: 0;
  background: rgba(0,0,0,0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 15px;
  border-left: 3px solid #ffffff57;
}

/* TOP ROW */
.video-top-row {
  display: flex; flex-direction: row;
  gap: 1.5rem; margin-bottom: 1rem; flex-shrink: 0;
}
.video-player-col { flex: 1.6; min-width: 0; }
.video-desc-col {
  flex: 1; min-width: 0;
  position: relative;
  /* The player column (aspect-ratio 16/9) sets the row height. This column
     hosts the description panel as an absolute fill so a long description can
     never stretch the row — it scrolls inside the panel instead. */
}

/* Player */
.video-player-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border: 1px solid rgba(184,146,42,0.2); overflow: hidden;
  flex-shrink: 0; border-radius: 10px;
}
.video-player-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
#playerPlaceholder {
  position: absolute; inset: 0;
  background: #111; display: flex;
  align-items: center; justify-content: center;
  color: var(--bone); font-style: italic; font-size: 0.9rem; opacity: 0.5;
}

/* Now playing description */
.now-playing {
  display: none; flex-direction: row;
  align-items: flex-start; gap: 10px;
  padding: 1.8rem;
  /* Frosted glass panel (matches the Contact form) */
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid rgba(232, 224, 208, 0.22);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  /* Fill the column (= player height); scroll text inside, keep all corners. */
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(184,146,42,0.35) transparent;
}
.now-playing::-webkit-scrollbar { width: 5px; }
.now-playing::-webkit-scrollbar-thumb {
  background: rgba(184,146,42,0.35); border-radius: 3px;
}
.now-playing.visible { display: flex; }

.now-playing-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: pulse-dot 1.5s infinite;
  flex-shrink: 0; margin-top: 0.6rem; align-self: flex-start;
}
.now-playing-text {
  display: flex; flex-direction: column; gap: 0.4rem;
  min-width: 0; flex: 1; position: relative;
}
.now-playing-title {
  font-style: normal; font-size: 1.35rem;
  color: var(--parchment); font-weight: 600;
  white-space: normal; word-break: break-word; line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
}
.now-playing-desc {
  font-size: 1.05rem; font-style: italic;
  color: var(--parchment); opacity: 0.75; line-height: 1.5;
}
.now-playing-desc:empty { display: none; }

/* Legacy scroll affordances — superseded by the scrollable panel + scrollbar. */
.desc-fade,
.desc-more { display: none !important; }

/* List */
.video-list-row {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(184,146,42,0.2) transparent;
}
.video-list-row::-webkit-scrollbar { width: 3px; }
.video-list-row::-webkit-scrollbar-thumb { background: rgba(184,146,42,0.2); border-radius: 2px; }

.video-list { display: flex; flex-direction: column; }

.video-list-item {
  display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0;
  border-bottom: 1px solid rgba(200,185,160,0.12);
  cursor: pointer; transition: background 0.2s;
}
.video-list-item:first-child { border-top: 1px solid rgba(200,185,160,0.12); }
.video-list-item:hover  { background: rgba(184,146,42,0.04); }
.video-list-item.active { background: rgba(184,146,42,0.07); }

.video-list-num {
  font-size: 1.05rem; color: var(--gold); opacity: 0.6;
  min-width: 28px; text-align: right; font-style: italic;
  flex-shrink: 0; transition: opacity 0.2s;
}
.video-list-item:hover .video-list-num,
.video-list-item.active .video-list-num { opacity: 1; }

.thumb-wrap { position: relative; flex-shrink: 0; }
.video-list-thumb {
  width: 96px; aspect-ratio: 16/9; object-fit: cover; display: block;
  filter: grayscale(20%) brightness(0.8); transition: filter 0.2s;
}
.video-list-item:hover .video-list-thumb,
.video-list-item.active .video-list-thumb { filter: none; }
.thumb-duration {
  position: absolute; bottom: 3px; right: 3px;
  background: rgba(0,0,0,0.8); color: #fff;
  font-size: 0.6rem; font-style: italic; padding: 1px 4px;
}

.video-list-info { flex: 1; min-width: 0; }
.video-list-title {
  font-family: 'Playfair Display', serif; font-size: 1.02rem;
  color: var(--parchment); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
}
.video-list-item.active .video-list-title { color: var(--gold); }
.video-list-meta { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.video-list-date { font-size: 0.88rem; color: var(--parchment); opacity: 0.8; font-style: italic; text-shadow: 0 1px 3px rgba(0,0,0,0.9); }
.video-list-stats { display: flex; gap: 0.7rem; align-items: center; }
.stat-item {
  font-size: 0.94rem; color: var(--parchment); opacity: 0.55;
  font-style: italic; letter-spacing: 0.02em; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  transition: opacity 0.2s;
}
.video-list-item:hover .stat-item,
.video-list-item.active .stat-item { opacity: 0.65; }
.stat-like { text-decoration: none; cursor: pointer; }
.stat-like:hover { color: #e05555; opacity: 1 !important; }
.video-list-play {
  font-size: 0.7rem; color: var(--gold); opacity: 0;
  flex-shrink: 0; padding-right: 0.4rem; transition: opacity 0.2s;
}
.video-list-item:hover .video-list-play { opacity: 1; }
.video-list-item.active .video-list-play { opacity: 0.4; }

.vid-channel-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 1rem 0 0.5rem; font-size: 0.8rem; font-style: italic;
  color: var(--gold); text-decoration: none; opacity: 0.5;
  transition: opacity 0.2s;
}
.vid-channel-link:hover { opacity: 1; }

/* Scroll hint for list */
.list-scroll-hint {
  position: fixed; right: 1.8rem; bottom: 3rem; z-index: 20;
  display: none; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; opacity: 0; transition: opacity 0.4s;
}
.list-scroll-hint.visible { display: flex; opacity: 1; }
.list-scroll-hint span {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone); writing-mode: vertical-rl; opacity: 0.6;
}
.list-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse-line 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.3); }
}
@keyframes fadePulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Mobile */
@media (max-width: 1520px) {
  .video-section-wrap { position: relative; height: auto; min-height: auto; overflow: visible; }
  .video-top-row { flex-direction: column; gap: 1rem; }
  .video-player-col, .video-desc-col { flex: none; width: 100%; height: auto !important; }
  .video-desc-col { overflow: visible; position: static; }
  .now-playing { overflow: visible; height: auto !important; max-height: none !important; position: static; inset: auto; }
  .desc-fade, .desc-more { display: none !important; }
  .video-list-row { overflow: visible; max-height: none; flex: none; }
  .list-scroll-hint { display: none !important; }
  .video-list-thumb { width: 76px; }
  .video-list-num { display: none; }
}
