/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #4a4a5a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a5a6a;
}

/* Hide scrollbar for horizontal scroll */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth transitions */
.transition-smooth {
    transition: all 0.3s ease;
}

/* Video player controls */
video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Loading spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e50914;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card hover effects */
.movie-card:hover .overlay {
    opacity: 1;
}

.movie-card:hover img {
    transform: scale(1.1);
}

/* Star rating */
.star {
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover {
    transform: scale(1.2);
}

/* Mobile menu */
@media (max-width: 768px) {
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #141414;
        padding: 1rem;
    }
}

/* Gradient backgrounds */
.gradient-dark {
    background: linear-gradient(to bottom, transparent, #141414);
}

.gradient-overlay {
    background: linear-gradient(to right, #141414, transparent);
}

/* Netflix-style rows */
.movie-row {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
}

.movie-row::-webkit-scrollbar {
    height: 4px;
}

/* Hero section */
.hero-gradient {
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 20, 0) 0%,
        rgba(20, 20, 20, 0.6) 50%,
        rgba(20, 20, 20, 1) 100%
    );
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
}

.toast-success {
    background-color: #10b981;
}

.toast-error {
    background-color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
