.nrmm-player {
    display: flex;
    align-items: center; /* 👉 dit centreert verticaal */
    gap: 10px;           /* vervangt margin-right op image */
    font-family: sans-serif;
    margin-top: 12px;
}

.nrmm-info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* extra zekerheid voor verticale balans */
    gap: 2px;
    overflow: hidden;
    min-width: 0;
}

.nrmm-info .live {
    color: red;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
}

.nrmm-info .live::before {
    content: "●";
    margin-right: 4px;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.3; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

.nrmm-info .offline {
    color: #acacac;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
}

.nrmm-info .offline::before {
    content: "●";
    margin-right: 4px;
    display: inline-block;
}

.nrmm-meta {
    width: 100%;
    overflow: hidden;
    min-width: 0;
}

.nrmm-meta-inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transform: translateX(0);
    will-change: transform;
}

.nrmm-meta .artist {
    font-weight: bold;
    flex-shrink: 0;
}

.nrmm-meta .track {
    color: #666;
    flex-shrink: 0;
}

.nrmm-meta.scrolling .nrmm-meta-inner {
    animation: nrmm-marquee var(--marquee-duration, 12s) linear infinite;
}

@keyframes nrmm-marquee {
    0%, 20% {
        transform: translateX(var(--marquee-start, 0));
    }
    80%, 90% {
        transform: translateX(var(--marquee-end, 0));
    }
    100% {
        transform: translateX(var(--marquee-end, 0));
    }
}

.nrmm-info .live.offline {
    color: #999;
    font-weight: bold;
}

.nrmm-artwork img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: thin solid #5a5a5a;
    display: block; /* voorkomt kleine vertical offset issues */
	transition: opacity 0.2s ease;
    opacity: 1;
}

.nrmm-info .artist {
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: normal;
}
.nrmm-info .track {
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: white;
}
.nrmm-info .live {
	font-size: 12px;
    font-weight: normal;
    font-family: 'Ubuntu', sans-serif;
    color: red;
    margin-right: 5px;
}
.artist, .track {
    transition: opacity 0.3s;
}

.nrmm-info .artist,
.nrmm-info .track {
    text-overflow: ellipsis;
    overflow: hidden;
}

.nrmm-info .separator {
    display: none;
}

@media (max-width: 768px) {
	.nrmm-info .live {
    font-size: 10px;
    }
    
    .nrmm-info .artist {
    font-size: 10px;
    }
    
    .nrmm-info .track {
    font-size: 10px;
    }
    
    .nrmm-info .offline {
    font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nrmm-meta.scrolling .nrmm-meta-inner {
        animation: none;
        transform: translateX(0);
    }
}

.recently-played-block {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #262626;
    border: thin solid #5a5a5a;
    border-radius: 6px;
    box-sizing: border-box;
}

.recently-played-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    width: 100%;
}

.recently-played-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto 36px;
    column-gap: 8px;
    min-width: 0;
}

.recently-played-time {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 4px;
    color: #bdbdbd;
    font-family: 'Ubuntu', sans-serif;
    font-size: 10px;
    line-height: 12px;
}

.nrmm-live-update-station {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 4px;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 10px;
    font-weight: normal;
    line-height: 12px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nrmm-live-update-station:hover,
.nrmm-live-update-station:focus {
    color: #ffffff;
    text-decoration: underline;
}

.recently-played-artwork {
    grid-column: 1;
    grid-row: 2;
}

.recently-played-artwork img {
    display: block;
    width: 36px;
    height: 36px;
    border: thin solid #5a5a5a;
    border-radius: 6px;
    box-sizing: border-box;
    object-fit: cover;
}

.recently-played-text {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: normal;
    line-height: 16px;
}

.recently-played-artist,
.recently-played-track {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recently-played-track {
    color: #cfcfcf;
}

@media (max-width: 600px) {
    .recently-played-grid {
        grid-template-columns: 1fr;
    }
}
