/* Songs catalogue page. Builds on style.css tokens; light pages only. */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Hero strip ---------- */
.songs-hero { padding: 48px 0 28px; text-align: center; position: relative; }
.songs-hero::after {
  content: ""; display: block; height: 1px; max-width: 520px; margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.songs-hero .deva { font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--maroon); margin-bottom: 8px; }
.songs-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); font-style: italic; margin-bottom: 14px; }
.songs-hero .lede { max-width: 36em; margin: 0 auto 26px; }
html[lang="hi"] .songs-hero .deva { display: none; }

.song-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; margin: 0 auto;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold-soft);
}
.song-stats div { padding: 14px 6px 12px; border-right: 1px solid var(--gold-soft); }
.song-stats div:last-child { border-right: 0; }
.song-stats dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.35; }
.song-stats dd {
  margin: 0 0 4px; font-family: var(--f-display); font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 500;
  color: var(--maroon); line-height: 1; min-height: 1em; font-variant-numeric: lining-nums tabular-nums;
}
.song-stats div { display: flex; flex-direction: column-reverse; }
html[lang="hi"] .song-stats dt { letter-spacing: 0; text-transform: none; font-size: .82rem; }

/* ---------- Controls ---------- */
.catalogue { padding: 8px 0 72px; }
.controls {
  background: rgba(255, 253, 248, .92); border: 1px solid var(--gold-soft); border-top: 3px solid var(--saffron);
  padding: 14px 14px 6px; margin-bottom: 22px;
}
@media (min-width: 900px) {
  .controls { padding: 16px 20px 6px; box-shadow: 0 8px 22px -18px rgba(74, 44, 20, .45); }
}
.ctl-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.ctl-row .search { grid-column: 1 / -1; }
@media (min-width: 720px) { .ctl-row { grid-template-columns: 1fr auto auto; } .ctl-row .search { grid-column: auto; } }

.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--saffron-ink); pointer-events: none; }
.search input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--gold); border-radius: 999px; padding: 11px 16px 11px 42px; min-height: 46px;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #8E7A68; }
.search input:focus { outline: 2px solid var(--saffron); outline-offset: 1px; border-color: var(--saffron); }

.vid-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; user-select: none; min-height: 44px; }
.vid-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vid-toggle .switch {
  width: 40px; height: 22px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--gold);
  position: relative; flex: none; transition: background .2s;
}
.vid-toggle .switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gold); transition: transform .2s;
}
.vid-toggle input:checked + .switch { background: var(--maroon); border-color: var(--maroon); }
.vid-toggle input:checked + .switch::after { transform: translateX(18px); border-color: var(--white); }
.vid-toggle input:focus-visible + .switch { outline: 2px solid var(--saffron); outline-offset: 3px; }

.sort select {
  font: inherit; font-size: .92rem; color: var(--ink); background: var(--white); border: 1px solid var(--gold-soft);
  border-radius: 999px; padding: 9px 30px 9px 14px; min-height: 44px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237A1F2B' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}

.chip-group { display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: center; margin-top: 10px; }
.chip-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--saffron-ink); }
html[lang="hi"] .chip-label { letter-spacing: 0; font-size: .85rem; }
.chips-scroll {
  display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 2px 6px;
  scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent; min-width: 0;
}
@media (min-width: 900px) { .chips-scroll { flex-wrap: wrap; overflow: visible; } }
.fchip {
  flex: none; font: inherit; font-size: .86rem; line-height: 1.2; padding: 7px 13px; min-height: 34px;
  border-radius: 999px; border: 1px solid var(--gold-soft); background: var(--white); color: var(--ink); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.fchip:hover { border-color: var(--gold); background: #FFF8EA; }
.fchip[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.result-line { margin: 6px 0 4px; font-size: .86rem; color: var(--ink-soft); min-height: 1.5em; }

/* ---------- Album accordion ---------- */
.albums { display: grid; gap: 10px; min-height: 60vh; }
.album-skel {
  height: 92px; border: 1px solid var(--gold-soft);
  background: linear-gradient(90deg, var(--paper) 0%, #FBF4E6 40%, var(--paper) 80%) 0 0 / 200% 100%;
  animation: skel 1.4s linear infinite;
}
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .album-skel { animation: none; } }

.album { background: var(--white); border: 1px solid var(--gold-soft); transition: border-color .2s, box-shadow .2s; }
.album.is-open { border-color: var(--gold); box-shadow: var(--shadow); }
.ahead { margin: 0; font: inherit; }
.atoggle {
  width: 100%; display: grid; grid-template-columns: 64px 1fr 22px; grid-template-rows: auto auto; column-gap: 14px;
  align-items: center; text-align: left; font: inherit; color: inherit; background: transparent; border: 0;
  padding: 12px 14px; cursor: pointer; min-height: 88px;
}
.atoggle:hover { background: #FFF9EE; }
.atoggle:focus-visible { outline-offset: -3px; }
.acover {
  grid-row: 1 / span 2; width: 64px; height: 64px; overflow: hidden; position: relative; background: var(--paper);
  border: 1px solid var(--gold-soft); display: block;
}
.acover img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.1); }
.acover .mono {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-style: italic; font-size: 2rem; color: var(--maroon);
  background: radial-gradient(circle at 50% 55%, rgba(217, 123, 41, .16), transparent 62%),
    repeating-linear-gradient(45deg, rgba(201, 169, 97, .14) 0 1px, transparent 1px 10px), var(--paper);
}
.ayear { grid-column: 2; font-family: var(--f-display); font-style: italic; font-size: 1rem; color: var(--saffron-ink); line-height: 1.1; }
.atext { grid-column: 2; display: flex; flex-direction: column; min-width: 0; }
.aname { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.ameta { font-size: .86rem; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
.acount { display: flex; gap: 10px; align-items: center; font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); margin-top: 4px; }
.avid { display: inline-flex; align-items: center; gap: 4px; color: var(--maroon); font-weight: 600; }
.avid svg { width: 11px; height: 11px; }
.achev { grid-column: 3; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--maroon); transition: transform .25s ease; }
.atoggle[aria-expanded="true"] .achev { transform: rotate(180deg); }

@media (min-width: 720px) {
  .atoggle { grid-template-columns: 76px 84px 1fr 22px; grid-template-rows: auto; padding: 14px 20px; }
  .acover { grid-row: auto; width: 76px; height: 76px; }
  .ayear { grid-column: 2; font-size: 1.9rem; font-style: normal; font-weight: 500; color: var(--maroon); text-align: center; border-right: 1px solid var(--gold-soft); padding-right: 12px; }
  .atext { grid-column: 3; }
  .achev { grid-column: 4; grid-row: auto; }
  .aname { font-size: 1.45rem; }
}

.apanel { border-top: 1px solid var(--gold-soft); }
.tracks { list-style: none; margin: 0; padding: 4px 0 8px; }

/* Track rows: mobile stack, desktop ledger */
.trow {
  display: grid; grid-template-columns: 30px 1fr auto; column-gap: 10px; row-gap: 8px; align-items: start;
  padding: 12px 14px; border-bottom: 1px dashed var(--gold-soft);
}
.trow:last-child { border-bottom: 0; }
.tn { font-family: var(--f-display); font-size: 1.05rem; color: var(--saffron-ink); line-height: 1.5; text-align: right; font-variant-numeric: tabular-nums; }
.tmain { min-width: 0; display: flex; flex-direction: column; }
.tt { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ts { font-size: .88rem; color: var(--ink-soft); line-height: 1.4; }
.tisrc { font-size: .7rem; letter-spacing: .08em; color: #8E7A68; margin-top: 2px; font-variant-numeric: tabular-nums; }
.td { font-size: .86rem; color: var(--ink-soft); line-height: 1.6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.tvideo { grid-column: 1 / -1; }
.tvideo .yt { max-width: 720px; margin: 4px auto 6px; }

@media (min-width: 900px) {
  .trow { grid-template-columns: 34px minmax(0, 1fr) 64px auto; column-gap: 16px; align-items: center; padding: 10px 20px; }
  .tp { grid-column: auto; justify-content: flex-end; }
  .td { text-align: right; }
}

.pbtn {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .82rem; font-weight: 600;
  padding: 5px 12px 5px 7px; min-height: 34px; border-radius: 999px; border: 1px solid var(--gold-soft);
  background: var(--white); color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.pbtn:hover { border-color: var(--gold); background: #FFF8EA; color: var(--ink); transform: translateY(-1px); }
.pbtn .lg { width: 18px; height: 18px; }
.pbtn .lg-text { font-size: 8px; line-height: 18px; border-radius: 4px; }
.pbtn-yt[aria-expanded="true"] { border-color: var(--maroon); background: #FFF3EC; }
.nolink { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #8E7A68; padding: 6px 0; }
html[lang="hi"] .nolink { letter-spacing: 0; text-transform: none; font-size: .82rem; }

/* Lite embeds: reserved 16:9 box so loading never shifts layout */
.yt.lite { display: block; }
.yt.lite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt.lite.playing::after { content: none; }

.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--gold); background: rgba(255, 253, 248, .7); }
.empty p { color: var(--ink-soft); }

/* ---------- Latest on the channel ---------- */
.latest .sec-head { margin-bottom: 28px; }
.vgrid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.vcard { margin: 0; background: var(--white); border: 1px solid var(--gold-soft); display: flex; flex-direction: column; }
.vcard .yt { border: 0; border-bottom: 1px solid var(--gold-soft); }
.vcard .yt .play { width: 58px; height: 58px; }
.vcard figcaption { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.vt { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vt:hover { color: var(--maroon); text-decoration: underline; }
.vm { font-size: .8rem; color: var(--ink-soft); }
.channel-cta { text-align: center; margin: 34px 0 0; }

.source-note {
  margin: 40px auto 56px; max-width: 720px; text-align: center; font-family: var(--f-display); font-style: italic;
  font-size: 1.08rem; color: var(--ink-soft); padding-top: 18px; border-top: 1px solid var(--gold-soft);
}
html[lang="hi"] .source-note { font-style: normal; }

@media print {
  .controls, .latest, .tp, .tvideo { display: none !important; }
  .apanel[hidden] { display: block !important; }
}

.tcred { display: inline-block; align-self: flex-start; width: auto; max-width: max-content; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; letter-spacing: .02em; color: var(--maroon, #7A1F2B); border: 1px solid rgba(201,169,97,.7); background: rgba(255,255,255,.7); vertical-align: middle; }

.atag { display: inline-block; align-self: flex-start; width: auto; max-width: max-content; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft, #6b5a4e); border: 1px solid rgba(201,169,97,.6); vertical-align: middle; font-family: var(--f-body, sans-serif); font-weight: 600; }
