.video-list {
    --videolist-cols-xs: 2;
    --videolist-cols-sm: 2;
    --videolist-cols-md: 3;
    --videolist-cols-lg: 4;
    --videolist-cols-xl: 4;
    --videolist-cols-xxl: 5;
    margin-bottom: 1.5rem;
}

.video-list-status {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.video-list-status--error {
    color: #dc3545;
}

.video-list-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -4px;
    margin-right: -4px;
}

/* Legacy videolist look */
.video-item {
    padding: 4px;
    box-sizing: border-box;
    width: calc(100% / var(--videolist-cols-xs));
}

.video-list--compact .video-item {
    padding: 3px;
}

@media (min-width: 576px) {
    .video-item {
        width: calc(100% / var(--videolist-cols-sm));
    }
}

@media (min-width: 768px) {
    .video-item {
        width: calc(100% / var(--videolist-cols-md));
    }
}

@media (min-width: 992px) {
    .video-item {
        width: calc(100% / var(--videolist-cols-lg));
    }
}

@media (min-width: 1200px) {
    .video-item {
        width: calc(100% / var(--videolist-cols-xl));
    }
}

@media (min-width: 1400px) {
    .video-item {
        width: calc(100% / var(--videolist-cols-xxl));
    }
}

.video-item-inner {
    position: relative;
    background-color: #333;
    padding: 2px;
    overflow: hidden;
}

.video-item--active .video-item-inner {
    box-shadow: 0 0 0 2px rgba(255, 130, 200, 0.7), 0 12px 24px rgba(255, 130, 200, 0.2);
}

.video-item--loading .video-item-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 3;
}

.video-item-link {
    display: block;
    text-decoration: none;
}

.videoboughtlabel {
    position: absolute;
    top: 70px;
    left: 0;
    background-color: green;
    color: #fff;
    padding: 7px 33px;
    z-index: 10;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transform: rotate(-45deg);
    transform-origin: left bottom;
}

.video-item-inner-container {
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
}

.video-item-inner-container-16-9 {
    padding-bottom: 56.25%;
}

.video-item-inner-container-4-3 {
    padding-bottom: 75%;
}

.video-thumb-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.video-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-item-image-16-9,
.video-item-image-4-3 {
    object-fit: cover;
}

.video-item--skeleton .video-item-inner {
    background-color: #1f2937;
}

.video-skeleton-thumb {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(51, 65, 85, 0.6) 25%, rgba(148, 163, 184, 0.35) 37%, rgba(51, 65, 85, 0.6) 63%);
    background-size: 400% 100%;
    animation: videolist-shimmer 1.35s ease-in-out infinite;
}

.video-item--skeleton .video-underlabel {
    background-color: rgba(15, 23, 42, 0.8);
}

.video-skeleton-line {
    height: 0.65rem;
    margin: 6px auto;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(51, 65, 85, 0.6) 25%, rgba(148, 163, 184, 0.35) 37%, rgba(51, 65, 85, 0.6) 63%);
    background-size: 400% 100%;
    animation: videolist-shimmer 1.35s ease-in-out infinite;
}

.video-skeleton-line--title {
    width: 80%;
    height: 0.7rem;
}

.video-skeleton-line--meta {
    width: 55%;
    height: 0.55rem;
}

@keyframes videolist-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (max-width: 767px) {
    .video-item-inner-play {
        display: none;
    }
}

.video-item-inner-play {
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    font-size: 48px;
    opacity: 0.35;
    margin-left: -24px;
    margin-top: -24px;
    line-height: 1em;
}

.video-underlabel {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    padding: 2px 4px;
    font-weight: bold;
    font-size: 9pt;
    text-align: center;
    line-height: 11pt;
    height: 6.3em;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.video-underlabel a {
    color: #fff;
    text-decoration: none;
}

.video-underlabel a:hover {
    color: #fff;
    text-decoration: underline;
}

.video-underlabel-title {
    display: inline-block;
}

.video-underlabel-left {
    position: absolute;
    bottom: 1px;
    left: 2px;
    color: #fff;
    font-size: 8pt;
    padding-left: 2px;
}

.video-underlabel-right {
    position: absolute;
    bottom: 1px;
    right: 2px;
    color: #fff;
    font-size: 8pt;
    padding-right: 2px;
}

.video-list-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.video-list-load-more {
    display: none;
}
