.cmp-player {
  position: relative;
  width: min(960px, 100%);
  margin: 32px auto;
  color: rgba(255, 255, 255, 0.92);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cmp-player.cmp-fullscreen {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  overflow: hidden;
}

.cmp-player.cmp-fullscreen .cmp-player-shell {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.cmp-player.cmp-fullscreen[data-style='1'] .cmp-player-shell {
  display: flex;
  flex-direction: column;
}

.cmp-player.cmp-fullscreen[data-style='1'] .cmp-player-row {
  flex: 1 1 auto;
  min-height: 0;
}

.cmp-player.cmp-fullscreen[data-style='1'] .cmp-controls {
  margin-top: 12px;
}

.cmp-player.cmp-fullscreen[data-style='1'] .cmp-wave-wrap {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  opacity: 0.9;
}

.cmp-player.cmp-fullscreen[data-style='2'] .cmp-player-shell {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 12px;
}

.cmp-player.cmp-fullscreen[data-style='2'] .cmp-style2-carousel {
  height: var(--cmp-style2-carousel-h, clamp(260px, 46vh, 560px));
  margin-bottom: 6px;
}

.cmp-player.cmp-fullscreen[data-style='2'] .cmp-style2-card {
  width: var(--cmp-style2-card, 220px);
}

.cmp-player.cmp-fullscreen[data-style='2'] .cmp-style2-meta {
  margin-bottom: 6px;
}

.cmp-player.cmp-fullscreen[data-style='2'] .cmp-style2-meta-title {
  font-size: var(--cmp-style2-title-font, 22px);
}

.cmp-player.cmp-fullscreen[data-style='2'] .cmp-style2-meta-artist {
  font-size: var(--cmp-style2-artist-font, 13px);
}

.cmp-player.cmp-fullscreen[data-style='2'] .cmp-style2-lyrics-box {
  margin-top: 8px;
}

.cmp-player.cmp-fullscreen[data-style='2'] .cmp-controls {
  margin-top: 12px;
}

.cmp-player.cmp-fullscreen[data-style='2'] .cmp-wave-wrap {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  opacity: 0.9;
}

.cmp-player.cmp-fullscreen .cmp-lyrics-panel {
  min-height: 0;
}

.cmp-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cmp-topbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmp-topbar button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.82);
}

.cmp-topbar button.is-active {
  background: color-mix(in oklab, var(--cmp-accent) 25%, rgba(0, 0, 0, 0.28) 75%);
  border-color: color-mix(in oklab, var(--cmp-accent) 55%, rgba(255, 255, 255, 0.12) 45%);
  color: rgba(255, 255, 255, 0.92);
}

.cmp-player-shell {
  --cmp-bg1: #231116;
  --cmp-bg2: #0c0a10;
  --cmp-accent: #ff5c6c;
  position: relative;
  box-sizing: border-box;
  border-radius: 28px;
  padding: 18px 22px 20px;
  overflow: hidden;
  background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 70% 120%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(135deg, var(--cmp-bg1), var(--cmp-bg2));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
  height: clamp(520px, calc(52vh + 260px), 820px);
  display: flex;
  flex-direction: column;
}

.cmp-player-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(circle at 88% 40%, rgba(255, 92, 108, 0.12), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.cmp-player-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.cmp-player-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 32px;
  z-index: 1;
  flex: 1;
  min-height: 0;
  align-items: center;
}

.cmp-cover-panel {
  position: relative;
}

.cmp-player.cmp-fullscreen[data-style='1'] .cmp-cover-panel {
  width: var(--cmp-cover-size, auto);
  max-width: var(--cmp-cover-size, none);
  justify-self: center;
}

.cmp-player.cmp-fullscreen[data-style='1'] .cmp-cover-main {
  width: 100%;
}

.cmp-cover-main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
}

.cmp-cover-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cmp-cover-glow {
  position: absolute;
  inset: 10px;
  filter: blur(32px);
  opacity: 0.38;
  pointer-events: none;
  background: radial-gradient(circle, var(--cmp-accent), transparent 60%);
}

.cmp-cover-stripes {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 16%;
  display: grid;
  grid-template-rows: 1.1fr 0.9fr 0.9fr;
  gap: 3px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.cmp-cover-stripe {
  background: rgba(250, 250, 250, 0.96);
}

.cmp-cover-stripe--muted {
  background: rgba(0, 0, 0, 0.92);
}

.cmp-cover-stripe--accent {
  background: var(--cmp-accent);
}

.cmp-meta-topline {
  text-align: center;
  margin: 8px 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.cmp-meta-title {
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.32em;
  margin: 0 0 14px;
}

.cmp-meta-artist {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
  margin-bottom: 10px;
}

.cmp-lyrics-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.cmp-style1 {
  --cmp-lyrics-row: 34px;
  --cmp-lyrics-gap: 6px;
  --cmp-lyrics-height: 274px;
}

.cmp-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 6px;
}

.cmp-toolbar button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.82);
}

.cmp-lyrics-scroll {
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-right: 6px;
}

.cmp-lyrics-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--cmp-lyrics-gap, 6px);
}

.cmp-lyrics-line {
  font-size: var(--cmp-lyric-font, 13px);
  line-height: var(--cmp-lyrics-row, 34px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.56);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.85);
  transform-origin: left center;
  transition: color 260ms ease, transform 260ms ease, opacity 260ms ease, font-size 260ms ease;
}

.cmp-lyrics-line--active {
  color: color-mix(in oklab, var(--cmp-accent) 68%, white 32%);
  font-size: var(--cmp-lyric-font-active, 18px);
  transform: scale(1.06) translateX(3px);
  opacity: 1;
}

.cmp-lyrics-line--dim {
  opacity: 0.28;
  transform: translateX(0);
}

.cmp-lyrics-line--empty {
  opacity: 0;
}

.cmp-lyrics-line--swap {
  animation: cmpLyricSwap 260ms ease;
}

@keyframes cmpLyricSwap {
  from {
    filter: blur(8px);
  }
  to {
    filter: blur(0);
  }
}

.cmp-track-footer {
  margin-top: 8px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  opacity: 0.78;
}

.cmp-controls {
  margin-top: 18px;
  position: relative;
  z-index: 3;
}

.cmp-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cmp-timeline input[type='range'] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.cmp-timeline input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--cmp-accent) 65%, white 35%);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--cmp-accent) 35%, transparent 65%);
  border: none;
}

.cmp-time {
  font-size: 12px;
  opacity: 0.86;
  min-width: 44px;
  text-align: right;
}

.cmp-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 4px;
}

.cmp-transport button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b1416;
  background: color-mix(in oklab, var(--cmp-accent) 60%, white 40%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

.cmp-transport button[data-role='play'] {
  width: 52px;
  height: 52px;
}

.cmp-transport svg {
  width: 18px;
  height: 18px;
}

.cmp-wave-wrap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 42px;
  pointer-events: none;
  z-index: 1;
}

.cmp-wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.92;
}

.cmp-home-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cmp-home-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.cmp-home-title {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.78;
}

.cmp-home-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 68%;
  gap: 2px;
}

.cmp-home-now {
  font-size: 12px;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: right;
}

.cmp-home-lyric {
  font-size: 12px;
  opacity: 0.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: right;
}

.cmp-home-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 2;
}

.cmp-home-search input[type='search'] {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  min-width: 0;
}

.cmp-home-search input[type='search']::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.cmp-home-search .cmp-home-clear {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.82);
}

.cmp-home-list {
  position: relative;
  overflow: auto;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 1;
  min-height: 0;
}

.cmp-player.cmp-fullscreen .cmp-home-list {
  height: auto;
  flex: 1 1 auto;
}

.cmp-home-list-spacer {
  width: 100%;
}

.cmp-home-list-inner {
  position: absolute;
  inset: 0;
}

.cmp-home-item {
  position: absolute;
  left: 10px;
  right: 10px;
  height: calc(var(--cmp-home-row, 78px) - 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(8px);
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cmp-home-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.cmp-home-item.is-active {
  border-color: color-mix(in oklab, var(--cmp-accent) 55%, rgba(255, 255, 255, 0.12) 45%);
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--cmp-accent) 18%, rgba(255, 255, 255, 0.08) 82%),
    rgba(255, 255, 255, 0.02)
  );
}

.cmp-home-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.cmp-home-item-title {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmp-home-item-artist {
  font-size: 12px;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmp-home-cover {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}

.cmp-home-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cmp-home-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.82);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.12));
}

.cmp-style2 {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
}

.cmp-style2-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.cmp-style2-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  height: clamp(240px, 45%, 320px);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.cmp-style2-card {
  position: absolute;
  width: 190px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  transform-origin: center center;
  transition: transform 380ms cubic-bezier(0.2, 0.7, 0, 1), opacity 380ms ease, filter 380ms ease;
  cursor: pointer;
}

.cmp-style2-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmp-style2-card--center {
  z-index: 4;
}

.cmp-style2-card--side {
  opacity: 0.72;
  filter: grayscale(0.18);
}

.cmp-style2-meta {
  text-align: center;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.cmp-style2-meta-title {
  font-size: 18px;
  letter-spacing: 0.28em;
  margin-bottom: 4px;
}

.cmp-style2-meta-artist {
  opacity: 0.78;
}

.cmp-style2-lyrics-box {
  margin-top: 10px;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  min-height: 0;
}

.cmp-style2-lyric-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 300ms ease, transform 300ms ease, font-size 300ms ease;
  min-height: 20px;
}

.cmp-style2-lyric-line--current {
  font-size: var(--cmp-style2-lyric-font, 16px);
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
  font-weight: 500;
}

.cmp-style2-lyric-line--next {
  font-size: calc(var(--cmp-style2-lyric-font, 16px) * 0.85);
  color: rgba(255, 255, 255, 0.6);
  opacity: 0.6;
}

.cmp-style2-lyric-line--empty {
  opacity: 0;
}

.cmp-style2-lyric--swap {
  animation: cmpStyle2LyricSwap 320ms ease;
}

@keyframes cmpStyle2LyricSwap {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(8px);
  }
  to {
    opacity: 0.72;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 880px) {
  .cmp-player-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-player-shell {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 0;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-player-row {
    gap: 12px;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-meta-topline {
    margin: 4px 0 6px;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-topbar {
    order: 0;
    flex: 0 0 auto;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-meta-title {
    margin-bottom: 8px;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-meta-artist {
    margin-bottom: 6px;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-lyrics-scroll {
    align-items: flex-start;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-controls {
    order: 3;
    margin-top: auto;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-player-row {
    order: 1;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-wave-wrap {
    order: 2;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 40px;
    margin: 4px 0 6px;
    opacity: 0.9;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-timeline {
    margin-bottom: 8px;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-transport {
    gap: 18px;
    margin-top: 0;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-transport button {
    width: 36px;
    height: 36px;
  }

  .cmp-player.cmp-fullscreen[data-style='1'] .cmp-transport button[data-role='play'] {
    width: 46px;
    height: 46px;
  }

  .cmp-style2-carousel {
    height: 220px;
  }

  .cmp-player[data-style='2'] .cmp-transport {
    display: none;
  }

  .cmp-player[data-style='2'] .cmp-controls {
    margin-top: 12px;
  }

  .cmp-player[data-style='2'] .cmp-timeline {
    margin-bottom: 0;
  }

  .cmp-player[data-style='2'] .cmp-style2-meta {
    margin-bottom: 4px;
  }

  .cmp-player[data-style='2'] .cmp-wave-wrap {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 10px;
    height: 36px;
  }

  .cmp-player-shell {
    border-radius: 22px;
    padding: 14px 14px 18px;
  }

  .cmp-style1 {
    --cmp-lyrics-row: 32px;
    --cmp-lyrics-height: 260px;
  }
}

@media (max-width: 880px) and (orientation: portrait) {
  .cmp-player.cmp-fullscreen[data-style='2'],
  .cmp-player.cmp-landscape[data-style='2'] {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100vh;
    height: 100vw;
    transform-origin: top left;
    transform: rotate(-90deg) translate(-100%, 0);
    z-index: 9999;
  }

  .cmp-player.cmp-fullscreen[data-style='2'] .cmp-player-shell,
  .cmp-player.cmp-landscape[data-style='2'] .cmp-player-shell {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .cmp-player.cmp-fullscreen[data-style='2'] .cmp-player-shell.cmp-style2,
  .cmp-player.cmp-landscape[data-style='2'] .cmp-player-shell.cmp-style2 {
    padding: 12px 14px 16px;
  }

  .cmp-player.cmp-fullscreen[data-style='2'] .cmp-style2-carousel,
  .cmp-player.cmp-landscape[data-style='2'] .cmp-style2-carousel {
    height: clamp(150px, 56vw, 240px);
    margin-bottom: 6px;
  }

  .cmp-player.cmp-fullscreen[data-style='2'] .cmp-style2-lyrics-box {
    margin-top: 8px;
    gap: 6px;
  }
}
