/* Base Gradients and Utilities */
.bg-hero-gradient {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.bg-page-gradient {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Custom OTT Row Behaviors */
.row-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 20px 10px;
    scroll-behavior: smooth;
}

/* Default Video Card (Landscape 16:9) */
.video-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.video-card:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f1f5f9;
    width: 100%;
}

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shorts Class (Portrait 9:16) */
.video-card.is-short {
    flex: 0 0 190px;
}

.video-card.is-short .thumb-wrap {
    aspect-ratio: 9/16;
}

/* Row Specific Forced Styles */
#latest-shorts-scroll .video-card {
    flex: 0 0 190px;
}

#latest-shorts-scroll .thumb-wrap {
    aspect-ratio: 9/16;
}

#latest-videos-scroll .video-card,
#all-videos-scroll .video-card {
    flex: 0 0 300px;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-info {
    position: absolute;
    bottom: 0;
    inset-x: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.video-card:hover .video-info {
    opacity: 1;
    transform: translateY(0);
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 153, 51, 0.2);
    border-bottom-color: #FF9933;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}