/* Album Desktop Styles - Dark Theme */

/* Modal overlay and container */
.artistModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.artistModal {
  position: relative;
  width: 90%;
  max-width: 1100px;
  max-height: 90vh;
  background-color: #121212;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s ease-out;
  border: 1px solid #2a2a2a;
}

/* Main content area */
.artistModalContent {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  height: calc(90vh - 80px);
}

/* Artist/Album info panel */
.artistInfoPanel {
  width: 320px;
  padding: 20px;
  background-color: #0a0a0a;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2a2a2a;
}

.artistImage {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
}

.artistImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.artistImage img:hover {
  transform: scale(1.02);
}

.artistDetails {
  padding: 15px 0;
}

.artistName {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 5px 0;
  color: #ffffff;
}

.albumArtist {
  font-size: 18px;
  margin: 0 0 15px 0;
  color: #1db954;
  font-weight: 500;
}

.artistMeta {
  display: flex;
  margin-bottom: 20px;
  color: #b3b3b3;
  font-size: 14px;
}

.metaItem {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.metaItem ion-icon {
  margin-right: 6px;
  font-size: 18px;
}

/* Navigation */
.artistNav {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
}

.navButton {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.navButton:hover {
  background-color: #2a2a2a;
  color: #ffffff;
}

.navButton.active {
  background-color: #2a2a2a;
  color: #1db954;
  font-weight: 500;
}

.navButton ion-icon {
  margin-right: 10px;
  font-size: 20px;
}

/* Content panel */
.contentPanel {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
  background-color: #121212;
  min-height: 300px;
}

.contentPanel::-webkit-scrollbar {
  width: 8px;
}

.contentPanel::-webkit-scrollbar-track {
  background: #121212;
}

.contentPanel::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 4px;
}

/* Section titles */
.sectionTitle {
  display: flex;
  align-items: center;
  font-size: 20px;
  margin: 0 0 20px 0;
  color: #ffffff;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2a2a;
}

.sectionTitle ion-icon {
  margin-right: 10px;
  font-size: 22px;
  color: #1db954;
}

/* Tracks list */
.tracksList {
  display: flex;
  flex-direction: column;
}

.trackItem {
  display: grid;
  grid-template-columns: 40px 60px 1fr 100px auto;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  color: #e0e0e0;
}

.trackItem:hover {
  cursor: pointer;
  background-color: #2a2a2a;
}

.trackItem.playing {
  background-color: #1db95420;
  border-left: 3px solid #1db954;
}

.trackNumber {
  font-size: 14px;
  color: #b3b3b3;
  text-align: center;
}

.trackImageContainer {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 10px;
}

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

.trackImageOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.trackImageContainer:hover .trackImageOverlay,
.trackItem.playing .trackImageOverlay {
  opacity: 1;
}

.trackPlayButton {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(29, 185, 84, 0.8);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.trackPlayButton:hover {
  transform: scale(1.1);
}

.trackInfo {
  padding: 0 10px;
  overflow: hidden;
}

.trackTitle {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.trackArtist {
  font-size: 14px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trackAlbum {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.trackDuration {
  font-size: 14px;
  color: #b3b3b3;
  text-align: center;
}

.trackActions {
  display: flex;
  gap: 8px;
}

.trackActionButton {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.trackActionButton:hover {
  color: #1db954;
  background-color: rgba(29, 185, 84, 0.1);
}

.trackActionButton ion-icon[name="heart"] {
  color: #1db954;
}

/* Biography section */
.bioSection {
  padding: 10px 0;
}

.biographyContent {
  color: #b3b3b3;
  line-height: 1.6;
  font-size: 15px;
}

.biographyContent p {
  margin-bottom: 15px;
}

.biographyContent strong {
  color: #ffffff;
}

/* Player bar */
.playerBar {
  display: grid;
  grid-template-columns: 300px 1fr 200px;
  align-items: center;
  padding: 15px 25px;
  background-color: #0a0a0a;
  border-top: 1px solid #333;
  height: 80px;
}

.playerTrackInfo {
  display: flex;
  align-items: center;
}

.playerTrackImage {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
  border: 1px solid #333;
}

.playerTrackImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playerTrackText {
  overflow: hidden;
}

.playerTrackTitle {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.playerTrackArtist {
  font-size: 13px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playerControls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.playerPrevButton,
.playerNextButton {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.playerPrevButton:hover,
.playerNextButton:hover {
  background-color: #2a2a2a;
}

.playerPlayButton {
  background-color: #1db954;
  border: none;
  color: #000000;
  font-size: 26px;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.playerPlayButton:hover {
  transform: scale(1.05);
  background-color: #1ed760;
}

.playerPlayButton:active {
  transform: scale(0.95);
}

.playerActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.playerActionButton,
.playerCloseButton {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 20px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.playerActionButton:hover,
.playerCloseButton:hover {
  color: #ffffff;
  background-color: #2a2a2a;
}

.playerCloseButton {
  margin-left: 10px;
}

/* Close button */
.closeButton {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.closeButton:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Loading and error states */
.loadingMessage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  width: 100%;
  text-align: center;
  color: #b3b3b3;
}

.spinner {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 4px solid #1db954;
  animation: spin 1s linear infinite;
}

.bufferingSpinner,
.miniSpinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 2px solid #1db954;
  animation: spin 1s linear infinite;
}

.miniSpinner {
  width: 16px;
  height: 16px;
}

.noTracksMessage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: #b3b3b3;
  text-align: center;
}

.noTracksMessage ion-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.bufferingIndicator {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #b3b3b3;
  margin-left: 16px;
}

.bufferingIndicator .bufferingSpinner {
  margin-right: 8px;
}

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

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsiveness - consider adding media queries for smaller screens */
@media (max-width: 900px) {
  .artistModalContent {
    flex-direction: column;
  }
  
  .artistInfoPanel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #2a2a2a;
  }
  
  .trackItem {
    grid-template-columns: 30px 50px 1fr 70px auto;
  }
  
  .playerBar {
    grid-template-columns: 200px 1fr 150px;
    padding: 15px;
  }
}

/* Disabled button states */
.playerControls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.playerPlayButton.buffering {
  display: flex;
  align-items: center;
  justify-content: center;
}/* Album Desktop Styles - Light Theme */

/* Modal overlay and container */
:global(.light-theme) .artistModalOverlay {
  background-color: rgba(245, 245, 247, 0.85);
}

:global(.light-theme) .artistModal {
  background-color: #f5f5f7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #dddddd;
}

/* Artist/Album info panel */
:global(.light-theme) .artistInfoPanel {
  background-color: #eaeaef;
  border-right: 1px solid #dddddd;
}

:global(.light-theme) .artistImage {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid #cccccc;
}

:global(.light-theme) .artistName {
  color: #111111;
}

:global(.light-theme) .albumArtist {
  color: #1db954;
}

:global(.light-theme) .artistMeta {
  color: #666666;
}

/* Navigation */
:global(.light-theme) .navButton {
  color: #666666;
}

:global(.light-theme) .navButton:hover {
  background-color: #e0e0e6;
  color: #333333;
}

:global(.light-theme) .navButton.active {
  background-color: #e0e0e6;
  color: #1db954;
}

/* Content panel */
:global(.light-theme) .contentPanel {
  background-color: #f5f5f7;
}

:global(.light-theme) .contentPanel::-webkit-scrollbar-track {
  background: #f5f5f7;
}

:global(.light-theme) .contentPanel::-webkit-scrollbar-thumb {
  background-color: #cccccc;
}

/* Section titles */
:global(.light-theme) .sectionTitle {
  color: #111111;
  border-bottom: 1px solid #dddddd;
}

:global(.light-theme) .sectionTitle ion-icon {
  color: #1db954;
}

/* Tracks list */
:global(.light-theme) .trackItem {
  color: #333333;
}

:global(.light-theme) .trackItem:hover {
  background-color: #e8e8f0;
}

:global(.light-theme) .trackItem.playing {
  background-color: rgba(29, 185, 84, 0.1);
  border-left: 3px solid #1db954;
}

:global(.light-theme) .trackNumber {
  color: #666666;
}

:global(.light-theme) .trackTitle {
  color: #111111;
}

:global(.light-theme) .trackArtist,
:global(.light-theme) .trackDuration {
  color: #666666;
}

:global(.light-theme) .trackAlbum {
  color: #777777;
}

:global(.light-theme) .trackActionButton {
  color: #666666;
}

:global(.light-theme) .trackActionButton:hover {
  color: #1db954;
  background-color: rgba(29, 185, 84, 0.1);
}

:global(.light-theme) .trackActionButton ion-icon[name="heart"] {
  color: #1db954;
}

/* Biography section */
:global(.light-theme) .biographyContent {
  color: #444444;
}

:global(.light-theme) .biographyContent strong {
  color: #111111;
}

/* Player bar */
:global(.light-theme) .playerBar {
  background-color: #eaeaef;
  border-top: 1px solid #dddddd;
}

:global(.light-theme) .playerTrackImage {
  border: 1px solid #cccccc;
}

:global(.light-theme) .playerTrackTitle {
  color: #111111;
}

:global(.light-theme) .playerTrackArtist {
  color: #666666;
}

:global(.light-theme) .playerPrevButton,
:global(.light-theme) .playerNextButton {
  color: #333333;
}

:global(.light-theme) .playerPrevButton:hover,
:global(.light-theme) .playerNextButton:hover {
  background-color: #d8d8e0;
}

:global(.light-theme) .playerPlayButton {
  background-color: #1db954;
  color: #ffffff;
}

:global(.light-theme) .playerPlayButton:hover {
  background-color: #1ed760;
}

:global(.light-theme) .playerActionButton,
:global(.light-theme) .playerCloseButton {
  color: #666666;
}

:global(.light-theme) .playerActionButton:hover,
:global(.light-theme) .playerCloseButton:hover {
  color: #333333;
  background-color: #d8d8e0;
}

/* Close button */
:global(.light-theme) .closeButton {
  background: rgba(255, 255, 255, 0.5);
  color: #333333;
}

:global(.light-theme) .closeButton:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Loading and error states */
:global(.light-theme) .loadingMessage {
  color: #666666;
}

:global(.light-theme) .spinner,
:global(.light-theme) .bufferingSpinner,
:global(.light-theme) .miniSpinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #1db954;
}

:global(.light-theme) .bufferingSpinner,
:global(.light-theme) .miniSpinner {
  border-width: 2px;
  border-top-width: 2px;
}

:global(.light-theme) .noTracksMessage {
  color: #666666;
}

:global(.light-theme) .bufferingIndicator {
  color: #666666;
}