.trim-video-settings {
    width: 100%;
}


/* =========================================
   SECTIONS
========================================= */

.trim-video-section {
    margin-bottom: 18px;

    padding: 17px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 13px;
}


.trim-video-title {
    margin-bottom: 7px;

    font-size: 16px;
    font-weight: 750;
}


.trim-video-help {
    margin-bottom: 13px;

    font-size: 13px;

    color: #6b7280;
}


.trim-video-section select,
.trim-time-input {

    width: 100%;

    box-sizing: border-box;

    padding: 10px 11px;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: #ffffff;
}


/* =========================================
   VIDEO
========================================= */

.trim-video-preview-section {

    margin-bottom: 18px;

    padding: 14px;

    background: #111827;

    border-radius: 14px;
}


.trim-video-preview {

    display: block;

    width: 100%;

    max-height: 480px;

    margin: auto;

    background: #000000;

    border-radius: 10px;
}


.trim-video-player-controls {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 9px;

    margin-top: 13px;
}


.trim-player-btn,
.trim-secondary-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 9px 12px;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: #ffffff;

    cursor: pointer;
}


.trim-player-btn svg {

    width: 17px;
    height: 17px;
}


/* =========================================
   PLAYHEAD
========================================= */

.trim-video-current-time {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-top: 13px;

    color: #ffffff;
}


.trim-video-scrubber,
#trimVideoStartRange,
#trimVideoEndRange {

    width: 100%;
}


/* =========================================
   TIMES
========================================= */

.trim-video-time-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.trim-time-input {

    margin-bottom: 12px;

    font-family: inherit;
    font-weight: 400;
    font-size: 15px;
}


.trim-secondary-btn {

    width: 100%;

    margin-top: 11px;
}


/* =========================================
   SELECTED DURATION
========================================= */

.trim-video-selection-info {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 18px;

    padding: 13px 15px;

    background: #f5f3ff;

    border-radius: 10px;

    color: var(--violet);
}


/* =========================================
   PRECISION
========================================= */

.trim-video-choice-group {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 11px;
}


.trim-choice-btn {

    min-height: 72px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    gap: 4px;

    padding: 12px 14px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;
}


.trim-choice-btn.active {

    border-color: var(--violet);

    box-shadow:
        0 0 0 2px
        rgba(91, 33, 182, 0.12);
}


.trim-choice-btn span {

    font-size: 12px;

    color: #6b7280;
}


/* =========================================
   OTHER SETTINGS
========================================= */

.trim-video-setting-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.trim-video-check {

    display: flex;

    align-items: center;

    gap: 9px;

    cursor: pointer;
}


/* =========================================
   MODE INFO
========================================= */

.trim-video-mode-info {

    margin-bottom: 18px;

    padding: 12px 14px;

    background: #f5f3ff;

    border-radius: 10px;

    color: var(--violet);

    font-size: 13px;
}


/* =========================================
   VALIDATION
========================================= */

.trim-video-validation {

    padding: 12px 14px;

    border-radius: 10px;

    background: #f3f4f6;

    color: #6b7280;

    font-weight: 600;
}


.trim-video-validation.valid {

    background: var(--green-hover);

    color: var(--green-text);
}


.trim-video-validation.error {

    background: #fee2e2;

    color: #991b1b;
}


/* =========================================
   DISABLED
========================================= */

.trim-video-settings select:disabled,
.trim-video-settings button:disabled {

    opacity: 0.45;

    cursor: not-allowed;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .trim-video-time-grid,
    .trim-video-setting-grid,
    .trim-video-choice-group {

        grid-template-columns: 1fr;
    }


    .trim-video-selection-info {

        align-items: flex-start;

        flex-direction: column;

        gap: 4px;
    }

}
/* =========================================================
   EASYFILE GENERIC PARAMETER VISUAL LANGUAGE
   Keep the video preview dark, but make every actual setting card
   follow the same purple/green interaction standard as Audio/Image.
========================================================= */

.trim-video-section {
    position: relative;
    background: var(--submenu-bg);
    border-color: #ddd6fe;
    transition:
        background-color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.trim-video-section:hover {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 5px 18px rgba(4, 120, 87, .08);
    transform: translateY(-1px);
}

.trim-video-title {
    color: var(--green-text);
    font-size: 17px;
    font-weight: 750;
}

.trim-video-section select,
.trim-time-input {
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.trim-video-section select:hover:not(:disabled),
.trim-time-input:hover:not(:disabled) {
    border-color: #86efac;
}

.trim-video-section select:focus,
.trim-time-input:focus {
    outline: none;
    border-color: var(--green-text);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, .10);
}

.trim-choice-btn,
.trim-player-btn,
.trim-secondary-btn {
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.trim-choice-btn:not(:disabled):hover,
.trim-secondary-btn:not(:disabled):hover {
    background: var(--green-hover);
    border-color: #86efac;
    color: var(--green-text);
    transform: translateY(-1px);
}

.trim-choice-btn.active {
    background: var(--violet-light);
    color: var(--violet);
    border-color: var(--violet);
    box-shadow: 0 0 0 2px rgba(91, 33, 182, .10);
}

.operation-parameters-fieldset:disabled .trim-video-section:hover,
body.operation-interaction-locked .trim-video-section:hover {
    background: var(--submenu-bg);
    border-color: #ddd6fe;
    box-shadow: none;
    transform: none;
}

/* Range appearance is owned by the generic .eft-range component. */
.trim-video-scrubber,
#trimVideoStartRange,
#trimVideoEndRange {
    width: 100%;
}
