/* assets/css/style.css */

/* Custom animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

/* Video player hover controls */
.player-controls {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.player-container:hover .player-controls {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Custom range input styling */
input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #374151;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #8b5cf6;
    margin-top: -5px;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Loading spinner */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero slider transitions */
.hero-slide {
    transition: opacity 1s ease-in-out;
}

/* Card image zoom effect */
.image-zoom {
    transition: transform 0.5s ease;
}

.image-zoom:hover {
    transform: scale(1.05);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modal animations */
.modal-enter {
    opacity: 0;
    transform: scale(0.95);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s, transform 0.3s;
}

.modal-exit {
    opacity: 1;
    transform: scale(1);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s, transform 0.3s;
}

/* Glassmorphism effect */
.glass {
    background: rgba(17, 25, 40, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

/* Custom scrollbar for webkit browsers */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* Bottom Navigation Bar - Mobile First */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 16px;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #9ca3af;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 12px;
}

.bottom-nav-item.active {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.bottom-nav-item i {
    font-size: 20px;
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}

body {
    padding-bottom: 70px;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* Horizontal Scroll Container */
.scroll-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
}

.scroll-container::-webkit-scrollbar {
    height: 3px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #1f1f1f;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 10px;
}

/* Smaller Movie Card for Horizontal Scroll */
.horizontal-card {
    flex: 0 0 auto;
    width: 110px;
    transition: all 0.3s ease;
}

@media (min-width: 480px) {
    .horizontal-card {
        width: 120px;
    }
}

@media (min-width: 640px) {
    .horizontal-card {
        width: 130px;
    }
}

.horizontal-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.horizontal-card .poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 12px;
}

.horizontal-card .rating-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: bold;
    color: #fbbf24;
}

.horizontal-card .title {
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
    line-clamp: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

@media (min-width: 640px) {
    .horizontal-card .title {
        font-size: 12px;
    }
}

/* Category Header */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.category-header h2 {
    font-size: 18px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .category-header h2 {
        font-size: 20px;
    }
}

.category-header a {
    font-size: 11px;
    color: #9ca3af;
    transition: color 0.2s;
}

.category-header a:hover {
    color: #8b5cf6;
}