/* Minimalist Container Reset */
.wp-block-thdfndr-audio.is-minimalist {
    display: inline-block;
    font-size: 16px;
    padding: 0.4rem 1rem;
    margin: 0 0.2rem 1.5rem;
    border: 0.1rem solid var(--light-color-alt);
    background-color: var(--secondary-background-color);
    color: var(--light-color-alt);
    text-decoration: none;
    border-radius: 10px;
    text-align: inherit;
    min-width: unset;
    position: relative;
}

.thdfndr-audio-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Enforce fluid sizing for all inner SVG nodes */
.thdfndr-audio-wrapper svg {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    flex-shrink: 0;
}

/* Unified Play/Pause + Text Control Button */
.audio-play-control {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-play-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Meta Text Module */
.audio-meta-text {
    font-size: 2rem !important;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}
.audio-label-listen, .audio-play-icon-wrapper {
    font-size: unset !important;
}
.audio-duration-node{
    font-size: 1.6rem !important;
    margin-top: 2px;
}


.audio-play-control:hover {
    color: inherit !important;
    background: none !important;
    opacity: 1 !important;
}

/* Volume Slider Module */
.audio-volume-container {
    display: flex;
    align-items: center;
}

.audio-volume-slider-wrapper {
    width: 0;
    opacity: 0;
    overflow: visible;
    transition: width 0.3s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
}

.audio-volume-container:hover .audio-volume-slider-wrapper {
    width: 60px;
    opacity: 1;
    margin-right: 8px;
}

.audio-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(var(--light-color-alt-rgb, 255, 255, 255), 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
}

.audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light-color-alt);
    cursor: pointer;
    border: none;
}

.audio-volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light-color-alt);
    cursor: pointer;
    border: none;
}

.audio-volume-trigger {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    cursor: pointer; 
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.audio-volume-trigger:hover {
    color: inherit !important;
    background: none !important;
    opacity: 1 !important;
}

.audio-play-icon-wrapper, .audio-volume-container{
    margin-top: 3px;
}