.search-result-wrapper {
    container-type: inline-size;
    container-name: search-result-container;
    position: relative;
}

.item-wrapper {
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
}

.item-wrapper:hover, .item-wrapper:focus {
    box-shadow: var(--box-shadow-card-hover);
    outline: 3px solid var(--radio-select-clr-theme);
    border-width: 2px;
}

.vfp-thumbnail-img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: center center;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
    transition: transform 200ms;
}

.vfp-video-info {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 8px;
    color: #fff;
    background: linear-gradient(180deg, rgba(72, 72, 72, 0.15) 0%, #000 100%);

    font-family: 'ABC Favorit';
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    gap: 4px;
    text-shadow: 0px 1px 7px rgba(13, 13, 13, 0.50), 1px 1px 3px rgba(13, 13, 13, 0.30);

}

.item-wrapper:hover .vfp-video-info, .item-wrapper:focus .vfp-video-info {
    display: none;
}

.vfp-info-top {
    display: flex;
    justify-content: space-between;
}

.vfp-duration, .vfp-video-total {
    z-index: 50;
    background-color: #0d0d0d50;
    padding: var(--card-duration-padding, 2px 8px);
    border-radius: 12px;
    position: relative;
}
.vfp-video-total {
    --card-duration-padding: 2px 8px 2px 20px;
}
.vfp-video-total:before {
    content: "";
    background-image: url("../Assets/Playlist.svg");
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
    position: absolute;
    left: 6px;
    bottom: 0;
}

.vfp-video-owner {
    display: flex;
    margin-top: auto;
    gap: 4px;
}

.vfp-video-owner img {
    width: 16px;
    height: 16px;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 4px;
    flex: none;
}

.vfp-owner-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    font-family: "ABC Favorit";
    font-size: 12px;
    font-style: normal;
    line-height: 16px;
}

.vfp-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    white-space: normal;
    overflow: hidden;
    text-shadow: 0px 0.25px 1px rgba(13, 13, 13, 0.08), 0px 0.85px 3px rgba(13, 13, 13, 0.25);
}

.video-preview {
    position: absolute;
    width: 100%;
    height: 100%;
}

.video-preview * {
    pointer-events: none;
}

.video-preview.skeleton {
    background-color: var(--skeleton-color-theme);
}


.vfp-thumbnail-img {
    transform: scale(1.15);
}

.vfp-video-info .vfp-info-top .vfp-duration {
    font-weight: 700;
}

.item-wrapper.no-result::after {
    content: "No result";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 60px;
    font-family: 'ABC Favorit';
    font-size: 14px;
}

.search-result-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    text-align: center;
    padding-bottom: var(--spacing-lg);
}

.search-result-empty__icon {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
}

.search-result-empty__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 260px;
}

.search-result-empty__headline,
.search-result-empty__description {
    margin: 0;
    font-family: var(--body-font);
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
}

.search-result-empty__headline {
    color: var(--interaction-color);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    margin-bottom: var(--spacing-md);
    font-weight: var(--heading-font-weight);
}

.search-result-empty__description {
    color: var(--body-color);
}

.load-more {
    margin: 14px auto 0;
    cursor: pointer;
    display: flex;
    height: 40px;
    padding: 0 16px;
    align-items: center;
    width: 149px;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
    line-height: 20px;
}

.load-more svg {
    display: none;
    width: 40px;
    height: 40px;
}

.btn-imp {
    font-family: "ABC Favorit";
    border-radius: 6px;
    background: var(--btn-imp-bg-theme);
    color: var(--btn-imp-clr-theme);
    border: 1px solid var(--btn-imp-border-theme);
}

.container-small .search-result-wrapper .search-result .item-wrapper .vfp-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.search-result {
    container-type: inline-size;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@container search-result-container (min-width: 600px) {
    .search-result {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .search-result .item-wrapper {
        flex-direction: column;
        gap: 8px;
    }
}
