/**
 * GPG Audio Player Styles
 * Layout: App-like, clean e escuro com gradientes modernos.
 * Especificidade: prefixado com body e repetição de classes.
 */

body .gpgAudioWrapper.gpgAudioWrapper {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 16px 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body .gpgAudioTitle.gpgAudioTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

body .gpgAudioTitleIcon.gpgAudioTitleIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #f43f5e;
}

body .gpgAudioPlayer.gpgAudioPlayer {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(145deg, #181b22, #111317);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    user-select: none;
}

body .gpgAudioPlayer.gpgAudioPlayer:hover {
    border-color: rgba(244, 63, 94, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 15px rgba(244, 63, 94, 0.15);
}

body .gpgAudioPlayBtn.gpgAudioPlayBtn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.18s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
}

body .gpgAudioPlayBtn.gpgAudioPlayBtn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    box-shadow: 0 6px 18px rgba(251, 113, 133, 0.5);
}

body .gpgAudioPlayBtn.gpgAudioPlayBtn:active {
    transform: scale(0.95);
}

body .gpgAudioPlayIcon.gpgAudioPlayIcon,
body .gpgAudioPauseIcon.gpgAudioPauseIcon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
    pointer-events: none;
}

body .gpgAudioPauseIcon.gpgAudioPauseIcon {
    display: none;
}

body .gpgAudioPlayer.isPlaying .gpgAudioPlayIcon.gpgAudioPlayIcon {
    display: none;
}

body .gpgAudioPlayer.isPlaying .gpgAudioPauseIcon.gpgAudioPauseIcon {
    display: block;
}

body .gpgAudioBody.gpgAudioBody {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

body .gpgAudioProgressContainer.gpgAudioProgressContainer {
    position: relative;
    width: 100%;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

body .gpgAudioProgressBar.gpgAudioProgressBar {
    position: relative;
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: visible;
    transition: height 0.15s ease;
}

body .gpgAudioProgressContainer.gpgAudioProgressContainer:hover .gpgAudioProgressBar.gpgAudioProgressBar {
    height: 8px;
}

body .gpgAudioProgressFill.gpgAudioProgressFill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e11d48 0%, #f43f5e 50%, #fb7185 100%);
    border-radius: 999px;
    pointer-events: none;
    transition: width 0.05s linear;
}

body .gpgAudioProgressThumb.gpgAudioProgressThumb {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.6), 0 0 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
}

body .gpgAudioProgressContainer.gpgAudioProgressContainer:hover .gpgAudioProgressThumb.gpgAudioProgressThumb {
    transform: translateY(-50%) scale(1);
}

body .gpgAudioTimeInfo.gpgAudioTimeInfo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
    line-height: 1;
}

body .gpgAudioCurrentTime.gpgAudioCurrentTime {
    color: #cbd5e1;
    font-weight: 500;
}

body .gpgAudioDuration.gpgAudioDuration {
    color: #64748b;
}

/* Responsividade Mobile */
@media (max-width: 480px) {
    body .gpgAudioWrapper.gpgAudioWrapper {
        max-width: 100%;
        margin: 12px 0;
    }

    body .gpgAudioPlayer.gpgAudioPlayer {
        padding: 10px 14px;
        gap: 12px;
    }

    body .gpgAudioPlayBtn.gpgAudioPlayBtn {
        width: 40px;
        height: 40px;
    }

    body .gpgAudioPlayIcon.gpgAudioPlayIcon,
    body .gpgAudioPauseIcon.gpgAudioPauseIcon {
        width: 18px;
        height: 18px;
    }

    body .gpgAudioTimeInfo.gpgAudioTimeInfo {
        font-size: 10px;
    }
}
