.cm-player {
  --cm-accent: var(--ghost-accent-color, #b8502a);
  --cm-panel: #140f0d;
  --cm-text: #f2e9e1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: inherit;
  font-size: 13px;
  line-height: 1;
}

.cm-now {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 150px;
  height: 100%;
  padding: 0 8px;
}
.cm-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cm-progress {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .15);
  cursor: pointer;
}
.cm-progress::before { content: ""; position: absolute; inset: -6px 0; }
.cm-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 2px;
  background: var(--cm-accent);
}

.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 30px;
  min-width: 30px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.cm-btn:hover, .cm-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
.cm-btn:focus-visible, .cm-item:focus-visible { outline: 2px solid var(--cm-accent); outline-offset: 1px; }
.cm-play { width: 34px; padding: 0; background: var(--cm-accent); color: #fff; }
.cm-play:hover { background: var(--cm-accent); filter: brightness(1.12); }
.cm-icon { display: block; width: 16px; height: 16px; fill: currentColor; }
.cm-caret { width: 14px; height: 14px; margin-right: -4px; }
.cm-player:not(.is-playing) .cm-i-pause,
.cm-player.is-playing .cm-i-play,
.cm-player:not(.is-muted) .cm-i-mute,
.cm-player.is-muted .cm-i-vol { display: none; }

.cm-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: var(--cm-panel);
  color: var(--cm-text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
.cm-pop[hidden] { display: none; }

.cm-list {
  width: 290px;
  max-height: min(440px, 70vh);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
}
.cm-list li { margin: 0; padding: 0; }
.cm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 6px 10px 6px 6px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.cm-item img { flex: none; width: 46px; height: 64px; border-radius: 4px; object-fit: cover; }
.cm-item:hover { background: rgba(255, 255, 255, .08); }
.cm-item.is-current { background: rgba(184, 80, 42, .25); color: #fff; }
.cm-item-name { flex: 1; }
.cm-item-now {
  display: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cm-accent);
}
.cm-player.is-playing .cm-item.is-current .cm-item-now { display: inline; }

.cm-vol { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.cm-vol input { width: 130px; accent-color: var(--cm-accent); cursor: pointer; }

@media (max-width: 1199px) and (min-width: 768px) {
  .cm-now { width: 110px; }
}
@media (max-width: 991px) and (min-width: 768px) {
  .cm-now { display: none; }
}
@media (max-width: 767px) {
  /* Source lays the phone header row out as a 3-column grid (logo, search, burger). */
  #gh-navigation .gh-navigation-brand.cm-has-player { grid-template-columns: 1fr auto auto auto; }
  .cm-player { height: 36px; margin-right: 4px; padding: 0; border: 0; background: none; }
  .cm-now, .cm-vol-wrap { display: none; }
  .cm-list { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; }
}
