/* ═══════════════════════════════════════════════
   LATENT PLAYER — Universal Listen Button
   Steel blue instrument aesthetic
   ═══════════════════════════════════════════════ */

.latent-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.2rem;
    padding: 12px 28px;
    border-radius: 8px;
    border: 1px solid rgba(120, 160, 220, 0.25);
    background: linear-gradient(180deg, rgba(120, 160, 220, 0.07) 0%, rgba(100, 140, 200, 0.02) 100%);
    color: rgba(160, 190, 235, 0.8);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Subtle inner glow line at top */
.latent-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 160, 220, 0.25), transparent);
    transition: all 0.4s ease;
}

/* Hover — lift and illuminate */
.latent-play-btn:hover {
    border-color: rgba(120, 160, 220, 0.5);
    color: rgba(190, 215, 250, 0.95);
    background: linear-gradient(180deg, rgba(120, 160, 220, 0.12) 0%, rgba(100, 140, 200, 0.04) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(120, 160, 220, 0.1), 0 0 40px rgba(120, 160, 220, 0.04);
}

.latent-play-btn:hover::before {
    left: 10%;
    right: 10%;
    background: linear-gradient(90deg, transparent, rgba(120, 160, 220, 0.4), transparent);
}

/* Active press */
.latent-play-btn:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

/* Loading state */
.latent-play-btn.is-loading {
    border-color: rgba(120, 160, 220, 0.15);
    color: rgba(160, 190, 235, 0.4);
    pointer-events: none;
}

.latent-play-btn.is-loading span {
    animation: latent-loading-pulse 1.2s ease-in-out infinite;
}

@keyframes latent-loading-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Playing state — shift to teal energy */
.latent-play-btn.is-playing {
    border-color: rgba(100, 210, 180, 0.4);
    color: rgba(100, 210, 180, 0.95);
    background: linear-gradient(180deg, rgba(100, 210, 180, 0.1) 0%, rgba(100, 210, 180, 0.02) 100%);
}

.latent-play-btn.is-playing::before {
    background: linear-gradient(90deg, transparent, rgba(100, 210, 180, 0.35), transparent);
    left: 5%;
    right: 5%;
    animation: latent-glow-sweep 3s ease-in-out infinite;
}

@keyframes latent-glow-sweep {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.latent-play-btn.is-playing svg {
    animation: latent-pulse 2s ease-in-out infinite;
}

@keyframes latent-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.92); }
}

/* SVG icon sizing */
.latent-play-btn svg {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════
   HERO LISTEN BUTTON — Larger, more prominent
   Placed in hero sections for maximum visibility
   ═══════════════════════════════════════════════ */

.hero-listen-btn {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding: 16px 42px;
    font-size: 13px;
    letter-spacing: 0.2em;
    gap: 12px;
    border-radius: 10px;
    z-index: 2;
    border-color: rgba(120, 160, 220, 0.3);
    box-shadow: 0 0 20px rgba(120, 160, 220, 0.05);
}

.hero-listen-btn svg {
    width: 16px;
    height: 16px;
}

.hero-listen-btn:hover {
    box-shadow:
        0 6px 32px rgba(120, 160, 220, 0.14),
        0 0 50px rgba(120, 160, 220, 0.06);
    transform: translateY(-3px);
}

.hero-listen-btn.is-playing {
    box-shadow:
        0 4px 28px rgba(100, 210, 180, 0.12),
        0 0 40px rgba(100, 210, 180, 0.05);
}

/* ── Mobile refinements ── */
@media (max-width: 600px) {
    .latent-play-btn {
        padding: 10px 22px;
        font-size: 10px;
        letter-spacing: 0.15em;
        gap: 8px;
    }

    .hero-listen-btn {
        padding: 13px 28px;
        font-size: 11px;
        letter-spacing: 0.16em;
        gap: 10px;
    }
}
