/* Separate versioned stylesheet keeps older cached home.css from hiding this design. */
.home-spotify {
  box-sizing: border-box;
  width: 100%;
  padding: 0.875rem;
  border: 1px solid #cbd5eb;
  border-radius: 0;
  background: transparent;
  color: #cbd5eb;
  font: 500 0.75rem/1.4 "Poppins", sans-serif;
  text-align: left;
}
.home-spotify[hidden],
.home-spotify [hidden] { display: none !important; }
.home-spotify h3 {
  margin: 0;
  color: #cbd5eb;
  font: inherit;
  font-weight: 700;
  font-style: italic;
}
.home-spotify h3 span {
  color: #cbd5eb;
  margin-right: 0.375rem;
  font-size: 1.25em;
}
.home-spotify p { margin: 0; }
#home-spotify-status { margin-top: 0.375rem; color: #cbd5eb; }
.home-spotify[data-state="active"] {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.375rem 0.75rem;
  align-items: center;
}
.home-spotify[data-state="active"] h3 { grid-column: 2; grid-row: 1; }
.home-spotify[data-state="active"] .home-presence-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.home-spotify-track { display: contents; }
.home-spotify-art {
  grid-column: 1;
  grid-row: 1 / 4;
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #1d212a;
  color: #cbd5eb;
  font-size: 1.75rem;
}
.home-spotify-art img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-spotify-details { grid-column: 2; grid-row: 2; min-width: 0; overflow-wrap: anywhere; }
#home-spotify-song, .home-presence-name { color: #cbd5eb; font-weight: 700; text-decoration: none; }
#home-spotify-song[href]:hover { text-decoration: underline; }
#home-spotify-song:focus-visible { outline: 2px solid #cbd5eb; outline-offset: 2px; }
#home-spotify-artist { margin-top: 0.125rem; color: #cbd5eb; }
#home-spotify-album { color: #bcb3d1; font-size: 0.85em; }
#home-game-details, #home-game-state { overflow-wrap: anywhere; }
#home-game-state, #home-game-elapsed { color: #bcb3d1; font-size: 0.85em; }
#home-code-context { color: #bcb3d1; font-size: 0.85em; }
.home-code-art img { object-fit: contain; padding: 0.375rem; box-sizing: border-box; }
.home-spotify-timeline { grid-column: 2; grid-row: 3; min-width: 0; }
.home-spotify progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 0.3rem;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #51648a;
  accent-color: #cbd5eb;
}
.home-spotify progress::-webkit-progress-bar { background: #51648a; }
.home-spotify progress::-webkit-progress-value { background: #cbd5eb; border-radius: 1rem; }
.home-spotify progress::-moz-progress-bar { background: #cbd5eb; border-radius: 1rem; }
.home-spotify-times {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  color: #cbd5eb;
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .home-spotify[data-state="active"] { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.5rem; padding: 0.625rem; }
  .home-spotify-art { grid-row: 1; width: 2.5rem; height: 2.5rem; }
  .home-spotify-details { grid-column: 1 / -1; }
  .home-spotify-timeline { grid-column: 1 / -1; }
}
