:root { --primary-color: #0d253f; --secondary-color: #01b4e4; --tertiary-color: #90cea1; --dark-color: #0b1a2a; --light-color: #f8f9fa; --text-color: #e5e5e5; --text-secondary: #b0b0b0; --card-bg: #1a2a3a; --hover-color: #2c3e50; --transition: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--dark-color); color: var(--text-color); line-height: 1.6; } a { text-decoration: none; color: var(--text-color); transition: var(--transition); } a:hover { color: var(--secondary-color); } .container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; } /* Header Styles */ .header { background-color: var(--primary-color); padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); } .header .container { display: flex; justify-content: space-between; align-items: center; } .logo a { font-size: 1.8rem; font-weight: 700; color: var(--secondary-color); } .logo a:hover { color: var(--tertiary-color); } .navbar ul { display: flex; list-style: none; } .navbar ul li { margin-left: 20px; } .navbar ul li a { font-weight: 500; font-size: 1rem; } .search-bar { display: flex; align-items: center; } .search-bar input { padding: 8px 15px; border-radius: 20px; border: none; background-color: var(--card-bg); color: var(--text-color); width: 200px; transition: var(--transition); } .search-bar input:focus { outline: none; width: 250px; box-shadow: 0 0 5px var(--secondary-color); } .search-bar button { background: none; border: none; color: var(--text-color); cursor: pointer; margin-left: -35px; } .mobile-menu { display: none; font-size: 1.5rem; cursor: pointer; } /* Hero Section */ .hero { background: linear-gradient(rgba(13, 37, 63, 0.8), rgba(13, 37, 63, 0.8)), url('https://image.tmdb.org/t/p/original/wwemzKWzjKYJFfCeiB57q3r4Bcm.png') no-repeat center center/cover; height: 70vh; display: flex; align-items: center; text-align: center; margin-top: 60px; } .hero-content { width: 100%; max-width: 800px; margin: 0 auto; padding: 20px; } .hero h1 { font-size: 3rem; margin-bottom: 20px; color: var(--light-color); } .hero p { font-size: 1.2rem; margin-bottom: 30px; color: var(--text-secondary); } .btn { display: inline-block; padding: 10px 25px; background-color: var(--secondary-color); color: var(--primary-color); border-radius: 5px; font-weight: 600; transition: var(--transition); } .btn:hover { background-color: var(--tertiary-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } /* Movie Sections */ .movie-section { padding: 50px 0; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; } .section-header h2 { font-size: 1.8rem; color: var(--secondary-color); } .see-all { font-size: 0.9rem; color: var(--tertiary-color); } .movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; } .movie-card { background-color: var(--card-bg); border-radius: 8px; overflow: hidden; transition: var(--transition); position: relative; } .movie-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); } .movie-poster { position: relative; width: 100%; height: 300px; overflow: hidden; } .movie-poster img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); } .movie-card:hover .movie-poster img { transform: scale(1.05); } .movie-rating { position: absolute; top: 10px; left: 10px; background-color: rgba(0, 0, 0, 0.7); color: var(--tertiary-color); padding: 5px 8px; border-radius: 5px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; } .movie-rating i { color: gold; margin-right: 5px; font-size: 0.8rem; } .play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(1, 180, 228, 0.8); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); } .movie-card:hover .play-button { opacity: 1; } .movie-info { padding: 15px; } .movie-title { font-size: 1rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .movie-date { font-size: 0.8rem; color: var(--text-secondary); } /* Footer Styles */ .footer { background-color: var(--primary-color); padding: 50px 0 20px; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; } .footer-section h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--secondary-color); } .footer-section ul { list-style: none; } .footer-section ul li { margin-bottom: 10px; } .social-links { display: flex; gap: 15px; } .social-links a { font-size: 1.2rem; color: var(--text-secondary); } .social-links a:hover { color: var(--secondary-color); } .footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; color: var(--text-secondary); } /* Movie Detail Page */ .movie-detail { padding: 80px 0 50px; } .detail-container { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; } .movie-poster-large { border-radius: 10px; height: min-content; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } .movie-poster-large img { width: 100%; height: 0 auto; display: block; } .movie-meta { margin-bottom: 20px; } .movie-title-large { font-size: 2.5rem; margin-bottom: 10px; color: var(--light-color); } .movie-tagline { font-style: italic; color: var(--text-secondary); margin-bottom: 15px; } .movie-facts { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; } .movie-facts span { display: inline-block; padding: 5px 10px; background-color: var(--card-bg); border-radius: 5px; font-size: 0.9rem; } .movie-rating-large { display: flex; align-items: center; margin-bottom: 20px; } .rating-circle { width: 60px; height: 60px; border-radius: 50%; background-color: var(--primary-color); border: 3px solid var(--tertiary-color); display: flex; align-items: center; justify-content: center; margin-right: 15px; font-weight: 700; font-size: 1.2rem; } .rating-text { font-size: 0.9rem; color: var(--text-secondary); } .movie-overview h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--secondary-color); } .movie-overview p { margin-bottom: 20px; line-height: 1.7; } .cast-section { margin-top: 50px; } .cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px; margin-top: 20px; } .cast-card { text-align: center; } .cast-image { width: 100%; height: 150px; border-radius: 8px; overflow: hidden; margin-bottom: 10px; } .cast-image img { width: 100%; height: 100%; object-fit: cover; } .cast-name { font-size: 0.9rem; font-weight: 500; } .cast-character { font-size: 0.8rem; color: var(--text-secondary); } /* Search Page */ .search-results { padding: 80px 0 50px; } .search-header { margin-bottom: 30px; } .search-header h1 { font-size: 1.8rem; color: var(--secondary-color); } .search-header h1 span { color: var(--tertiary-color); } .no-results { text-align: center; padding: 50px 0; } .no-results i { font-size: 3rem; color: var(--text-secondary); margin-bottom: 20px; } .no-results p { font-size: 1.2rem; color: var(--text-secondary); } /* Loading Spinner */ .loading-spinner { display: flex; justify-content: center; align-items: center; padding: 50px 0; } .spinner { width: 50px; height: 50px; border: 5px solid rgba(1, 180, 228, 0.3); border-radius: 50%; border-top-color: var(--secondary-color); animation: spin 1s ease-in-out infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Responsive Styles */ @media (max-width: 992px) { .detail-container { grid-template-columns: 1fr; } .movie-poster-large { max-width: 400px; margin: 0 auto; } } @media (max-width: 768px) { .navbar { position: fixed; top: 70px; left: -100%; width: 80%; height: calc(100vh - 70px); background-color: var(--primary-color); transition: var(--transition); z-index: 999; } .navbar.active { left: 0; } .navbar ul { flex-direction: column; padding: 20px; } .navbar ul li { margin: 15px 0; } .mobile-menu { display: block; } .search-bar { display: none; } .hero h1 { font-size: 2.2rem; } .hero p { font-size: 1rem; } } @media (max-width: 576px) { .movie-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .hero { height: 60vh; } .hero h1 { font-size: 1.8rem; } .movie-title-large { font-size: 1.8rem; } }