/* Simple Spotify-like music styles (starter) */
.music-hero {
  background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.85));
  padding: 48px 0;
  margin-bottom: 20px;
}
.music-hero .music-hero-inner {
  text-align: center;
  color: #fff;
}
.music-hero h2 { font-size: 36px; margin: 0 0 8px; }
.music-hero .muted { color: var(--muted); }

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin: 20px 0 60px;
  justify-content: center; /* center grid inside container */
}
.album-card {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-decoration: none; /* remove link underline */
  color: inherit; /* keep title color consistent */
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.album-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.album-card:focus{ outline: 0; box-shadow: 0 0 0 3px rgba(255,42,42,0.08); }
.album-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius:8px; box-shadow: 0 6px 18px rgba(0,0,0,0.6); display:block; }
.album-title-small { margin-top:8px; text-align:center; font-size:14px; color:#fff; padding:6px 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Ensure album anchor states don't show default link styles */
.album-card:link, .album-card:visited { color:inherit; text-decoration:none; }
.album-card a { color:inherit; text-decoration:none }

/* player bar */
.player-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 76px;
  background: linear-gradient(90deg, rgba(18,20,26,0.78), rgba(12,14,18,0.85));
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(3,6,12,0.7);
  display: flex;
  align-items: center;
  padding: 8px 12px;
  z-index: 10000;
}
.player-inner { max-width: 1100px; margin: 0 auto; display:flex; align-items:center; gap:12px; width:100%; justify-content:space-between; }
.player-left { display: flex; gap: 12px; align-items: center; flex: 0 0 320px; width: 320px; box-sizing:border-box; padding-left:6px; }
.player-left img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; margin-right:6px; }
.player-meta { display:flex; flex-direction: column; }
.player-meta { display:flex; flex-direction: column; width:100%; box-sizing:border-box; overflow:hidden; }
.player-meta #playerTitle { color: #fff; font-weight: 700; font-size: 15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.player-meta .muted { color: rgba(255,255,255,0.65); font-size: 13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#playerProgress { width: auto; max-width: 40%; min-width: 160px; height: 8px; -webkit-appearance:none; appearance:none; background: linear-gradient(90deg,#6b8cff,#7ef0c7); border-radius:999px; outline:none; }
.player-center { display:flex; align-items:center; gap:12px; flex:1 1 auto; justify-content: center; }
.player-btn { width:44px; height:44px; display:flex; align-items:center; justify-content:center; background: linear-gradient(180deg,#121217,#0b0c0f); border-radius:50%; border:1px solid rgba(255,255,255,0.04); color:#fff; font-size:18px; cursor:pointer; box-shadow: 0 6px 18px rgba(2,6,12,0.6); }
.player-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(2,6,12,0.6); }
#playerProgress { width: auto; max-width: 46%; min-width: 180px; height: 8px; -webkit-appearance:none; appearance:none; background: linear-gradient(90deg,#6b8cff,#7ef0c7); border-radius:999px; outline:none; }
#playerProgress::-webkit-slider-thumb{ -webkit-appearance:none; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,0.6); }
.player-right { min-width: 160px; text-align: right; display:flex; align-items:center; justify-content:flex-end; gap:12px; }

.player-controls-right { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.player-volume input[type="range"] { width: 110px; height: 6px; -webkit-appearance:none; appearance:none; background: linear-gradient(90deg,#f6c90e,#ff6b6b); border-radius:999px; }
.player-volume input[type="range"]::-webkit-slider-thumb{ -webkit-appearance:none; width:12px; height:12px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,0.5); }
.player-speed select { background: linear-gradient(180deg,#0f1113,#0b0d10); color: #fff; border: 1px solid rgba(255,255,255,0.04); padding: 6px 8px; border-radius: 8px; }



@media (max-width: 768px) {
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .player-left { min-width: 120px; }
  #playerProgress { width: 45%; }
  .player-bar { left: 8px; right: 8px; bottom: 8px; }
}

/* ensure page content isn't covered by the fixed player */
.videos-content { padding-bottom: 260px; }

/* album page controls */
.album-controls { display:flex; gap:10px; margin:12px 0 18px; align-items:center; }
.album-controls .btn { padding:8px 12px; border-radius:8px; }
.album-controls .btn.secondary { background:transparent; }
.btn.active { box-shadow: 0 6px 18px rgba(0,0,0,0.5); transform: translateY(-2px); }

/* Album page hero and tracks */
.music-hero { padding: 20px 0 12px; background: transparent; }
.music-hero-inner { padding: 12px 0; }
.music-hero-grid { display:flex; gap:20px; align-items:flex-start; }
.music-hero-art { position:relative; z-index:2; }
.music-hero-art img { display:block; width:260px; height:260px; object-fit:cover; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,0.6); }
.music-hero-meta { flex:1; }
.album-title { font-size:28px; margin:0 0 6px; }
.album-artist { margin-bottom:8px; }
.album-desc { color: var(--muted); margin-bottom:12px; }

.album-tracks { margin-top:18px; }
.tracks-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.track-list { list-style:none; padding:0; margin:0; }
.track-item { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:8px; transition:background 0.12s, transform 0.06s; }
.track-item:hover { background: rgba(255,255,255,0.02); transform: translateY(-2px); }
.track-item + .track-item { margin-top:8px; }
.play-track { width:44px; height:44px; border-radius:8px; border:1px solid rgba(255,255,255,0.04); background:linear-gradient(180deg,#111,#08090b); color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:16px; }
.track-meta { display:flex; flex-direction:column; flex:1; }
.track-title { font-weight:600; }
.track-sub { font-size:13px; opacity:0.7; }
.track-actions { min-width:56px; text-align:right; }

@media (max-width: 720px) {
  .music-hero-grid { flex-direction:column; align-items:center; text-align:center; }
  .music-hero-art img { width:180px; height:180px; }
  .player-bar { left:8px; right:8px; }
}
