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

:root {
  --bg: #0a0a0a;
  --bg2: #111;
  --bg3: #1a1a1a;
  --text: #e8e8e8;
  --text2: #999;
  --accent: #c9a84c;
  --accent2: #e8c85a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 100px;
}

/* HERO */
#hero {
  position: relative;
  min-height: 28vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid #222;
}

.hero-covers {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 0;
}

.hero-covers img {
  flex: 1;
  width: 20%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.85) 60%, rgba(10,10,10,0.95) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.9) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1rem;
}

#hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
}

.tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

/* SECTIONS */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ALBUM GRID */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.album-card {
  background: var(--bg2);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.album-card.active {
  box-shadow: 0 0 0 2px var(--accent), 0 12px 40px rgba(0,0,0,0.5);
}

.album-cover-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.album-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.album-card:hover .album-cover-wrap img {
  transform: scale(1.05);
}

.album-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.album-card:hover .album-cover-overlay {
  opacity: 1;
}

.album-cover-overlay svg {
  width: 64px;
  height: 64px;
  fill: white;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.album-info {
  padding: 1rem 1.2rem;
}

.album-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.album-meta {
  font-size: 0.85rem;
  color: var(--text2);
  margin-top: 0.2rem;
}

/* TRACKLIST */
.tracklist {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--bg3);
}

.tracklist.open {
  max-height: 600px;
}

.tracklist ol {
  list-style: none;
  padding: 0.5rem 0;
}

.tracklist li {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  gap: 0.8rem;
}

.tracklist li:hover {
  background: rgba(255,255,255,0.05);
}

.tracklist li.playing {
  color: var(--accent);
}

.tracklist li .track-num {
  width: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text2);
  flex-shrink: 0;
}

.tracklist li.playing .track-num {
  color: var(--accent);
}

.track-eq {
  display: none;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}

.tracklist li.playing .track-num-text { display: none; }
.tracklist li.playing .track-eq { display: flex; }

.track-eq span {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  animation: eq 0.8s ease-in-out infinite alternate;
}

.track-eq span:nth-child(1) { height: 60%; animation-delay: 0s; }
.track-eq span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.track-eq span:nth-child(3) { height: 40%; animation-delay: 0.4s; }

@keyframes eq {
  0% { height: 30%; }
  100% { height: 100%; }
}

.track-name {
  flex: 1;
  font-size: 0.95rem;
}

.track-duration {
  font-size: 0.8rem;
  color: var(--text2);
}

/* ABOUT */
#about {
  border-top: 1px solid #222;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* PLAYER BAR */
.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  border-top: 1px solid #222;
  z-index: 1000;
  transition: transform 0.4s;
}

.player.hidden {
  transform: translateY(100%);
}

.player-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  gap: 1rem;
}

#playerCover {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.player-info {
  min-width: 0;
  flex-shrink: 0;
  width: 180px;
}

.player-track {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-album {
  font-size: 0.75rem;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.ctrl {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.ctrl:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.05);
}

.ctrl-play {
  width: 44px;
  height: 44px;
  border: 2px solid var(--text2);
  border-radius: 50%;
}

.ctrl-play:hover {
  border-color: var(--accent);
}

.player-progress {
  flex: 1;
  min-width: 0;
}

.player-progress input[type=range] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #333;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.player-progress input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.player-progress input[type=range]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text2);
  margin-top: 2px;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  color: var(--text2);
}

.player-volume input[type=range] {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #333;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.player-volume input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text2);
  cursor: pointer;
}

.player-volume input[type=range]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text2);
  border: none;
  cursor: pointer;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid #222;
  background: var(--bg2);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text2);
  margin-bottom: 0.8rem;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent2);
  text-decoration: underline;
}

.footer-email {
  color: var(--text2);
  font-size: 0.9rem;
}

.footer-sep {
  color: #444;
  margin: 0 0.6rem;
}

.footer-copy {
  color: #444;
  font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .player-inner {
    flex-wrap: wrap;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .player-info { width: auto; flex: 1; min-width: 0; }
  .player-volume { display: none; }

  .player-progress {
    order: 10;
    width: 100%;
    flex-basis: 100%;
  }

  .player-times { display: none; }
}

@media (max-width: 768px) {
  .hero-covers img:nth-child(4),
  .hero-covers img:nth-child(5) { display: none; }
  .hero-covers img { width: 33.33%; }
}

@media (max-width: 480px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .album-info { padding: 0.6rem 0.8rem; }
  .album-title { font-size: 1rem; }
}
