.waveform-container {
    position: relative;
}

.media-editor-root {
    width: 100%;
}

.small-select .mud-select-input {
    font-size: 0.75rem;
}

.media-editor-root .media-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 1px !important;
    column-gap: 1px !important;
}

.media-editor-root .media-row > .video-col,
.media-editor-root .media-row > .wave-col {
    margin: 0;
    padding: 0;
}

.media-editor-root .media-row .video-col {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

.media-editor-root .media-row .video-col video {
    height: var(--wf-h, 150px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.plyr--fullscreen-active video,
.plyr--fullscreen-active .plyr__video-wrapper,
.plyr:fullscreen video,
.plyr:fullscreen .plyr__video-wrapper {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    border-radius: 0 !important;
}

.plyr--fullscreen-active,
.plyr:fullscreen {
    background: #000;
}

.media-editor-root .media-row .wave-col {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.media-editor-root .media-row .waveform-container {
    width: 100%;
    height: var(--wf-h, 150px);
    margin: 0;
    padding: 0;
}

.media-editor-root .waveform-container:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.media-toolbar {
    width: 100%;
    box-sizing: border-box;
}

.media-editor-root .media-row.pip-active .video-col {
    flex: 0;
    min-width: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.media-editor-root .media-row.pip-active .wave-col {
    flex: 1;
    width: 100%;
    transition: all 0.3s ease;
}

.media-editor-root .media-row.pip-hidden .video-col {
    display: none;
}

.media-toolbar .compact-time.mud-input-control {
    width: auto;
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 90px;
    margin-right: 10px;
}

.media-toolbar .compact-time .mud-input-input {
    font-size: 0.80rem !important;
    padding: 4px 8px !important;
    height: 32px !important;
    line-height: 24px !important;
}

.media-toolbar .compact-time .mud-input-root {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.selected-region {
    background-color: #505050 !important; /* Gray 300 */
}

.selected-region > td {
    color: #212121 !important; /* Gray 900 */
}

.selected-region > td .mud-input,
.selected-region > td .mud-input-root,
.selected-region > td .mud-input-input {
    color: white !important;
}
