.ela-player-wrapper {
    margin-bottom: 1.5em;
}

.ela-player {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #333;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}

.ela-player:hover {
    background: #ebebeb;
    border-color: #ccc;
}

.ela-player--playing {
    background: #e8f0fe;
    border-color: #4285f4;
    color: #1a73e8;
}

.ela-player--pending {
    color: #888;
}

.ela-player--pending:hover {
    color: #1a73e8;
    border-color: #4285f4;
}

.ela-player--loading {
    cursor: wait;
    opacity: 0.7;
}

.ela-player-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 12px;
}

.ela-player--playing .ela-player-icon {
    background: #1a73e8;
}

.ela-player--pending .ela-player-icon {
    background: #999;
}

.ela-player-label {
    font-weight: 500;
}

.ela-player-duration {
    color: #888;
    font-size: 0.85em;
    margin-left: auto;
    min-width: 40px;
}

.ela-audio {
    display: none;
}

.ela-player-loader {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: ela-spin 0.8s linear infinite;
}

@keyframes ela-spin {
    to { transform: rotate(360deg); }
}
