/* Today's ācārya card (songs/_today_card.php). Self-contained: used on the songs hub,
   the acharyas hub and ācārya pages, so it carries its own colours. */
.ndt {
  --ndt-ink: #1f2a28;
  --ndt-muted: #6b6255;
  --ndt-teal: #0F4D4A;
  --ndt-acc: #b7791f;
  --ndt-acc-soft: rgba(183, 121, 31, .14);
  --ndt-line: #ecdcb8;
  position: relative;
  overflow: hidden;
  margin: 1.6rem 0 2rem;
  padding: 1.35rem 1.35rem 1rem;
  border: 1px solid var(--ndt-line);
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(247, 196, 106, .32) 0%, rgba(247, 196, 106, 0) 55%),
    linear-gradient(160deg, #fffaf0 0%, #fdf4e2 60%, #f8f1e2 100%);
  box-shadow: 0 1px 2px rgba(15, 77, 74, .05), 0 14px 34px rgba(122, 95, 51, .10);
  color: var(--ndt-ink);
  text-align: left;
}
.ndt[data-kind="disappearance"] {
  --ndt-acc: #6a5a8e;
  --ndt-acc-soft: rgba(106, 90, 142, .13);
  --ndt-line: #e2dcec;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(178, 160, 214, .28) 0%, rgba(178, 160, 214, 0) 55%),
    linear-gradient(160deg, #fcfaf6 0%, #f6f2f8 60%, #f4f0ea 100%);
}

.ndt-head { display: flex; gap: 1.1rem; align-items: flex-start; }
.ndt-faces { flex: 0 0 auto; display: flex; padding-top: .15rem; }
.ndt-face {
  display: block; width: 84px; height: 84px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, var(--ndt-acc), #f3d38c, var(--ndt-acc));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.ndt-face + .ndt-face { margin-left: -26px; }
.ndt-face img, .ndt-face span {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; object-position: center top; border: 2px solid #fff;
  background: var(--ndt-teal); color: #fff; font-size: 1.8rem; font-weight: 700;
}
.ndt-faces:has(.ndt-face + .ndt-face) .ndt-face { width: 64px; height: 64px; }
/* a festival has no portrait: its icon on a warm disc */
.ndt-face-icon > span {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid #fff; color: #fff; font-size: 2rem;
  background: radial-gradient(circle at 30% 25%, #f6c46a 0%, #d98a2b 45%, #9a4f12 100%);
}
.ndt-faces:has(.ndt-face + .ndt-face) .ndt-face-icon > span { font-size: 1.5rem; }

.ndt-intro { flex: 1 1 auto; min-width: 0; }
.ndt-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .35rem;
  padding: .22rem .65rem .22rem .5rem; border-radius: 999px; background: var(--ndt-acc-soft);
  color: var(--ndt-acc); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.ndt[data-lang="hi"] .ndt-eyebrow { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.ndt-diya { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.ndt-flame { fill: #e8892b; transform-origin: 12px 12px; animation: ndt-flicker 2.4s ease-in-out infinite; }
@keyframes ndt-flicker { 0%, 100% { transform: scale(1); opacity: 1; } 45% { transform: scale(.92, 1.06); opacity: .85; } 70% { transform: scale(1.04, .96); } }

.ndt h2 {
  margin: 0; font-size: clamp(1.15rem, 3.2vw, 1.5rem); line-height: 1.25; font-weight: 700; color: var(--ndt-teal);
}
.ndt-sub { margin: .3rem 0 0; font-size: .9rem; color: var(--ndt-muted); line-height: 1.45; }
.ndt-names { list-style: none; margin: .55rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ndt-names a {
  display: inline-flex; align-items: baseline; gap: .35rem; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--ndt-line);
  color: var(--ndt-teal); font-size: .84rem; font-weight: 600; text-decoration: none;
}
.ndt-names a:hover { border-color: var(--ndt-teal); }
.ndt-names small { color: var(--ndt-muted); font-weight: 500; font-size: .72rem; }

.ndt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .85rem; }
.ndt-play {
  display: inline-flex; align-items: center; gap: .5rem; border: 0; cursor: pointer;
  padding: .6rem 1.05rem .6rem .8rem; border-radius: 999px; background: var(--ndt-teal); color: #fff;
  font: inherit; font-size: .92rem; font-weight: 700; box-shadow: 0 6px 16px rgba(15, 77, 74, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ndt-play:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(15, 77, 74, .3); }
.ndt-play svg { width: 18px; height: 18px; fill: currentColor; }
.ndt-play small { font-weight: 500; opacity: .78; font-size: .78rem; }
.ndt-play .ndt-i-pause, .ndt.is-playing .ndt-play .ndt-i-play { display: none; }
.ndt.is-playing .ndt-play .ndt-i-pause { display: block; }
.ndt-link { color: var(--ndt-teal); font-size: .88rem; font-weight: 600; text-decoration: none; }
.ndt-link:hover { text-decoration: underline; }

.ndt-list {
  list-style: none; margin: 1.1rem 0 0; padding: .35rem; display: grid; gap: .15rem .6rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  background: rgba(255, 255, 255, .62); border: 1px solid var(--ndt-line); border-radius: 16px;
}
.ndt-item { display: flex; align-items: center; gap: .6rem; padding: .35rem .45rem; border-radius: 12px; min-width: 0; }
.ndt-item:hover { background: rgba(255, 255, 255, .9); }
.ndt-extra { display: none; }
.ndt.is-open .ndt-extra { display: flex; }
.ndt-pbtn {
  position: relative; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
  background: var(--ndt-acc-soft); color: var(--ndt-acc); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font: inherit;
}
.ndt-pbtn.is-off { cursor: default; background: transparent; color: var(--ndt-muted); }
.ndt-num { font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ndt-pbtn svg { display: none; width: 16px; height: 16px; fill: currentColor; }
.ndt-item:hover .ndt-pbtn:not(.is-off) .ndt-num, .ndt-pbtn:focus-visible .ndt-num { display: none; }
.ndt-item:hover .ndt-pbtn:not(.is-off) svg, .ndt-pbtn:focus-visible svg { display: block; }
.ndt-eq { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.ndt-eq i { display: block; width: 3px; height: 4px; border-radius: 1px; background: currentColor; }
.ndt-item.is-current .ndt-pbtn { background: var(--ndt-acc); color: #fff; }
.ndt-item.is-current .ndt-num, .ndt-item.is-current:hover .ndt-pbtn svg { display: none; }
.ndt-item.is-current .ndt-eq { display: inline-flex; }
.ndt-item.is-current.is-live .ndt-eq i { animation: ndt-eq 1s ease-in-out infinite; }
.ndt-eq i:nth-child(2) { animation-delay: -.35s !important; }
.ndt-eq i:nth-child(3) { animation-delay: -.7s !important; }
@keyframes ndt-eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.ndt-song { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.ndt-song strong { font-size: .92rem; font-weight: 600; color: var(--ndt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndt-song small { font-size: .75rem; color: var(--ndt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndt-song:hover strong { color: var(--ndt-teal); text-decoration: underline; }
.ndt-item.is-current .ndt-song strong { color: var(--ndt-teal); }

.ndt-more {
  display: block; margin: .6rem auto 0; padding: .35rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ndt-line); background: rgba(255, 255, 255, .7); color: var(--ndt-teal);
  font: inherit; font-size: .82rem; font-weight: 600;
}
.ndt-more:hover { border-color: var(--ndt-teal); }
.ndt-names-label { align-self: center; font-size: .74rem; font-weight: 700; color: var(--ndt-muted); text-transform: uppercase; letter-spacing: .04em; }
.ndt[data-lang="hi"] .ndt-names-label { text-transform: none; letter-spacing: 0; }
.ndt-names span {
  display: inline-flex; align-items: baseline; gap: .35rem; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--ndt-line); color: var(--ndt-teal); font-size: .84rem; font-weight: 600;
}
.ndt-next { margin: .85rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--ndt-muted); text-align: center; }
.ndt-next i { margin-right: .3rem; }
.ndt-next i { color: var(--ndt-acc); }
.ndt-next strong { color: var(--ndt-teal); font-weight: 600; }
.ndt-note { margin: .75rem 0 0; font-size: .72rem; color: var(--ndt-muted); text-align: center; }

@media (max-width: 560px) {
  .ndt { padding: 1.1rem 1rem .9rem; border-radius: 18px; }
  .ndt-head { gap: .8rem; }
  .ndt-face { width: 64px; height: 64px; }
  .ndt-faces:has(.ndt-face + .ndt-face) .ndt-face { width: 48px; height: 48px; }
  .ndt-face + .ndt-face { margin-left: -20px; }
  .ndt-head:has(.ndt-face + .ndt-face) { flex-direction: column; gap: .6rem; }
  .ndt-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ndt-flame, .ndt-item.is-current.is-live .ndt-eq i { animation: none; }
  .ndt-play { transition: none; }
}
@media print { .ndt { display: none; } }
