/* =========================================================
   YouMP3 - Modern Mobile Audio Player Design System
   ========================================================= */

:root {
  --bg-core: #131520;
  --bg-surface: #1a1e2e;
  --bg-surface-elevated: #22273d;
  --bg-surface-translucent: rgba(26, 30, 46, 0.8);
  
  --primary: #ff0000;
  --primary-hover: #dc2626;
  --primary-glow: rgba(255, 0, 0, 0.38);
  
  --accent-pink: #f43f5e;
  --accent-cyan: #ff4d4d;
  --accent-green: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 0, 0, 0.5);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-elevated: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.2);
}

/* Light Mode (Soft Grayish - Comfortable and Elegant) */
[data-theme="light"] {
  --bg-core: #cbd2dc;
  --bg-surface: #dfe4ec;
  --bg-surface-elevated: #ebf0f6;
  --bg-surface-translucent: rgba(223, 228, 236, 0.88);

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #64748b;

  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-focus: rgba(255, 0, 0, 0.5);
  --shadow-elevated: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 0 15px rgba(255, 0, 0, 0.12);
}

[data-theme="light"] .bottom-player {
  background: rgba(203, 210, 220, 0.96);
  border-top-color: var(--border-subtle);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .full-player-modal {
  background: var(--bg-core);
}

[data-theme="light"] .full-controls-card {
  background: rgba(223, 228, 236, 0.92);
  border-color: rgba(255, 0, 0, 0.22);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .custom-slider {
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .full-album-art {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .about-card {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.2);
}

[data-theme="light"] .about-header-banner {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.22) 0%, rgba(220, 38, 38, 0.1) 100%);
}

[data-theme="light"] .about-stats-row {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-player.btn-play-pause {
  background: #0f172a;
  color: #f8fafc;
}

[data-theme="light"] .btn-player:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

[data-theme="light"] .btn-paste {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}

[data-theme="light"] .btn-paste:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #000;
}

[data-theme="light"] .btn-sm-action {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .modal-backdrop {
  background: rgba(15, 23, 42, 0.55);
}

[data-theme="light"] .modal-card {
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .mini-progress-bar {
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .mini-progress-container:hover .mini-progress-bar,
[data-theme="light"] .mini-progress-container.dragging .mini-progress-bar {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .song-thumbnail-wrap {
  background: #cbd2dc;
}

/* Light mode hover for top actions: buat folder baru, ganti mode, tentang */
[data-theme="light"] .top-actions .btn-icon:hover,
[data-theme="light"] #btnNewFolderTop:hover,
[data-theme="light"] #btnThemeToggle:hover,
[data-theme="light"] #btnAbout:hover {
  border: 1px solid #ff0000 !important;
  color: #ff0000 !important;
  background: var(--bg-surface-elevated);
  box-shadow: none;
}

/* Light mode notification toasts */
[data-theme="light"] .toast {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .toast.success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

[data-theme="light"] .toast.success i {
  color: #16a34a;
}

[data-theme="light"] .toast.error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

[data-theme="light"] .toast.error i {
  color: #dc2626;
}

[data-theme="light"] .btn-outline {
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--text-main);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  transition: background-color 0.15s ease, color 0.15s ease;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-core);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

/* Hidden YouTube Video Container (AUDIO ONLY - FORCES 144p LOWEST RESOLUTION TO SAVE DATA) */
#yt-player-container {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
  overflow: hidden;
  z-index: -9999;
}

/* App Container - Single Fullscreen Viewport for Web & Mobile APK WebView */
.app-container {
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg-core);
}

.app-header {
  background: var(--bg-core);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 20;
  flex-shrink: 0;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.brand-logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 10px rgba(255, 0, 0, 0.4));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .brand-logo-svg {
  transform: scale(1.08);
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-text .badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary);
  color: #fff;
}

/* URL Input Card */
.url-input-card {
  padding: 4px 18px 14px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.input-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.text-red {
  color: #ff3333;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px 8px 4px 14px;
  transition: var(--transition-fast);
  margin-bottom: 10px;
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-surface-elevated);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}

.input-group input::placeholder {
  color: var(--text-subtle);
}

.btn-paste {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-paste:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #dc2626);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* App Body (Scrollable - The only scroll container) */
.app-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px 120px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.app-body::-webkit-scrollbar {
  width: 4px;
}

.app-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-text:hover {
  color: #f87171;
}

/* Folder Category Pills (Horizontal Scroll) */
.folder-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.folder-pills::-webkit-scrollbar {
  display: none;
}

.folder-pill {
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.folder-pill i {
  font-size: 14px;
}

.folder-pill:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
}

.folder-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* Current Folder Meta & Action */
.current-folder-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-badge {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.btn-sm-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-sm-action:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary);
  color: var(--text-main);
}

/* Songs List / Table */
.songs-table-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.table-empty-state {
  text-align: center;
  padding: 40px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.empty-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-surface-elevated);
  color: var(--text-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}

.empty-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.empty-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 250px;
  margin: 0 auto;
}

.songs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual Song Card */
.song-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
}

.song-card:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 0, 0, 0.3);
  transform: translateX(2px);
}

.song-card.playing {
  background: rgba(255, 0, 0, 0.15);
  border-color: var(--primary);
}

.song-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-subtle);
  width: 18px;
  text-align: center;
}

.song-thumbnail-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #0f121e;
}

.song-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  opacity: 0;
  transition: var(--transition-fast);
}

.song-card:hover .song-play-overlay,
.song-card.playing .song-play-overlay {
  opacity: 1;
}

.song-card.playing .song-play-overlay {
  background: rgba(255, 0, 0, 0.6);
}

.song-details {
  flex: 1;
  min-width: 0;
}

.song-title-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.song-meta-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.song-folder-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.song-actions-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-card-action {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-card-action.text-danger:hover {
  color: #ef4444;
}

/* =========================================================
   Bottom Mini Player
   ========================================================= */
.bottom-player {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(19, 21, 32, 0.98);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 18px max(12px, env(safe-area-inset-bottom, 12px));
  z-index: 30;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.65);
}

.mini-progress-container {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding: 6px 0 3px;
  cursor: pointer;
  position: relative;
  touch-action: none;
  user-select: none;
  margin-bottom: 4px;
}

.mini-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  position: relative;
  transition: height 0.15s ease;
}

.mini-progress-container:hover .mini-progress-bar,
.mini-progress-container.dragging .mini-progress-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.22);
}

.mini-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff0000, #ff4d4d);
  border-radius: var(--radius-full);
  position: relative;
}

.mini-progress-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6), 0 0 4px var(--primary);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.mini-progress-container:hover .mini-progress-thumb,
.mini-progress-container.dragging .mini-progress-thumb,
.bottom-player.playing .mini-progress-thumb {
  transform: translateY(-50%) scale(1);
}

.mini-time-display {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
  padding: 0 1px;
}

.mini-player-content {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.track-thumb-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  cursor: pointer;
}

.mini-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  animation: spinVinyl 12s linear infinite;
  animation-play-state: paused;
}

.playing .mini-thumb {
  animation-play-state: running;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.track-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.track-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.track-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-player {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-player:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-player.btn-play-pause {
  background: var(--text-main);
  color: #0b0d14;
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.btn-player.btn-play-pause:hover {
  transform: scale(1.06);
  background: #fff;
}

/* =========================================================
   Full Screen Player Modal
   ========================================================= */
.full-player-modal {
  position: absolute;
  inset: 0;
  background: var(--bg-core);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top, 16px)) 20px max(24px, env(safe-area-inset-bottom, 24px));
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.32, 1, 0.23, 1), background-color 0.25s ease;
}

.full-player-modal.open {
  transform: translateY(0);
}

.full-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.full-player-header .btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.full-player-header .btn-icon:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary);
  color: var(--primary);
}

.full-player-header-title {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.full-player-header-title strong {
  display: block;
  font-size: 13px;
  color: var(--text-main);
  margin-top: 2px;
}

.full-player-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.cover-art-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-art-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

.full-album-art {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
}

.audio-only-pill {
  position: absolute;
  bottom: -10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.full-track-details {
  text-align: center;
  width: 100%;
  padding: 0 10px;
  margin-top: 15px;
}

.full-track-details h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
}

.full-track-details p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Timeline / Seekbar */
.timeline-container {
  width: 100%;
  margin-top: 10px;
}

.custom-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-subtle);
  height: 5px;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* Controls Card with Full Visualizer in Background (Kotak Kontrol Visualizer) */
.full-controls-card {
  position: relative;
  width: 100%;
  height: 130px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elevated);
  margin: 12px 0 8px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.controls-visualizer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.visualizer-glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.15) 0%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* Controls row inside visualizer card */
.full-controls-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 18px;
}

.btn-aux {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-aux:hover,
.btn-aux.active {
  color: var(--primary);
}

.btn-large-ctrl {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 26px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-large-ctrl:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.btn-main-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #dc2626);
  border: none;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: var(--transition-fast);
}

.btn-main-play:hover {
  transform: scale(1.08);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 90%;
  color: var(--text-muted);
  font-size: 16px;
}

.volume-slider {
  flex: 1;
}

/* =========================================================
   Modals & Bottom Sheets
   ========================================================= */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  will-change: opacity;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-sheet {
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px 28px 0 0;
  padding: 12px 18px 24px;
  transform: translateY(100%) translateZ(0);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 85%;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.modal-backdrop.open .modal-sheet {
  transform: translateY(0) translateZ(0);
}

.modal-card {
  width: 90%;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: auto;
  margin-top: auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transform: scale(0.96) translateZ(0);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.modal-backdrop.open .modal-card {
  transform: scale(1) translateZ(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin: 0 auto 12px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Save Preview Card */
.song-save-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface-elevated);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.save-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.save-meta {
  flex: 1;
  min-width: 0;
}

.save-meta h4 {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.save-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.form-input {
  background: var(--bg-core);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.inline-new-folder {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.inline-new-folder input {
  flex: 1;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.btn-full {
  width: 100%;
}

.mb-3 {
  margin-bottom: 12px;
}

/* Folder Selection Table inside Save Modal */
.folder-selection-table {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 180px;
  overflow-y: auto;
}

.folder-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--bg-core);
}

.folder-select-row:last-child {
  border-bottom: none;
}

.folder-select-row:hover {
  background: var(--bg-surface-elevated);
}

.folder-select-row.selected {
  background: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.3);
}

.folder-select-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.folder-select-name i {
  color: var(--primary);
  font-size: 16px;
}

.folder-select-check {
  font-size: 16px;
  color: var(--primary);
  opacity: 0;
}

.folder-select-row.selected .folder-select-check {
  opacity: 1;
}

/* Modal Action Buttons */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-outline {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* Folders Manage Table */
.folders-manage-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.folder-manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-core);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.folder-manage-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.folder-manage-info strong {
  font-size: 13px;
  font-weight: 600;
}

.folder-manage-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.folder-manage-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Toast System */
.toast-container {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  pointer-events: none;
  width: 90%;
  max-width: 360px;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideDown 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.toast i {
  font-size: 16px;
  flex-shrink: 0;
}

.toast.success { 
  border-color: rgba(16, 185, 129, 0.45); 
}
.toast.success i {
  color: #10b981;
}

.toast.error { 
  border-color: rgba(239, 68, 68, 0.45); 
}
.toast.error i {
  color: #ef4444;
}

@keyframes toastSlideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   About Creator Modal Card
   ========================================================= */
.about-card {
  position: relative;
  max-width: 360px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.96) translateZ(0);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.modal-backdrop.open .about-card {
  transform: scale(1) translateZ(0);
}

.btn-close-about {
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.btn-close-about:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.about-header-banner {
  position: relative;
  height: 85px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.35) 0%, rgba(185, 28, 28, 0.15) 100%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.about-avatar-wrapper {
  position: relative;
  transform: translateY(50%);
}

.about-avatar-glow {
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-avatar-img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0000, #991b1b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #ffffff;
  border: 3px solid var(--bg-surface);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.about-verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--bg-surface);
  color: #ff0000;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  z-index: 3;
}

.about-profile-body {
  padding: 42px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.about-role {
  font-size: 11px;
  font-weight: 700;
  color: #ff4d4d;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255, 0, 0, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.about-bio {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0 6px;
  font-style: italic;
  max-width: 280px;
}

.about-stats-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 6px;
  margin-bottom: 4px;
}

.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.about-stat-item strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.about-stat-item span {
  font-size: 10px;
  color: var(--text-muted);
}

.about-tags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 6px;
}

.about-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.about-tag i {
  color: var(--primary);
  font-size: 11px;
}

.about-social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 6px;
}

.about-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.about-social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.mt-3 {
  margin-top: 10px;
}

/* End of Stylesheet */
