/* Global player layout corrections for long cover labels and narrow viewports. */
.player-cover {
    padding: 4px;
    line-height: 1.12;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.player-meta {
    min-width: 0;
}

/* Auf Tablet und Handy bleibt das komplette Kreis-Soest-Motiv sichtbar. */
@media (max-width: 1024px) {
    html,
    body {
        touch-action: manipulation;
    }

    .hero-cover-media picture,
    .hero-cover-media img {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 720px) {
    .global-player {
        grid-template-columns: 36px 40px minmax(0, 1fr) 36px 42px 36px;
        grid-template-rows: 44px;
        gap: 5px;
        padding: 8px;
        min-height: 62px;
        max-height: 62px;
        overflow: hidden;
    }

    .player-progress-wrap,
    #player-mute {
        display: none;
    }

    #player-back,
    #player-forward {
        display: block !important;
        height: 36px;
        padding: 0;
    }

    .player-collapse,
    .player-cover,
    .player-meta,
    #player-back,
    #player-play,
    #player-forward {
        grid-row: 1;
        min-width: 0;
    }

    #player-play {
        width: 42px;
        height: 42px;
        padding: 0;
    }

    #audio-engine {
        display: none !important;
    }

    .player-cover {
        width: 40px;
        height: 40px;
        padding: 3px;
        font-size: 8px;
    }

    .player-collapse {
        height: 36px;
    }

    .player-meta strong {
        font-size: 12px;
    }

    .player-meta span {
        font-size: 10px;
    }
}

/* Der pulsierende Oeffner darf niemals ueber dem ausgeklappten Player liegen. */
.player-launcher.is-hidden,
body.player-open .player-launcher {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.jarvis-singer-only {
    position: relative;
    max-width: 430px;
    margin: 0 auto 26px;
}

.jarvis-singer-label {
    position: absolute;
    z-index: 6;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 13px;
    border: 1px solid rgba(53, 214, 232, .35);
    border-radius: 999px;
    background: rgba(3, 12, 15, .86);
    color: #effcff;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.jarvis-singer-only .neural-performance-card {
    min-height: 0;
    display: block;
    padding: 42px 10px 8px;
    border-radius: 24px;
}

.jarvis-singer-only .neural-stage {
    width: min(100%, 390px);
    margin: auto;
}

@media (max-width: 720px) {
    .jarvis-singer-only { max-width: 330px; }
    .jarvis-singer-only .neural-performance-card { padding-inline: 4px; }
}

@media (max-width: 380px) {
    .global-player {
        left: 5px;
        right: 5px;
        grid-template-columns: 34px 36px minmax(0, 1fr) 34px 40px 34px;
        gap: 4px;
        padding: 7px;
    }

    .player-cover {
        width: 36px;
        height: 36px;
        font-size: 7px;
    }
}
