/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигационная панель */
.navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e50914;
    text-decoration: none;
}

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

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e50914;
}

/* Главный баннер */
.hero-banner {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 70px;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 20px;
}

.banner-info {
    margin-bottom: 30px;
}

.banner-info span {
    margin-right: 20px;
    font-weight: 500;
}

.rating {
    color: #ffc107;
}

.banner-buttons .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #e50914;
    color: #ffffff;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

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

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #0f0f0f);
}

/* Секции */
section {
    padding: 60px 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    border-left: 4px solid #e50914;
    padding-left: 15px;
}

/* Карусель */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #e50914 #1f1f1f;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

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

.carousel::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 10px;
}

.carousel-item {
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 20px;
}

.item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Сетка фильмов */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.movie-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

.movie-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-content p {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.card-content .rating {
    display: block;
    margin: 10px 0;
}

.btn-watch {
    display: inline-block;
    background: #e50914;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-watch:hover {
    background: #f40612;
}

/* Подвал */
footer {
    background: #1a1a1a;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #333;
}

/* Стили для страницы фильма */
.movie-detail-page {
    margin-top: 70px;
}

.player-section {
    background: #000;
    padding: 40px 0;
}

.video-placeholder {
    background: #1a1a1a;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: #b3b3b3;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #e50914;
}

.movie-info {
    padding: 60px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.poster img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.details h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.meta-info {
    margin-bottom: 30px;
}

.meta-info span {
    margin-right: 20px;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #cccccc;
}

.additional-info {
    margin-bottom: 30px;
}

.info-block {
    margin-bottom: 20px;
}

.info-block h3 {
    color: #e50914;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-banner {
        height: 60vh;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
}