.tl-player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--tl-player-bg, #14181f);
  color: var(--tl-player-fg, #f5f5f5);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
  font-family: inherit;
}
.tl-player-bar button {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
  flex: 0 0 auto;
}
.tl-player-bar button:hover {
  background: rgba(255, 255, 255, 0.12);
}
.tl-player-media:empty {
  display: none;
}
.tl-player-media iframe {
  width: 280px;
  max-width: 40vw;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 0.4rem;
  display: block;
}
.tl-player-info {
  flex: 1 1 auto;
  min-width: 0;
}
.tl-player-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-player-seek {
  width: 100%;
  accent-color: var(--tl-player-accent, #3b82f6);
}
.tl-player-seek[hidden] {
  visibility: hidden;
}

.tl-card-play {
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.tl-card-play.is-playing {
  background: var(--tl-player-accent, #3b82f6);
  color: #fff;
  border-color: transparent;
}

.tl-post-play {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 1rem 0;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--tl-player-accent, #3b82f6);
  color: #fff;
  border-color: transparent;
}
.tl-post-play.is-audio-playing::after {
  content: " (playing)";
  font-weight: 400;
  opacity: 0.85;
}

.blog-card {
  position: relative;
}
.blog-card .tl-card-play {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
}

.tl-player-queue-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.18);
}

.tl-player-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 3.5rem;
  width: 320px;
  max-width: 85vw;
  z-index: 1049;
  display: flex;
  flex-direction: column;
  background: var(--tl-player-bg, #14181f);
  color: var(--tl-player-fg, #f5f5f5);
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.tl-player-sidebar.open {
  transform: translateX(0);
}
.tl-player-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}
.tl-player-sidebar-header button {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.tl-player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}
.tl-player-list-item {
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.tl-player-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.tl-player-list-item.is-playing {
  background: var(--tl-player-accent, #3b82f6);
  color: #fff;
  font-weight: 600;
}


/* On-page track list for a post that groups several songs. */
.suno-tracklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  counter-reset: suno-track;
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 0.6rem;
  overflow: hidden;
}
.suno-tracklist li {
  counter-increment: suno-track;
  display: flex;
  align-items: center;
}
.suno-tracklist li + li {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
}
.suno-tracklist li::before {
  content: counter(suno-track);
  flex: 0 0 auto;
  width: 2.25rem;
  padding-left: 0.75rem;
  opacity: 0.45;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.suno-tracklist button {
  flex: 1 1 auto;
  background: none;
  border: 0;
  padding: 0.7rem 0.9rem 0.7rem 0;
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.suno-tracklist li:hover {
  background: rgba(128, 128, 128, 0.1);
}
.suno-tracklist li:has(button.is-playing) {
  background: var(--tl-player-accent, #3b82f6);
}
.suno-tracklist li:has(button.is-playing)::before {
  color: #fff;
  opacity: 0.8;
}
.suno-tracklist button.is-playing {
  color: #fff;
  font-weight: 600;
}

/* A post body's outbound logo link. */
.mr-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.mr-logo img {
  flex: 0 0 auto;
  height: auto;
}
.mr-logo span {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Collapsible lyrics; the frontmatter's line breaks survive as written. */
.lyrics {
  margin-top: 1.75rem;
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 0.6rem;
  overflow: hidden;
}
.lyrics > summary {
  cursor: pointer;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(128, 128, 128, 0.08);
}
.lyrics > summary:hover {
  background: rgba(128, 128, 128, 0.16);
}
.lyrics[open] > summary {
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}
.lyrics-body {
  white-space: pre-line;
  padding: 1rem 1.15rem 1.25rem;
  line-height: 1.65;
}

/* Stacked lyric blocks sit closer together than the first one does. */
.lyrics + .lyrics {
  margin-top: 0.6rem;
}
