.error-container {
    text-align: center;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

.error-code {
    font-size: 100px;
    color: #e50914;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.error-message {
    font-size: 22px;
    color: #f0f0f0;
    margin: 15px 0;
}

.error-description {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.recommendations {
    margin-top: 30px;
    text-align: left;
    width: 100%;
    overflow: hidden;
}

.recommendations h2 {
    color: #f0f0f0;
    margin-bottom: 15px;
    font-size: 22px;
}

.movie-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
}

.movie-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 205px;
    box-sizing: border-box;
}

.movie-item:hover {
    transform: translateY(-5px);
    background: #3a3a3a;
}

.movie-item img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.movie-item h3 {
    color: #f0f0f0;
    font-size: 16px;
    margin: 8px 0;
}

.movie-item p {
    color: #f0f0f0;
    font-size: 14px;
    margin: 4px 0;
}

.movie-item .imdb {
    color: #f5c518;
    font-weight: bold;
}

.home-button {
    display: inline-block;
    background: #e50914;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.home-button:hover {
    background: #ff0f1f;
}

@media (max-width: 1400px) {
    .movie-list {
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
    }
    .movie-item {
        max-width: 205px;
    }
}

@media (max-width: 1200px) {
    .movie-list {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }
    .movie-item {
        max-width: 205px;
    }
}

@media (max-width: 992px) {
    .movie-list {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
    .movie-item {
        max-width: 205px;
    }
}

@media (max-width: 768px) {
    .error-code {
        font-size: 70px;
    }
    .movie-list {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 12px;
        scrollbar-width: thin;
        scrollbar-color: #e50914 #2a2a2a;
        justify-content: flex-start;
    }
    .movie-list::-webkit-scrollbar {
        height: 6px;
    }
    .movie-list::-webkit-scrollbar-track {
        background: #2a2a2a;
        border-radius: 3px;
    }
    .movie-list::-webkit-scrollbar-thumb {
        background: #e50914;
        border-radius: 3px;
    }
    .movie-item {
        flex: 0 0 205px;
        min-width: 205px;
        max-width: none;
    }
    .movie-item img {
        height: 270px;
    }
}

@media (max-width: 480px) {
    .movie-item {
        flex: 0 0 160px;
        min-width: 160px;
    }
    .movie-item img {
        height: 210px;
    }
} 