/* ============================================================
   songs3.css — Single Song Page Styles
   (All inline <style> blocks from song.php merged here)
   ============================================================ */

/* ═══════════════════════════════════════════
   COLUMNS
═══════════════════════════════════════════ */
.left,
.right {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

/* ═══════════════════════════════════════════
   SONG HEADER
═══════════════════════════════════════════ */
.song-header {
  background: var(--prime);
  backdrop-filter: blur(10px);
  border: 1px solid var(--prime-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: .75rem 1rem .25rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  transition: box-shadow var(--transition);
}
.song-header:hover { box-shadow: var(--shadow-md); }

.song-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}
.song-title .muted {
  color: var(--text-secondary);
  font-weight: 500;
}

.song-meta { display: flex; flex-direction: column; gap: .5rem; }

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .5rem;
  font-size: 1rem;
  color: var(--text-primary);
  align-items: center;
}

.badge {
  background: linear-gradient(135deg, #0077ff, #4da6ff);
  border: 1px solid var(--prime-border);
  color: #fff;
  padding: .2rem .5rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .song-title  { font-size: 1.1rem; }
  .meta-list   { font-size: .8rem; }
}

/* ═══════════════════════════════════════════
   YOUTUBE PLAYER
   (moved from inline <style> in song.php)
═══════════════════════════════════════════ */

/*.youtube-container {*/
/*    position: relative; */
/*  display: flex;*/
/*  justify-content: center;*/
/*  width: 100%;*/
/*  padding: .25rem;*/
/*  align-items: center;*/
/*  background: var(--prime-yellow);*/
/*  border: 1px solid var(--prime-border);*/
/*  box-sizing: border-box;*/
/*  z-index: 1;*/
/*  border-radius: var(--radius-sm);*/
/*  transition: all 0.3s ease;*/
/*}*/

.youtube-container {
  position: relative;
  width: 100%;
  /*max-width: 560px;*/
  margin: 0 auto;
  padding: .2rem;
  /*aspect-ratio: 16 / 9; */
  transition: all 0.3s ease;
  background: linear-gradient(
  to right,
  rgba(180, 205, 255, 0.65) 0%,
  #fff7ed 50%,
  rgba(180, 205, 255, 0.65) 100%
);
}
.youtube-container.floating {
  position: fixed;
 top: 10px;
  right: 10px;
  width: 250px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 8px;
}

.youtube-spacer {
  height: 1px;
  transition: height 0.3s ease;
}

.youtube-wrapper {
 position: relative;   /* not absolute */
  
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
   height: 100%;
  cursor: pointer;
  overflow: hidden;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.youtube-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-wrapper .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 12px;
  transition: background var(--transition);
}
.youtube-wrapper:hover .overlay {
  background: rgba(0, 0, 0, 0.22);
}

.youtube-wrapper .overlay h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.play-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  transition: transform var(--transition), background var(--transition);
}
.youtube-wrapper:hover .play-button {
  background: var(--accent);
  transform: scale(1.1);
}
.play-button i { transform: translateX(3px); }
.all-detail{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap:-2px;
}
.all-artists {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: .5rem;
  gap: 8px;
}
/* Subtle visual hints when video is missing/deleted */
.youtube-wrapper.video-missing {
    border: 2px solid #ff4444;           /* subtle red border */
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15);
    opacity: 0.92;
}

.youtube-wrapper.video-missing .overlay {
    background: rgba(0, 0, 0, 0.55);     /* slightly darker overlay */
}

.youtube-wrapper.video-missing .play-button {
    background: rgba(255, 68, 68, 0.7);
    transform: scale(0.95);
}

.youtube-wrapper.video-missing h3::after {
    content: " • Video unavailable";
    font-size: 0.85rem;
    opacity: 0.75;
    margin-left: 6px;
}

/* Very subtle pulse on the play button when missing */
.youtube-wrapper.video-missing .play-button {
    animation: missingPulse 2s infinite ease-in-out;
}

@keyframes missingPulse {
    0%, 100% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
}

/* ═══════════════════════════════════════════
   LYRICS
═══════════════════════════════════════════ */
#lyrics {
  scroll-margin-top:  168px; /* fallback to 80px */
}
.visually-hidden-songs {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lyrics {
  background: var(--prime);
  backdrop-filter: blur(10px);
  /*border: 1px solid var(--prime-border);*/
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--text-primary);
  white-space: pre-wrap;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: box-shadow var(--transition);
}
.lyrics:focus { box-shadow: 0 0 0 3px rgba(0,119,255,0.18); }

/* ═══════════════════════════════════════════
   BLOCKQUOTE (inside e_detail / summary)
   (moved from inline <style>)
═══════════════════════════════════════════ */
blockquote {
  width: auto;
  margin: 1.5rem 3rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(0, 0, 0, 0.03);
  font-style: italic;
  color: #444;
}
blockquote p {
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   ARTIST SECTION
   (merged inline styles)
═══════════════════════════════════════════ */
.artist {
  background: var(--prime-yellow);
  backdrop-filter: blur(10px);
  /*border: 1.5px solid var(--prime-border);*/
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.artist h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.artist-detail {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.artist-detail img {
  border-radius: 50%;
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.artist-detail img:hover { transform: scale(1.06); }

.artist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.artist ul li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.name-h {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Artist name pill */
.a-name {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: .9;
  background: linear-gradient(135deg, #0077ff, #4da6ff);
  border: 1px solid var(--prime-border);
}
.a-name a { color: #fff; }

/* Repeated person — muted, no link */
.a-name.muted {
  color: #999;
  background: rgba(255,255,255,0.1);
  border-style: dashed;
}

/* Album / movie inline info row */
.al-info {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   SHARE CARD
   (new — pill buttons + preview article)
═══════════════════════════════════════════ */
.card {
  background: var(--prime);
  backdrop-filter: blur(10px);
  /*border: 1px solid var(--prime-border);*/
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.card h4 {
  font-size: 1.1rem;
  margin: 0 0 .75rem 0;
  color: var(--text-primary);
}

/* Link-preview article (mirrors Facebook/WhatsApp card) */
.share-preview {
  display: flex;
  gap: .75rem;
  align-items: center;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--prime-border);
  border-radius: var(--radius-md);
  padding: .65rem .8rem;
  margin-bottom: .85rem;
  box-shadow: var(--shadow-sm);
}
.share-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.8);
}
.share-preview-text {
  flex: 1;
  min-width: 0;
}
.share-preview-text strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-preview-text p {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 .25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.share-url {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Pill share buttons */
.share-social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .65rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.share-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.share-fb { background: #1877f2; }
.share-tw { background: #000; }
.share-wa { background: #25d366; }

.share-devnagari {
  margin-top: .25rem;
  font-size: .88rem;
}
.share-devnagari a {
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   SUMMARY / SONG DETAIL
   (merged from inline + head styles)
═══════════════════════════════════════════ */
.summary {
  background: var(--prime-yellow);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: justify;
  text-justify: inter-word;
}

.summary h3 {
  font-size: 1.2rem;
  text-transform: capitalize;
  margin: 0 auto;
  width: 80%;
}
/*.summary h3:nth-of-type(odd) { text-align: left; }*/
/*.summary h3:nth-of-type(even) { text-align: right; }*/

.summary p {
  margin: 10px auto;
  line-height: 1.2;
  font-size: 1.1rem;
  width: 80%;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}
.summary p::first-letter {
  font-size: 2rem;
  font-weight: bold;
  color: brown;
}

/* Alternating paragraph backgrounds */
.summary h3:nth-of-type(odd) + p {
  text-indent: 50px;
  background-color: var(--prime-yellow);
  /*border: 1px solid #99c;*/
  /*border-bottom-right-radius: 10px;*/
  padding: 5px 10px 5px 20px;
}
.summary h3:nth-of-type(even) + p {
  background-color: #e9e9ff;
  /*border-left: 1px solid #99c;*/
  /*border-bottom-left-radius: 10px;*/
  padding: 5px 40px 5px 10px;
}

/* ═══════════════════════════════════════════
   TRIVIA
═══════════════════════════════════════════ */
.trivia {
  background: var(--prime);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.trivia h4 {
  font-size: 1.2rem;
  margin: 0 0 .5rem 0;
}
.trivia p {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════
   RIGHT COLUMN — BOX
═══════════════════════════════════════════ */
.box {
  background: var(--prime);
  backdrop-filter: blur(10px);
  border: 1px solid var(--prime-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: .6rem .5rem .8rem;
  transition: box-shadow var(--transition);
}
.box:hover { box-shadow: var(--shadow-md); }

.box-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /*border-bottom: 1px solid var(--prime-border);*/
  padding-bottom: .35rem;
  margin-bottom: .5rem;
}
.box-head h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: capitalize;
  margin: 0;
}
.box-head h4 {
  font-size: .88rem;
  color: var(--text-secondary);
  margin-top: .15rem;
  font-weight: 500;
}

/* Artist name pill inside right column box-head */
.b-name {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255,255,255,0.2);
  border: 1px solid var(--prime-border);
  line-height: .9;
}

/* ── Featured Playlist ──────────────────── */
.playlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  padding: 0 .25rem;
}
@media (min-width: 720px) and (max-width: 1199px) {
  .playlist-grid { grid-template-columns: 1fr 1fr; }
}

/* Make .single-top an accessible link card */
a.single-top {
  display: block;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--prime-border);
  border-radius: var(--radius-md);
  padding: .75rem .9rem;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
}
a.single-top:hover {
  background: rgba(255,255,255,0.82);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
a.single-top h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .25rem 0;
  text-transform: capitalize;
}
a.single-top p {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Recent Songs ───────────────────────── */
.songs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  padding: 0 .25rem;
}
@media (min-width: 720px) and (max-width: 1199px) {
  .songs-grid { grid-template-columns: 1fr 1fr; }
}

/* Make .box-rem2 an accessible link card */
a.box-rem2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--prime-border);
  border-radius: var(--radius-md);
  padding: .6rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}
a.box-rem2:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.82);
}

.img-left img {
  border-radius: var(--radius-md);
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.img-left img:hover { transform: scale(1.06); }

.rem-right { flex: 1; min-width: 0; }
.rem-right h4 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 .2rem 0;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rem-right p {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}