/* WGNS Audio Player — player.css
   All selectors are namespaced under #wgns-player-container
   to prevent bleed into host page styles.
*/

#wgns-player-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

#wgns-info {
    text-align: center;
}

#wgns-album-art {
    max-width: 100px;
    display: block;
    margin: 0 auto 5px;
}

#wgns-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Touch-friendly button wrappers — minimum 44×44px hit target (Req 5) */
.wgns-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 4px;
    /* Visible focus ring for keyboard users (Req 4) */
    outline: none;
}

.wgns-ctrl-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.wgns-ctrl-btn img {
    width: 24px;
    height: 24px;
    pointer-events: none;
    /* Performance-safe transition (Req 11) */
    transition: transform 0.1s, opacity 0.1s;
}

.wgns-ctrl-btn:active img {
    transform: scale(0.9);
    opacity: 0.7;
}

#wgns-timeline-container {
    width: 100%;
    box-sizing: border-box;
}

#wgns-timeline {
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
}

#wgns-time-display {
    text-align: right;
    margin-top: 4px;
}

#wgns-playlist-container {
    overflow: hidden;
}

.wgns-track {
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
    cursor: pointer;
    /* Minimum touch target height (Req 5) */
    min-height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.wgns-track:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}
