.cse-playlist {
  margin: 1.25rem 0;
}

.cse-playlist-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 0.75rem;
}

.cse-playlist-title {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.cse-playlist-missing {
  color: var(--muted, #6a6560);
  font-style: italic;
}

.cse-playlist-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cse-playlist-with-image {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  align-items: start;
}

.cse-playlist-cover {
  width: 128px;
  height: 128px;
  overflow: hidden;
  border-radius: 12px;
}

.cse-playlist-cover img {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: cover;
}

.cse-playlist-body {
  min-width: 0;
}

.cse-playlist-with-image .cse-playlist-heading {
  margin-top: 0;
}

.cse-track {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 10px 0;
  cursor: pointer;
}

.cse-track-info {
  flex: 1;
  min-width: 0;
  position: relative;
  align-self: stretch;
  z-index: 1;
  margin-block: -10px;
  padding-block: 10px;
}

.cse-track-waveform {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
  color: var(--surface, #f7f6f3);
  filter:
      blur(0.6px)
      drop-shadow(0 0 1px rgb(38 57 77 / 29%))
      drop-shadow(0 2px 4px rgb(38 57 77 / 59%))
}

.cse-track.playing .cse-track-waveform {
  opacity: 0.6;
}

.cse-track-title,
.cse-track-artist {
  position: relative;
  z-index: 1;
}

.cse-track:hover,
.cse-track.playing {
  background: transparent;
}

.cse-track.playing .cse-track-title {
  color: var(--accent, #1f4f4a);
}

.cse-track-number {
  min-width: 1.5rem;
  color: var(--muted, #6a6560);
  font-size: 0.85rem;
}

.cse-track-title {
  display: block;
  color: var(--ink, #161513);
  font-weight: 500;
}

.cse-track-artist,
.cse-track-duration {
  color: var(--muted, #6a6560);
  font-size: 0.85rem;
}

.cse-enqueue,
.cse-enqueue-all,
.cse-player button,
.cse-queue button {
  border: 0;
  background: none;
  color: var(--muted, #6a6560);
  font-family: inherit;
  cursor: pointer;
}

.cse-enqueue,
.cse-enqueue-all {
  position: relative;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 2rem;
  text-align: center;
}

.cse-enqueue::before,
.cse-enqueue-all::before {
  content: '+';
}

.cse-enqueue-all {
  border: 1px solid currentColor;
  border-radius: 6px;
  line-height: 1.85rem;
}

.cse-enqueue.queued::before,
.cse-enqueue-all.queued::before {
  content: '';
}

.cse-enqueue.queued::after,
.cse-enqueue-all.queued::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0.32em;
  height: 0.62em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -62%) rotate(45deg);
}

.cse-enqueue.queued,
.cse-enqueue-all.queued,
.cse-enqueue:hover,
.cse-enqueue-all:hover,
.cse-player button:hover,
.cse-queue button:hover {
  color: var(--accent, #1f4f4a);
}

.cse-player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 300px;
  padding: 12px 14px;
  background: var(--surface, #fffcf6);
  border: 1px solid var(--line, #ddd6c8);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(22, 21, 19, 0.12);
}

.cse-player.visible {
  display: flex;
}

.cse-player .player-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cse-player .player-now {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cse-player .title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink, #161513);
}

.cse-player .close-btn {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1.15rem;
}

.cse-player .artist,
.cse-player .time-current {
  color: var(--muted, #6a6560);
  font-size: 0.8rem;
}

.cse-player .progress-bar {
  flex: 1;
  height: 3px;
  background: var(--line, #ddd6c8);
  border-radius: 99px;
  cursor: pointer;
}

.cse-player .progress {
  height: 100%;
  width: 0;
  background: var(--accent, #1f4f4a);
  border-radius: 99px;
}

.cse-player .replay-btn.active {
  color: var(--accent, #1f4f4a);
}

.cse-player .queue-badge {
  display: none;
  min-width: 14px;
  margin-left: 2px;
  padding: 0 3px;
  border-radius: 99px;
  background: var(--accent, #1f4f4a);
  color: #fff;
  font-size: 0.65rem;
}

.cse-queue {
  position: fixed;
  right: 18px;
  bottom: 118px;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-height: 340px;
  overflow: hidden;
  background: var(--surface, #fffcf6);
  border: 1px solid var(--line, #ddd6c8);
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
}

.cse-queue.open {
  opacity: 1;
  pointer-events: auto;
}

.cse-queue-header,
.cse-queue .queue-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, #ddd6c8);
}

.cse-queue-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.cse-queue-empty {
  padding: 16px;
  color: var(--muted, #6a6560);
}

.cse-queue-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
}

.cse-queue-item.active .cse-queue-title {
  color: var(--accent, #1f4f4a);
}

.cse-queue-title {
  flex: 1;
}

.cse-queue-artist {
  color: var(--muted, #6a6560);
  font-size: 0.8rem;
}

@media screen and (max-width: 767px) {
  .cse-player,
  .cse-queue {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .cse-playlist-with-image {
    grid-template-columns: 1fr;
  }

  .cse-playlist-cover,
  .cse-playlist-cover img {
    width: 128px;
    height: 128px;
  }
}

.cse-image {
  margin: 1.25rem 0;
}

.cse-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: rgb(38 57 77 / 29%) 0px 20px 30px -10px;
}

.cse-video {
  margin: 1.25rem 0;
}

.cse-video-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  box-shadow: rgb(38 57 77 / 29%) 0px 20px 30px -10px;
}

.cse-video video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.cse-video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.cse-video-controls button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  min-width: 1.4rem;
  padding: 0;
}

.cse-video-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  cursor: pointer;
}

.cse-video-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent, #1f4f4a);
  border-radius: 2px;
}

.cse-video-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0.9;
}

.cse-video-processing {
  margin: 1.25rem 0;
  padding: 10px 12px;
  border: 1px dashed var(--line, #ddd6c8);
  border-radius: 12px;
  color: var(--muted, #6a6560);
  font-style: italic;
}

.cse-embed {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin: 1.25rem 0;
  padding: 12px;
  /* border: 1px solid var(--line, #ddd6c8); */
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: rgb(38 57 77 / 29%) 0px 20px 30px -10px;
}

.cse-embed-media {
  flex: 0 0 112px;
  width: 112px;
  min-height: 112px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line, #eee8dc);
}

.cse-embed-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cse-embed-binary {
  align-items: center;
}

.cse-embed-binary .cse-embed-media {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 112px;
  background: transparent;
}

.cse-embed-binary .cse-embed-media img {
  width: auto;
  height: auto;
  max-width: inherit;
  max-height: inherit;
  object-fit: contain;
}

.cse-embed-binary.cse-embed-m .cse-embed-media {
  max-width: 32px;
  max-height: 32px;
}

.cse-embed-binary.cse-embed-m .cse-embed-media img {
  max-width: 32px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cse-embed-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 112px;
}

.cse-embed-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.cse-embed-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.cse-embed-desc {
  color: var(--muted, #6a6560);
  font-size: 0.92rem;
  line-height: 1.4;
}

.cse-embed-meta {
  font-size: 0.8rem;
  color: var(--accent, #1f4f4a);
}

.cse-embed-m {
  gap: 8px;
  align-items: center;
  margin: 0.1rem 0;
  padding: 0;
  box-shadow: none;
}

.cse-embed-m .cse-embed-media {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 4px;
}

.cse-embed-m .cse-embed-media img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.cse-embed-m .cse-embed-placeholder {
  width: 32px;
  height: 32px;
  min-height: 32px;
}

.cse-embed-m .cse-embed-title {
  font-size: 1rem;
  font-weight: 600;
}

.cv-img-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0.75rem 0;
  max-width: 100%;
}

.cv-card {
  margin: 0.75rem 0;
  padding-left: 0;
  max-width: 100%;
}

.cv-img-card-media {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
}

.cv-img-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cv-img-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--line, #eee8dc);
}

.cv-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cv-card-body h3 {
  margin: 0;
}

.cv-card-role {
  font-weight: 700;
}

.cv-card-interval,
.cv-card-location,
.cse-interval {
  color: var(--muted, #6a6560);
}

.cse-md {
  box-sizing: border-box;
  max-width: 100%;
}

.cse-md > :first-child {
  margin-top: 0;
}

.cse-md > :last-child {
  margin-bottom: 0;
}

.cse-image-missing,
.cse-embed-missing,
.cse-url-missing {
  margin: 1.25rem 0;
  padding: 12px 14px;
  border: 1px dashed var(--line, #ddd6c8);
  border-radius: 14px;
  color: var(--muted, #6a6560);
  font-style: italic;
}

.cse-urls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0.75rem 0;
}

.site-foot .cse-urls,
.footer .cse-urls {
  gap: 0px;
  margin: 0;
  justify-content: flex-end;
}

.cse-urls-m {
  gap: 12px;
}

.cse-urls-l {
  flex-direction: column;
  align-items: stretch;
}

.cse-urls .cse-url-m,
.cse-urls .cse-url-l {
  margin: 0;
}

.cse-url-xs {
  text-decoration: underline;
}

.cse-url-s {
  display: inline-flex;
  align-items: center;
  padding: 3px 2px;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.cse-url-s img {
  width: 3em;
  height: 3em;
  vertical-align: middle;
  object-fit: cover;
  border-radius: 3px;
}

.cse-url-m,
.cse-url-l {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 1.25rem 0;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: rgb(38 57 77 / 29%) 0px 20px 30px -10px;
}

.cse-url-l {
  width: 100%;
}

.cse-url-media {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  /*background: var(--line, #eee8dc);*/
}

.cse-url-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cse-url-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.cse-url-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.cse-url-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.cse-url-second {
  color: var(--muted, #6a6560);
  font-size: 0.92rem;
  line-height: 1.4;
}

@media screen and (max-width: 767px) {
  .cse-embed:not(.cse-embed-m) {
    flex-direction: column;
  }

  .cse-embed:not(.cse-embed-m) .cse-embed-media {
    flex: 0 0 auto;
    width: 100%;
    min-height: 140px;
  }

  .cse-embed-binary:not(.cse-embed-m) .cse-embed-media {
    width: auto;
    min-height: 0;
    max-width: 100%;
  }
}
