#reading-controls {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#reading-controls button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    min-width: 80px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, -48%); }
}

#reading-controls.showing {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

#reading-controls.hiding {
    animation: fadeOut 0.2s ease-out;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.speed-control input {
    width: 100px;
}

.speed-label {
    font-size: 12px;
    color: #666;
}
 