/* Advanced Musicplayer - public styles */

.amp-player {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 12px 0;
    color: #222;
}

.amp-track-row {
    margin-bottom: 18px;
}

.amp-meta {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #333;
}

.amp-meta .amp-title { font-weight: normal; color: #222; }
.amp-meta .amp-sep   { margin: 0 4px; color: #999; }
.amp-meta .amp-artist{ color: #555; }

/* Genre / year badges */
.amp-meta .amp-badge {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    background: #888;
    border-radius: 3px;
    padding: 1px 8px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.6;
}

/* Native browser audio player.
   We rely on the browser's built-in chrome — light grey rounded bar.
   Just make sure no theme/page-builder hides it or shrinks it. */
.amp-player audio.amp-audio,
.wpb_text_column .amp-player audio.amp-audio,
.wpb_wrapper .amp-player audio.amp-audio {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 4px 0 !important;
}

/* Lyrics block (native <details>) */
.amp-lyrics {
    margin-top: 10px;
    font-size: 13px;
}
.amp-lyrics-summary {
    cursor: pointer;
    color: #444;
    font-weight: 600;
    user-select: none;
    list-style: none;
    padding: 4px 0;
}
.amp-lyrics-toggle::before,
.amp-lyrics-summary::before {
    content: "+";
    display: inline-block;
    width: 14px;
    color: #888;
    font-weight: bold;
}
.amp-lyrics[open] > .amp-lyrics-summary::before { content: "−"; }
.amp-lyrics-row.amp-open .amp-lyrics-toggle::before { content: "−"; }
.amp-lyrics-body {
    margin-top: 6px;
    color: #333;
    line-height: 1.5;
}

/* Sign-up form */
.amp-signup-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 680px;
    margin: 16px 0;
    color: #222;
}
.amp-spf-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.amp-spf-row input {
    flex: 1 1 180px;
    min-width: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
}
.amp-spf-row input:focus { border-color: #555; }
.amp-spf-consents {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.amp-spf-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}
.amp-spf-consent-label input { margin-top: 2px; flex-shrink: 0; }
.amp-spf-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.amp-spf-footer button {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px 22px;
    font-size: 13px;
    cursor: pointer;
}
.amp-spf-footer button:hover { background: #000; }
.amp-spf-footer button:disabled { opacity: .5; cursor: not-allowed; }
.amp-spf-message { font-size: 13px; }
.amp-spf-message.amp-spf-ok    { color: green; }
.amp-spf-message.amp-spf-error { color: #c00; }

@media (max-width: 500px) {
    .amp-spf-row { flex-direction: column; }
}

/* Top tracks: play counts and optional rank */
.amp-top-plays {
    display:       inline-block;
    margin-left:   8px;
    font-size:     12px;
    color:         #666;
    white-space:   nowrap;
}
.amp-top-rank {
    display:       inline-block;
    margin-right:  8px;
    font-weight:   700;
    font-size:     13px;
    color:         #444;
}

/* Lyric and Sing along.
   One rule for both, so they can never look different from each other.
   Every property is forced, because themes style <button> heavily and that is
   what put a blue underline under Lyric. */
.amp-lyrics-row {
    margin-top: 10px;
}
.amp-lyrics-row .amp-lyrics-toggle,
.amp-lyrics-row .amp-karaoke-btn,
.amp-lyrics-row .amp-lyrics-toggle:link,
.amp-lyrics-row .amp-karaoke-btn:link,
.amp-lyrics-row .amp-lyrics-toggle:visited,
.amp-lyrics-row .amp-karaoke-btn:visited,
.amp-lyrics-row .amp-lyrics-toggle:hover,
.amp-lyrics-row .amp-karaoke-btn:hover,
.amp-lyrics-row .amp-lyrics-toggle:focus,
.amp-lyrics-row .amp-karaoke-btn:focus,
.amp-lyrics-row .amp-lyrics-toggle:active,
.amp-lyrics-row .amp-karaoke-btn:active {
    display:            inline-block !important;
    background:         none !important;
    background-color:   transparent !important;
    background-image:   none !important;
    border:             0 !important;
    border-bottom:      0 !important;
    border-radius:      0 !important;
    box-shadow:         none !important;
    text-shadow:        none !important;
    outline:            0 !important;
    padding:            4px 0 !important;
    margin:             0 22px 0 0 !important;
    font-family:        inherit !important;
    font-size:          13px !important;
    font-weight:        600 !important;
    font-style:         normal !important;
    line-height:        1.4 !important;
    letter-spacing:     normal !important;
    text-transform:     none !important;
    text-decoration:    none !important;
    -webkit-text-decoration: none !important;
    text-underline-offset: 0 !important;
    color:              #444 !important;
    cursor:             pointer !important;
    width:              auto !important;
    height:             auto !important;
    min-width:          0 !important;
    min-height:         0 !important;
    vertical-align:     baseline !important;
    text-align:         left !important;
    -webkit-appearance: none !important;
    appearance:         none !important;
    transition:         none !important;
    transform:          none !important;
}
.amp-lyrics-row .amp-lyrics-toggle:hover,
.amp-lyrics-row .amp-karaoke-btn:hover { color: #000 !important; }

/* The words sit underneath both, at the left margin */
.amp-lyrics-row .amp-lyrics-body {
    display:     none;
    margin-top:  6px;
    color:       #333;
    line-height: 1.5;
}
.amp-lyrics-row.amp-open .amp-lyrics-body { display: block; }

/* Sing along: identical to Lyric, but with a note in front instead of a plus */
.amp-karaoke-btn::before {
    content:       "\266A";
    display:       inline-block;
    width:         14px;
    color:         #888;
    font-weight:   bold;
}

/* Shown only if a song still cannot be loaded after several attempts */
.amp-load-failed {
    margin-top: 4px;
    font-size:  12px;
    color:      #b32d2e;
}
