.vs-head { padding-bottom: 0; }

.vs-search { flex: 1 1 auto; min-width: 0; margin: 0; }

.vs-field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 50px;
    padding: 0 6px 0 48px;
    border: 1px solid var(--v-line-2);
    border-radius: 13px;
    background: var(--v-surface);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.vs-field:hover { border-color: #3d424c; }

.vs-field:focus-within {
    border-color: #6a717e;
    background: var(--v-surface-2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.vs-field-ico {
    position: absolute;
    left: 18px;
    color: var(--v-muted);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.18s ease;
}

.vs-field:focus-within .vs-field-ico { color: var(--v-ink); }

.vs-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 10px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--v-ink);
    font-family: var(--v-sans);
    font-size: 16px;
    font-weight: 500;
    text-overflow: ellipsis;
    -webkit-appearance: none;
    appearance: none;
}

.vs-input::-webkit-search-cancel-button,
.vs-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.vs-input::placeholder { color: #626976; font-weight: 400; opacity: 1; }
.vs-input:focus-visible { outline: none; }

.vs-clear {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--v-muted);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.vs-clear:hover { background: var(--v-surface-3); color: var(--v-ink); }

.vs-head > .container,
.vs-layout {
    max-width: none;
    padding-left: clamp(16px, 2.4vw, 36px);
    padding-right: clamp(16px, 2.4vw, 36px);
}

.vs-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.vs-side {
    position: sticky;
    top: var(--vs-side-top, calc(var(--v-nav-h) + 14px));
    display: flex;
    flex-direction: column;
    border: 1px solid var(--v-line);
    border-radius: 18px;
    background: var(--v-bg-2);
}

.vs-side-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 10px 8px 18px;
    border-bottom: 1px solid var(--v-line);
}

.vs-side-head .vs-side-heading { margin-right: auto; }

.vs-side-reset-top {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: var(--v-surface-2);
    color: var(--v-ink);
    font-family: var(--v-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.vs-side-reset-top:hover { background: var(--v-surface-3); }
.vs-side.is-clean .vs-side-reset-top { display: none; }

.vs-side-heading {
    margin: 0;
    color: var(--v-ink);
    font-family: var(--v-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.1;
}

.vs-side-close {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--v-surface-2);
    color: var(--v-ink);
    font-size: 17px;
    cursor: pointer;
}

.vs-side-body { padding: 14px 16px 16px; }

@media (min-width: 992px) {
    .vs-grid:not(.list-view) {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 34px 20px;
    }
}

.vs-side-foot { display: none; }

.vs-side-sec + .vs-side-sec {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--v-line);
}

.vs-sort-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: var(--v-surface);
    box-shadow: inset 0 0 0 1px var(--v-line);
    color: var(--v-ink);
    font-family: var(--v-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.vs-sort-toggle:hover,
.vs-side-sec--sort.is-open .vs-sort-toggle { background: var(--v-surface-2); box-shadow: inset 0 0 0 1px var(--v-line-2); }
.vs-sort-toggle i { font-size: 11px; color: var(--v-muted); transition: transform 0.2s ease; }
.vs-side-sec--sort.is-open .vs-sort-toggle i { transform: rotate(180deg); }
.vs-side-sec--sort .vs-sorts { display: none; margin-top: 6px; }
.vs-side-sec--sort.is-open .vs-sorts { display: flex; }

.vs-side-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.vs-side-title {
    margin: 0 0 10px 4px;
    color: var(--v-ink);
    font-family: var(--v-display);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.vs-side-title-row .vs-side-title { margin-bottom: 0; }

.vs-side-clear {
    height: 26px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--v-body);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.vs-side-clear:hover { background: var(--v-surface-3); color: var(--v-ink); }

.vs-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.vs-type {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    background: var(--v-surface);
    box-shadow: inset 0 0 0 1px var(--v-line);
    color: var(--v-body);
    font-family: var(--v-sans);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.vs-type:hover { background: var(--v-surface-2); box-shadow: inset 0 0 0 1px var(--v-line-2); color: var(--v-ink); }
.vs-type.is-active { background: var(--v-ink); box-shadow: none; color: #0e0f12; font-weight: 600; }
.vs-type.is-empty:not(.is-active) { opacity: 0.45; }

.vs-num {
    flex: none;
    color: var(--v-muted);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.vs-type:hover .vs-num { color: var(--v-body); }
.vs-type.is-active .vs-num { color: rgba(14, 15, 18, 0.6); }

.vs-main { min-width: 0; }

.vs-toolbar {
    position: sticky;
    top: var(--v-nav-h);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px 18px;
    margin: -14px 0 20px;
    padding: 14px 0;
    background: var(--v-bg);
    box-shadow: 0 14px 18px -16px rgba(0, 0, 0, 0.9);
}

.vs-count { flex: none; white-space: nowrap; }

.vs-filter-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--v-line-2);
    border-radius: 10px;
    background: var(--v-surface);
    color: var(--v-ink);
    font-family: var(--v-sans);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.vs-filter-btn:hover { background: var(--v-surface-2); border-color: #4a4f5a; }
.vs-filter-btn i { font-size: 13px; color: var(--v-muted); }

.vs-filter-n {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--v-rec);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.vs-scrim { display: none; }

.vs-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.vs-select {
    width: auto;
    min-width: 206px;
    height: 38px;
    min-height: 38px;
    padding-top: 0;
    padding-bottom: 0;
    background-color: var(--v-surface);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.vs-select:focus { background-color: var(--v-surface); }

.vs-tools .vs-reset,
.vs-tools .vs-select { display: none; }

.vs-view .v-seg-btn { width: 36px; height: 30px; padding: 0; justify-content: center; }
.vs-view .v-seg-btn i { font-size: 14px; }

.vs-page { padding-top: 28px; }

.vs-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vs-genres .v-chip { height: 32px; padding: 0 11px; font-size: 13px; }

.vs-count {
    margin: 0;
    color: var(--v-body);
    font-size: 15.5px;
    line-height: 1.4;
}

.vs-count b { color: var(--v-ink); font-weight: 600; }
.vs-count-of { color: var(--v-muted); }

.vs-reset { flex: none; }

.vs-card-body { display: block; min-width: 0; }
.vs-row-genres,
.vs-row-rating { display: none; }

.v-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 -12px;
}

.list-item .v-card-link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) minmax(0, 260px) 56px;
    align-items: center;
    gap: 18px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background-color 0.18s ease;
}

.list-item .v-card-link:hover { background: var(--v-surface); }

.list-item + .list-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: var(--v-line);
    pointer-events: none;
}

.list-item .v-card-poster { width: 52px; border-radius: 7px; }
.list-item .v-card-rating,
.list-item .v-card-play { display: none; }

.list-item .v-card-title { margin: 0 0 2px; -webkit-line-clamp: 1; font-size: 15.5px; }
.list-item .v-card-rec { margin-top: 5px; }

.list-item .vs-row-genres {
    display: block;
    margin: 0;
    overflow: hidden;
    color: var(--v-muted);
    font-size: 13.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.list-item .vs-row-rating {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    color: var(--v-ink);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.list-item .vs-row-rating i { color: var(--v-star); font-size: 11px; }

.vs-empty { padding: 64px 20px; }

.vs-sorts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vs-sort {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--v-body);
    font-family: var(--v-sans);
    font-size: 14.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.vs-sort:hover { background: var(--v-surface); color: var(--v-ink); }
.vs-sort:hover::before { border-color: var(--v-muted); }

.vs-sort::before {
    content: '';
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--v-line-2);
    border-radius: 50%;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.vs-sort.is-active { background: var(--v-surface); color: var(--v-ink); font-weight: 600; }
.vs-sort.is-active::before { border-color: var(--v-ink); box-shadow: inset 0 0 0 3px var(--v-bg-2), inset 0 0 0 9px var(--v-ink); }

@media (max-width: 991.98px) {
    .vs-layout { display: block; }

    .vs-side {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1065;
        max-height: min(88vh, 760px);
        border: 0;
        border-top: 1px solid var(--v-line-2);
        border-radius: 20px 20px 0 0;
        background: var(--v-bg-2);
        box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
        transform: translateY(105%);
        visibility: hidden;
        transition: transform 0.32s var(--v-ease), visibility 0s linear 0.32s;
    }

    .vs-side.is-open {
        transform: none;
        visibility: visible;
        transition: transform 0.32s var(--v-ease), visibility 0s;
    }

    .vs-side { overflow: hidden; }
    .vs-side-head { min-height: 0; padding: 12px 12px 12px 20px; }
    .vs-side-close { display: grid; }
    .vs-side-reset-top,
    .vs-sort-toggle { display: none; }
    .vs-side-body { flex: 1 1 auto; min-height: 0; padding: 18px 16px 20px; overflow-y: auto; overscroll-behavior: contain; }
    .vs-side-sec + .vs-side-sec { margin-top: 18px; padding-top: 18px; }
    .vs-side-sec--sort .vs-sorts { display: flex; margin-top: 0; }
    .vs-side-title { margin-bottom: 12px; }
    .vs-sort { height: 44px; font-size: 15px; }
    .vs-type { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; height: 48px; padding: 0 10px 0 14px; font-size: 15px; }
    .vs-num { min-width: 24px; padding: 3px 7px; border-radius: 999px; background: var(--v-surface-3); font-size: 12px; font-weight: 600; text-align: center; }
    .vs-type:hover .vs-num { background: var(--v-line-2); }
    .vs-type.is-active .vs-num { background: rgba(14, 15, 18, 0.1); color: rgba(14, 15, 18, 0.7); }
    .vs-genres { gap: 8px; }
    .vs-genres .v-chip { height: 38px; padding: 0 15px; font-size: 14px; }

    .vs-side-foot,
    .vs-side.is-clean .vs-side-foot { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--v-line); }
    .vs-side-foot .v-btn { height: 48px; font-size: 15px; }
    .vs-side-foot .v-btn--ghost { flex: none; padding: 0 18px; }
    .vs-side-foot .v-btn--light { display: inline-flex; flex: 1 1 auto; justify-content: center; }

    .vs-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1060;
        background: rgba(5, 6, 8, 0.62);
    }

    .vs-scrim[hidden] { display: none; }

    body.vs-sheet-open { overflow: hidden; }

    .vs-toolbar { position: static; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; background: none; box-shadow: none; }
    .vs-toolbar .vs-search { flex-basis: 100%; order: 0; }
    .vs-filter-btn { display: inline-flex; flex: 1 1 auto; order: 1; }
    .vs-tools { order: 2; }
    .vs-count { order: 3; flex-basis: 100%; font-size: 14.5px; }
    .vs-view .v-seg-btn { width: 44px; height: 32px; }
}

@media (max-width: 767.98px) {
    .list-item .v-card-link {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 14px;
        padding: 8px 12px;
    }

    .list-item .v-card-poster { width: 46px; border-radius: 6px; }
    .list-item .vs-row-genres { display: none !important; }
    .list-item .v-card-title { font-size: 15px; }
}

@media (max-width: 575.98px) {
    .vs-field { height: 52px; padding: 0 6px 0 44px; border-radius: 12px; }
    .vs-field-ico { left: 16px; font-size: 15px; }
    .vs-input { font-size: 16px; }
    .vs-view { width: auto; flex: none; }
    .vs-view .v-seg-btn { flex: none; width: 42px; }
    .vs-count { font-size: 15px; }
}
