/* Custom select dropdowns (assets/js/ve_select.js). Self-contained: loaded on every page. */
.ve-select {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
}
.ve-select--block { display: block; width: 100%; }
.ve-select__native {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1;
}
.ve-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 40px;
    padding: 0 12px 0 14px;
    margin: 0;
    background: var(--ve-canvas,#0f1012);
    border: 1px solid rgba(var(--ve-ov,255,255,255),0.14);
    border-radius: 4px;
    color: var(--ve-text,#f2f3f5);
    font: inherit;
    font-size: .9286rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.ve-select--sm .ve-select__trigger { height: 34px; padding: 0 10px 0 12px; font-size: .8571rem; }
.ve-select__trigger:hover:not(:disabled) { border-color: rgba(var(--ve-ov,255,255,255),0.24); }
.ve-select__trigger:focus { outline: 0 !important; }
.ve-select__trigger:focus-visible,
.ve-select.is-open .ve-select__trigger {
    border-color: var(--ve-fill,#2a62ff);
    box-shadow: 0 0 0 1px var(--ve-fill,#2a62ff);
}
.ve-select__trigger:disabled { opacity: .5; cursor: not-allowed; }
.ve-select__trigger.is-placeholder .ve-select__value { color: var(--ve-text-faint,#888c95); }
.ve-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ve-select__chevron {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    color: var(--ve-text-muted,#9b9ea6);
    transition: transform .18s ease, color .15s ease;
}
.ve-select__trigger:hover .ve-select__chevron { color: var(--ve-text,#f2f3f5); }
.ve-select.is-open .ve-select__chevron { transform: rotate(180deg); color: var(--ve-accent-fg,#6c94ff); }

.ve-select__list {
    position: fixed;
    z-index: 100200; /* above dialogs (the upload dialog sits at 100050) */
    box-sizing: border-box;
    max-width: calc(100vw - 16px);
    padding: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ve-surface-2,#1e2024);
    border: 1px solid rgba(var(--ve-ov,255,255,255),0.14);
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    color: var(--ve-text,#f2f3f5);
    font-family: Averta, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    font-size: .9286rem;
    animation: ve-select-in .12s ease-out;
}
.ve-select__list.is-up { animation-name: ve-select-in-up; }
.ve-select__list[hidden] { display: none; }
@keyframes ve-select-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ve-select-in-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .ve-select__list { animation: none; }
    .ve-select__chevron { transition: none; }
}
.ve-select__option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 34px;
    padding: 6px 10px 6px 12px;
    border-radius: 4px;
    color: var(--ve-t-soft,#c9ccd3);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.ve-select__option.is-active { background: var(--ve-raised,#26282d); color: var(--ve-text-strong,#fff); }
.ve-select__option.is-selected { color: var(--ve-text-strong,#fff); font-weight: 600; }
.ve-select__check { flex: 0 0 auto; width: 12px; height: 12px; color: var(--ve-accent-fg,#6c94ff); visibility: hidden; }
.ve-select__option.is-selected .ve-select__check { visibility: visible; }
.ve-select__option.is-disabled { color: var(--ve-text-faint,#888c95); cursor: not-allowed; }
.ve-select__group {
    padding: 10px 12px 4px;
    color: var(--ve-text-faint,#888c95);
    font-size: .7143rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ve-select__empty { padding: 8px 12px; color: var(--ve-text-faint,#888c95); }
.ve-select__list::-webkit-scrollbar { width: 10px; }
.ve-select__list::-webkit-scrollbar-thumb { background: rgba(var(--ve-ov,255,255,255),0.16); border: 3px solid transparent; background-clip: padding-box; border-radius: 6px; }

/* Selects that stay native (multiple, size, opt-out) still follow the dark theme. */
select[multiple],
select[size]:not([size="1"]),
select[data-native-select] {
    background-color: var(--ve-canvas,#0f1012);
    border: 1px solid rgba(var(--ve-ov,255,255,255),0.14);
    border-radius: 4px;
    color: var(--ve-text,#f2f3f5);
    color-scheme: dark;
}
select option { background: var(--ve-surface-2,#1e2024); color: var(--ve-text,#f2f3f5); }

/* Input groups: keep the trigger flush with attached addons. */
.input-group > .ve-select { flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group > .ve-select:not(:last-child) .ve-select__trigger { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .ve-select:not(:first-child) .ve-select__trigger { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Videos list: the per-page wrapper is a plain container, not a card. */
.sel-per-page.the_box { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.sel-per-page:after { content: none !important; display: none !important; }
