/* ------------------------------------------------------------------------
   recordedit.css - Aufnahmen bearbeiten: Anfang und Ende festlegen, Kapitel
   setzen, und der Fortschritt beim Hochladen.

   Das Grundgeruest der Fenster steht in recorddialog.css.
   ------------------------------------------------------------------------ */

/* ================================================== Kuerzen und Kapitel */

.rec-trim,
.rec-kapitel,
.rec-vorschau { width: 720px; }

.rec-trim-video,
.rec-kapitel video,
.rec-vorschau video {
    width: 100%;
    max-height: 46vh;
    background: #000;
    border-radius: 7px;
}

.rec-trim-werte { display: flex; gap: 22px; flex-wrap: wrap; }

.rec-trim-feld {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--pd-text-s);
}

.rec-trim-feld b {
    font-size: 17px;
    color: var(--pd-text);
    font-variant-numeric: tabular-nums;
}

.rec-trim-dauer b { color: var(--pd-gut); }

.rec-trim-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }

.rec-k-label { font-size: 14px; font-weight: 600; margin-top: 2px; }

.rec-k-text {
    width: 100%;
    resize: vertical;
    font-family: Segoe UI, sans-serif;
}

.rec-k-liste {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 26vh;
    overflow-y: auto;
}

.rec-k-zeile { display: flex; align-items: center; gap: 8px; }

.rec-k-zeit {
    border: 1px solid var(--pd-messen);
    background: var(--pd-messen-b);
    color: var(--pd-messen);
    border-radius: 5px;
    padding: 5px 9px;
    font: 600 13px Segoe UI, sans-serif;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    min-width: 58px;
}

.rec-k-feld { flex: 1; }

.rec-k-hinweis {
    flex: 1;
    font-size: 13px;
    color: var(--pd-text-s);
}

/* ======================================================= Upload laeuft */

/* ⚠️ Eine 10-Minuten-Aufnahme kann 100 MB haben. Ohne Balken sieht das aus,
   als haenge die Anwendung - und der Nutzer laedt die Seite neu, womit die
   Aufnahme verloren waere. */
#rec-upload {
    position: fixed;
    inset: 0;
    z-index: 2800;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-up-box {
    background: var(--pd-flaeche);
    border-radius: 10px;
    padding: 24px 30px;
    width: 400px;
    max-width: 92vw;
    text-align: center;
    font-family: Segoe UI, sans-serif;
    color: var(--pd-text);
}

.rec-up-titel { font-size: 16px; font-weight: 600; margin-bottom: 14px; }

.rec-up-spur {
    height: 10px;
    background: var(--pd-vertief-2);
    border-radius: 5px;
    overflow: hidden;
}

.rec-up-balken {
    height: 100%;
    width: 0;
    background: var(--pd-messen);
    transition: width .2s linear;
}

.rec-up-text { margin-top: 9px; font-size: 14px; font-weight: 600; }

.rec-up-warnung { margin-top: 5px; font-size: 12px; color: var(--pd-warn); }
