body {
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: #0a0a0a;
    color: #ffffff;
}

h2 {
    color: #e50914;
}

p {
    color: #cccccc;
}

.container {
    margin-top: 40px;
}

.auth-title {
    color: #e50914;
}

.auth-box {
    border: 2px solid #333333;
    background: #1a1a1a;
    width: 450px;
    margin: 30px auto;
    padding: 35px;
    text-align: left;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.2);
}

.auth-box label {
    display: inline-block;
    font-weight: bold;
    color: #ffffff;
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 200px;
    padding: 6px;
    border: 1px solid #333333;
    border-radius: 8px;
    display: block;
    background: #2a2a2a;
    color: #ffffff;
}

.auth-box input[type="text"]:focus,
.auth-box input[type="email"]:focus,
.auth-box input[type="password"]:focus {
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 5px #e50914;
}

.auth-box .options {
    margin-top: 10px;
    font-size: 14px;
    color: #cccccc;
}

.links {
    margin-top: 18px;
    text-align: center;
}

.links a {
    margin: 0 12px;
    text-decoration: none;
    color: #e50914;
    font-weight: bold;
    transition: color 0.3s;
}

.links a:hover {
    color: #ff6b6b;
}

.btn {
    background: #e50914;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    transition: background 0.3s;
}

.btn:hover {
    background: #ff6b6b;
}

footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #666666;
}

.error {
    color: #e50914;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    background: #2a1a1a;
    border: 1px solid #e50914;
    border-radius: 8px;
}

.hero h2 {
    color: white;
    margin-bottom: 10px;
}

.hero p {
    color: #f0f0f0;
    margin: 5px 0;
}

.movies-carousel {
    margin: 40px 0;
    text-align: center;
}

.movies-carousel h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
}

.carousel-slide {
    min-width: 200px;
    height: 300px;
    margin: 0 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 20px 10px 10px;
    color: white;
}

.movie-title {
    display: block;
    font-weight: bold;
    font-size: 14px;
}

.release-date {
    font-size: 12px;
    color: #e50914;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 3 - 20px * 3)); }
}

.carousel-track:hover {
    animation-play-state: paused;
}

/* movies_carousel.css */
.movies-carousel {
    margin: 40px 0;
    text-align: center;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.movies-carousel h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-track {
    display: flex;
    animation: scroll 40s linear infinite;
    gap: 15px;
    padding: 0 20px;
}

.carousel-slide {
    min-width: 220px;
    height: 330px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.carousel-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(229, 9, 20, 0.3);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.1);
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 25px 15px 15px;
    color: white;
    transform: translateY(5px);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .slide-info {
    transform: translateY(0);
}

.movie-title {
    display: block;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.release-date {
    font-size: 13px;
    color: #e50914;
    font-weight: 600;
}

.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Анимация карусели */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-220px * 8 - 15px * 8));
    }
}

.carousel-track:hover {
    animation-play-state: paused;
}

/* Элементы управления каруселью */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: rgba(229, 9, 20, 0.9);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: #e50914;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #e50914;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: #e50914;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .movies-carousel {
        max-width: 1000px;
    }
    
    .carousel-slide {
        min-width: 200px;
        height: 300px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-200px * 8 - 15px * 8));
        }
    }
}

@media (max-width: 768px) {
    .movies-carousel {
        margin: 30px 0;
        padding: 0 15px;
    }
    
    .movies-carousel h3 {
        font-size: 22px;
    }
    
    .carousel-slide {
        min-width: 160px;
        height: 240px;
    }
    
    .carousel-track {
        gap: 10px;
        padding: 0 15px;
    }
    
    .movie-title {
        font-size: 14px;
    }
    
    .release-date {
        font-size: 12px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-160px * 8 - 10px * 8));
        }
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-controls {
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .movies-carousel h3 {
        font-size: 20px;
    }
    
    .carousel-slide {
        min-width: 140px;
        height: 210px;
    }
    
    .slide-info {
        padding: 15px 10px 8px;
    }
    
    .movie-title {
        font-size: 12px;
    }
    
    .release-date {
        font-size: 11px;
    }
    
    .rating {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-140px * 8 - 10px * 8));
        }
    }
}

/* Анимация загрузки */
.carousel-slide img {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Эффект затемнения по краям */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9), transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(10, 10, 10, 0.9), transparent);
}

@media (max-width: 768px) {
    .carousel-container::before,
    .carousel-container::after {
        width: 30px;
    }
}