body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: "Young Serif", serif;
  margin: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #111;
  color: #fff;
  margin: 0;
  padding: 0;
}

header, footer {
  text-align: center;
  padding: 10px;
  background: #111;
}

.tile-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.tile {
  width: 200px;          /* fast bredde */
  min-height: 250px;  /* sørger for ensartet baseline height */
  background: rgba(255, 255, 255, 0.05); /* svag baggrund */
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, height 0.3s ease;  
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden; /* så tracklist ikke overskrider card */
}

.tile:hover {
  transform: translateY(-4px);
  background: rgb(103, 2, 176); 
  transition: background 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tile img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.tile h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

#release-detail {
  padding: 20px;
}

.buy-button {
  display: inline-block;
  padding: 8px 12px;
  background: #222;
  color: #ffd207;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1rem;
}

.buy-button:hover {
  background: #ffd207; /* Spotify-grøn feedback */
  color: #000000;
  transition: background 0.2s ease;
}

.home-button {
  display: inline-block;
  padding: 8px 12px;
  background: #222;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1rem;
  border: none;
}

.home-button:hover {
  background: rgb(103, 2, 176);
  color: #ffffff;
  transition: background 0.2s ease;
}

#persistent-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 10px;
  z-index: 1000;
}

.tracklist {
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  animation: expand 0.3s ease;
}

.tracklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tracklist li {
  margin: 0.5rem 0;
}

.tracklist button {
  width: 100%;
  padding: 0.5rem;
  background: none;
  border: none;
  text-align: left;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.tracklist button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #b300ff; /* Spotify-grøn feedback */
}

@keyframes expand {
  from { opacity: 0; transform: scaleY(0.9); }
  to { opacity: 1; transform: scaleY(1); }
}

/* image behavior */

.fade-img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-img.loaded {
  opacity: 1;
}

/* progress bar styling */
/* === WRAPPER === */
#persistent-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  gap: 30px;
  max-width: 800px;
  width: 90%;
  color: white;
  font-family: "Helvetica Neue", sans-serif;
  backdrop-filter: blur(10px);
}

/* === SECTIONS === */
#left-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20%;
  text-align: center;
}

#right-section {
  width: 55%;
  display: flex;
  align-items: center;
}

/* === TITLE === */
#player-title {
  font-size: clamp(0.5rem, 2.5vw, 1rem); /* Min: 0.75rem, Max: 1rem, Dynamisk mellem */
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === CONTROLS === */
#controls {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}

#controls button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* SVG ikon styling */
#controls button svg {
  width: 22px;
  height: 22px;
  fill: white;
}

/* === PROGRESS BAR === */
#progress-container {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  cursor: pointer;
}

#progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: white;
  width: 0;
  border-radius: 3px;
}

#progress-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
}

