
#toast-portal {
  --bg-default: #2d333b;
  --border-default: #444c56;
  --text-default: #adbac7;
  --text-strong: #cdd9e5;

  --info-bg: #316dca;
  --info-border: #4184e4;

  --success-bg: #347d39;
  --success-border: #46954a;

  --warning-bg: #966600;
  --warning-border: #f69d50;

  --error-bg: #b31d28;
  --error-border: #e5534b;

  position: fixed;
  top: 2rem;
  right: 1.5rem;
  width: min(92vw, 24rem);
  z-index: 100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

#toast-portal:hover .toast-item {
  margin-top: 12px;
}

.toast-item {
  position: relative;
  margin-top: 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background-color: var(--bg-default);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  color: var(--text-default);
  font-size: 13px;
  line-height: 1.4;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: auto;
  will-change: transform, opacity;
  overflow: hidden;
  animation: toast-in 200ms cubic-bezier(.2,.8,.25,1) both;
  transition: margin-top 180ms cubic-bezier(.2,.8,.25,1);
}

.toast-icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
}

.toast-content {
  min-width: 0;
  flex: 1;
}

.toast-content strong {
  display: block;
  color: var(--text-strong);
  font-size: 13px;
  margin-bottom: 2px;
}

.toast-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.toast-actions button {
  font-size: 12px;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  color: var(--text-strong);
  transition: background 0.2s;
}
.toast-actions button:hover {
  background: rgba(255,255,255,0.25);
}

.toast-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transition: width 120ms linear;
}

.toast-info    { background-color: var(--info-bg); border-color: var(--info-border); }
.toast-success { background-color: var(--success-bg); border-color: var(--success-border); }
.toast-warning { background-color: var(--warning-bg); border-color: var(--warning-border); }
.toast-error   { background-color: var(--error-bg); border-color: var(--error-border); }

.toast-info .toast-progress,
.toast-success .toast-progress,
.toast-warning .toast-progress,
.toast-error .toast-progress {
  background: #fff;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out-up {
  to { opacity: 0; transform: translateY(-8px) scale(0.98); }
}
@keyframes toast-swipe-out-right {
  to { opacity: 0; transform: translateX(32px); }
}
@keyframes toast-swipe-out-left {
  to { opacity: 0; transform: translateX(-32px); }
}
























.musicPlayer {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 70vh;
  background: var(--background-400);
  backdrop-filter: var(--blur-lg);
  border-radius: 10px;
  border: 1px solid var(--border-200);
  color: var (--text-200);
  box-shadow: var(--shadow-2xl);
  z-index: var(--z-player);
  transition: var(--transition-smooth);
  overflow: hidden;
}
.musicPlayer.hidden {
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.musicPlayer > .handle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) 0;
  cursor: grab;
  transition: var(--transition-fast);
}
.musicPlayer > .handle:active {
  cursor: grabbing;
  background: var(--background-400);
}
.musicPlayer > .handle .grip {
  width: 40px;
  height: 4px;
  background: var(--text-400);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}
.musicPlayer > .handle:hover .grip {
  background: var(--text-300);
  width: 50px;
}


.musicPlayer > .header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-md) var(--space-lg) var(--space-sm);
  /**
  background: var(--background-200);
  border-bottom: 1px solid var(--border-200);
  **/
}
.musicPlayer > .header .close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-400);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-300);
  cursor: pointer;
  transition: var(--transition-fast);
}
.musicPlayer > .header .close:hover {
  background: var(--accent-danger);
  color: var(--text-on-accent);
  transform: scale(1.05);
}
.musicPlayer > .header .close .icon {
  width: 16px;
  height: 16px;
}


.musicPlayer > .body {
  position: relative;
  padding: var(--space-lg);
  /**
  background: var(--background-300);
  **/
  max-height: 60vh;
  overflow-y: auto;
}
.musicPlayer > .body .content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}
.musicPlayer > .body .content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


.musicPlayer > .body .cover {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  margin: 0 auto var(--space-xl);
  display: block;
  background: var(--background-500);
  border: 1px solid var(--border-300);
}
.musicPlayer > .body .info {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.musicPlayer > .body .info .title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}
.musicPlayer > .body .info .artist {
  font-size: 1rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.musicPlayer > .body .info .album {
  font-size: 0.875rem;
  color: var(--text-300);
  font-weight: 500;
}


.musicPlayer > .body .progress {
  margin-bottom: var(--space-xl);
}
.musicPlayer > .body .progress .time {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-300);
  font-weight: 500;
}
.musicPlayer > .body .progress .bar {
  height: 6px;
  background: var(--background-600);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.musicPlayer > .body .progress .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-purple));
  border-radius: var(--radius-full);
  position: relative;
  transition: width 0.1s ease-out;
}
.musicPlayer > .body .progress .thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--text-100);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: var(--transition-fast);
}
.musicPlayer > .body .progress .bar:hover .thumb {
  opacity: 1;
}


.musicPlayer > .body .controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.musicPlayer > .body .controls .btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-400);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-200);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--border-200);
}
.musicPlayer > .body .controls .btn:hover {
  background: var(--background-500);
  transform: scale(1.05);
  color: var(--text-100);
  border-color: var(--border-300);
}
.musicPlayer > .body .controls .btn.primary {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.musicPlayer > .body .controls .btn.primary:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
}
.musicPlayer > .body .controls .btn .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.musicPlayer > .body .controls .btn.primary .icon {
  width: 24px;
  height: 24px;
}
.musicPlayer > .body .controls .btn .icon.pause {
  display: none;
}
.musicPlayer > .body .controls .btn.playing .icon.play {
  display: none;
}
.musicPlayer > .body .controls .btn.playing .icon.pause {
  display: block;
}


.musicPlayer > .body .actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}
.musicPlayer > .body .actions .action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-300);
  cursor: pointer;
  transition: var(--transition-fast);
}
.musicPlayer > .body .actions .action:hover {
  background: var(--background-400);
  color: var(--text-100);
  transform: scale(1.05);
}
.musicPlayer > .body .actions .action.active {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}
.musicPlayer > .body .actions .action .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


.musicPlayer > .body .list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}
.musicPlayer > .body .list::-webkit-scrollbar {
  width: 6px;
}
.musicPlayer > .body .list::-webkit-scrollbar-track {
  background: var(--background-400);
  border-radius: var(--radius-full);
}
.musicPlayer > .body .list::-webkit-scrollbar-thumb {
  background: var(--background-600);
  border-radius: var(--radius-full);
}
.musicPlayer > .body .list::-webkit-scrollbar-thumb:hover {
  background: var(--background-700);
}
.musicPlayer > .body .empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  text-align: center;
}
.musicPlayer > .body .emptyIcon {
  width: 48px;
  height: 48px;
  color: var(--text-400);
  margin-bottom: var(--space-md);
  opacity: 0.7;
}
.musicPlayer > .body .emptyIcon .icon {
  width: 100%;
  height: 100%;
}
.musicPlayer > .body .emptyText {
  color: var(--text-300);
  font-size: 0.95rem;
  font-weight: 500;
}


.musicPlayer > .footer {
  /**
  background: var(--background-200);
  border-top: 1px solid var(--border-200);
  **/
  padding: var(--space-sm);
}
.musicPlayer > .footer .tabs {
  display: flex;
  /**
  background: var(--background-300);
  border-radius: var(--radius-lg);
  **/
  padding: var(--space-xs);
  gap: var(--space-xs);
}
.musicPlayer > .footer .tab {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border-bottom: 2px solid transparent;
  
  color: var(--text-300);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.musicPlayer > .footer .tab:hover {
  border-bottom: 2px solid var(--background-400);
  color: var(--text-200);
}
.musicPlayer > .footer .tab.active {
  border-bottom: 2px solid var(--accent-primary);
  color: var(--text-on-accent);

}


@media (max-width: 480px) {
  .musicPlayer {
    width: 90vw;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .musicPlayer > .body {
    padding: var(--space-md);
  }
  
  .musicPlayer > .body .controls {
    gap: var(--space-md);
  }
  
  .musicPlayer > .body .controls .btn {
    width: 30px;
    height: 30px;
  }
  
  .musicPlayer > .body .controls .btn.primary {
    width: 40px;
    height: 40px;
  }
  
  .musicPlayer > .body .actions {
    gap: var(--space-sm);
  }
  
  .musicPlayer > .body .actions .action {
    width: 25px;
    height: 25px;
  }
  
  .musicPlayer > .footer .tab {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
  }
}
@media (max-width: 360px) {
  .musicPlayer > .body .controls .btn .icon {
    width: 18px;
    height: 18px;
  }
  
  .musicPlayer > .body .controls .btn.primary .icon {
    width: 20px;
    height: 20px;
  }
  
  .musicPlayer > .body .actions .action .icon {
    width: 14px;
    height: 14px;
  }
}


button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
button:focus {
  outline: none;
}

.musicPlayer::-webkit-scrollbar {
  width: 6px;
}
.musicPlayer::-webkit-scrollbar-track {
  background: var(--background-400);
}
.musicPlayer::-webkit-scrollbar-thumb {
  background: var(--background-600);
  border-radius: var(--radius-full);
}
.musicPlayer::-webkit-scrollbar-thumb:hover {
  background: var(--background-700);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


















#spacerSmall {
  height: 2rem;
}

#contentWrapper {
  height: 200vh;
}


/* ============================================
   BREADCRUMB NAVIGATION STYLES
   ============================================ */
.breadcrumb-wrapper {
  background: var(--breadCrumbsBG);
  border-bottom: 1.5px solid var(--breadCrumbsBDR);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px var(--shadowColor),
              0 1px 2px var(--shadowColor);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  position: fixed; z-index: 999999999999;
  top: 0;
  width: 100%;
  height: 40px;
  padding: 0.5rem;
}

.breadcrumb-wrapper:hover {
  box-shadow: 0 4px 6px -1px var(--shadowColor),
              0 2px 4px -1px var(--shadowColor);
}

/* Breadcrumb List Styles */
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Breadcrumb Item */
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 1.275rem;
  line-height: 1.25rem;
  font-weight: 300;
}

/* Breadcrumb Link Styles */
.breadcrumb-link {
  color: var(--breadCrumbsText);
  text-decoration: none;
  padding: 0.625rem 0.75rem;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.375rem;
  letter-spacing: 0.01em;
}

.breadcrumb-link:hover {
  color: var(--breadCrumbsTextHover);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.breadcrumb-link:focus-visible {
  outline: 2px solid var(--breadCrumbActive);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* Active Breadcrumb */
.breadcrumb-item.active .breadcrumb-link,
.breadcrumb-item:last-child .breadcrumb-link[aria-current="page"] {
  color: var(--breadCrumbActive);
  font-weight: 600;
  pointer-events: none;
}

.breadcrumb-item.active .breadcrumb-link:hover,
.breadcrumb-item:last-child .breadcrumb-link[aria-current="page"]:hover {
  color: var(--breadCrumbActiveHover);
  background: transparent;
  transform: none;
}

/* Chevron Separator */
.breadcrumb-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--chevronColor);
  margin: 0 0.25rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.breadcrumb-chevron svg {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 2.5;
}

/* Hover effect for chevrons */
.breadcrumb-item:hover + .breadcrumb-chevron {
  opacity: 1;
}

/* Home Icon Styles */
.breadcrumb-home-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.375rem;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.breadcrumb-link:hover .breadcrumb-home-icon {
  transform: scale(1.1);
}

/* Responsive Truncation */
@media (max-width: 640px) {
  .breadcrumb-item:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
    display: none;
  }
  
  .breadcrumb-item:nth-child(2)::before {
    content: "...";
    padding: 0.625rem 0.5rem;
    color: var(--breadCrumbsText);
  }
}

/* Animation Classes */
.breadcrumb-fade-in {
  animation: breadcrumbFadeIn 0.3s ease-out;
}

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

/* Enhanced Focus States */
.breadcrumb-link:focus {
  outline: none;
}

.breadcrumb-link:focus-visible::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--breadCrumbActive);
  border-radius: 0.5rem;
  opacity: 0.5;
}

/* Loading State */
.breadcrumb-loading {
  position: relative;
  color: transparent !important;
}

.breadcrumb-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--breadCrumbsText);
  border-top-color: transparent;
  border-radius: 50%;
  animation: breadcrumbSpinner 0.6s linear infinite;
}

@keyframes breadcrumbSpinner {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Accessibility Improvements */
.breadcrumb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Optional: Pill Style Variant */
.breadcrumb-wrapper.breadcrumb-pill {
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
}

.breadcrumb-wrapper.breadcrumb-pill .breadcrumb-link {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
}

/* Optional: Minimal Style Variant */
.breadcrumb-wrapper.breadcrumb-minimal {
  background: transparent;
  border: none;
  box-shadow: none;
}

.breadcrumb-wrapper.breadcrumb-minimal .breadcrumb-link {
  padding: 0.375rem 0.5rem;
}










.nav-control-btn,
.albumGrid .albumCard {
  background: transparent !important;
}

#musicPlayer .btn {
  background-color: var(--chevronColor);
}
#musicPlayer .controls .icon {
  width: 100%; height: 100%;
}

body {
  background-color: var(--background-canvas);
}

.bento-card {
  background-color: var(--background-500);
}




/* Optional: styling for the buttons themselves */
.controls button {
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;

border: 1px solid var(--border-400);
}
 



.musicPlayer > .body .controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
#musicPlayer .controls .btn {
  width: 3.75rem;
  height: 3.75rem;
  display: flex;


  border-radius: var(--radius-full);
  color: var(--text-200);
  cursor: pointer;
  transition: var(--transition-slow);
  border: 1px solid var(--border-200);
}
#musicPlayer .controls .btn:hover {
  background: var(--background-700);
  transform: scale(1.075);
  color: var(--text-100);
  border-color: var(--border-250);
}
#musicPlayer .controls .btn.primary {
  width: 60px;
  height: 60px;
  background: var(--purpleCalm);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: var(--shadow-md);

opacity: 0.85;
}
.musicPlayer > .body .controls .btn.primary:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
}
.musicPlayer > .body .controls .btn .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.musicPlayer > .body .controls .btn.primary .icon {
  width: 24px;
  height: 24px;
}
.musicPlayer > .body .controls .btn .icon.pause {
  display: none;
}
.musicPlayer > .body .controls .btn.playing .icon.play {
  display: none;
}
.musicPlayer > .body .controls .btn.playing .icon.pause {
  display: block;
}








































/* Core Modal Styles */
.modal {
  --bg: var(--background-400);
  --surface: var(--background-500);
  --border: var(--border-200);
  --text: var(--text-200);
  --radius: var(--radius-2xl);
  --shadow: var(--shadow-2xl);
  
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
  width: min(90vw, 400px);
  max-height: min(75vh, 600px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: all 0.45s ease-in-out;
  outline: none;
  backdrop-filter: blur(10px);
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(12px) scale(0.98) !important;
}

.modal[open] {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1) !important;
  transition: all 0.45s ease-in-out;
}

.modal.closing {
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(0.98) !important;
  transition: all 0.45s ease-in-out;
}

.modal::backdrop {
  background: var(--background-overlay);
  backdrop-filter: blur(20px);
  opacity: 0;
transition: all 0.45s ease-in-out;
}

.modal[open]::backdrop {
  opacity: 0.75;
  transition: all 0.45s ease-in-out;
}

.modal.closing::backdrop {
  opacity: 0;
  transition: all 0.45s ease-in-out;
}

/* Close Button */
.modal .close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.1);
  color: var(--text-300);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal .close:hover {
  background: var(--background-600);
  color: var(--text-100);
  transform: scale(1.1);
}

/* Content Area */
.modal .content {
  padding: var(--space-xl);
  padding-top: calc(var(--space-xl) + 40px); /* Account for close button */
  overflow: auto;
  max-height: calc(75vh - var(--space-xl));
}

/* Dialog Specific Styles */
.modal.dialog {
  width: min(92vw, 420px);
}

.modal.dialog .header {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: var(--space-lg);
  line-height: 1.4;
}

.modal.dialog .actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

/* Form Specific Styles */
.modal.form {
  width: min(92vw, 450px);
}

.modal.form .header {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: var(--space-lg);
}

.modal.form .body {
  margin-bottom: var(--space-lg);
}

.modal.form .input {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background-300);
  color: var(--text-100);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.modal.form .input:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.modal.form .actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* Viewer Specific Styles */
.modal.viewer {
  width: min(95vw, 900px);
  max-height: min(85vh, 700px);
}

.modal.viewer.playlist {
  width: min(92vw, 800px);
}

/* Button Styles */
.btn {
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

.btn.primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn.muted {
  background: var(--background-600);
  color: var(--text-200);
  border-color: var(--border-200);
}

.btn.muted:hover {
  background: var(--background-700);
  color: var(--text-100);
}

.btn.danger {
  background: var(--accent-danger);
  color: var(--text-on-accent);
}

.btn.danger:hover {
  background: var(--accent-danger-hover);
  transform: translateY(-1px);
}

/* Size Variants */
.modal.sm { width: min(90vw, 350px); }
.modal.lg { width: min(95vw, 600px); }
.modal.xl { width: min(95vw, 800px); }

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .modal {
    width: 90vw;
    top: 10% !important;
    max-height: 80vh;
  }
  
  .modal .content {
    padding: var(--space-lg);
    padding-top: calc(var(--space-lg) + 32px);
  }
  
  .modal.dialog .actions,
  .modal.form .actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal::backdrop {
    transition: none;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.modal .content > * {
  animation: fadeIn 0.3s ease 0.1s both;
}


/* Playlist Viewer Styles */
.modal.viewer.playlist .content {
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 32px);
}

.modal.viewer.playlist .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-200);
}

.modal.viewer.playlist .page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-100);
  margin: 0;
}

.modal.viewer.playlist .create-btn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  color: var(--text-on-accent);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modal.viewer.playlist .create-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.modal.viewer.playlist .create-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.modal.viewer.playlist .create-btn:hover svg {
  transform: rotate(90deg);
}

/* Playlist Grid */
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.playlist-card {
  background: var(--background-400);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--border-200);
}

.playlist-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.playlist-cover {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.playlist-cover svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-on-accent);
  opacity: 0.9;
}

.playlist-card .info {
  padding: var(--space-md);
}

.playlist-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-100);
  margin: 0 0 var(--space-xs) 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-card p {
  color: var(--text-300);
  font-size: 0.875rem;
  margin: 0 0 var(--space-md) 0;
}

.playlist-card .actions {
  display: flex;
  gap: var(--space-sm);
}

.playlist-card .btn {
  flex: 1;
  padding: var(--space-sm);
  font-size: 0.8rem;
}

.playlist-card .btn.delete {
  flex: none;
  width: 36px;
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-card .btn.delete svg {
  width: 14px;
  height: 14px;
}

/* List View for smaller modals */
.playlist-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--background-400);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-200);
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-item:hover {
  background: var(--background-500);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.playlist-item .icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.playlist-item .icon svg {
  width: 20px;
  height: 20px;
  color: var(--text-on-accent);
}

.playlist-item .info {
  flex: 1;
  min-width: 0;
}

.playlist-item .name {
  font-weight: 600;
  color: var(--text-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-xs);
}

.playlist-item .tracks {
  font-size: 0.8rem;
  color: var(--text-300);
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .playlists-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .modal.viewer.playlist .page-header {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
  }
  
  .modal.viewer.playlist .create-btn {
    justify-content: center;
  }
}







































































































































/**
*
*
*
*
*
*

:root {

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15), 0 6px 10px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25), 0 15px 30px rgba(0, 0, 0, 0.15);
    --shadow-nav: 0 8px 24px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    --blur-sm: blur(4px);
    --blur-md: blur(8px);
    --blur-lg: blur(16px);
    --blur-xl: blur(24px);
    --blur-nav: blur(12px);

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-overlay: 30;
    --z-modal: 40;
    --z-popover: 50;
    --z-tooltip: 60;
    --z-notification: 70;
    --z-player: 100;
    --z-player-controls: 110;
    --z-nav: 100;
    --z-search: 100;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}

[data-theme="dark"] {
    --background-100: #0d1117;
    --background-200: #161b22;
    --background-300: #1c2128;
    --background-400: #22272e;
    --background-500: #2d333b;
    --background-600: #373e47;
    --background-700: #444c56;
    --background-800: #545d68;
    --background-900: #636e7b;

    --breadCrumbsBG: rgba(22, 27, 34, 0.75);

    --background-canvas: #22272e;
    --background-overlay: rgba(28, 33, 40, 0.95);
    --background-overlay-solid: #2d333b;
    --background-inset: #1c2128;
    --background-songs: rgba(34, 39, 46, 1);
    --background-gradient: linear-gradient(
        to bottom,
        rgba(28, 33, 40, 0) 0%,
        rgba(28, 33, 40, 0.05) 10%,
        rgba(28, 33, 40, 0.25) 30%,
        rgba(28, 33, 40, 0.5) 50%,
        rgba(28, 33, 40, 0.75) 70%,
        rgba(28, 33, 40, 0.95) 90%,
        rgba(28, 33, 40, 1) 100%
    );

    --border-100: #21262d;
    --border-200: #30363d;
    --border-300: #444c56;
    --border-400: #545d68;
    --border-500: #6e7681;
    --border-accent: #58a6ff;

    --text-100: #f0f6fc;
    --text-200: #c9d1d9; 
    --text-300: #8b949e;
    --text-400: #6e7681;
    --text-500: #484f58;
    --text-inverse: #0d1117;
    --text-on-accent: #ffffff;

    --accent-primary: #58a6ff;
    --accent-primary-hover: #79b8ff;
    --accent-primary-active: #388bfd;
    --accent-secondary: #316dca;
    --accent-success: #3fb950;
    --accent-success-hover: #56d364;
    --accent-warning: #d29922;
    --accent-warning-hover: #f0b638;
    --accent-danger: #f85149;
    --accent-danger-hover: #ff6b63;
    --accent-info: #58a6ff;
    --accent-purple: #bc8cff;
    --accent-pink: #ff7b9d;

    --scrollbar-track: var(--background-300);
    --scrollbar-thumb: var(--background-600);
    --scrollbar-thumb-hover: var(--background-700);
    --input-background: var(--background-200);
    --input-border: var(--border-200);
    --button-background: var(--background-500);
    --button-hover: var(--background-600);
    --button-active: var(--background-700);
}

[data-theme="dim"] {
    --background-100: #1a1f26;
    --background-200: #22282f;
    --background-300: #2a3139;
    --background-400: #333b45;
    --background-500: #3d4651;
    --background-600: #4a5461;
    --background-700: #5a6472;
    --background-800: #6b7583; 
    --background-900: #7d8694;

    --breadCrumbsBG: rgba(37, 42, 49, 0.75);

    --background-canvas: #333b45;
    --background-overlay: rgba(42, 49, 57, 0.95);
    --background-overlay-solid: #3d4651;
    --background-inset: #2a3139;
    --background-songs: rgba(51, 59, 69, 1);
    --background-gradient: linear-gradient(
        to bottom,
        rgba(42, 49, 57, 0) 0%,
        rgba(42, 49, 57, 0.05) 10%,
        rgba(42, 49, 57, 0.25) 30%,
        rgba(42, 49, 57, 0.5) 50%,
        rgba(42, 49, 57, 0.75) 70%,
        rgba(42, 49, 57, 0.95) 90%,
        rgba(42, 49, 57, 1) 100%
    );

    --border-100: #333b45; 
    --border-200: #444d58;
    --border-300: #5a6472;
    --border-400: #6b7583;
    --border-500: #848d97;
    --border-accent: #6cb6ff;

    --text-100: #f7f8fa;
    --text-200: #dde2e8;
    --text-300: #a7b1bd;
    --text-400: #8a95a2;
    --text-500: #6a7481;
    --text-inverse: #1a1f26;
    --text-on-accent: #ffffff;

    --accent-primary: #6cb6ff;
    --accent-primary-hover: #8dc5ff;
    --accent-primary-active: #4ea1ff;
    --accent-secondary: #4d7fc7;
    --accent-success: #56c463;
    --accent-success-hover: #6dd079;
    --accent-warning: #e6a835;
    --accent-warning-hover: #f0b94f;
    --accent-danger: #ff6b61;
    --accent-danger-hover: #ff857d;
    --accent-info: #6cb6ff;
    --accent-purple: #c79eff;
    --accent-pink: #ff8fab;

    --scrollbar-track: var(--background-300);
    --scrollbar-thumb: var(--background-600);
    --scrollbar-thumb-hover: var(--background-700);
    --input-background: var(--background-200);
    --input-border: var(--border-200);
    --button-background: var(--background-500);
    --button-hover: var(--background-600);
    --button-active: var(--background-700);
}

[data-theme="light"] {
    --background-200: #f8f9fa;
    --background-300: #f1f3f5;
    --background-400: #e9ecef;
    --background-500: #dee2e6;
    --background-600: #ced4da;
    --background-700: #adb5bd;
    --background-800: #8c959f;
    --background-900: #6c757d;

    --breadCrumbsBG: rgba(240, 240, 240, 0.75);

    --background-canvas: #f1f3f5;
    --background-overlay: rgba(241, 243, 245, 0.95);
    --background-overlay-solid: #e9ecef;
    --background-inset: #f8f9fa;
    --background-songs: rgba(241, 243, 245, 1);
    --background-gradient: linear-gradient(
        to bottom,
        rgba(241, 243, 245, 0) 0%,
        rgba(241, 243, 245, 0.05) 10%,
        rgba(241, 243, 245, 0.25) 30%,
        rgba(241, 243, 245, 0.5) 50%,
        rgba(241, 243, 245, 0.75) 70%,
        rgba(241, 243, 245, 0.95) 90%,
        rgba(241, 243, 245, 1) 100%
    );

    --border-100: #e9ecef;
    --border-200: #dee2e6;
    --border-300: #ced4da;
    --border-400: #adb5bd;
    --border-500: #8c959f;
    --border-accent: #3b5bdb;

    --text-100: #212529;
    --text-200: #495057;
    --text-300: #6c757d;
    --text-400: #adb5bd;
    --text-500: #ced4da;
    --text-inverse: #ffffff;
    --text-on-accent: #ffffff;

    --accent-primary: #3b5bdb;
    --accent-primary-hover: #4263eb;
    --accent-primary-active: #364fc7;
    --accent-secondary: #5c7cfa;
    --accent-success: #2b8a3e;
    --accent-success-hover: #2f9e44;
    --accent-warning: #e67700;
    --accent-warning-hover: #f08c00;
    --accent-danger: #e03131;
    --accent-danger-hover: #f03e3e;
    --accent-info: #1c7ed6;
    --accent-purple: #7950f2;
    --accent-pink: #cc5de8;

    --scrollbar-track: var(--background-300);
    --scrollbar-thumb: var(--background-500);
    --scrollbar-thumb-hover: var(--background-600);
    --input-background: var(--background-200);
    --input-border: var(--border-200);
    --button-background: var(--background-400);
    --button-hover: var(--background-500);
    --button-active: var(--background-600);
}

.breadcrumb-navigation {
    background-color: var(--breadCrumbsBG);
    border-bottom: 1.5px solid var(--text-500);
    color: var(--text-100);
}

.artistTop {
    background: var(--background-400);
    border: 1.5px solid var(--gray-750);
}

.artist-header {
    background: linear-gradient(to bottom, rgba(26, 30, 36, 0.2) 0%, var(--background-400) 80%);
}

.content-offset {
    background-color: transparent !important;
    color: var(--text-100);
}

.albumSongsArea {
    background: var(--background-songs) !important;
    border: 1px solid var(--gray-750);
}

.songs-container {
    background: var(--background-300) !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*,
body,
html {
    scroll-behavior: smooth;
}

body,
html {
    position: relative;
    height: 100%;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar,
body::-webkit-scrollbar,
html::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--background-200);
    color: var(--text-100);
    line-height: 1;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: auto;
    transition: background-color var(--transition-base), color var(--transition-base);
}

html {
    font-size: 13px !important;
}

* {
    user-select: none !important;
}

#pageWrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    overflow-y: auto;
}

#main-container {
    border-radius: 12px;
    transition: all var(--transition-base);
}

#songName-NAVBar.marquee {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: marquee-scroll 12s linear infinite;
}

.notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: var(--z-nav);
    padding: 16px 24px;
    background: var(--background-700);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--blur-md);
    color: var(--text-on-accent);
    font-weight: 500;
    opacity: 1;
    transform: translateX(-50%);
    transition: all var(--transition-base);
}

.notification.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.95);
}

#contentWrapper {
    position: relative;
    height: 100vh;
    padding-bottom: 5rem;
    overflow-y: auto;
    overscroll-behavior: none;
    overscroll-behavior-y: contain;
}

#popUpTabsWrapper {
    position: relative;
    height: 15%;
    z-index: var(--z-player-controls);
}

.popup-tabs {
    position: absolute;
    bottom: 0.5rem;
    left: -50%;
    display: flex;
    justify-content: center;
    flex: 1;
    width: 100%;
    transform: translateX(50%);
}

.popup-tab {
    flex: 1;
    padding: 12px 0;
    position: relative;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: color var(--transition-slow);
}

.popup-tab.active {
    color: white;
}

.popup-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
}

.popup-tab-content {
    display: none;
    height: 100%;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.45s ease-in-out;
}

.popup-tab-content[style*="block"] {
    display: block !important;
}

.popup-tab-content.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-tab-content[data-tab="now-playing"] {
    opacity: 1;
    pointer-events: auto;
    transition: 0.45s ease-in-out;
    display: block;
}

.popup-tab-content[data-tab="queue"].show {
    opacity: 1;
    pointer-events: auto;
    transition: 0.45s ease-in-out;
}

.popup-tab-content[data-tab="recent"].show {
    opacity: 1;
    pointer-events: auto;
    transition: 0.45s ease-in-out;
}

.popup-song-item {
    pointer-events: auto;
}

.empty-state {
    padding: 2rem;
    color: var(--accent-primary);
    font-size: 0.875rem;
    text-align: center;
}

.popup-album-cover {
    width: 100%;
    aspect-ratio: 1/1;
    margin-bottom: 0.25rem;
    border: 1.5px dashed var(--background-600);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    transition: all var(--transition-base);
}

.popup-album-cover:hover {
    transform: scale(1.02);
}

.popup-song-info {
    margin: 1.5rem 0;
    text-align: center;
}

.popup-song-title {
    margin: 0 0 0.5rem;
    color: var(--text-100);
    font-size: 1.5rem;
    font-weight: 700;
}

.popup-artist-name {
    margin: 0 0 0.25rem;
    color: var(--text-300);
    font-size: 1rem;
}

.popup-album-name {
    margin: 0;
    color: var(--text-400);
    font-size: 0.875rem;
}

.playerControls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.45rem;
    margin-bottom: 2rem;
}

.playerControls > .button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.05rem;
    height: 3.05rem;
    padding: 0;
    background-color: var(--background-500);
    border: 1px solid var(--border-200);
    border-radius: 50%;
    outline: 0.25px solid transparent;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.playerControls > .button .icon {
    width: 1.05rem;
    height: 1.05rem;
    fill: var(--text-100);
    transition: fill var(--transition-smooth), transform var(--transition-smooth);
}

.playerControls > .button:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.1);
}

.playerControls > .button:hover .icon {
    fill: var(--text-on-accent);
}

.playerControls > .button.active {
    background-color: var(--background-overlay);
    border-color: var(--border-400);
    outline: 0.25px solid var(--accent-primary);
}

.playerControls > .button.active .icon {
    fill: var(--accent-primary);
}

#btnPlayPause {
    width: 4.35rem;
    height: 4.35rem;
}

#btnPlayPause .icon {
    width: 2.05rem;
    height: 2.05rem;
}

.popup-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.popup-action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: var(--background-500);
    border: 1px solid var(--border-200);
    border-radius: 40%;
    color: var(--text-100);
    cursor: pointer;
    opacity: 1;
    transition: all var(--transition-smooth);
}

.popup-action-btn:hover {
    background: var(--background-overlay);
    color: var(--accent-primary);
    transform: scale(1.025);
    opacity: 1;
    transition: opacity 0.35s ease-in-out;
}

.popup-action-btn.active {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--text-on-accent);
}

.artist-card {
    position: relative;
    overflow: hidden;
    background: var(--background-600);
    border: 1px solid var(--border-200);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.artist-card:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--gradPrimary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.artist-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px) scale(1.02);
}

.artist-card:hover:before {
    opacity: 0.1;
}

.album-card {
    position: relative;
    overflow: hidden;
    overflow-y: auto;
    padding-top: 3rem;
    background: var(--background-300) !important;
    transition: all var(--transition-base);
}

.songs-container {
    margin: 1rem;
}

.album-cover {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    border-radius: inherit;
    transition: all var(--transition-base);
    will-change: transform;
}

.album-cover:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.album-cover.image-loading {
    border-radius: inherit;
}

.album-cover.image-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-success), var(--accent-warning));
    color: #fff;
    border-radius: inherit;
}

.album-cover.image-error:after {
    content: "🎵";
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.play-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    backdrop-filter: var(--blur-sm);
    transition: all var(--transition-base);
}

.group:hover .play-overlay {
    opacity: 1;
}

.song-item {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-100);
    transition: all var(--transition-fast);
    will-change: transform, background-color;
}

.song-toolbar {
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-fast);
    will-change: opacity, transform;
}

.song-item:hover .song-toolbar {
    opacity: 1 !important;
    transform: translateX(0);
}

.album-grid-item {
    cursor: pointer;
    transition: all var(--transition-base);
}

.album-grid-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.02);
}

.album-grid-item .album-image {
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.album-grid-item:hover .album-image {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.queue-item {
    transition: background-color var(--transition-fast);
}

.queue-item:hover {
    background-color: var(--background-500) !important;
}

.albumFade {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background-position: top, top;
    background-size: 100% 100%, cover;
    background-repeat: no-repeat, no-repeat;
    color: white;
    background-image: var(--background-gradient), var(--album-cover);
}

.album-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
}

.control-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--background-500);
    border: 1px solid var(--border-200);
    border-radius: 50%;
    color: var(--text-100);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
    will-change: transform, background-color, box-shadow;
}

.control-button:before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradPrimary);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.control-button:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.1);
}

.control-button:hover:before {
    opacity: 1;
}

.control-button.play-pause {
    width: 64px;
    height: 64px;
    background: var(--gradPrimary);
    border: none;
    color: var(--text-on-accent);
    box-shadow: var(--shadow-lg);
}

.control-button.play-pause:hover {
    box-shadow: 0 0 0 12px rgba(83, 155, 245, 0.15);
    transform: scale(1.08);
}

.toolbar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--background-600);
    border: 1px solid var(--border-200);
    border-radius: 8px;
    color: var(--text-300);
    cursor: pointer;
    transition: all var(--transition-fast);
    will-change: transform, background-color, color;
}

.toolbar-button:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-sm);
    transform: scale(1.15);
}

.toolbar-button.favorite.active {
    background: var(--accent-danger);
    color: var(--text-on-accent);
}

.floating-add-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 10;
    width: 64px;
    height: 64px;
    background: var(--gradPrimary);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.floating-add-button:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.15) rotate(90deg);
}

.button-loading {
    position: relative;
    pointer-events: none;
    overflow: hidden;
}

.button-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid hsla(0, 0%, 100%, 0.3);
    border-top: 2px solid var(--text-on-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background-color: transparent;
    border: none;
    color: var(--text-100);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.button:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px) scale(1.05);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--border-200);
    border-radius: var(--radius-md);
    color: var(--text-100);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--background-500);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-player);
    height: 1.5px;
    background: crimson;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform;
}

.loading-bar.active {
    transition: transform 0.3s ease-out;
}

.loading-bar.complete {
    animation: loading-complete 0.4s ease-out forwards;
    transform: scaleX(1);
}

#navbar {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    z-index: var(--z-player);
    width: 92vw;
    max-width: 1000px;
    height: 45px !important;
    padding: 0 0.75rem;
    background-color: var(--background-400);
    border: 1px solid var(--border-200);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: var(--blur-navbar);
    box-shadow: var(--shadow-navbar);
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    transform: translateX(-50%);
    transition: all var(--transition-smooth);
    color: var(--text-200);
    will-change: transform, opacity, border-color;
}

.navbar-content {
    gap: 1.5rem;
    width: 100%;

}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--txt);
    border: 1px solid var(--border-200);
    border-radius: 12px;
    color: var(--text-200);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.menu-trigger:before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradPrimary);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.menu-trigger:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.menu-trigger:hover:before {
    opacity: 1;
}

.menu-trigger.active {
    color: var(--text-on-accent);
}

.navbar-center {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.75rem 0.5rem;
    background: transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.now-playing-display {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1rem;
    min-width: 0;
}

#albumArtwork {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--border-100);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    object-fit: cover;
    transition: all var(--transition-fast);
}

#albumArtwork:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.025);
}

#albumArtwork.image-loading {
    background: var(--background-500);
}

#albumArtwork.image-error {
    background: var(--background-700);
    border: 2px dashed var(--border-100);
}

#albumArtwork.image-error:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1) 25%, transparent 50%, rgba(0, 255, 0, 0.1) 75%, transparent);
    animation: glitch-sweep 3s ease-in-out infinite;
}

#albumArtwork:hover.image-loaded {
    transform: scale(1.05);
}

#navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--border-200);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

#navbar-logo:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.025);
}

.now-playing-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 0.25rem;
}

#songName-NAVBar {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#songName-NAVBar.marquee {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: marquee-scroll 12s linear infinite;
}

#artistName-NAVBar {
    margin: 0;
    color: var(--text-200);
    font-size: 0.8rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.play-indicator {
    width: 0.85rem;
    height: 0.85rem;
    margin-left: 0.25rem;
    background: var(--text-200);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.play-indicator.active {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-control-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    background: var(--background-canvas);
    border-radius: 25px;
    color: var(--text-200);
    cursor: pointer;
    font-size: 1.375rem;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.nav-control-btn.active {
    border-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.nav-control-btn.play-pause {
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    color: var(--text-on-accent);
}

.nav-control-btn.play-pause:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.08);
}

.breadcrumb-navigation {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    height: 40px;
    padding: 1.5rem;
    background-color: var(--breadCrumbsBG);
    backdrop-filter: var(--blur-md);
    border-bottom: 1.5px solid var(--borderColor-neutral-muted);
    color: var(--header-fgColor-logo);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.35px;
    line-height: 0.55;
    text-shadow: 2px 2px 6px #252525;
    border-bottom: none;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item,
.breadcrumb-separator {
    display: flex;
    align-items: center;
}

.breadcrumb-separator {
    color: var(--header-borderColor-divider);
}

.popup-progress {
    --progress-height: 8px;
    --thumb-size: 20px;
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --track-color: #4b5563;
    --thumb-color: #eff6ff;
    --text-color: #9ca3af;
    --glow-effect: 0 0 8px rgba(96, 165, 250, 0.5);
    --transition-speed: 0.15s;
    margin: 1.5rem 0;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
}

.popup-progress-bar {
    position: relative;
    height: var(--progress-height);
    background-color: var(--track-color);
    border-radius: 100px;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.popup-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: inherit;
    pointer-events: none;
}

.popup-progress-thumb {
    position: absolute;
    top: 50%;
    width: var(--thumb-size);
    height: var(--thumb-size);
    background-color: var(--thumb-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), var(--glow-effect);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: grab;
    opacity: 1;
}

.popup-progress-bar:hover .popup-progress-thumb {
    transform: translate(-50%, -50%) scale(1.15);
}

.popup-progress-thumb.grabbing {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.25);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(96, 165, 250, 0.7);
}

.breadcrumb {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    transition: all 0.45s ease;
}

.breadcrumb:hover {
    color: var(--accent-primary);
    transition: all 0.45s ease;
}

.genre-tag {
    padding: 6px 12px;
    border: 1px solid var(--border-200);
    border-radius: 16px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.genre-tag:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    transform: scale(1.05);
}

.gradient-text {
    background: var(--gradRainbow);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-flow 8s ease infinite;
}

.similar-artist {
    padding: 8px 16px;
    background: var(--background-500);
    border: 1px solid var(--border-200);
    border-radius: 20px;
    color: var(--text-100);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
    will-change: background-color, transform;
}

.similar-artist:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.album-selector-container {
    margin-bottom: 2rem;
}

.album-selector-tabs {
    display: flex;
    gap: 0.85rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.album-selector-tabs:hover .album-tab:not(.active) {
    opacity: 1;
    transition: all 0.45s ease-in-out;
}

.album-selector-tabs::-webkit-scrollbar {
    display: none;
}

.album-tab {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    background: var(--background-600);
    border-radius: 0.5rem;
    color: var(--text-300);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: 1px dashed transparent;
    opacity: 0.25;
    transition: all var(--transition-smooth);
}

.album-tab.active {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-sm);
    opacity: 1;
    transition: var(--transition-smooth);
}

.album-tab:hover:not(.active) {
    background: var(--background-500);
    color: var(--text-100);
    transform: translateY(-1px);
    border: 1px dashed var(--border-accent);
    transition: all 0.45s ease-in-out;
}

.album-content {
    padding: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: all var(--transition-base);
}

.album-content.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.album-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.artistTop {
    --artist-header-height: 280px;
    --avatar-size: 100px;
    --action-button-height: 30px;
    --tag-spacing: 8px;
    --content-max-width: 1200px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
    justify-content: center;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.artist-header {
    position: relative;
    margin-top: 4rem;
    height: var(--artist-header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 32px 32px;
}

.content-wrapper {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 16px;
    max-width: fit-content;
    margin: 0 auto;
}

.artist-avatar {
    width: var(--avatar-size);
    height: var(--avatar-size);
    flex-shrink: 0;
    border-radius: 50%;
    border: 4px solid var(--background-canvas);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: var(--background-600);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.artist-avatar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
}

.artist-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-bottom: 0;
    flex: unset;
}

.metadata-tags {
    display: flex;
    flex-direction: column;
    gap: var(--tag-spacing);
}

.metadata-tags span {
    background: var(--background-500);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.metadata-tags span:hover {
    background: var(--background-700);
    transform: translateY(-1px);
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.action-buttons button {
    height: var(--action-button-height);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons .play {
    background: linear-gradient(to right, #4a8eff, #6d5ff6);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 142, 255, 0.3);
}

.action-buttons .play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 142, 255, 0.4);
}

.action-buttons .follow {
    background: var(--background-inset);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--background-700);
}

.action-buttons .follow:hover {
    background: var(--background-600);
    transform: translateY(-2px);
}

.image-loaded {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.3s;
}

.playing-indicator {
    animation: pulse-glow 2s ease-in-out infinite;
    will-change: opacity;
}

.spinner {
    animation: spin 1s linear infinite;
    will-change: transform;
}

.content-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: content-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

.image-loading {
    position: relative;
    background: linear-gradient(90deg, var(--background-500) 25%, var(--background-600) 50%, var(--background-500) 75%);
    background-size: 400% 100%;
    animation: image-shimmer 1.5s ease-in-out infinite;
    opacity: 0.7;
}

.image-loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid var(--border-100);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.image-loaded {
    opacity: 1;
    animation: image-fade-in 0.5s ease-out;
}

.image-loading-pulse {
    animation: loading-pulse 2s ease-in-out infinite;
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

.progressive-image {
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
}

.progressive-image.blur-up {
    filter: blur(10px);
    transition: filter 0.5s ease;
}

.progressive-image.blur-up.loaded {
    filter: blur(0);
}

.showSongs {
    animation: showSongs 0.6s ease-out both;
}

.hideSongs {
    animation: hideSongs 0.5s ease-in both;
}

.page {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    animation: pageEnter 0.4s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}

.search-dialog-opening .search-dialog-content {
    animation: slideInDown 0.4s ease-out;
}

.search-dialog-closing .search-dialog-content {
    animation: slideOutUp 0.3s ease-in;
}

.search-dialog {
    animation: fade-in 0.2s ease;
}

.search-dialog-content {
    animation: scale-in 0.3s ease;
}

.fade-out-breadcrumb {
    animation: fadeOutBreadcrumb 0.4s ease forwards;
}

.fade-in-breadcrumb {
    animation: fadeInBreadcrumb 0.4s ease forwards;
}

.image-error {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-700);
    border: 2px dashed var(--border-100);
    opacity: 0.6;
}

.image-error:after {
    content: "🖼️";
    font-size: 2rem;
    opacity: 0.5;
}

.image-fallback {
    opacity: 0.8;
    filter: grayscale(20%);
}

.artist-avatar {
    transition: all var(--transition-base);
}

.artist-avatar,
.artist-avatar.image-loading {
    border-radius: 50%;
}

.artist-avatar.image-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    color: #fff;
    font-weight: 700;
    text-align: center;
    border-radius: inherit;
}

.artist-avatar.image-error:after {
    content: attr(alt);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-avatar-large.image-loading:before {
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border-width: 3px;
}

.queue-item-cover {
    transition: all var(--transition-fast);
}

.queue-item-cover.image-loading {
    border-radius: 0.25rem;
}

.queue-item-cover.image-error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-700);
    color: var(--text-300);
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

.queue-item-cover.image-error:after {
    content: "♪";
}

#albumArtwork {
    transition: all var(--transition-base);
}

#albumArtwork.image-loading {
    border-radius: 0.5rem;
}

#albumArtwork.image-error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

#albumArtwork.image-error:after {
    content: "🎵";
}

#now-playing-cover {
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
}

#now-playing-cover.image-loading {
    border-radius: 1rem;
}

#now-playing-cover.image-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple), var(--accent-pink));
    color: #fff;
    border-radius: 1rem;
}

#now-playing-cover.image-error:after {
    content: "🎼";
    font-size: 4rem;
    margin-bottom: 1rem;
}

.artist-card:hover .artist-avatar.image-loaded {
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1) saturate(1.2);
}

.album-card:hover .album-cover.image-loaded {
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1) contrast(1.1);
    transform: scale(1.05) rotateY(5deg);
}

.queue-item:hover .queue-item-cover.image-loaded {
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transform: scale(1.1);
}

#albumArtwork:hover.image-loaded {
    box-shadow: var(--shadow-md);
    transform: scale(1.15) rotate(-2deg);
}

.image-error-glitch {
    position: relative;
    overflow: hidden;
}

.image-error-glitch:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1) 25%, transparent 50%, rgba(0, 255, 0, 0.1) 75%, transparent);
    animation: glitch-sweep 3s ease-in-out infinite;
}

.artist-context .image-error:after {
    content: "Artist\A Image\A Missing";
    white-space: pre;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.2;
}

.album-context .image-error:after {
    content: "Album\A Cover\A Missing";
    white-space: pre;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.35rem;
    transition: all 0.3s ease;
}

.breadcrumb-separator {
    color: var(--text-300);
    opacity: 0.35;
    margin: 0 0.25rem;
}

.breadcrumb-item {
    color: var(--text-300);
    opacity: 0.35;
    position: relative;
}

.breadcrumb-item:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.breadcrumb-item[aria-current="page"] {
    opacity: 1;
    color: var(--text-100);
    font-weight: 400;
}

.breadcrumb-item[aria-current="page"]::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-100);
    border-radius: 2px;
}

.breadcrumb-navigation:hover .breadcrumb-separator,
.breadcrumb-navigation:hover .breadcrumb-item:not([aria-current="page"]) {
    opacity: 1;
}

.artistBottom {
    width: 100%;
    height: auto;
    padding: 2rem 0;
}

.artistBottom h3 {
    padding: 3px 8px;
    border-radius: 5px;
    color: whitesmoke;
    opacity: 0.35;
    backdrop-filter: blur(20px);
    transform: translate(-15px, -50px);
    transition: opacity 0.65s ease-in-out;
}

.artistBottom:hover h3 {
    opacity: 1;
}

.artistBottom > p {
    padding: 3px 8px;
    border-radius: 5px;
    color: whitesmoke;
    opacity: 0.35;
    backdrop-filter: blur(20px);
    transform: translate(-15px, -50px);
    transition: opacity 0.65s ease-in-out 1s;
}

.artistBottom:hover p {
    opacity: 1;
}

#dropdown-menu {
    position: fixed;
    bottom: 6.5rem;
    left: 50%;
    z-index: 999999 !important;
    width: 92vw;
    max-width: 500px;
    max-height: 70vh;
    padding: 1.5rem;
    background: var(--background-600);
    border: 1px solid var(--text-300);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    backdrop-filter: var(--blur-lg);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    transition: all var(--transition-smooth);
}

#dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-100);
}

.dropdown-title {
    margin: 0;
    color: var(--text-100);
    font-size: 1.25rem;
    font-weight: 700;
}

.dropdown-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-300);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-close:hover {
    background: var(--background-500);
    color: var(--text-100);
}

.dropdown-section {
    margin-bottom: 2rem;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 600;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--background-overlay);
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--background-600);
    border-radius: 8px;
    color: var(--text-300);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.dropdown-item:hover .dropdown-item-icon {
    background: var(--accent-primary);
    color: var(--text-on-accent);
}

.dropdown-item-content {
    flex: 1;
    min-width: 0;
}

.dropdown-item-title {
    margin: 0 0 0.25rem;
    color: var(--text-100);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.dropdown-item-subtitle {
    margin: 0;
    color: var(--text-300);
    font-size: 0.8rem;
    line-height: 1.2;
}

.dropdown-item-badge {
    min-width: 1.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--accent-primary);
    border-radius: 12px;
    color: var(--text-on-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.empty-state {
    padding: 2rem 1rem;
    color: var(--text-300);
    text-align: center;
}

.empty-state-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.search-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-search);
    padding-top: 10vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-dialog:not(.hidden) {
    opacity: 1;
}

.search-dialog-content {
    width: 100%;
    max-width: 600px;
    margin: 0 1rem;
    background: var(--background-600);
    border: 1px solid var(--border-200);
}

.search-tab {
    position: relative;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.search-tab.active,
.search-tab:hover {
    color: var(--accent-primary);
}

.search-tab.active {
    font-weight: 600;
}

.search-tab-content {
    transition: opacity 0.3s ease;
}

.genre-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.genre-tag {
    padding: 0.5rem 0.75rem;
    background: var(--background-500);
    border: 1px solid var(--border-100);
    border-radius: 9999px;
    color: var(--text-300);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.genre-tag:hover {
    background: var(--background-600);
    color: var(--text-100);
}

.genre-tag.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.empty-results {
    padding: 4rem 1rem;
    color: var(--text-300);
    text-align: center;
}

.popup-song-list {
    max-height: 300px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popup-song-list::-webkit-scrollbar {
    display: none;
}

.popup-song-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    height: 30px;
    background: var(--background-overlay);
    display: flex;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background-color 0.35s ease;
}

.popup-song-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.popup-song-item:active {
    background-color: rgba(255, 255, 255, 0.12);
}

.popup-song-item.playing {
    background-color: rgba(83, 155, 245, 0.1);
}

.popup-song-cover {
    width: 25px;
    height: 25px;
    margin-right: 12px;
    background-color: var(--background-600);
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.popup-song-info {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.popup-song-title {
    margin: 0 0 2px;
    color: var(--text-100);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-song-item.playing .popup-song-title {
    color: var(--accent-primary);
}

.popup-song-artist {
    margin: 0;
    color: var(--text-300);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-song-duration {
    min-width: 40px;
    color: var(--text-300);
    font-size: 12px;
    text-align: right;
    flex-shrink: 0;
}

.popup-song-item.playing .popup-song-duration {
    color: var(--accent-primary);
}

.popup-song-play {
    background: none;
    border: none;
    padding: 0.3rem;
    color: var(--text-300);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.popup-song-play:hover,
.popup-song-play:focus {
    color: var(--accent-primary);
    background: rgba(83, 155, 245, 0.1);
}

.popup-song-item:hover .popup-song-play {
    opacity: 1;
    transition: opacity 0.45s ease-in-out;
}

.popup-song-item:hover .popup-song-duration {
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.popup-song-play svg {
    width: 20px;
    height: 20px;
}

.similar-artists-carousel {
    --gradient-width: 100px;
    --carousel-gap: 16px;
    --item-width: 120px;
    --border-radius: 15px;
    --arrow-size: 40px;
    --arrow-offset: 8px;
    --popover-width: 240px;

    position: relative;
    width: 100%;
    margin: 25px 0;
}

.similar-artists-container {
    display: flex;
    gap: var(--carousel-gap);
    margin-bottom: 10rem;
    overflow: hidden;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.similar-artists-container::-webkit-scrollbar {
    display: none;
}

.similar-artists-carousel::before,
.similar-artists-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--gradient-width);
    z-index: var(--z-base);
    pointer-events: none;
}

.similar-artists-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--background-200), transparent);
}

.similar-artists-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--background-200), transparent);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    width: var(--arrow-size);
    height: var(--arrow-size);
    border-radius: 50%;
    background: var(--background-700);
    border: 1px solid var(--border-200);
    color: var(--text-100);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    backdrop-filter: var(--blur-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: all 0.3s ease-out;
}

.carousel-arrow.left {
    left: var(--arrow-offset);
}

.carousel-arrow.right {
    right: var(--arrow-offset);
}

.carousel-arrow:hover:not(.disabled) {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-lg);
}

.carousel-arrow.disabled {
    opacity: 0.3;
    background: var(--background-600);
    cursor: not-allowed;
}

.similar-artists-carousel:hover .carousel-arrow {
    opacity: 0.85;
    pointer-events: auto;
}

.similar-artists-carousel:hover .carousel-arrow:hover {
    opacity: 1;
}

.similar-artist-card {
    --scale-factor: 1.02;
    --lift-distance: -4px;

    position: relative;
    z-index: 2;
    width: var(--item-width);
    text-align: center;
    cursor: pointer;
    flex: 0 0 auto;
    transition: transform var(--transition-base);
}

.similar-artist-card:hover {
    transform: translateY(var(--lift-distance)) scale(var(--scale-factor));
    z-index: 15;
}

.similar-artist-image img {
    width: 100%;
    aspect-ratio: 1;
    margin: 0 auto 8px;
    object-fit: cover;
    border-radius: 25%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.similar-artist-card:hover .similar-artist-image img {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.similar-artist-name {
    margin-bottom: 4px;
    color: var(--text-100);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-popover {
    position: absolute;
    left: 50%;
    min-width: 240px;
    padding: 0;
    background: var(--background-overlay-solid);
    border: 1px solid var(--border-100);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    backdrop-filter: var(--blur-lg);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all var(--transition-bounce);
    will-change: transform, opacity;
}

.artist-popover:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 6px solid transparent;
    border-top: 6px solid var(--border-accent);
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.artist-popover.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(-12px);
}

.similar-artist-card:first-child .artist-popover,
.similar-artist-card:nth-child(2) .artist-popover {
    left: 0;
    transform: translateX(0) translateY(-8px);
}

.similar-artist-card:first-child .artist-popover.visible,
.similar-artist-card:nth-child(2) .artist-popover.visible {
    transform: translateX(0) translateY(-12px);
}

.similar-artist-card:last-child .artist-popover,
.similar-artist-card:nth-last-child(2) .artist-popover {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-8px);
}

.similar-artist-card:last-child .artist-popover.visible,
.similar-artist-card:nth-last-child(2) .artist-popover.visible {
    transform: translateX(0) translateY(-12px);
}

.similar-artist-card:first-child .artist-popover:after,
.similar-artist-card:nth-child(2) .artist-popover:after {
    left: 40px;
    transform: translateX(0);
}

.similar-artist-card:last-child .artist-popover:after,
.similar-artist-card:nth-last-child(2) .artist-popover:after {
    left: auto;
    right: 40px;
    transform: translateX(0);
}

.popover-header {
    position: relative;
    background: linear-gradient(180deg, var(--artistTopBg), transparent);
    border-bottom: 1px solid var(--border-100);
}

.popover-artist-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--text-100);
    font-size: 1rem;
    font-weight: 600;
}

.popover-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.stat-item:hover {
    background: var(--background-600);
    transform: translateY(-2px);
}

.stat-value {
    margin-bottom: 2px;
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-300);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popover-footer {
    padding: 12px 16px 16px;
}

.popover-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    padding: 8px;
    background: var(--accent-primary);
    border: 1px solid var(--border-200);
    border-radius: 8px;
    color: var(--text-on-accent);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-bounce);
}

.popover-button:hover {
    background: var(--gradPrimary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px) scale(1.02);
}

.popover-button:active {
    transform: translateY(0) scale(0.98);
}

.popover-button:after {
    content: "→";
    opacity: 0;
    transition: all var(--transition-fast);
}

.popover-button:hover:after {
    opacity: 1;
    transform: translateX(4px);
}

.popover-portal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-overlay);
    width: 150px;
    height: 200px;
    pointer-events: none;
}

.popover-portal .artist-popover {
    position: absolute;
    pointer-events: all;
}

.glass-effect {
    background-color: rgba(30, 38, 47, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-offset {
    min-height: 100vh;
    padding: 0;
}

.artist-body {
    margin-top: 3rem;
}

.albums-section .section-title {
    margin-bottom: 2rem;
}

.albums-container {
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.error-state {
    padding: 4rem 2rem;
    background: var(--background-500);
    border: 1px solid var(--border-200);
    border-radius: var(--radius-lg);
    color: var(--text-300);
    font-size: 1.2rem;
    text-align: center;
}

.single-album-display {
    max-width: 800px;
    margin: 0 auto;
}

.single-album-display .album-card {
    overflow: hidden;
    border-radius: 16px;
}

.single-album-display .album-info {
    padding: 24px;
}

.single-album-display .album-cover-container {
    position: relative;
    padding-top: 60%;
}

.single-album-display .album-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artists-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.artists-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.artists-grid.list-view .artist-card {
    display: flex;
    align-items: center;
    padding: 0.75rem;
}

.artists-grid.list-view .artist-card .text-center {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
}

.artists-grid.list-view .artist-avatar {
    width: 3rem;
    height: 3rem;
    margin: 0 1rem 0 0;
}

.artists-grid.list-view .genre-tag {
    margin-left: auto;
}

#content-loading {
    position: fixed;
    left: 50%;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    transform: translateX(-50%);
    justify-content: center;
    align-items: center;
    transition: opacity 0.45s ease-in-out;
    pointer-events: none;
}

#content-loading.hidden {
    transition: opacity 0.45s ease-in-out;
    pointer-events: none;
}

.loading-animation {
    text-align: center;
}

.spinner-container {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(83, 155, 245, 0.3);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spinner 1s ease-in-out infinite;
}

.content-loading {
    position: absolute;
    inset: 0;
    z-index: 9999;
    background-color: rgba(13, 17, 23, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.content-loading.opacity-100 {
    opacity: 1;
    pointer-events: all;
}

#dynamic-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#dynamic-content.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

#dynamic-content.fade-in {
    animation: fade-in 0.3s ease forwards;
}

#theme-toggle:focus,
.dropdown-item:focus,
.menu-trigger:focus,
.nav-control-btn:focus,
.navbar-center:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .artist-card:hover {
        transform: translateY(-12px) scale(1.03);
    }
}

@media (max-width: 1024px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .artist-info {
        gap: 0.5rem;
    }

    .artist-avatar-large .artist-avatar {
        width: 160px;
        height: 160px;
    }

    .artist-details .artist-name {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .view {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .artists-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .artist-card {
        padding: 1.5rem;
    }

    .artist-avatar {
        width: 100px;
        height: 100px;
    }

    .artist-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .artist-avatar-large .artist-avatar {
        width: 140px;
        height: 140px;
    }

    .artist-details .artist-name {
        font-size: 2rem;
    }

    .artist-actions {
        justify-content: center;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .albums-container {
        padding: 1rem;
    }

    #navbar.floating {
        top: 1rem;
        width: 95vw;
    }

    .control-button.play-pause,
    .floating-add-button {
        width: 56px;
        height: 56px;
    }

    .floating-add-button {
        bottom: 24px;
        right: 24px;
    }

    .similar-artists-container {
        padding: 2rem 0;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
    }

    .carousel-arrow.left {
        left: 4px;
    }

    .carousel-arrow.right {
        right: 4px;
    }

    .similar-artist-card {
        width: 100px;
    }

    .similar-artist-image {
        width: 64px;
        height: 64px;
    }

    .artist-popover {
        min-width: 180px;
        padding: 12px;
    }

    .album-selector-tabs {
        gap: 1rem;
    }

    .album-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .album-cover.image-loading:before,
    .artist-avatar.image-loading:before {
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border-width: 2px;
    }

    .image-error:after {
        font-size: 1.5rem;
    }

    .artist-card:hover .artist-avatar.image-loaded {
        transform: scale(1.05);
    }

    .musicPlayer {
        padding: 1rem;
    }

    .playerControls {
        gap: 0.75rem;
    }

    .playerControls > .button {
        width: 3.25rem;
        height: 3.25rem;
    }

    .playerControls > .button .play-pause {
        width: 5rem;
        height: 5rem;
    }

    .popup-tab-content {
        max-height: 200px;
    }

    .dropdown-menu,
    .musicPlayer {
        width: 95vw;
        padding: 0.25rem 1rem 0 1rem;
    }

    .dropdown-item {
        padding: 0.75rem;
    }

    #songName-NAVBar {
        font-size: 0.85rem;
    }

    #artistName-NAVBar {
        font-size: 0.75rem;
    }

    .popup-song-item {
        padding: 8px 12px;
        min-height: 52px;
    }

    .popup-song-cover {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }

    .popup-song-info {
        margin-right: 12px;
    }

    .popup-song-title {
        font-size: 13px;
    }

    .popup-song-artist {
        font-size: 11px;
    }

    .popup-song-duration {
        font-size: 11px;
        min-width: 28px;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 12px !important;
    }

    .breadcrumb-navigation {
        padding: 1.5rem;
    }

    .artists-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .genre-tag {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    .now-playing-info {
        max-width: calc(100% - 60px);
    }

    #albumArtwork,
    #navbar-logo {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .artists-grid {
        grid-template-columns: 1fr;
    }

    .artist-details .artist-name {
        font-size: 1.75rem;
    }

    .artist-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .navbar-content {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
    }

    .navbar-right .nav-controls {
        display: none;
    }

    .navbar-center {
        padding: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gradient-text {
        animation: none;
        background: var(--accent-primary);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

@-webkit-keyframes marquee-scroll {
    0% {
        -webkit-transform: translateX(100%);
    }
    to {
        -webkit-transform: translateX(-100%);
    }
}

@keyframes gradient-flow {
    0%,
    to {
        background-position: 0 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0 100%;
    }
}

@-webkit-keyframes gradient-flow {
    0%,
    to {
        background-position: 0 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0 100%;
    }
}

@keyframes loading-progress {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(0.8);
    }
    to {
        transform: scaleX(0) translateX(100%);
    }
}

@-webkit-keyframes loading-progress {
    0% {
        -webkit-transform: scaleX(0);
    }
    50% {
        -webkit-transform: scaleX(0.8);
    }
    to {
        -webkit-transform: scaleX(0) translateX(100%);
    }
}

@keyframes loading-complete {
    0% {
        transform: scaleX(1);
        opacity: 1;
    }
    to {
        transform: scaleX(1);
        opacity: 0;
    }
}

@-webkit-keyframes loading-complete {
    0% {
        -webkit-transform: scaleX(1);
        opacity: 1;
    }
    to {
        -webkit-transform: scaleX(1);
        opacity: 0;
    }
}

@keyframes content-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes content-enter {
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%,
    to {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@-webkit-keyframes pulse-glow {
    0%,
    to {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(1turn);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(1turn);
    }
}

@keyframes image-shimmer {
    0% {
        background-position: 100% 50%;
    }
    to {
        background-position: 0 50%;
    }
}

@-webkit-keyframes image-shimmer {
    0% {
        background-position: 100% 50%;
    }
    to {
        background-position: 0 50%;
    }
}

@keyframes image-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@-webkit-keyframes image-fade-in {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.95);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1);
    }
}

@keyframes loading-pulse {
    0%,
    to {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@-webkit-keyframes loading-pulse {
    0%,
    to {
        opacity: 0.6;
        -webkit-transform: scale(1);
    }
    50% {
        opacity: 0.8;
        -webkit-transform: scale(1.02);
    }
}

@keyframes glitch-sweep {
    0%,
    to {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

@-webkit-keyframes glitch-sweep {
    0%,
    to {
        -webkit-transform: translateX(-100%);
    }
    50% {
        -webkit-transform: translateX(100%);
    }
}

@keyframes navbar-float-in {
    0% {
        transform: translateX(-50%) translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

@-webkit-keyframes navbar-float-in {
    0% {
        -webkit-transform: translateX(-50%) translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes spinner {
    to {
        transform: rotate(1turn);
    }
}

@-webkit-keyframes spinner {
    to {
        -webkit-transform: rotate(1turn);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes fade-in {
    0% {
        opacity: 0;
        -webkit-transform: translateY(10px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

@keyframes scale-in {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@-webkit-keyframes scale-in {
    0% {
        -webkit-transform: scale(0.95);
        opacity: 0;
    }
    to {
        -webkit-transform: scale(1);
        opacity: 1;
    }
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes pageEnter {
    0% {
        opacity: 0;
        -webkit-transform: translateY(10px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

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

@-webkit-keyframes slideInDown {
    from {
        opacity: 0;
        -webkit-transform: translateY(-30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

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

@-webkit-keyframes slideOutUp {
    from {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
    to {
        opacity: 0;
        -webkit-transform: translateY(-30px);
    }
}

@keyframes fadeOutBreadcrumb {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@-webkit-keyframes fadeOutBreadcrumb {
    0% {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
    to {
        opacity: 0;
        -webkit-transform: translateY(-6px);
    }
}

@keyframes fadeInBreadcrumb {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes fadeInBreadcrumb {
    0% {
        opacity: 0;
        -webkit-transform: translateY(6px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

@keyframes showSongs {
    0% {
        opacity: 0;
        filter: blur(40px);
    }
    60% {
        filter: blur(0px);
        opacity: 0.6;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

@-webkit-keyframes showSongs {
    0% {
        opacity: 0;
        -webkit-filter: blur(40px);
    }
    60% {
        -webkit-filter: blur(0px);
        opacity: 0.6;
    }
    100% {
        -webkit-filter: blur(0px);
        opacity: 1;
    }
}

@keyframes hideSongs {
    0% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        filter: blur(40px);
    }
}

@-webkit-keyframes hideSongs {
    0% {
        opacity: 1;
        -webkit-filter: blur(0px);
    }
    100% {
        opacity: 0;
        -webkit-filter: blur(40px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: var(--glow-effect);
    }
    50% {
        box-shadow: 0 0 12px rgba(83, 155, 245, 0.6);
    }
    100% {
        box-shadow: var(--glow-effect);
    }
}

@-webkit-keyframes pulse {
    0% {
        box-shadow: var(--glow-effect);
    }
    50% {
        box-shadow: 0 0 12px rgba(83, 155, 245, 0.6);
    }
    100% {
        box-shadow: var(--glow-effect);
    }
}


.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.dropdown-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}

.dropdown-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-section {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-section:last-child {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.dropdown-item-content {
    flex: 1;
    min-width: 0;
}

.dropdown-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    color: #fff;
}

.dropdown-item-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-item-badge {
    background: rgba(79, 70, 229, 0.2);
    color: #8b9dff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

*
*
*
*
*
*
********/