@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

* {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

html {
    scrollbar-width: thin;
    /* Firefox */
    -ms-overflow-style: auto;
    /* Internet Explorer 10+ */
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: block;
    /* Safari and Chrome */
    width: 8px;
    scroll-behavior: smooth;
}

body {
    scrollbar-width: thin;
    /* Firefox */
    -ms-overflow-style: auto;
    /* Internet Explorer 10+ */
}

body::-webkit-scrollbar {
    display: block;
    /* Safari and Chrome */
    width: 8px;
}


body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #16a34a, #2563eb);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #16a34a, #2563eb);
}

body {
    font-family: "Be Vietnam Pro", sans-serif;
}

/* Video Cards Enhancements */
.video-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-card:hover .video-thumbnail::before {
    opacity: 1;
}

.play-button {
    transform: scale(0.8) translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .play-button {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.category-badge {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom scrollbar for better UX */
.video-grid-container::-webkit-scrollbar {
    width: 6px;
}

.video-grid-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.video-grid-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    border-radius: 3px;
}

.video-grid-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #16a34a, #2563eb);
}

/* Pagination enhancements */
.pagination-btn {
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
    transition: left 0.5s;
}

.pagination-btn:hover::before {
    left: 100%;
}

/* Search and filter enhancements */
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.filter-select:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Loading animation */
@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
        background-color: rgb(34, 197, 94);
    }

    50% {
        opacity: 0.5;
        background-color: rgb(59, 130, 246);
    }
}

.loading-dot {
    animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.viewer-toolbar>ul>li {
    background-color: #8D1C20;
    border-radius: 50%;
    cursor: pointer;
    float: left;
    height: 24px;
    overflow: hidden;
    transition: background-color .15s;
    width: 24px;
}

/* Package Dialog Styles */
#packageDialog {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#packageDialog .bg-white {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Countdown animation */
#countdown {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Button hover effects for dialog */
#packageDialog button {
    transition: all 0.2s ease-in-out;
}

#packageDialog button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Account Dropdown Styles */
#accountDropdown {
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

/* Smooth hover effects for dropdown items */
#accountDropdown .bg-gray-50:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

#accountDropdown button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}