/* Audio page layout */
.audio-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left;
}


/* Album Player Container */
.album-player-container {
  margin-bottom: 3rem;
}

/* Album View Header */
.album-view-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.back-link {
  color: var(--link-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Album Info */
.album-info {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.album-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: var(--text-color);
}

.album-info .artist {
  margin: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.album-info .release-date {
  margin: 0.25rem 0;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.album-info .album-description {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Player Section */
.player-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
}

.now-playing {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

#now-playing-text {
  color: var(--link-color);
}

.main-player {
  width: 100%;
  max-width: 100%;
}

/* Player Controls */
.player-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.player-btn {
  background: var(--bg-secondary);
  color: var(--text-color);
  border: 1px solid var(--border-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.player-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-tertiary);
}

.player-btn:active {
  background: var(--bg-tertiary);
}

/* Tracklist */
.tracklist {
  margin-top: 2rem;
}

.tracklist h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: var(--text-color);
}

/* Albums Section */
.albums-section {
  margin: 2rem 0 3rem 0;
  padding: 0;
  border: none;
}

.albums-section h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
  color: var(--text-color);
}

.albums-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.album-card {
  background: var(--bg-secondary);
  padding: 1rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.album-card:hover {
  background: var(--bg-tertiary);
  border-left-color: var(--link-color);
  text-decoration: none;
}

.album-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--text-color);
}

.album-artist {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.album-year {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.track-count {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Track Item */
.track-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.track-item:hover {
  background: var(--bg-tertiary);
  border-left-color: var(--link-color);
}

.track-item.active {
  background: var(--bg-tertiary);
  border-left-color: var(--link-color);
}

.track-number {
  min-width: 2rem;
  text-align: center;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-right: 1rem;
}

.track-info {
  flex: 1;
}

.track-title {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.track-duration {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.track-plays {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-left: 1rem;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 600px) {
  .admin-nav-links {
    flex-direction: column;
  }
  
  .admin-link {
    width: 100%;
    text-align: center;
  }
  
  .album-info h2 {
    font-size: 1.5rem;
  }
  
  .track-item {
    flex-wrap: wrap;
  }
  
  .track-plays {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: #f9f9f9;
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid #007bff;
}

.stat-label {
  color: #999;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #007bff;
}

/* Admin Controls */
.admin-controls {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.admin-link {
  background: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.admin-link:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
}

/* Admin Section */
.admin-section {
  background: #f9f9f9;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid #007bff;
}

.admin-section h2 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #222;
}

.batch-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #0056b3;
}

.action-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
