﻿.np-sidebar {
  grid-area: 1 / 3 / 2 / 4;
  background-color: var(--bg-sidebar);
  border-left: 1px solid transparent;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  width: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, width 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

.np-sidebar.visible {
  opacity: 1;
  visibility: visible;
  width: var(--np-sidebar-width);
  padding: 16px;
  border-left: 1px solid rgba(200, 150, 62, 0.22);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.np-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  min-height: 32px;
}

.np-sidebar-album-link {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 40px);
}

.np-sidebar-album-link:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.np-sidebar-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.np-sidebar-close:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.np-sidebar-close .icon {
  width: 16px;
  height: 16px;
}

.np-sidebar-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  margin-bottom: 20px;
  border: 1px solid rgba(200, 150, 62, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.np-sidebar-cover-wrap:hover {
  transform: scale(1.02);
  border-color: rgba(200, 150, 62, 0.7);
  box-shadow: 0 0 25px rgba(200, 150, 62, 0.5), 0 12px 32px rgba(0, 0, 0, 0.6);
}

.np-sidebar-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.np-sidebar-info {
  margin-bottom: 24px;
}

.np-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-word;
}

.np-sidebar-artist {
  font-size: 13px;
  color: var(--text-secondary);
}

.np-related-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.np-related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.np-related-item:hover {
  background: linear-gradient(90deg, rgba(200, 150, 62, 0.12), var(--bg-card-hover));
}

.np-related-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--bg-card-hover);
  border: 1px solid rgba(200, 150, 62, 0.2);
}

.np-related-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.np-related-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-related-artist {
  font-size: 11px;
  color: var(--text-dim);
}


.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-close .icon {
  width: 20px;
  height: 20px;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  border: 2px solid rgba(200, 150, 62, 0.45);
  box-shadow: 0 0 40px rgba(200, 150, 62, 0.3), 0 25px 70px rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}
