#tts-modal {
    display: none;

    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: transparent;

    pointer-events: none;
}


#tts-modal .modal-content {
    position: absolute;

    top: 100px;
    right: 40px;

    width: 500px;
    max-width: calc(100% - 80px);

    padding: 25px;

    background-color: white;

    border-radius: 0 0 12px 12px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

    pointer-events: auto;
}


/* --------------------------------------------------
   Stängknapp
-------------------------------------------------- */

#tts-modal .close {
    position: absolute;

    top: 10px;
    right: 15px;

    font-size: 30px;

    cursor: pointer;
}


/* --------------------------------------------------
   Fil-lista
-------------------------------------------------- */

#tts-file-list {
    display: flex;

    flex-direction: column;

    gap: 6px;

    margin-bottom: 25px;
}


.tts-file {
    width: 100%;

    padding: 10px 12px;

    border: none;

    background: #f1f1f1;

    text-align: left;

    cursor: pointer;

    border-radius: 5px;
}


.tts-file:hover {
    background: #e4e4e4;
}


/* --------------------------------------------------
   Spelarkontroller
-------------------------------------------------- */

#tts-player-controls {
    width: 100%;
}


/* --------------------------------------------------
   Play / Paus / Stop
-------------------------------------------------- */

#tts-buttons {
    display: flex;

    gap: 8px;

    margin-bottom: 15px;
}


#tts-buttons button {
    padding: 8px 16px;

    border: none;

    border-radius: 5px;

    background: #0a4c8a;

    color: white;

    cursor: pointer;
}


#tts-buttons button:hover {
    opacity: 0.85;
}


/* --------------------------------------------------
   Positionsreglage
-------------------------------------------------- */

#tts-progress {
    width: 100%;

    cursor: pointer;
}


/* --------------------------------------------------
   Tid
-------------------------------------------------- */

#tts-time {
    margin-top: 5px;

    text-align: center;

    font-family: monospace;
}


/* --------------------------------------------------
   Hastighet och volym
-------------------------------------------------- */

#tts-extra-controls {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;
}


#tts-speed {
    padding: 5px;
}


#tts-volume {
    width: 120px;

    cursor: pointer;
}


.tts-file.active {
    background: #b8b8b8;
}