#appu-music-player {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

:root {
  --amp-bg: #f3f7fb;
  --amp-surface: #ffffff;
  --amp-surface2: #e8eef5;
  --amp-text: #172033;
  --amp-muted: #465365;
  --amp-line: #b8c4d1;
  --amp-accent: #006b63;
  --amp-accent-text: #ffffff;
  --amp-danger: #b91c1c;
  --amp-danger-bg: rgba(185,28,28,.10);
  --amp-overlay: rgba(15,23,42,.68);
  --amp-shadow: 0 10px 30px rgba(15,23,42,.10);
  --amp-cover-shadow: 0 16px 35px rgba(15,23,42,.18);
  --amp-play-shadow: 0 7px 18px rgba(15,23,42,.16);
  --amp-modal-shadow: 0 20px 60px rgba(15,23,42,.25);
  --amp-gradient-start: #00695c;
  --amp-gradient-end: #164e63;
}

html[data-theme='dark'] {
  --amp-bg: #0f172a;
  --amp-surface: #1e293b;
  --amp-surface2: #334155;
  --amp-text: #f8fafc;
  --amp-muted: #cbd5e1;
  --amp-line: #64748b;
  --amp-accent: #5eead4;
  --amp-accent-text: #042f2e;
  --amp-danger: #fca5a5;
  --amp-danger-bg: rgba(252,165,165,.14);
  --amp-overlay: rgba(0,0,0,.78);
  --amp-shadow: 0 10px 30px rgba(0,0,0,.38);
  --amp-cover-shadow: 0 16px 35px rgba(0,0,0,.45);
  --amp-play-shadow: 0 7px 18px rgba(0,0,0,.40);
  --amp-modal-shadow: 0 20px 60px rgba(0,0,0,.60);
  --amp-gradient-start: #0f766e;
  --amp-gradient-end: #164e63;
}

html, body {
  width: 100%;
  height: auto;
  background: var(--amp-surface) !important;
  margin: 0;
  padding: 0;
}

#appu-music-player {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--amp-bg);
  color: var(--amp-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color-scheme: light;
  box-sizing: border-box;
}

html[data-theme='dark'] #appu-music-player {
  color-scheme: dark;
}

#appu-music-player *,
#appu-music-player *::before,
#appu-music-player *::after {
  box-sizing: border-box;
}

.appu-mp3-player {
  width: 100%;
  min-width: 0;
  height: auto;
  border: 1px solid var(--amp-line);
  background: var(--amp-surface);
  color: var(--amp-text);
  box-shadow: var(--amp-shadow);
  transition:
    background-color 2s ease,
    border-color 2s ease,
    color 2s ease;
}

.appu-mp3-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--amp-line);
  background: var(--amp-surface);
}

.appu-mp3-title h1{
  display: block;
  max-width: 100%;
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-text);
  font-size: 19px !important;
  text-align:left;
  text-transform:uppercase;
  font-weight: 700;
  line-height: 1;
}

.appu-mp3-subtitle {
  display: block;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-muted);
  font-size: 15px;
  text-align:left;
  text-transform:uppercase;
  line-height: 1.4;
}

.appu-mp3-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.appu-mp3-header-left,
.appu-mp3-header-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.appu-mp3-header-right {
  margin-left: auto;
}

.appu-mp3-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 11px;
  border: 0;
  border-radius: 9px;
  background: var(--amp-surface2);
  color: var(--amp-text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 2s ease,
    color 2s ease,
    transform 2s ease;
}

.appu-mp3-header-button:hover {
  background: var(--amp-line);
}

.appu-mp3-header-button:active {
  transform: scale(.97);
}

.appu-mp3-header-button.appu-primary,
.appu-mp3-header-button.appu-active {
  background: var(--amp-accent);
  color: var(--amp-accent-text);
}

.appu-mp3-header-right .appu-mp3-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--amp-line);
  border-radius: 10px;
  background: var(--amp-surface);
  color: var(--amp-text);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition:
    background-color 2s ease,
    border-color 2s ease,
    color 2s ease,
    transform 2s ease;
}

.appu-mp3-header-right .appu-mp3-theme-toggle:hover {
  background: var(--amp-accent);
}

.appu-mp3-header-right .appu-mp3-theme-toggle:active {
  transform: scale(.95);
}

.appu-mp3-theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--amp-text);
  font-size: 18px;
  font-weight: 700;
}

.appu-mp3-dropzone {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.appu-mp3-dropzone:hover,
.appu-mp3-dropzone.appu-drag-active {
  border-color: var(--amp-accent);
  background: var(--amp-surface2);
}

.appu-mp3-dropzone:active {
  transform: scale(.99);
}

.appu-mp3-drop-icon {
  display: block;
  margin-bottom: 8px;
  color: var(--amp-accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.appu-mp3-drop-title {
  color: var(--amp-text);
  font-size: 14px;
  font-weight: 700;
}

.appu-mp3-drop-text {
  margin-top: 5px;
  color: var(--amp-muted);
  font-size: 12px;
}

.appu-mp3-now-playing {
  padding: 20px 18px 14px;
  text-align: center;
}

.appu-mp3-cover {
  position: relative;
  width: min(230px,65vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(255,255,255,.20),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--amp-gradient-start),
      var(--amp-gradient-end)
    );
  box-shadow: var(--amp-cover-shadow);
}

.appu-mp3-cover-image {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appu-mp3-cover.appu-has-artwork .appu-mp3-cover-image {
  display: block;
}

.appu-mp3-cover.appu-has-artwork .appu-mp3-cover-disc {
  display: none;
}

.appu-mp3-cover::before,
.appu-mp3-cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  pointer-events: none;
}

.appu-mp3-cover::before {
  inset: 15%;
}

.appu-mp3-cover::after {
  inset: 29%;
}

.appu-mp3-cover-image + .appu-mp3-cover-disc {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appu-mp3-cover-disc::before {
  content: "";
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow:
    0 0 0 7px rgba(255,255,255,.10),
    0 0 0 16px rgba(255,255,255,.06);
}

.appu-mp3-playing .appu-mp3-cover-disc {
  animation: appuMp3Rotate 8s linear infinite;
}

@keyframes appuMp3Rotate {
  from {
    transform: rotate(0deg);
  }

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

.appu-mp3-visualizer {
  display: none;
  position: relative;
  width: 100%;
  height: 230px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      var(--amp-gradient-start),
      var(--amp-gradient-end)
    );
  box-shadow: var(--amp-cover-shadow);
}

.appu-mp3-visualizer.appu-visible {
  display: block;
}

.appu-mp3-visualizer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.appu-mp3-track-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.appu-mp3-track-info {
  margin-top: 5px;
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-muted);
  font-size: 13px;
}

.appu-mp3-progress-area {
  padding: 0 18px;
}

.appu-mp3-progress {
  width: 100%;
  height: 6px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--amp-line);
  cursor: pointer;
}

.appu-mp3-progress::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--amp-accent);
  cursor: pointer;
}

.appu-mp3-progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--amp-accent);
  cursor: pointer;
}

.appu-mp3-time {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--amp-muted);
  font-size: 12px;
}

.appu-mp3-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 15px 14px;
}

.appu-mp3-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--amp-text);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition:
    background-color 2s ease,
    transform 2s ease;
}

.appu-mp3-control:hover {
  background: var(--amp-surface2);
}

.appu-mp3-control:active {
  transform: scale(.94);
}

.appu-mp3-play {
  width: 60px;
  height: 60px;
  background: var(--amp-accent);
  color: var(--amp-accent-text);
  font-size: 24px;
  box-shadow: var(--amp-play-shadow);
}

.appu-mp3-play:hover {
  background: var(--amp-accent);
  filter: brightness(.95);
}

.appu-mp3-small-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 15px;
}

.appu-mp3-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  padding: 5px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--amp-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.appu-mp3-option:hover {
  background: var(--amp-surface2);
}

.appu-mp3-option.appu-active {
  color: var(--amp-accent);
  font-weight: 700;
}

.appu-mp3-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
}

.appu-mp3-volume-icon {
  flex: 0 0 auto;
  color: var(--amp-text);
  font-size: 13px;
  cursor: pointer;
}

.appu-mp3-volume-slider {
  width: 90px;
  height: 5px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: var(--amp-line);
  cursor: pointer;
}

.appu-mp3-volume-slider::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--amp-accent);
}

.appu-mp3-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--amp-accent);
}

/* =========================================================
   LIBRARY
   ========================================================= */

.appu-mp3-library {
  border-top: 1px solid var(--amp-line);
  background: var(--amp-surface);
}

.appu-mp3-library-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 10px 12px;
  border-bottom: 1px solid var(--amp-line);
  background: var(--amp-surface);
  scroll-behavior: smooth;
}

.appu-mp3-library-tabs::-webkit-scrollbar {
  display: none;
}

.appu-mp3-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--amp-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.appu-mp3-tab:hover {
  background: var(--amp-surface2);
}

.appu-mp3-tab.appu-selected {
  background: var(--amp-accent);
  color: var(--amp-accent-text);
}

.appu-mp3-library-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.appu-mp3-library-track {
  display: flex;
  width: 500%;
  transform: translateX(0);
  transition: transform 1s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.appu-mp3-library-panel {
  flex: 0 0 20%;
  width: 20%;
  min-width: 0;
  overflow: hidden;
}

/* =========================================================
   PLAYLIST
   ========================================================= */

.appu-mp3-playlist,
.appu-mp3-category-list {
  max-height: 330px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--amp-line) transparent;
}

.appu-mp3-playlist::-webkit-scrollbar,
.appu-mp3-category-list::-webkit-scrollbar {
  width: 6px;
}

.appu-mp3-playlist::-webkit-scrollbar-track,
.appu-mp3-category-list::-webkit-scrollbar-track {
  background: transparent;
}

.appu-mp3-playlist::-webkit-scrollbar-thumb,
.appu-mp3-category-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--amp-line);
}

.appu-mp3-playlist::-webkit-scrollbar-thumb:hover,
.appu-mp3-category-list::-webkit-scrollbar-thumb:hover {
  background: var(--amp-muted);
}

/* Existing playlist item structure */
.appu-mp3-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--amp-line);
  background: var(--amp-surface);
  color: var(--amp-text);
  cursor: pointer;
}

.appu-mp3-item:hover,
.appu-mp3-item.appu-current {
  background: var(--amp-surface2);
}

.appu-mp3-item-number {
  flex: 0 0 28px;
  color: var(--amp-muted);
  text-align: center;
  font-size: 12px;
}

.appu-mp3-item-icon {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--amp-accent);
  color: var(--amp-accent-text);
  font-size: 11px;
}

.appu-mp3-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appu-mp3-item-info {
  flex: 1 1 auto;
  min-width: 0;
}

.appu-mp3-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-text);
  font-size: 14px;
  font-weight: 600;
}

.appu-mp3-item-meta {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-muted);
  font-size: 11px;
}

.appu-mp3-item-remove {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--amp-muted);
  font-size: 16px;
  cursor: pointer;
}

.appu-mp3-item-remove:hover {
  background: var(--amp-danger-bg);
  color: var(--amp-danger);
}

/* =========================================================
   JAVASCRIPT-GENERATED PLAYLIST ITEMS
   ========================================================= */

.appu-mp3-track-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--amp-line);
  background: var(--amp-surface);
  color: var(--amp-text);
  cursor: pointer;
  transition:
    background-color 2s ease,
    color 2s ease;
}

.appu-mp3-track-item:hover {
  background: var(--amp-surface2);
}

.appu-mp3-track-item.appu-current {
  background: var(--amp-surface2);
}

.appu-mp3-track-item.appu-current .appu-mp3-track-title {
  color: var(--amp-accent);
}

.appu-mp3-track-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.appu-mp3-track-artist {
  flex: 0 1 32%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.appu-mp3-track-remove {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--amp-muted);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition:
    background-color 2s ease,
    color 2s ease,
    transform 2s ease;
}

.appu-mp3-track-remove:hover {
  background: var(--amp-danger-bg);
  color: var(--amp-danger);
}

.appu-mp3-track-remove:active {
  transform: scale(.94);
}

/* =========================================================
   SONGS / GENRE / ALBUM / ARTIST
   ========================================================= */

.appu-mp3-library-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 12px;
  margin: 0;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--amp-line);
  border-radius: 0;
  outline: 0;
  background: var(--amp-surface);
  color: var(--amp-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color 2s ease,
    color 2s ease;
}

.appu-mp3-library-item:hover {
  background: var(--amp-surface2);
}

.appu-mp3-library-item:active {
  background: var(--amp-surface2);
}

.appu-mp3-library-item:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--amp-accent);
  outline-offset: -2px;
}

.appu-mp3-library-icon {
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--amp-surface2);
  color: var(--amp-accent);
  font-size: 17px;
  line-height: 1;
}

.appu-mp3-library-info {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

.appu-mp3-library-title {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.appu-mp3-library-subtitle {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-muted);
  font-size: 11px;
  line-height: 1.35;
}

.appu-mp3-library-item:hover .appu-mp3-library-icon {
  background: var(--amp-accent);
  color: var(--amp-accent-text);
}

/* Empty library/category panels */
.appu-mp3-empty {
  padding: 28px 18px;
  color: var(--amp-muted);
  text-align: center;
  font-size: 13px;
}

/* =========================================================
   CATEGORY LIST
   ========================================================= */

.appu-mp3-category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--amp-line);
  background: var(--amp-surface);
  color: var(--amp-text);
  cursor: pointer;
}

.appu-mp3-category-item:hover {
  background: var(--amp-surface2);
}

.appu-mp3-category-icon {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--amp-surface2);
  color: var(--amp-text);
  font-size: 10px;
}

.appu-mp3-category-info {
  flex: 1;
  min-width: 0;
}

.appu-mp3-category-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--amp-text);
  font-size: 14px;
  font-weight: 600;
}

.appu-mp3-category-count {
  margin-top: 2px;
  color: var(--amp-muted);
  font-size: 11px;
}

.appu-mp3-status {
  min-height: 20px;
  padding: 8px 18px 15px;
  color: var(--amp-muted);
  text-align: center;
  font-size: 11px;
}

#appu-mp3-file-input {
  display: none;
}

.appu-mp3-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--amp-overlay);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.appu-mp3-modal.appu-open {
  display: flex;
}

.appu-mp3-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 430px;
  padding: 16px 17px;
  border: 1px solid var(--amp-line);
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
  background: var(--amp-surface);
  color: var(--amp-text);
  box-shadow: var(--amp-modal-shadow);
}

.appu-mp3-modal-title {
  color: var(--amp-text);
  font-size: 17px;
  font-weight: 700;
}

.appu-mp3-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--amp-surface2);
  color: var(--amp-text);
  font-size: 18px;
  cursor: pointer;
}

.appu-mp3-modal-close:hover {
  background: var(--amp-line);
}

.appu-mp3-modal-body {
  width: 100%;
  max-width: 430px;
  max-height: calc(90dvh - 70px);
  overflow-y: auto;
  padding: 15px 17px 17px;
  border: 1px solid var(--amp-line);
  border-top: 0;
  border-radius: 0 0 17px 17px;
  background: var(--amp-surface);
  color: var(--amp-text);
  box-shadow: var(--amp-modal-shadow);
}

.appu-mp3-modal-description {
  margin-bottom: 12px;
  color: var(--amp-muted);
  font-size: 13px;
  line-height: 1.5;
}

.appu-mp3-scan-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid var(--amp-line);
  border-radius: 11px;
  background: var(--amp-surface);
  color: var(--amp-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.appu-mp3-scan-option:hover {
  border-color: var(--amp-accent);
  background: var(--amp-surface2);
}

.appu-mp3-scan-option strong {
  display: block;
  color: var(--amp-text);
  font-size: 13px;
}

.appu-mp3-scan-option span {
  display: block;
  margin-top: 2px;
  color: var(--amp-muted);
  font-size: 11px;
}

.appu-mp3-eq-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 8px;
}

.appu-mp3-eq-option {
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--amp-line);
  border-radius: 10px;
  background: var(--amp-surface);
  color: var(--amp-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.appu-mp3-eq-option:hover {
  border-color: var(--amp-accent);
  background: var(--amp-surface2);
}

.appu-mp3-eq-option.appu-selected {
  border-color: var(--amp-accent);
  background: var(--amp-accent);
  color: var(--amp-accent-text);
}

#appu-music-player button:focus-visible,
#appu-music-player input:focus-visible,
#appu-mp3-dropzone:focus-visible {
  outline: 2px solid var(--amp-accent);
  outline-offset: 2px;
}

  .mp3appuplayer{
  font-size:15px;
  font-family:inherit;
  line-height:1.5;
  color:var(--amp-text);
  background: var(--amp-surface);
  text-align:justify;
  padding:10px;
  margin-bottom:10px;
}

.mp3appuplayer h2,
.mp3appuplayer h3{
  color: var(--amp-text);
  line-height:1.5;
  text-align:left;
  background: var(--amp-bg);
  text-transform:uppercase;
  padding: 8px;
  border-top: 2px solid var(--amp-accent);
  border-bottom: 2px solid var(--amp-accent);
}

.mp3appuplayer h2{
  font-size:16px;
  margin:28px 0 10px;
}

.mp3appuplayer h3{
  font-size:15px;
  margin:20px 0 8px;
}

.mp3appuplayer p{
  margin:0 0 15px;
}

.mp3appuplayer ul{
  margin:0 0 18px 20px;
  padding:0;
}

.mp3appuplayer li{
  margin-bottom:6px;
  font-weight: 700;
}

.mp3appuplayer a{
  color:var(--amp-accent);
  text-decoration:underline;
}

.mp3appuplayer a:hover{
  text-decoration:underline;
}

@media (max-width:768px) {
  #appu-music-player {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .appu-mp3-player {
    width: 100%;
    height: auto;
  }

  .appu-mp3-header {
    padding: 14px 14px 11px;
  }

  .appu-mp3-title h1 {
    font-size: 16px !important;
    margin-top : -8px;
    margin-bottom : 15px;
    text-align: center !important;
  }

  .appu-mp3-subtitle {
    font-size: 13px;
    text-align: center !important;
  }

  .appu-mp3-header-actions {
    gap: 5px;
  }

  .appu-mp3-header-button {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .appu-mp3-header-right {
    gap: 5px;
  }

  .appu-mp3-header-right .appu-mp3-theme-toggle {
    flex-basis: 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 9px;
  }

  .appu-mp3-theme-icon {
    width: 18px;
    height: 18px;
    font-size: 16px;
  }

  .appu-mp3-dropzone {
    margin: 12px;
    padding: 20px 12px;
  }

  .appu-mp3-now-playing {
    padding: 15px 14px 12px;
  }

  .appu-mp3-cover {
    width: min(210px,62vw);
  }

  .appu-mp3-visualizer {
    height: 210px;
  }

  .appu-mp3-track-name {
    font-size: 19px;
  }

  .appu-mp3-track-info {
    font-size: 12px;
  }

  .appu-mp3-controls {
    gap: 7px;
  }

  .appu-mp3-control {
    width: 43px;
    height: 43px;
    font-size: 17px;
  }

  .appu-mp3-play {
    width: 58px;
    height: 58px;
    font-size: 23px;
  }

  .appu-mp3-volume {
    min-width: 0;
  }

  .appu-mp3-volume-slider {
    width: 70px;
  }

  .appu-mp3-small-controls {
    flex-wrap: wrap;
  }

  .appu-mp3-option {
    min-height: 36px;
    font-size: 11px;
  }

  .appu-mp3-tab {
    min-height: 36px;
    font-size: 11px;
  }

  .appu-mp3-item-name {
    font-size: 13px;
  }

  .appu-mp3-item-meta {
    font-size: 11px;
  }

  .appu-mp3-category-name {
    font-size: 13px;
  }

  .appu-mp3-category-count {
    font-size: 11px;
  }

  /* JavaScript-generated playlist */
  .appu-mp3-track-item {
    gap: 8px;
    padding: 10px 12px;
  }

  .appu-mp3-track-title {
    font-size: 13px;
  }

  .appu-mp3-track-artist {
    flex-basis: 28%;
    font-size: 10px;
  }

  .appu-mp3-track-remove {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  /* Songs / Genre / Album / Artist */
  .appu-mp3-library-item {
    gap: 10px;
    padding: 10px 12px;
  }

  .appu-mp3-library-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .appu-mp3-library-title {
    font-size: 13px;
  }

  .appu-mp3-library-subtitle {
    font-size: 10px;
  }
}

@media (max-width:480px) {

  #appu-music-player {
    width:100%;
    height: auto;
    min-height:100dvh ;
  }
    .appu-mp3-title h1 {
    font-size: 16px !important;
    margin-top: -2px;
    margin-bottom :10px;
    text-align: center !important;
  }
  .appu-mp3-subtitle {
    font-size:12px !important;
    text-align : center !important;
  }
  .appu-mp3-header-actions {
    align-items: stretch;
  }

  .appu-mp3-header-left,
  .appu-mp3-header-right {
    gap: 4px;
  }

  .appu-mp3-header-button {
    padding: 6px;
    font-size: 10px;
  }

  .appu-mp3-header-right .appu-mp3-theme-toggle {
    flex-basis: 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 8px;
  }

  .appu-mp3-theme-icon {
    width: 17px;
    height: 17px;
    font-size: 15px;
  }

  .appu-mp3-control {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .appu-mp3-play {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .appu-mp3-volume-slider {
    width: 55px;
  }

  .appu-mp3-track-name {
    font-size: 18px;
  }

  .appu-mp3-track-item {
    gap: 6px;
    padding: 9px 10px;
  }

  .appu-mp3-track-title {
    font-size: 12px;
  }

  .appu-mp3-track-artist {
    flex-basis: 25%;
    font-size: 9px;
  }

  .appu-mp3-track-remove {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .appu-mp3-library-item {
    gap: 9px;
    padding: 9px 10px;
  }

  .appu-mp3-library-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .appu-mp3-library-title {
    font-size: 12px;
  }

  .appu-mp3-library-subtitle {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion:reduce) {
  #appu-music-player *,
  #appu-music-player *::before,
  #appu-music-player *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================
   MOBILE VERSION (0px – 480px)
   ========================================== */

@media (max-width: 768px) {

  body {
    padding-bottom: 64px;
  }

  .desktop-nav {
   display: none!important;
  }

  .appu-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-sizing: border-box;

    background: var(--amp-surface) !important;
    border-top: 1px solid var(--amp-line) !important;

    transition:
      background 2s ease,
      border-color 2s ease;
  }


  /* ==========================================
     NAV ITEM
     ========================================== */

  .appu-nav-item {
    position: relative;
    flex: 1;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
  }


  /* ==========================================
     NAV BUTTON
     ========================================== */

  .appu-nav-button {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    border: 0;
    outline: none;

    background: transparent;

    cursor: pointer;
    text-decoration: none;

    box-sizing: border-box;

    -webkit-tap-highlight-color: transparent;

    color: var(--amp-text) !important;

    transition:
      background 2s ease,
      color 2s ease,
      transform 2s ease;
  }


  .appu-nav-button:hover {
    background: var(--amp-surface2) !important;
  }


  .appu-nav-button:active {
    transform: scale(0.94);
  }


  /* ==========================================
     NAV ICON
     ========================================== */

  .appu-nav-icon {
    width: 34px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    line-height: 1;

    transition: transform 2s ease;
  }


  /* ==========================================
     NAV LABEL
     ========================================== */

  .appu-nav-label {
    font-size: 13px;
    font-weight: 700 !important;
    line-height: 14px;

    white-space: nowrap;
    text-transform: uppercase !important;

    color: var(--amp-text) !important;

    transition:
      font-weight 2s ease,
      color 2s ease;
  }


  /* ==========================================
     ACTIVE PARENT MENU
     ========================================== */

  .appu-nav-item.active .appu-nav-button {
    color: var(--amp-accent) !important;
    background: var(--amp-surface2) !important;
  }


  .appu-nav-item.active .appu-nav-label {
    color: var(--amp-accent) !important;
  }


  .appu-nav-item.active .appu-nav-icon {
    transform: translateY(-1px);
  }


  /* ==========================================
     MOBILE DROPUP
     ========================================== */

  .appu-dropup {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 64px;

    width: 100vw;
    max-width: 100vw;

    transform: translateY(20px);

    padding: 12px;

    box-shadow: var(--amp-shadow);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    box-sizing: border-box;

    max-height: min(80vh, 520px);

    overflow-y: auto;
    overscroll-behavior: contain;

    background: var(--amp-surface) !important;
    border: 1px solid var(--amp-line) !important;

    border-top-left-radius: 12px;
    border-top-right-radius: 12px;

    transition:
      background 1s ease,
      border-color 1s ease,
      opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
      transform 1s cubic-bezier(0.25, 1, 0.5, 1),
      visibility 1s ease;
  }


  .appu-nav-item.active .appu-dropup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
  }


  /* ==========================================
     MENU SECTION
     ========================================== */

  .appu-menu-section {
    border-bottom: 1px solid var(--amp-line);
  }


  .appu-menu-section:last-child {
    border-bottom: 0;
  }


  /* ==========================================
     ACCORDION TOGGLE
     ========================================== */

  .appu-menu-toggle,
  .appu-blog-toggle {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 11px 13px;

    border: 0;

    background: transparent;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    text-align: left;

    -webkit-tap-highlight-color: transparent;

    color: var(--amp-text) !important;

    transition:
      color 1s ease,
      background 1s ease;
  }


  .appu-menu-toggle:hover {
    background: var(--amp-surface2) !important;
    color: var(--amp-accent) !important;
  }


  /* ==========================================
     MENU ARROW
     ========================================== */

  .appu-menu-arrow {
    font-size: 18px;

    transition:
      transform 1s ease;
  }


  .appu-menu-section.open .appu-menu-arrow {
    transform: rotate(180deg);
  }


  /* ==========================================
     SUBMENU
     ========================================== */

  .appu-submenu,
  .appu-blog-content {
    display: none;

    padding: 2px 6px 6px 6px;
  }


  .appu-menu-section.open .appu-submenu,
  .appu-blog-group.open .appu-blog-content {
    display: block;
  }


  /* ==========================================
     SUBMENU LINKS
     ========================================== */

  .appu-submenu a,
  .appu-blog-content a,
  .appu-theme-menu-button,
  .theme-menu-button {
    display: block;

    width: 100%;

    padding: 9px 10px;

    border: 0;
    border-radius: 8px;

    background: transparent !important;

    text-decoration: none;
    text-align: left;

    cursor: pointer;

    font-family: inherit;
    font-size: 14px;
    line-height: 17px;

    box-sizing: border-box;

    color: var(--amp-text) !important;

    transition:
      background 1s ease,
      color 1s ease;
  }


  .appu-submenu a:hover,
  .appu-blog-content a:hover,
  .appu-theme-menu-button:hover,
  .theme-menu-button:hover {
    background: var(--amp-surface2) !important;
    color: var(--amp-accent) !important;
  }

}


/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

  .appu-mobile-nav *,
  .appu-mobile-nav {
    transition: none !important;
  }

}


/* ==========================================
   DESKTOP VERSION (481px ke atas)
   ========================================== */

@media (min-width: 769px) {

  body {
    padding-bottom: 0;
  }

  .appu-mobile-nav {
    display: none;
  }

  /* ========================================
     DESKTOP NAVIGATION
     ======================================== */

  .appu-mp3-header {
    position: relative;
  }

  .desktop-nav {
    display: block !important;
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 1000;
  }

  .appu-desktop-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

}


  /* ==========================================
     DESKTOP DROPDOWN PARENT
     ========================================== */

  .appu-desktop-dropdown {
    position: relative;
  }


  .appu-desktop-toggle {
    display: flex;
    align-items: center;

    gap: 0.35rem;

    min-height: 38px;

    padding: 0.5rem 0.8rem;

    background: transparent;

    color: var(--amp-text) !important;

    font-size: 17px;
    font-weight: 700;

    border: 0;

    cursor: pointer;
    white-space: nowrap;

    transition:
      background 0.25s ease,
      color 0.25s ease;
  }


  .appu-desktop-toggle:hover {
    background: var(--amp-surface2) !important;
    color: var(--amp-accent) !important;
  }


  /* ==========================================
     DESKTOP NAV LINKS
     ========================================== */

  .desktop-nav a {
    color: var(--amp-text) !important;
  }


  /* ==========================================
     DESKTOP DROPDOWN
     ========================================== */

  .appu-desktop-menu {
    position: absolute;

    top: calc(100% + 0.45rem);
    right: 0;

    z-index: 100000;

    width: 300px;
    max-height: 70vh;

    overflow: auto;

    padding: 0.55rem;

    border-radius: 8px;

    box-shadow: var(--amp-shadow);

    background: var(--amp-surface) !important;
    border: 1px solid var(--amp-line) !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(15px);

    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      opacity 0.28s cubic-bezier(0.25, 1, 0.5, 1),
      transform 0.28s cubic-bezier(0.25, 1, 0.5, 1),
      visibility 0.28s ease;
  }


  .appu-desktop-dropdown.open > .appu-desktop-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
  }


  /* ==========================================
     DESKTOP MENU SECTION
     ========================================== */

  .appu-desktop-section {
    border-bottom: 1px solid var(--amp-line);
  }


  .appu-desktop-section:last-child {
    border-bottom: 0;
  }


  /* ==========================================
     DESKTOP SECTION TOGGLE
     ========================================== */

  .appu-desktop-section-toggle {
    display: flex;

    width: 100%;

    align-items: center;
    justify-content: space-between;

    padding: 0.7rem 0.75rem;

    border: 0;

    background: transparent;

    font: inherit;

    font-size: 1.2rem;
    font-weight: 700;

    text-align: left;

    cursor: pointer;

    color: var(--amp-text) !important;

    transition:
      color 0.25s ease,
      background 0.25s ease;
  }


  .appu-desktop-section-toggle:hover {
    background: var(--amp-surface2) !important;
    color: var(--amp-accent) !important;
  }


  /* ==========================================
     DESKTOP SUBMENU
     ========================================== */

  .appu-desktop-submenu {
    display: none;

    padding: 0 0.35rem 0.45rem;
  }


  .appu-desktop-section.open > .appu-desktop-submenu {
    display: block;
  }


  /* ==========================================
     DESKTOP SUBMENU LINKS
     ========================================== */

  .appu-desktop-submenu a,
  .appu-desktop-submenu button {
    display: block;

    width: 100%;

    padding: 0.58rem 0.65rem;

    border: 0;
    border-radius: 6px;

    background: transparent;

    font: inherit;

    font-size: 1rem;

    text-align: left;
    text-decoration: none;

    cursor: pointer;

    color: var(--amp-text) !important;

    transition:
      color 0.25s ease,
      background 0.15s ease;
  }


  .appu-desktop-submenu a:hover,
  .appu-desktop-submenu button:hover {
    background: var(--amp-surface2) !important;
    color: var(--amp-accent) !important;
  }

}


/* ==========================================
   GLOBAL THEME SYNCHRONIZATION
   Mengikuti root --amp-* dan
   html[data-theme='dark']
   ========================================== */

.appu-mobile-nav,
.appu-dropup,
.appu-desktop-menu,
.appu-nav-button,
.appu-menu-toggle,
.appu-submenu a,
.appu-blog-content a,
.appu-desktop-toggle,
.appu-desktop-section-toggle,
.appu-desktop-submenu a,
.appu-desktop-submenu button {
  font-family: inherit;
}
