/* Song identity, listening destinations and actual station play history. */
.icrt-song { padding-top: 26px; padding-bottom: 64px; color: var(--icrt-ink); }
.icrt-song__crumb { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; color: var(--icrt-muted); font-size: 13px; }
.icrt-song__hero { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); border-radius: 18px; color: #fff; background: radial-gradient(ellipse at 10% 30%, #263b66, transparent 65%), #111a2b; }
.icrt-song__cover { width: clamp(150px, 20vw, 260px); flex: 0 0 auto; }
.icrt-song__cover .cw-cover { width: 100%; height: auto; aspect-ratio: 1; display: flex; border-radius: 10px; box-shadow: 0 16px 36px #0006; }
.icrt-song__cover .cw-cover__mark { font-size: 60px; }
.icrt-song__identity { min-width: 0; }
.icrt-song__eyebrow { margin: 0 0 12px; font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--icrt-muted); }
.icrt-song__hero .icrt-song__eyebrow { color: #b9c8df; }
.icrt-song h1 { font-size: clamp(30px, 4vw, 58px); line-height: 1.12; letter-spacing: -.035em; color: inherit; margin: 0 0 14px; overflow-wrap: anywhere; }
.icrt-song__artist { font-size: clamp(19px, 2vw, 26px); color: #d4ddec; margin: 0 0 28px; overflow-wrap: anywhere; }
.icrt-song__listen { display: flex; flex-wrap: wrap; gap: 12px; }
.icrt-song a.icrt-song__service { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 7px; background: #ffffff10; border: 1px solid #ffffff35; color: #fff; font-size: 14px; font-weight: 600; }
.icrt-song__service svg { width: 22px; height: 22px; flex-shrink: 0; }
.icrt-song__service--spotify svg { color: #7fe8a4; }
.icrt-song__service--youtube svg { color: #ff8b8b; }
.icrt-song a.icrt-song__service:hover { background: #ffffff25; }
.icrt-song__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0; border: 1px solid var(--icrt-line); border-radius: 12px; background: var(--icrt-paper); }
.icrt-song__stats > div { padding: 23px 28px; display: flex; flex-direction: column; gap: 6px; }
.icrt-song__stats > div + div { border-left: 1px solid var(--icrt-line); }
.icrt-song__stats span { font-size: 13px; color: var(--icrt-muted); }
.icrt-song__stats strong { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.03em; }
.icrt-song__stats small { font-size: 12px; color: var(--icrt-muted); }
.icrt-song__columns { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(250px, 1fr); gap: 28px; align-items: start; }
.icrt-song__main { min-width: 0; display: grid; gap: 28px; }
.icrt-song__panel { min-width: 0; border: 1px solid var(--icrt-line); border-radius: 12px; padding: 28px; background: var(--icrt-paper); }
.icrt-song h2 { font-size: 23px; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 8px; color: inherit; }
.icrt-song__panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.icrt-song__panel-head p, .icrt-song__recent-note { font-size: 13px; margin: 0; color: var(--icrt-muted); }
.icrt-song__periods { display: flex; gap: 3px; background: var(--icrt-mist); padding: 4px; border: 1px solid var(--icrt-line); border-radius: 7px; }
.icrt-song__periods a { padding: 7px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; color: var(--icrt-muted); }
.icrt-song__periods a[aria-current] { background: var(--icrt-paper); color: var(--icrt-ink); box-shadow: 0 1px 4px #0002; font-weight: 700; }
.icrt-song__chart { display: block; width: 100%; height: auto; overflow: visible; }
.icrt-song__chart rect { fill: var(--icrt-accent); }
.icrt-song__chart rect:hover { fill: #ef922f; }
.icrt-song__chart text { fill: var(--icrt-muted); font-size: 13px; }
.icrt-song__gridline { stroke: var(--icrt-line); stroke-dasharray: 4 5; }
.icrt-song__chart-dates { display: flex; justify-content: space-between; padding-left: 4%; color: var(--icrt-muted); font-size: 12px; margin-top: -8px; }
.icrt-song__timezone { margin: 20px 0 0; font-size: 11px; color: var(--icrt-muted); }
.icrt-song__daily { border-top: 1px solid var(--icrt-line); margin-top: 20px; padding-top: 16px; font-size: 13px; }
.icrt-song summary { cursor: pointer; font-weight: 600; }
.icrt-song__daily-scroll { max-height: 300px; overflow: auto; margin-top: 16px; }
.icrt-song__daily table { width: 100%; text-align: left; border-collapse: collapse; }
.icrt-song__daily th, .icrt-song__daily td { padding: 9px; border-bottom: 1px solid var(--icrt-line); }
.icrt-song__daily tbody th { font-weight: 400; }
.icrt-song__lyrics p:not(.icrt-song__eyebrow), .icrt-song__empty { color: var(--icrt-muted); font-size: 14px; line-height: 1.65; }
.icrt-song__lyrics a { font-size: 14px; color: var(--icrt-accent); font-weight: 600; }
.icrt-song__lyrics details { margin: 18px 0; }
.icrt-song__lyric-text { white-space: pre-wrap; line-height: 1.9; margin-top: 24px; overflow-wrap: anywhere; }
.icrt-song__recent ol { list-style: none; padding: 0; margin: 20px 0 0; }
.icrt-song__recent li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--icrt-line); }
.icrt-song__play-mark { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--icrt-mist); color: var(--icrt-accent); flex-shrink: 0; }
.icrt-song__recent time { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.icrt-song__recent time span { font-size: 12px; color: var(--icrt-muted); }
.icrt-song__log-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; margin-top: 22px; }
.icrt-song a:focus-visible, .icrt-song summary:focus-visible { outline: 2px solid var(--icrt-accent); outline-offset: 4px; }
@media (max-width: 800px) {
  .icrt-song__columns { grid-template-columns: minmax(0, 1fr); }
  .icrt-song__panel { padding: 22px; }
}
@media (max-width: 540px) {
  .icrt-song { padding-top: 18px; }
  .icrt-song__hero { flex-direction: column; align-items: flex-start; gap: 24px; }
  .icrt-song__cover { width: 170px; }
  .icrt-song__identity { width: 100%; }
  .icrt-song__artist { margin-bottom: 22px; }
  .icrt-song__listen { flex-direction: column; }
  .icrt-song a.icrt-song__service { width: 100%; }
  .icrt-song__stats { margin: 20px 0; }
  .icrt-song__stats > div { padding: 16px 10px; }
  .icrt-song__stats span { font-size: 11px; }
  .icrt-song__stats strong { font-size: 27px; }
  .icrt-song__stats small { font-size: 10px; line-height: 1.5; }
  .icrt-song__panel { padding: 20px; }
  .icrt-song__chart-dates { font-size: 10px; }
}

/* Keep chart labels readable when the plot narrows, without scaling text. */
.icrt-song__plot { position: relative; }
.icrt-song__chart { height: 225px; }
.icrt-song__axis { position: absolute; top: 11px; bottom: 20px; left: 0; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; line-height: 18px; color: var(--icrt-muted); }
.icrt-song .icrt-song__crumb a, .icrt-song a.icrt-song__log-link { color: var(--icrt-ink); }
.icrt-song .icrt-song__periods a { color: var(--icrt-muted); }
.icrt-song .icrt-song__periods a[aria-current] { background: var(--icrt-paper); color: var(--icrt-ink); }
html.s-dark .icrt-song .icrt-song__periods a[aria-current] { background: #303c50; color: #fff; }

/* Matched catalogue details are optional; cached failures leave no empty card. */
.icrt-song__catalogue { padding: 26px 0 0; color: var(--icrt-ink); }
.icrt-song__catalogue dl { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 0; }
.icrt-song__catalogue dl > div { min-width: 90px; }
.icrt-song__catalogue dl > div:first-child { flex: 1; min-width: min(250px, 100%); }
.icrt-song__catalogue dt { font-size: 12px; font-weight: 400; color: var(--icrt-muted); margin-bottom: 7px; }
.icrt-song__catalogue dd { font-size: 15px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.icrt-song__store { display: block; width: 120px; margin: 20px auto 0; }
.icrt-song__store img { display: block; width: 120px; height: 40px; }
@media (max-width: 540px) {
  .icrt-song__catalogue dl { gap: 20px 28px; }
  .icrt-song__catalogue dl > div:first-child { flex-basis: 100%; }
  .icrt-song__catalogue dd { font-size: 14px; }
}

.icrt-song [data-song-empty][hidden], .icrt-song [data-song-history-status][hidden] { display: none !important; }
.icrt-song [data-song-history][aria-busy="true"] .icrt-song__plot { opacity: .55; }
.icrt-song__history-status { font-size: 13px; color: var(--icrt-muted); margin-bottom: 16px; }
