.song-detail-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.detail-artwork {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: var(--card-bg);
  flex-shrink: 0;
}

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

.detail-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-color);
  color: var(--text-secondary);
}
.detail-info {
  flex: 1;
  min-width: 200px;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
  line-height: 1.2;
}

.detail-artist {
  font-size: 1.4rem;
  opacity: 0.8;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.detail-artist a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px dotted var(--colorofdetails);
}
.detail-artist a:hover {
  color: var(--colorofdetails);
  border-bottom-style: solid;
}

.detail-play-btn {
  background: var(--colorofdetails);
  border: none;
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  font-family: 'teenlite';
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.detail-play-btn svg {
  fill: white;
}

.detail-play-btn:hover {
  background: var(--accent-hover);
}

.detail-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.detail-actions::-webkit-scrollbar {
  display: none;
}

.action-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 14px 24px;
  border-radius: 40px;
  font-weight: 500;
  font-family: 'teenlite';
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  flex: 0 0 auto;
  white-space: nowrap;
}

.action-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.download-btn {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 12px;
  border-radius: 0 0 16px 16px;
}

.breadcrumb-current {
  color: var(--text-color) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;  
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--colorofdetails);
}

.breadcrumb span {
  color: var(--text-color);
  font-weight: 600;
}

.breadcrumb .separator {
  color: var(--text-secondary);
  opacity: 0.5;
  user-select: none;
}


.skeleton-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
}

.skeleton-avatar {
  width: 30px;
  height: 12px;
  margin-right: 15px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border-color) 25%, #e0e0e0 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: skeletonShine 1.2s infinite linear;
}

.skeleton-text {
  flex: 1;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border-color) 25%, #e0e0e0 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: skeletonShine 1.2s infinite linear;
}

.skeleton-icon {
  width: 28px;
  height: 28px;
  margin-left: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--border-color) 25%, #e0e0e0 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: skeletonShine 1.2s infinite linear;
}

@keyframes skeletonShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

html.dark .skeleton-avatar,
html.dark .skeleton-text,
html.dark .skeleton-icon {
  background: linear-gradient(90deg, var(--border-color) 25%, #333333 50%, var(--border-color) 75%);
  background-size: 200% 100%;
}


@media (max-width: 600px) {
  .detail-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .detail-artwork {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .detail-info {
    text-align: center;
  }
  .detail-title {
    font-size: 1.8rem;
  }
  .detail-artist {
    font-size: 1.2rem;
  }
  .detail-views{
    justify-content: center;
  }
  .detail-play-btn {
    margin: 0 auto;
  }
  .action-btn {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
  }
  .action-btn span {
    display: none;
  }
  .action-btn svg {
    width: 26px;
    height: 26px;
  }
  .detail-actions {
    gap: 16px;
  }
}