.desktop-item--widget {
  width: 100%;
  height: 100%;
  display: block;
}

.desktop-item--widget .musicbar-widget {
  width: 100%;
  height: 100%;
}

.musicbar-widget {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(155deg, rgba(17, 24, 39, 0.92), rgba(15, 23, 42, 0.78));
  box-shadow:
    0 22px 36px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #f8fafc;
  backdrop-filter: blur(14px);
}

.musicbar-widget__cover,
.musicbar-widget__overlay {
  position: absolute;
  inset: 0;
}

.musicbar-widget__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.musicbar-widget__overlay {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.22) 45%, rgba(15, 23, 42, 0.72) 100%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.22), transparent 34%);
  pointer-events: none;
}

.musicbar-widget::after {
  content: "";
  position: absolute;
  inset: auto -18% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.musicbar-widget__disc-area {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.musicbar-widget__disc-shell {
  position: relative;
  width: min(100%, 106px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.musicbar-widget__disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 24%),
    radial-gradient(circle at center, #1f2937 0%, #0f172a 56%, #020617 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 28px rgba(2, 6, 23, 0.3);
  transform-origin: center;
}

.musicbar-widget__disc--playing {
  animation: musicbar-spin 3.8s linear infinite;
}

.musicbar-widget__disc-ring,
.musicbar-widget__disc-core {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.musicbar-widget__disc-ring {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.musicbar-widget__disc-ring--outer {
  width: 76%;
  height: 76%;
}

.musicbar-widget__disc-ring--mid {
  width: 55%;
  height: 55%;
}

.musicbar-widget__disc-ring--inner {
  width: 33%;
  height: 33%;
}

.musicbar-widget__disc-label {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 34%;
  height: 34%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #60a5fa, #3b82f6 45%, #f97316 100%);
  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.musicbar-widget__disc-label--image {
  background: #e2e8f0;
}

.musicbar-widget__disc-label-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.musicbar-widget__disc-label-fallback {
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.musicbar-widget__disc-core {
  width: 7%;
  height: 7%;
  background: #f8fafc;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.36);
}

.musicbar-widget__needle {
  position: absolute;
  top: 12%;
  right: 4%;
  width: 42%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
  transform: rotate(22deg);
  transform-origin: right center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

.musicbar-widget__needle::before {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  transform: translateY(-50%);
}

.musicbar-widget__needle::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #64748b;
  transform: translateY(-50%);
}

.musicbar-widget__controls {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.musicbar-widget__control {
  min-width: 0;
  min-height: 34px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.musicbar-widget__control--toggle {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
}

.musicbar-widget__control:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.musicbar-widget__control--toggle:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
}

.musicbar-widget__control:active:not(:disabled) {
  transform: scale(0.96);
}

.musicbar-widget__control:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.musicbar-widget__icon-svg {
  width: 17px;
  height: 17px;
  display: block;
}

.musicbar-widget__icon-svg--play {
  width: 19px;
  height: 19px;
}

.musicbar-widget__loop-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.musicbar-widget__loop-badge {
  position: absolute;
  right: -1px;
  bottom: -2px;
  min-width: 11px;
  height: 11px;
  padding: 0 2px;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 8px;
  font-weight: 900;
  line-height: 11px;
  text-align: center;
}

.musicbar-cover-preview {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(155deg, rgba(17, 24, 39, 0.92), rgba(15, 23, 42, 0.78));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 14px 14px 12px;
}

.musicbar-cover-preview--compact {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  padding: 5px 5px 4px;
}

.musicbar-cover-preview--editor {
  width: 100%;
  min-height: 188px;
}

.musicbar-cover-preview__cover,
.musicbar-cover-preview__overlay {
  position: absolute;
  inset: 0;
}

.musicbar-cover-preview__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.musicbar-cover-preview__overlay {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.22) 45%, rgba(15, 23, 42, 0.72) 100%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.22), transparent 34%);
  pointer-events: none;
}

.musicbar-cover-preview__disc-area,
.musicbar-cover-preview__controls {
  position: relative;
  z-index: 1;
}

.musicbar-cover-preview__disc-area {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.musicbar-cover-preview__disc {
  position: relative;
  width: min(120px, 68%);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 24%),
    radial-gradient(circle at center, #1f2937 0%, #0f172a 56%, #020617 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 28px rgba(2, 6, 23, 0.3);
}

.musicbar-cover-preview--compact .musicbar-cover-preview__disc {
  width: 32px;
}

.musicbar-cover-preview__disc-ring,
.musicbar-cover-preview__core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.musicbar-cover-preview__disc-ring {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.musicbar-cover-preview__disc-ring--outer {
  width: 76%;
  height: 76%;
}

.musicbar-cover-preview__disc-ring--mid {
  width: 55%;
  height: 55%;
}

.musicbar-cover-preview__disc-ring--inner {
  width: 33%;
  height: 33%;
}

.musicbar-cover-preview__label {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6 45%, #f97316 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.musicbar-cover-preview__fallback {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.musicbar-cover-preview--compact .musicbar-cover-preview__fallback {
  font-size: 14px;
}

.musicbar-cover-preview__core {
  width: 7%;
  height: 7%;
  background: #f8fafc;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.36);
}

.musicbar-cover-preview__controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.musicbar-cover-preview--compact .musicbar-cover-preview__controls {
  gap: 3px;
}

.musicbar-cover-preview__control {
  min-height: 34px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.musicbar-cover-preview__control--primary {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
}

.musicbar-cover-preview--compact .musicbar-cover-preview__control {
  min-height: 11px;
  border-radius: 999px;
}

.musicbar-cover-preview--compact .musicbar-widget__icon-svg {
  width: 7px;
  height: 7px;
}

.musicbar-cover-preview--compact .musicbar-widget__icon-svg--play {
  width: 8px;
  height: 8px;
}

.musicbar-cover-preview--compact .musicbar-widget__loop-badge {
  min-width: 7px;
  height: 7px;
  padding: 0 1px;
  right: -1px;
  bottom: -1px;
  font-size: 5px;
  line-height: 7px;
}

@keyframes musicbar-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
