* { margin: 0; padding: 0; box-sizing: border-box; }

body { min-height: 100vh; display: flex; flex-direction: column; --accent: #1db954; }
main { flex: 1; max-width: 900px; margin: 0 auto; padding: 1rem; width: 100%; }
footer { text-align: center; padding: 2rem 1rem; }

.theme-light .album-card:hover { background: rgba(0,0,0,0.04); }
.theme-light .album-expanded { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.theme-light .track:hover { background: rgba(0,0,0,0.04); }

/* Base mode colors */
.theme-dark { background: #111; color: #eee; }
.theme-dark a { color: var(--accent); }
.theme-light { background: #fafafa; color: #222; }
.theme-light a { color: var(--accent); }

/* --- Variant: Warm --- */
.variant-warm.theme-light { background: #fdf6e3; }
.variant-warm.theme-dark { background: #1a1612; color: #e8dcc8; }
.variant-warm .album-card, .variant-warm .album-expanded {
  background: rgba(0,0,0,0.03); border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.variant-warm.theme-dark .album-card, .variant-warm.theme-dark .album-expanded {
  background: rgba(255,255,255,0.04);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.variant-warm .album-card-art { border-radius: 8px; box-shadow: 0 4px 12px rgba(139,90,43,0.15); }
.variant-warm .artist-photo { border: 3px solid rgba(200,161,72,0.3); }
.variant-warm footer { opacity: 0.6; }
.variant-warm .bio-text { line-height: 1.8; }

/* --- Variant: Glass --- */
.variant-glass { background: linear-gradient(135deg, #4a3f8a 0%, #6b3fa0 50%, #2d1b69 100%) fixed !important; color: #f0eef5; }
.variant-glass.theme-light { background: linear-gradient(135deg, #c3e8e4 0%, #f5d5e0 50%, #d4c5f9 100%) fixed !important; color: #2a2a3a; }
.variant-glass main {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.15); padding: 2rem; margin-top: 1rem;
}
.variant-glass.theme-light main { background: rgba(255,255,255,0.65); }
.variant-glass .album-card, .variant-glass .album-expanded {
  background: rgba(255,255,255,0.06); border-radius: 12px; padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.variant-glass.theme-light .album-card, .variant-glass.theme-light .album-expanded {
  background: rgba(255,255,255,0.4);
}
.variant-glass .album-card-art, .variant-glass .album-expanded-art, .variant-glass .artist-photo {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3); border-radius: 12px;
}
.variant-glass .nav-link:hover {
  background: rgba(255,255,255,0.15); border-radius: 20px; padding: 0.3rem 0.8rem;
}
.variant-glass .artist-photo { border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); }

/* --- Variant: Accent --- */
.variant-accent .nav-link:hover { color: var(--accent); opacity: 1; }
.variant-accent .album-card:hover { border: 2px solid var(--accent); }
.variant-accent .artist-photo { border: 3px solid var(--accent); }

/* --- Variant: Spotify --- */
.variant-spotify.theme-dark { background: #121212; color: #fff; }
.variant-spotify .album-card, .variant-spotify .album-expanded {
  background: #181818; border-radius: 8px; padding: 1rem;
  transition: background 0.3s;
}
.variant-spotify .album-card:hover, .variant-spotify .album-expanded { background: #282828; }
.variant-spotify .album-card-art, .variant-spotify .album-expanded-art { border-radius: 4px; }
.variant-spotify .album-card:hover .album-card-art { box-shadow: 0 8px 24px rgba(29,185,84,0.3); }
.variant-spotify .track { padding: 0.5rem 0.8rem; border-radius: 4px; transition: background 0.2s; }
.variant-spotify .track:hover { background: rgba(255,255,255,0.1); }
.variant-spotify .track-num { color: #b3b3b3; }
.variant-spotify .artist-photo { border-radius: 50%; width: 280px; height: 280px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.variant-spotify header { background: linear-gradient(180deg, rgba(var(--accent-rgb, 29,185,84), 0.3) 0%, transparent 100%); padding: 2rem 1rem; }
.variant-spotify .bio h1 { font-size: 2.5rem; font-weight: 900; }
.variant-spotify .nav-link { color: #b3b3b3; }
.variant-spotify .nav-link:hover { color: #fff; }

/* Navigation */
header { padding: 1.5rem 1rem 1rem; text-align: center; }
.header-artist { font-family: var(--artist-font); font-size: 2rem; margin-bottom: 0.5rem; }
nav { display: flex; gap: 2rem; justify-content: center; }
.nav-link { text-decoration: none; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; opacity: 0.7; transition: opacity 0.2s; }
.nav-link:hover { opacity: 1; }

/* Home */
.home { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.home-logo { width: 120px; height: 120px; margin-bottom: 1rem; }
.home h1 { font-size: 3rem; }
.home-tagline { font-size: 1.2rem; margin-top: 0.5rem; }
.home-desc { max-width: 500px; text-align: center; margin-top: 1rem; opacity: 0.8; line-height: 1.6; }
.home-links { margin-top: 1.5rem; font-size: 0.9rem; opacity: 0.6; }
.home-footer { position: fixed; bottom: 1.5rem; left: 0; right: 0; text-align: center; font-size: 0.8rem; opacity: 0.5; }
.home-footer a { color: inherit; text-decoration: none; }
.home-footer a:hover { text-decoration: underline; }

/* Legal pages */
.legal { padding: 2rem 1rem; max-width: 700px; margin: 0 auto; line-height: 1.7; }
.legal h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.3rem; }
.legal p { margin-bottom: 0.8rem; }
.legal-updated { opacity: 0.6; font-size: 0.9rem; margin-bottom: 1.5rem; }
.legal-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }

/* Album Grid */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.album-card { text-align: center; text-decoration: none; color: inherit; border-radius: 8px; padding: 0.75rem; transition: background 0.2s, transform 0.2s; }
.album-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.06); }
.album-card-img { position: relative; overflow: hidden; border-radius: 4px; }
.album-card-art { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 4px; }
.album-card-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity 0.2s; font-size: 2rem; color: #fff; }
.album-card:hover .album-card-play { opacity: 1; }
.album-card-name { display: block; font-weight: 600; font-size: 0.85rem; margin-top: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-card-year { font-size: 0.7rem; opacity: 0.5; }
.album-card-badge { display: inline-block; font-size: 0.6rem; padding: 1px 6px; border-radius: 3px; margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.album-badge { background: var(--accent); color: #fff; opacity: 0.8; }
.album-card-expandable { cursor: pointer; }

/* Expanded Album Panel */
.album-expanded { display: none; grid-column: 1 / -1; gap: 1.5rem; align-items: flex-start; padding: 1.5rem; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); margin-bottom: 0.5rem; animation: expandIn 0.2s ease; }
.album-expanded.active { display: flex; }
@keyframes expandIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.album-expanded-art { width: 140px; height: 140px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.album-expanded-tracks { flex: 1; min-width: 0; }
.album-expanded-header { margin-bottom: 0.75rem; }
.album-expanded-name { font-weight: 700; font-size: 1.1rem; }
.album-expanded-year { font-size: 0.8rem; opacity: 0.5; margin-left: 0.5rem; }
.track { padding: 0.35rem 0; display: flex; gap: 0.5rem; align-items: baseline; cursor: pointer; border-radius: 4px; transition: background 0.15s; }
.track:hover { background: rgba(255,255,255,0.06); }
.track-num { opacity: 0.5; min-width: 1.5em; text-align: right; font-size: 0.8rem; }
.track-name { font-size: 0.85rem; }
.track-name:hover { color: var(--accent); }
.player-container { display: none; position: sticky; top: 0; z-index: 100; margin-bottom: 1rem; border-radius: 8px; overflow: hidden; }

.artist-header { text-align: center; margin-bottom: 2rem; }
.artist-header-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.artist-header-name { margin-top: 0.75rem; font-size: 1.5rem; font-weight: 700; }

/* Bio */
.bio { text-align: center; }
.artist-photo { width: 250px; height: 250px; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }
.bio h1 { font-family: var(--artist-font); margin-bottom: 1rem; }
.bio-text { max-width: 600px; margin: 0 auto; text-align: left; }
.bio-text p { margin-bottom: 1rem; line-height: 1.6; opacity: 0.85; }

/* Footer */
.social { margin-bottom: 1rem; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.social a { text-decoration: none; font-size: 1.4rem; opacity: 0.7; transition: opacity 0.2s, transform 0.2s; }
.social a:hover { opacity: 1; transform: scale(1.15); }
.spotify-attr { font-size: 0.75rem; opacity: 0.5; margin-bottom: 0.5rem; }
.spotify-attr a { text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.spotify-badge { height: 21px; width: 21px; vertical-align: middle; }
.powered { font-size: 0.8rem; opacity: 0.5; }
.powered a { text-decoration: none; }
.footer-logo { height: 16px; width: auto; vertical-align: middle; opacity: 0.7; }
.footer-logo:hover { opacity: 1; }
.website-name { font-size: 0.75rem; opacity: 0.4; margin-top: 0.5rem; }
.website-name a { text-decoration: none; }

@media (max-width: 600px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .album-expanded { flex-direction: column; align-items: center; }
  .album-expanded-art { width: 120px; height: 120px; }
  .header-artist { font-size: 1.5rem; }
}
