/* Minimal public player layout. Imported by the public_player Stimulus
 * controller so it loads only on pages that mount the player. Tightens
 * default browser sizing so the cover image doesn't push the audio
 * controls below the fold.
 */

.public-track {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    line-height: 1.4;
}

.public-track header {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.public-track .cover {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.15);
}

.public-track header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    line-height: 1.2;
}

.public-track audio {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Owner-only "Preview" banner shown for unpublished tracks. Listeners
 * never reach this URL (controller returns 404) so this only ever
 * renders for the artist who owns the track. */
.public-track .track-preview-banner {
    display: block;
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid #c2410c;
    background: rgba(194, 65, 12, 0.08);
    border-radius: 0 4px 4px 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.public-track .track-preview-banner strong {
    margin-right: 0.25rem;
}

.public-track .track-preview-banner a {
    color: #c2410c;
    white-space: nowrap;
}

.public-track .back {
    font-size: 0.95rem;
}

@media (max-width: 560px) {
    .public-track header {
        grid-template-columns: 1fr;
    }
    .public-track .cover {
        width: 100%;
        height: auto;
        max-width: 320px;
    }
}
