/* Station detail only: the existing catalog/Luna image occupies the logo tile. */
body.v4-theme #author-page .v4-player-visual .v4-station-artwork > img.v4-station-current-artwork {
    position: absolute !important;
    inset: 0 !important;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
    transition: opacity .2s ease;
}
body.v4-theme #author-page .v4-station-artwork > img.v4-station-current-artwork[data-artwork-match="station"] {
    opacity: 0;
}
body.v4-theme #author-page .v4-station-artwork.is-showing-station-logo > img.v4-station-current-artwork {
    opacity: 0;
}
body.v4-theme #author-page .v4-station-artwork.is-showing-current-artwork > img.v4-station-current-artwork {
    opacity: 1 !important;
}
body.v4-theme #author-page .v4-station-artwork > img.v4-station-current-artwork[hidden] {
    display: none !important;
}
@media (hover: hover) and (pointer: fine) {
    body.v4-theme #author-page .v4-station-artwork:hover > img.v4-station-current-artwork {
        opacity: 0;
    }
}
body.v4-theme #author-page .v4-station-artwork:focus { outline: none; }
body.v4-theme #author-page .v4-station-artwork:focus-visible { outline: 2px solid #e31b23; outline-offset: 4px; border-radius: 18px; }
@media (hover: none), (pointer: coarse) {
    body.v4-theme #author-page .v4-station-artwork {
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Station detail: song information on the left, music link on the right. */
body.v4-theme #author-page .v4-now-playing-block.v4-track-music {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    padding: 15px 16px;
    border-color: #e7ebf2;
    border-radius: 14px;
    background: #f9fafc;
    text-align: left;
}
body.v4-theme #author-page .v4-now-playing-block .v4-track-music-copy {
    display: block;
    width: 100%;
    min-width: 0;
}
body.v4-theme #author-page .v4-track-music .v4-now-playing-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    color: #8791a2;
    text-align: left;
}
body.v4-theme #author-page .v4-track-music .v4-now-playing-label i { margin: 0; font-size: 10px; }
body.v4-theme #author-page .v4-track-music .name {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #172239;
    text-align: left;
    font: 600 15px/1.5 Inter, Arial, sans-serif !important;
}
body.v4-theme #author-page .v4-current-song-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    justify-self: stretch;
    box-sizing: border-box;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid #e8ecf2;
}
body.v4-theme #author-page .v4-track-music .v4-track-music-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 5px 8px;
    border: 1px solid #e0e5ee;
    border-radius: 8px;
    background: #fff;
    color: #4c586e;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body.v4-theme #author-page .v4-track-music .v4-track-music-link i { color: #e31b23; font-size: 13px; }
body.v4-theme #author-page .v4-track-music .v4-track-music-link:hover {
    border-color: #f0cbd0;
    background: #fff3f4;
    color: #c3141d;
    text-decoration: none;
}
body.v4-theme #author-page .v4-track-music .v4-track-music-link:focus-visible {
    outline: 2px solid #e31b23;
    outline-offset: 3px;
}
body.v4-theme #author-page .v4-current-song-actions:not(:has(a:not([hidden]))) { display: none; }
body.v4-theme #author-page .v4-now-playing-block:not(:has(.v4-current-song-actions a:not([hidden]))) {
    grid-template-columns: minmax(0, 1fr);
}
/* Desktop: keep the song dominant and present external services as quiet secondary links. */
@media (min-width: 768px) {
    body.v4-theme #author-page .v4-now-playing-block.v4-track-music {
        gap: 10px;
        padding: 16px 18px 13px;
    }
    body.v4-theme #author-page .v4-track-music .name {
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
    }
    body.v4-theme #author-page .v4-current-song-actions {
        gap: 11px;
        margin-top: 1px;
        padding-top: 7px;
        border-top-color: #edf0f4;
    }
    body.v4-theme #author-page .v4-track-music .v4-track-music-link {
        min-height: 24px;
        padding: 2px 3px;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: #7b8494;
        font-size: 11px;
        font-weight: 600;
    }
    body.v4-theme #author-page .v4-track-music .v4-track-music-link i {
        color: #9aa3b2;
        font-size: 12px;
    }
    body.v4-theme #author-page .v4-track-music .v4-track-music-link:hover {
        border-color: transparent;
        background: transparent;
        color: #c3141d;
    }
    body.v4-theme #author-page .v4-track-music .v4-track-music-link:hover i { color: #d71922; }
}
/* Let long titles use the full width on phones; links stay visually secondary to the song. */
@media (max-width: 767px) {
    body.v4-theme #author-page .v4-now-playing-block.v4-track-music {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 13px 12px;
    }
    body.v4-theme #author-page .v4-track-music .name { font-size: 15px !important; }
    body.v4-theme #author-page .v4-current-song-actions {
        width: 100%;
        justify-self: stretch;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
    body.v4-theme #author-page .v4-track-music .v4-track-music-link {
        flex: 0 1 auto;
        min-width: 0;
        min-height: 32px;
        padding: 5px 8px;
        font-size: 11px;
    }
}
@media (max-width: 380px) {
    body.v4-theme #author-page .v4-current-song-actions { gap: 5px; }
    body.v4-theme #author-page .v4-track-music .v4-track-music-link {
        gap: 4px;
        padding-inline: 7px;
        font-size: 10.5px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.v4-theme #author-page .v4-station-artwork > img.v4-station-current-artwork { transition: none; }
    body.v4-theme #author-page .v4-track-music .v4-track-music-link { transition: none; }
}
