.music-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem;
	padding-left: 3rem;
	padding-right: 3rem;
}

.track {
	width: 200px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: linear-gradient(135deg, rgba(238, 238, 238, 0.8), rgba(136, 136, 136, 0.8)); /* soft gray gradient */
	border-radius: 10px;
	padding: 1rem;
	margin: 0;
}

.track a {
  color: inherit;
  text-decoration: none; /* or none if you prefer */
}

figure {
	margin: 0;
}

.track img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.track figcaption {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* separates top & bottom */
  height: 120px;                   /* adjust based on your layout */
  padding: 0.5rem 0;
  font-size: 1.2rem;
}

.meta {
  margin-bottom: 0.75rem;  /* space above play button */
}

.song-name,
.artist-name {
  line-height: 1.4;
  color: #222;
}

.song-name {
	font-weight: bold;
}

.play-btn {
    display: inline-block;
    box-sizing: border-box;
    padding: 0.3em 0.6em;
    font-size: 1rem;
    line-height: 1.2;
    font-family: inherit;
    background-color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
    color: black;
    cursor: pointer;
    white-space: nowrap;
}

button.play-btn {
    all: unset;
    width: auto;            /* 👈 Prevents full-width stretch */
    max-width: max-content; /* 👈 Ensures it fits content only */
    display: inline-block;
    box-sizing: border-box;
    padding: 0.3em 0.6em;
    font-size: 1rem;
    line-height: 1.2;
    font-family: inherit;
    background-color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
    color: black;
    cursor: pointer;
    white-space: nowrap;
}

.music {
  position: relative; /* Ensure absolute children are contained */
}

.headphone-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 0; /* Prevent layout impact */
  height: 0; /* Prevent layout impact */
  overflow: visible; /* Ensure strip is visible */
}

.headphone-strip {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top left;
  white-space: nowrap;
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: bold;
  letter-spacing: 1px;
  padding-right: 1rem;
  z-index: 10; /* Ensure strip stays above other content */
}