:root {}

.ps-mwp {
  --accent: #FF2D55;
  --bg: #050711;
  --card: rgba(15, 17, 25, 0.94);
  --text: #f5f5f7;
  --muted: #a1a6ad;
  --border: rgba(255,255,255,0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 45, 85, 0.26), transparent 55%),
    radial-gradient(circle at bottom right, rgba(88, 101, 242, 0.28), transparent 55%),
    var(--card);
  border-radius: 18px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  max-width: 520px;
  margin: 16px auto;
  border: 1px solid var(--border);
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}

.ps-mwp::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  mix-blend-mode: screen;
}

.ps-mwp:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.ps-mwp[data-theme="light"] {
  --bg: #f4f4fb;
  --card: rgba(255, 255, 255, 0.96);
  --text: #111318;
  --muted: #586070;
  --border: rgba(15, 17, 25, 0.12);
}

.ps-mwp-header {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 14px 14px 10px;
}

.ps-mwp-art {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.25), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,0,0,0.65);
  position: relative;
  transform-origin: center;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

.ps-mwp-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.25s ease-out, filter 0.25s ease-out;
}

.ps-mwp:hover .ps-mwp-art {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 22px 55px rgba(0,0,0,0.8),
    0 0 0 1px rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.22);
}

.ps-mwp:hover .ps-mwp-cover {
  transform: scale(1.05);
  filter: saturate(1.2);
}

.ps-mwp-cover-anim {
  animation: ps-mwp-cover-flip 0.6s ease-out;
  transform-origin: center;
}

.ps-mwp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.ps-mwp-title-anim,
.ps-mwp-artist-anim {
  animation: ps-mwp-text-fade 0.45s ease-out;
}

.ps-mwp-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  max-width: 100%;
}

.ps-mwp-artist {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0;
  max-width: 100%;
}

.ps-mwp-status {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.1);
  border: 1px solid rgba(255, 45, 85, 0.32);
}

.ps-mwp-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.ps-mwp-play {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none !important;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent !important;
  background: radial-gradient(circle at 30% 20%, #fff, rgba(255,255,255,0.25)) padding-box,
              conic-gradient(from 140deg, #ff9a9e, #ff2d55, #fcb045, #ff9a9e) border-box !important;
  color: #fff;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 10px 30px rgba(255, 45, 85, 0.55),
    0 0 0 1px rgba(0,0,0,0.7);
  cursor: pointer;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background 0.35s ease-out;
}

.ps-mwp-play-icon {
  width: 0;
  height: 0;
  display: block;
  position: relative;
  margin-left: 2px;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #ffffff;
}

.ps-mwp-play[data-state="playing"] .ps-mwp-play-icon {
  width: 18px;
  height: 18px;
  border: none;
}

.ps-mwp-play[data-state="playing"] .ps-mwp-play-icon::before,
.ps-mwp-play[data-state="playing"] .ps-mwp-play-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: #ffffff;
}

.ps-mwp-play[data-state="playing"] .ps-mwp-play-icon::before {
  left: 3px;
}

.ps-mwp-play[data-state="playing"] .ps-mwp-play-icon::after {
  right: 3px;
}

.ps-mwp-play:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 14px 34px rgba(255, 45, 85, 0.7),
    0 0 0 1px rgba(0,0,0,0.75);
}

.ps-mwp-play:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 4px 20px rgba(255, 45, 85, 0.55),
    0 0 0 1px rgba(0,0,0,0.8);
}

@keyframes ps-mwp-cover-flip {
  0% {
    transform: scale(1.03) rotateY(0deg);
    filter: saturate(1) brightness(1);
  }
  50% {
    transform: scale(1.1) rotateY(90deg);
    filter: saturate(1.2) brightness(1.15);
  }
  100% {
    transform: scale(1.03) rotateY(0deg);
    filter: saturate(1.05) brightness(1.05);
  }
}

@keyframes ps-mwp-text-fade {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ps-mwp-volume {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), rgba(255,255,255,0.18));
  border-radius: 999px;
  flex: 1;
  outline: none;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3);
}
.ps-mwp-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fafafa;
  border: 2px solid var(--accent);
  box-shadow:
    0 4px 14px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,0,0,0.65);
  transform: translateY(-2px);
}

.ps-mwp-volume::-moz-range-track {
  height: 5px;
  background: linear-gradient(90deg, var(--accent), rgba(255,255,255,0.18));
  border-radius: 999px;
}

.ps-mwp-volume::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fafafa;
  border: 2px solid var(--accent);
  box-shadow:
    0 4px 14px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,0,0,0.65);
  transform: translateY(0);
}

.ps-mwp-popup {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: rgba(6, 9, 20, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 22px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0,0,0,0.7);
  cursor: pointer;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background 0.2s ease-out;
}
.ps-mwp-popup svg { width: 26px; height: 26px; }
.ps-mwp-popup:active { transform: translateY(1px) scale(0.97); }

.ps-mwp-popup:hover {
  background: rgba(15, 21, 40, 0.95);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.06);
}

/* lyrics fjernet */

@media (max-width: 420px) {
  .ps-mwp-header {
    grid-template-columns: 84px 1fr;
    padding: 12px 12px 8px;
  }
  .ps-mwp-art { width: 84px; height: 84px; }
  .ps-mwp-popup { display: none; }
  .ps-mwp-controls {
    padding: 8px 12px 12px;
    gap: 8px;
  }
}
