/* Общие настройки */
body {
    background-color: #0f0f0f;
    color: #efefef;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

/* Контейнер поиска */
.search-container {
    text-align: center;
    margin-bottom: 40px;
    z-index: 10;
}

h1 {
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

input {
    padding: 14px 20px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    width: 350px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #007bff;
}

button {
    padding: 14px 28px;
    border-radius: 6px;
    border: none;
    background: #007bff;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

button:hover {
    background: #0056b3;
}

button:active {
    transform: scale(0.98);
}

/* Карусель */
.carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 30px;
    /* Настройка скроллбара для Webkit */
}

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

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

.carousel {
    display: flex;
    gap: 25px;
    padding: 0 10vw; /* Отступы по бокам */
}

.carousel img {
    height: 450px;
    min-width: 300px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #1a1a1a;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel img:hover {
    transform: translateY(-10px) scale(1.03);
}

.placeholder {
    width: 100%;
    text-align: center;
    color: #444;
    font-size: 1.2rem;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.carousel img {
    animation: fadeIn 0.5s ease forwards;
}
