.fm-cover {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: cover;
    border-radius: 5px;
}

.fm-floating {
    position: fixed;
    display: none;
    align-items: center;
    gap: 12px;
    width: calc(100vw - 64px - 3*(42px));
    max-width: 260px;
    height: 64px;
    bottom: 42px;
    left: 42px;
    background-color: var(--background);
    border: 2px solid var(--hard-emphasis);
    padding: 12px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0px 0px 6px var(--soft-emphasis);
    z-index: 99;
}

.fm-jammer {
    position: absolute;
    bottom: 62px;
}

.fm-trinf-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-trinf-artist {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 48px - 1*(12px))
}

.fm-trinf-title,
.fm-trinf-artist {
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

.scroll-text {
    display: inline-block;
    white-space: nowrap;
    min-width: fit-content;
    animation: scroll linear infinite;
    transform: translateX(0);
}

/* Ping-pong scroll */
@keyframes scroll {
    0%, 10% { transform: translateX(0); }
    45%, 55% { transform: translateX(var(--scroll-distance)); }
    90%, 100% { transform: translateX(0); }
}

.fm-cover-shelf {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 20px 0;
}

.fm-cover-displayer {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 48px;
  gap: 20px;
  width: max-content; 
  padding-top: 5px;    
  padding-bottom: 5px;
}

.fm-cover-displayer img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  transform: translateY(0px);
  transition: transform 0.2s ease;
}

.fm-cover-displayer img:hover {
  transform: translateY(-4px);
  cursor: pointer;
}

/* Right-side shadow overlay */
.fm-cover-shelf::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;            /* shadow width */
  height: 100%;
  pointer-events: none;   /* let clicks pass through */
  background: linear-gradient(
    to left,
    var(--background) 0%,
    rgba(255, 255, 255, 0) 80%
  );
}

.fm-more {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    position: absolute;
    right: 8px;
    top: 13px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    z-index: 999;
    border: none;
    background-color: var(--soft-emphasis);
    color: var(--subtle-shading);
    font-weight: 900;
    transition: 0.3s ease;
}

.fm-more:hover {
  transform: scale(1.05);
}

.fm-author-text {
    font-weight: 300 !important;
}

.fm-section {
    padding-top: 24px !important;
    padding-bottom: 32px !important;
}

#fm-albums, #fm-artists {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 4px;
}

.fm-album {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 64px;
  background-color: var(--background);
  border: 2px solid var(--hard-shading);
  padding: 12px;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
}

.fm-album:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--soft-emphasis);
  box-shadow: 0px 0px 6px var(--soft-emphasis);
  transform: translateY(-2px);
  cursor: pointer;
}

.fm-album img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: cover;
    border-radius: 5px;
}

.fm-album-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-album-artist {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-album-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 48px - 1*(12px))
}

.fm-artist-overrides img {
  border-radius: 50% !important;
}

.fm-artist-overrides .fm-album-name {
  font-size: 16px !important;
}

.fm-album-spotify {
    position: relative;
    display: inline-block;
    right: -48px;
    bottom: 0px;
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    background: var(--spotify) no-repeat center;
    background-size: contain;
    transition: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fm-animation {
    transition: 0.3s ease;
}