
.voice-player-ui {
    background: #f1f1f1;
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 380px;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
    font-family: sans-serif;
    position: relative;
}

.voice-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.voice-time {
    font-size: 14px;
    min-width: 70px;
}

.voice-icon {
    font-size: 16px;
    color: #333;
}

.voice-menu {
    position: relative;
}

.voice-menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.voice-menu-content {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 8px 0;
    z-index: 10;
    min-width: 120px;
}

.voice-menu-content.show {
    display: block;
}

.voice-menu-content button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.voice-menu-content button:hover {
    background: #eee;
}

.voice-menu-content button[data-speed]:hover {
    background-color: #d0eaff;
    color: #000;
    font-weight: bold;
}

/* Custom styles for 3-dots menu and speed option */
.voice-player .player-menu-button,
.voice-player .playback-speed {
    color: black;
    transition: color 0.2s ease;
}

.voice-player .player-menu-button:hover,
.voice-player .playback-speed:hover {
    color: #333; /* Dark gray on hover */
}

/* Ensure 3-dots dropdown menu text is black */
.voice-player .player-menu {
    color: black;
}

.voice-player .player-menu > *:hover {
    color: #333;
}

/* Force 3-dots dropdown menu text to be black */
.voice-player .player-menu,
.voice-player .player-menu * {
    color: black !important;
}

.voice-player .player-menu *:hover {
    color: #333 !important;
}

/* Completely override inherited styles for 3-dots dropdown menu */
.voice-player .player-menu,
.voice-player .player-menu * {
    all: unset;
    color: black !important;
    font: inherit;
    padding: 8px;
    display: block;
}

.voice-player .player-menu *:hover {
    color: #333 !important;
    background-color: #f0f0f0;
}

/* Strong specificity for dropdown menu */
.voice-player .player-menu {
    background: white !important;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.voice-player .player-menu li,
.voice-player .player-menu li * {
    color: black !important;
    font-size: 14px !important;
    font-family: sans-serif !important;
    background: transparent !important;
}

.voice-player .player-menu li:hover,
.voice-player .player-menu li:hover * {
    color: #333 !important;
    background-color: #f5f5f5 !important;
}
