/**
 * Emerald Custom Audio Player Styles
 * See MQ below for mobile adjustments
 */
.emerald-audio-player {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.player-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.emerald-audio-player__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    text-align: right;
}

.emerald-audio-player__play-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 22%;
    background: #333;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.emerald-audio-player__play-btn:hover {
    background: #000;
    transform: scale(1.1);
}

.emerald-audio-player__play-btn:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
}

.emerald-audio-player__play-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.emerald-audio-player__progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emerald-audio-player__progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: #ccc;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: height 0.1s ease;
}

.emerald-audio-player__progress-bar:hover {
    height: 10px;
}

.emerald-audio-player__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #333;
    border-radius: 3px;
    transition: width 0.1s linear;
    pointer-events: none;
}

.emerald-audio-player__time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    line-height: 1;
    color: #666;
    font-family: monospace;
    margin-bottom: -1.3rem;
}

.emerald-audio-player__audio {
    display: none;
}

@media (max-width: 600px) {
    .emerald-audio-player {
        grid-template-columns: 1fr;
        padding: 0;
        margin-top: 1.4rem;
        gap: 6px;
        background: none;
    }

    .player-wrap {
        background: #f0f0f0;
        padding-right: 12px;
        border-radius: 10px;
    }

    .emerald-audio-player__label {
        text-align: left;
        font-size: 0.85rem;
    }

    .emerald-audio-player__progress-container {
        gap: 4px;
    }

    .emerald-audio-player__progress-bar {
      background: #aaa;  
    }

    .emerald-audio-player__time {
        font-size: 11px;
        margin-bottom: -1rem;
    }
}