/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    --primary-color: #e50914;
    --primary-hover: #f40612;
    --primary-text: #ffffff;
    --secondary-text: #e5e5e5;
    --dark-bg: #141414;
    --lighter-dark: #181818;
    --medium-dark: #222222;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-gradient: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.8) 100%);
    --winter-color: #68c6e8;
    --spring-color: #8bc34a;
    --summer-color: #ff9800;
    --fall-color: #ff5722;
    --border-radius: 4px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--primary-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-text);
}

img {
    max-width: 100%;
}

/* Utility Classes */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

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

/* Header/Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease;
    
  
}

.header.scrolled {
    background-color: rgba(20, 20, 20, 0.705);
    backdrop-filter: blur(10px);
   
}

header img {
    width: 100px !important;
    cursor: pointer;
    margin-top: 10px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 4%;

}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-right: 20px;
}

.main-nav ul li a {
    color: var(--secondary-text);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li.active a,
.main-nav ul li a:hover {
    color: var(--primary-text);
}

.main-nav ul li.active a::after,
.main-nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-container {
    position: relative;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.search-container input {
    background-color: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 2.8rem 0.6rem 1rem;
    border-radius: 20px;
    color: var(--primary-text);
    width: 0;
    opacity: 0;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.search-container.active input {
    width: 240px;
    opacity: 1;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-container button {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container button:hover {
    color: var(--primary-text);
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.user-profile img:hover {
    transform: scale(1.1);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 80vh;
    margin-top: 0;
    background-size: cover;
    background-position: center;
    color: var(--primary-text);
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-gradient);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4%;
    max-width: 40%;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-text);
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons button {
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.hero-buttons button i {
    margin-right: 8px;
}

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

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

.more-info-btn {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}

.more-info-btn:hover {
    background-color: rgba(109, 109, 110, 0.9);
}

/* Seasonal Content Section */
.seasonal-row {
    margin-top: 30px;
    position: relative;
}

.seasonal-row .row-title {
    display: flex;
    align-items: center;
}

.seasonal-row .row-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
}

/* Main Content */
.content {
    padding: 0 4% 50px;
}

.movie-row {
    margin-top: 3rem;
    position: relative;
}

.row-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--secondary-text);
}

.movie-slider {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    position: relative;
}

.movie-slider::-webkit-scrollbar {
    display: none;
}

.movie-card {
    min-width: 200px;
    max-width: 225px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background-color: var(--lighter-dark);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

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

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}


  

.movie-card:hover .movie-info {
    opacity: 1;
    transform: translateY(0);
}

.movie-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-rating {
    color: #FFC107;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.movie-rating i {
    margin-right: 5px;
}

.movie-actions {
    display: flex;
    gap: 12px;
}

.movie-actions i {
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.movie-actions i:hover {
    color: var(--primary-color);
}

.content-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: var(--border-radius);
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 5;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.movie-card:hover .content-type-badge {
    opacity: 1;
}

.seasonal-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    left: 10px;
    right: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    margin: 80px auto;
    border-radius: var(--border-radius);
    background-color: var(--lighter-dark);
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.3s ease-in-out;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    font-size: 1.8rem;
    color: var(--secondary-text);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    position: relative;
}

.modal-backdrop {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-backdrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--lighter-dark) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-details {
    padding: 30px;
    position: relative;
    top: -80px;
    margin-bottom: -80px;
}

.modal-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
    color: var(--secondary-text);
    font-size: 1rem;
}

.modal-overview {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.modal-cast {
    margin-top: 2rem;
}

.cast-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.cast-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.cast-item {
    text-align: center;
    min-width: 120px;
}

.cast-item img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    box-shadow: var(--box-shadow);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions button,
.modal-actions a {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modal-actions .play-btn {
    background-color: var(--primary-color);
    color: white;
    min-width: 120px;
}

.modal-actions .play-btn:hover {
    background-color: var(--primary-hover);
}

.modal-actions .add-list-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-actions .add-list-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-actions .more-info-btn {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}

.modal-actions .more-info-btn:hover {
    background-color: rgba(109, 109, 110, 0.9);
}

/* Remove unnecessary elements */
.download-btn {
    display: none;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--secondary-text);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero-content {
        max-width: 60%;
    }
    
    .modal-content {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: none ;
    }
    
    .hero-content {
        max-width: 80%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 60px auto;
    }
    
    .modal-backdrop {
        height: 300px;
    }
    
    
    .search-container.active input {
        width: 150px;
    }
}

@media screen and (max-width: 576px) {
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-actions {
        flex-wrap: wrap;
    }
    
    .modal-actions button,
    .modal-actions a {
        width: 100%;
    }
    
    .movie-card {
        min-width: 150px;
    }
    
    .movie-card img {
        height: 225px;
    }
    
    .cast-item {
        min-width: 100px;
    }
    
    .cast-item img {
        width: 100px;
        height: 150px;
    }
}

/* Footer Styles */
.footer {
    padding: 2rem 4%;
    background-color: var(--dark-bg);
    margin-top: 3rem;
  
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-section p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--secondary-text);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-text);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    max-height: 400px;
    background-color: var(--lighter-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-text);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-results-count {
    font-weight: 500;
}

.search-results-clear {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.search-results-clear:hover {
    color: var(--primary-hover);
}

.search-results-list {
    padding: 8px 0;
}

.search-result-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.search-result-thumb {
    width: 45px;
    height: 65px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex-grow: 1;
    min-width: 0;
}

.search-result-title {
    color: var(--primary-text);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-details {
    color: var(--secondary-text);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-year {
    color: rgba(255, 255, 255, 0.5);
}

.search-result-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-result-rating i {
    color: #FFC107;
    font-size: 0.8rem;
}

.no-results-found {
    padding: 24px 16px;
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    transition: all 0.3s ease;
    opacity: 0;
}

.movie-row:hover .slider-nav {
    opacity: 1;
}

.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.right {
    right: 10px;
}

.slider-nav.left {
    left: 10px;
} 