/* style.css - Simplified version with no navigation */

:root {
    --primary-color: #e50914;
    --primary-hover: #f40612;
    --background-dark: #0a0a0a;
    --background-light: #141414;
    --surface-color: #1f1f1f;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --text-dark: #6c6c6c;
    --border-color: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Hide scrollbars */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

/* Main Content */
.main-content {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 60vh;
    min-height: 450px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, 
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0.3) 100%);
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    max-width: 600px;
    z-index: 10;
}

.slide-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.slide-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    flex-wrap: wrap;
}

.slide-meta .rating {
    color: #ffd700;
}

.slide-meta .type {
    background: var(--primary-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.slide-overview {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.slide-buttons {
    display: flex;
    gap: 12px;
}

.slide-buttons .btn {
    padding: 12px 24px;
    font-size: 14px;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-prev,
.slider-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

/* Content Sections */
.content-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.view-all {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
}

.view-all:hover {
    color: var(--text-light);
    background: rgba(229,9,20,0.1);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Movie Card */
.movie-card {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.2);
    border-color: var(--primary-color);
}

.card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .card-overlay,
.movie-card:active .card-overlay {
    opacity: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.card-btn {
    flex: 1;
    height: 40px;
    border-radius: 20px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-gray);
}

.card-rating {
    color: #ffd700;
}

.card-year {
    color: var(--text-gray);
}

/* Footer */
.footer {
    background: var(--surface-color);
    padding: 40px 20px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 13px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(229,9,20,0.4);
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-hover);
}

/* Responsive */
@media (min-width: 1024px) {
    .main-content {
        padding: 30px 30px 40px 30px;
    }
    
    .content-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
    
    .hero-slider {
        height: 70vh;
        min-height: 550px;
    }
    
    .slide-title {
        font-size: 48px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .slide-title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .main-content {
        padding: 16px 12px 20px 12px;
    }
    
    .hero-slider {
        height: 50vh;
        min-height: 400px;
    }
    
    .slide-content {
        bottom: 24px;
        left: 20px;
        right: 20px;
    }
    
    .slide-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .slide-meta {
        font-size: 12px;
        gap: 10px;
    }
    
    .slide-overview {
        font-size: 13px;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }
    
    .slider-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .slider-prev,
    .slider-next {
        width: 36px;
        height: 36px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-title::after {
        width: 40px;
    }
    
    .content-grid {
        gap: 10px;
    }
    
    .card-btn {
        height: 36px;
        font-size: 12px;
    }
    
    .card-title {
        font-size: 12px;
    }
    
    .card-meta {
        font-size: 10px;
    }
}