.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: "";
    width: 7px;
    height: 7px;
    margin-right: 4px;
    display: inline-block;
    background-color: currentColor;
    border-radius: 50%;
    vertical-align: 1px;
    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: "";
    width: 7px;
    height: 7px;
    margin-right: 4px;
    display: inline-block;
    background-color: currentColor;
    border-radius: 50%;
    vertical-align: 1px;
}

.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: 6px;
    margin-bottom: 12px;
    background-color: #262626;
    border: thin solid #5a5a5a;
    border-radius: 6px;
    box-sizing: border-box;
    margin-top: 12px;
}

.now-playing-block {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.now-playing-title {
    margin-bottom: 6px;
    color: #ffffff;
    font-family: 'Goldman', sans-serif;
    font-size: 14px;
    font-weight: normal;
}

.recently-played-title {
    margin-bottom: 6px;
    color: #ffffff;
    font-family: 'Goldman', sans-serif;
    font-size: 14px;
    font-weight: normal;
}

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

.now-playing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    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;
}

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

/*
 * Stationsgeschiedenis: de buitenste container bepaalt alleen het 2x3-grid.
 * Iedere uitzending krijgt zijn eigen visuele kaart. Deze selectors zijn
 * bewust beperkt tot Recently Played, zodat het live-updatesblok op de
 * frontpage zijn bestaande vormgeving behoudt.
 */
.recently-played-block[data-nrmm-recently-played] {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

[data-nrmm-recently-played] .recently-played-item {
    padding: 6px;
    background-color: #262626;
    border: thin solid #5a5a5a;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Frontpage: tien afzonderlijke, volledig klikbare stationkaartjes. */
.now-playing-block.nrmm-live-updates-block {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.nrmm-live-updates-block .nrmm-live-update-item {
    padding: 6px;
    color: #ffffff;
    background-color: #262626;
    border: thin solid #5a5a5a;
    border-radius: 6px;
    box-sizing: border-box;
    text-decoration: none;
}

.nrmm-live-updates-block,
.nrmm-live-updates-block .nrmm-live-update-item:focus-visible {
    color: #ffffff;
    border-color: #8a8a8a;
    outline: none;
    text-decoration: none;
}

.recently-played-time {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 4px;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    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: 12px;
    font-weight: normal;
    line-height: 12px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nrmm-live-update-station,
.nrmm-live-update-item:focus-visible .nrmm-live-update-station {
    color: #ffffff;;
}

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

.now-playing-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;
}

.now-playing-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;
}

.now-playing-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,
.now-playing-artist,
.now-playing-track {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {

	.nrmm-live-update-station,
    .now-playing-artist,
    .now-playing-track,
    .recently-played-artist,
    .recently-played-track,
    .recently-played-time {
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .recently-played-grid,
    .now-playing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 6px;
    }
}
