/* ============================================================
   JOEY FIATO MUSIC PLAYER v2.0 — Front-end Styles
   ============================================================ */

/* ----- SONG LIST ----- */
ul.jfmp-song-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

li.jfmp-song-item {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

/* Song button */
.jfmp-song-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    cursor: pointer;
    padding: 6px 0 !important;
    margin: 0 !important;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    line-height: normal !important;
    transition: opacity 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.jfmp-song-btn:hover {
    opacity: 0.75;
    background: transparent !important;
}

.jfmp-song-btn:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Play icon — small, fixed size, never stretches */
.jfmp-play-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
    vertical-align: middle;
}

.jfmp-play-icon svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
}

/* White song name */
.jfmp-song-name {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    line-height: normal !important;
    vertical-align: middle;
}

/* Playing state */
.jfmp-song-btn.jfmp-playing .jfmp-song-name {
    color: #c9a84c !important;
    font-weight: 600;
}
.jfmp-song-btn.jfmp-playing .jfmp-play-icon circle {
    fill: #c9a84c;
}
.jfmp-song-btn.jfmp-playing .jfmp-play-icon polygon {
    fill: #111111;
}

/* ----- MODAL OVERLAY ----- */
#jfmp-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.82);
    z-index: 1000001;
    align-items: center;
    justify-content: center;
}

#jfmp-modal-overlay.jfmp-open {
    display: -webkit-flex;
    display: flex;
}

#jfmp-modal-inner {
    background: #111111;
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 32px 28px 24px;
    min-width: 300px;
    max-width: 90vw;
    width: 380px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    animation: jfmp-fade-in 0.2s ease forwards;
}

@-webkit-keyframes jfmp-fade-in {
    from { opacity: 0; -webkit-transform: scale(0.95); transform: scale(0.95); }
    to   { opacity: 1; -webkit-transform: scale(1);    transform: scale(1); }
}
@keyframes jfmp-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

#jfmp-modal-close-btn {
    position: absolute;
    top: 10px; right: 14px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #c9a84c !important;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px !important;
    -webkit-appearance: none;
    appearance: none;
    transition: color 0.15s ease;
}

#jfmp-modal-close-btn:hover {
    color: #ffffff !important;
    background: transparent !important;
}

#jfmp-modal-song-title {
    color: #c9a84c !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 18px;
    padding: 0 20px;
    line-height: 1.4;
}

#jfmp-modal-audio {
    width: 100%;
    display: block;
    margin: 0 auto;
    accent-color: #c9a84c;
}

@media (max-width: 480px) {
    #jfmp-modal-inner {
        width: 92vw;
        min-width: 0;
        padding: 24px 16px 20px;
    }
}
