/* Основные стили */
html, body {
    overflow-x: hidden; /* Запрет горизонтальной прокрутки */
    width: 100%;
    max-width: 100%; /* Ограничиваем ширину */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Поиск */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background-color: #222;
    margin: 20px auto;
    max-width: 800px;
    width: 90%; /* Ширина контейнера поиска */
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-input {
    padding: 10px;
    border: none;
    border-radius: 20px;
    width: 100%; /* Занимает всю доступную ширину */
    background-color: #333;
    color: #fff;
    box-sizing: border-box; /* Учитываем padding в ширине */
}

.search-select {
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: #333;
    color: #fff;
    width: 100%; /* Занимает всю доступную ширину */
    box-sizing: border-box; /* Учитываем padding в ширине */
}

.search-button {
    padding: 10px 20px;
    background-color: #ffcc00;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    width: 100%; /* Занимает всю доступную ширину */
    box-sizing: border-box; /* Учитываем padding в ширине */
}

.search-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* Список аниме */
.anime-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем блоки по горизонтали */
    gap: 20px; /* Расстояние между блоками */
    padding: 20px;
    max-width: 2000px;
    width: 100%; /* Ширина списка аниме */
    margin: 0 auto; /* Центрируем контейнер */
    box-sizing: border-box; /* Учитываем padding в ширине */
}

.anime-box {
    width: 100%; /* На мобильных устройствах занимает всю ширину */
    max-width: 600px; /* Ограничиваем максимальную ширину */
    background-color: #333;
    padding: 15px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Учитываем padding в ширине */
}

.anime-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.anime-box img {
    width:  100%;
    height: auto; /* Автоматическая высота для сохранения пропорций */
    object-fit: fill;
    border-radius: 20px;
}

.anime-box h3 {
    margin: 15px 0 10px;
    font-size: 1.3em;
    font-weight: bold;
}

.anime-box p {
    margin: 5px 0;
    color: #ccc;
    font-size: 0.9em;
}

/* Стили для рейтинга */
.rating-container {
    width: 100%;
    margin: 15px 0;
    text-align: center;
}

.rating-value {
    display: inline-block;
    font-size: 1.4em;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}

.rating-excellent {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.2) !important;
    border: 2px solid rgba(40, 167, 69, 0.4);
}

.rating-good {
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.2) !important;
    border: 2px solid rgba(255, 193, 7, 0.4);
}

.rating-average {
    color: #fd7e14;
    background-color: rgba(253, 126, 20, 0.2) !important;
    border: 2px solid rgba(253, 126, 20, 0.4);
}

.rating-poor {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.2) !important;
    border: 2px solid rgba(220, 53, 69, 0.4);
}

/* Стили для статусов */
.status {
    margin: 10px 0;
    font-weight: bold;
    width: 100%;
}

.status .ongoing {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

.status .completed {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* Кнопка "Смотреть" */
.watch-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #000;
    text-decoration: none;
    border-radius: 20px; /* Закругляем углы */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.watch-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px); /* Эффект при наведении */
}

/* Рейтинг */
.rating {
    margin: 20px 0;
    text-align: center;
}

.stars {
    display: inline-block;
    font-size: 23px;
    cursor: pointer;
}

.star {
    color: #ccc;
    transition: color 0.2s;
}

.star.active,
.star:hover {
    color: #ffcc00;
}

.stars.hidden {
    display: none;
}

.average-rating {
    font-size: 1.2em;
    color: #ffcc00;
    margin-top: 10px;
}

/* Кнопка "Вверх" */
.scroll-top {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 10px 10px;
    background-color: #ffcc00;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.0em;
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
}

.scroll-top:hover {
    background-color: #e6b800;
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 15px;
        width: 90%; /* Ширина контейнера поиска на планшетах */
    }

    .search-input,
    .search-select,
    .search-button {
        width: 100%; /* Занимают всю ширину контейнера */
    }

    .anime-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        width: 100%; /* Ширина списка аниме на планшетах */
    }

    .anime-box img {
        height: auto; /* Автоматическая высота для сохранения пропорций */
    }

    .scroll-top {
        bottom: 100px;
        right: 10px;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #ffcc00, #e6b800);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: opacity 0.3s, transform 0.3s, background 0.3s;
        opacity: 1; /* Показываем кнопку */
        visibility: visible; /* Делаем кнопку видимой */
    }

    .scroll-top:hover {
        background: linear-gradient(135deg, #e6b800, #ffcc00);
        transform: scale(1.1); /* Увеличиваем кнопку при наведении */
    }

    .scroll-top i {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .anime-list {
        grid-template-columns: 1fr; /* Один элемент в ряд */
    }

    .anime-box img {
        height: auto; /* Автоматическая высота для сохранения пропорций */
    }

    .anime-box h3 {
        font-size: 1.1em;
    }

    .anime-box p {
        font-size: 0.8em;
    }
}

/* Стили для раскрывающихся разделов */
.section {
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    background-color: #333;
    transition: background-color 0.3s ease;
}

.section-header {
    padding: 15px;
    margin: 0;
    cursor: pointer;
    background-color: #444;
    color: #fff;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header:hover {
    background-color: #555;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.section.open .section-content {
    max-height: 500px; /* Максимальная высота контента */
    padding: 15px;
}

.section.open {
    background-color: #444;
}

.arrow {
    transition: transform 0.3s ease;
}

.section.open .arrow {
    transform: rotate(180deg);
}

/* Стили для кнопки "Продолжить просмотр" */
.continue-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50; /* Зеленый цвет */
    color: #fff; /* Белый текст */
    text-decoration: none;
    border-radius: 25px; /* Закругляем углы */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.continue-button:hover {
    background-color: #45a049; /* Темнее зеленый при наведении */
    transform: translateY(-2px); /* Эффект поднятия */
}

/* Стили для кнопки "Удалить" */
.remove-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ff4444; /* Красный цвет */
    color: #fff; /* Белый текст */
    text-decoration: none;
    border-radius: 25px; /* Закругляем углы */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    margin-left: 10px; /* Отступ от кнопки "Продолжить просмотр" */
}

.remove-button:hover {
    background-color: #cc0000; /* Темнее красный при наведении */
    transform: translateY(-2px); /* Эффект поднятия */
}

/* Стили для кнопки "Перейти к аниме" */
.watch-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.watch-button:hover {
    background-color: #e6b800; /* Темнее желтый при наведении */
    transform: translateY(-2px); /* Эффект поднятия */
}

/* Стили для кнопки "Удалить" */
.remove-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ff4444; /* Красный цвет */
    color: #fff; /* Белый текст */
    text-decoration: none;
    border-radius: 25px; /* Закругляем углы */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    margin-left: 10px; /* Отступ от кнопки "Перейти к аниме" */
}

.remove-button:hover {
    background-color: #cc0000; /* Темнее красный при наведении */
    transform: translateY(-2px); /* Эффект поднятия */
}/* Основные стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden; /* Запрет горизонтальной прокрутки */
}

.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Поиск */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background-color: #222;
    margin: 20px auto;
    max-width: 800px;
    width: 90%; /* Ширина контейнера поиска */
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-input {
    padding: 10px;
    border: none;
    border-radius: 20px;
    width: 100%; /* Занимает всю доступную ширину */
    background-color: #333;
    color: #fff;
}

.search-select {
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: #333;
    color: #fff;
    width: 100%; /* Занимает всю доступную ширину */
}

.search-button {
    padding: 10px 20px;
    background-color: #ffcc00;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    width: 100%; /* Занимает всю доступную ширину */
}

.search-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* Список аниме */
.anime-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем блоки по горизонтали */
    gap: 20px; /* Расстояние между блоками */
    padding: 20px;
    max-width: 1200px;
    width: 90%; /* Ширина списка аниме */
    margin: 0 auto; /* Центрируем контейнер */
}

.anime-box {
    width: 300px; /* Фиксированная ширина блока */
    background-color: #333;
    padding: 15px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.anime-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.anime-box h3 {
    margin: 15px 0 10px;
    font-size: 1.3em;
    font-weight: bold;
}

.anime-box p {
    margin: 5px 0;
    color: #ccc;
    font-size: 0.9em;
}

/* Кнопка "Смотреть" */
.watch-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #000;
    text-decoration: none;
    border-radius: 25px; /* Закругляем углы */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.watch-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px); /* Эффект при наведении */
}

/* Рейтинг */
.rating {
    margin: 20px 0;
    text-align: center;
}

.stars {
    display: inline-block;
    font-size: 23px;
    cursor: pointer;
}

.star {
    color: #ccc;
    transition: color 0.2s;
}

.star.active,
.star:hover {
    color: #ffcc00;
}

.stars.hidden {
    display: none;
}

.average-rating {
    font-size: 1.2em;
    color: #ffcc00;
    margin-top: 10px;
}

/* Кнопка "Вверх" */
.scroll-top {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 10px 10px;
    background-color: #ffcc00;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.0em;
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
}

.scroll-top:hover {
    background-color: #e6b800;
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 15px;
        width: 90%; /* Ширина контейнера поиска на планшетах */
    }

    .search-input,
    .search-select,
    .search-button {
        width: 100%; /* Занимают всю ширину контейнера */
    }

    .anime-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        width: 90%; /* Ширина списка аниме на планшетах */
    }

    .anime-box img {
        height: 200px;
    }
 .logo img {
        max-width: 120px; /* Уменьшаем логотип для планшетов */

    .scroll-top {
        bottom: 150px;
        right: 0px;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #ffcc00, #e6b800);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: opacity 0.3s, transform 0.3s, background 0.3s;
        opacity: 0; /* Скрываем кнопку по умолчанию */
        visibility: hidden; /* Скрываем кнопку из DOM */
        z-index: 10000;
    }

    .scroll-top.show {
        opacity: 1; /* Показываем кнопку */
        visibility: visible; /* Делаем кнопку видимой */
    }

    .scroll-top:hover {
        background: linear-gradient(135deg, #e6b800, #ffcc00);
        transform: scale(1.1); /* Увеличиваем кнопку при наведении */
    }

    .scroll-top i {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .anime-list {
        grid-template-columns: 1fr; /* Один элемент в ряд */
    }

    .anime-box img {
        height: 150px;
    }

    .anime-box h3 {
        font-size: 1.1em;
    }

    .anime-box p {
        font-size: 0.8em;
    }
.logo img {
        max-width: 80px; /* Ещё меньше логотип для очень маленьких экранов */
    }
}

/* Стили для раскрывающихся разделов */
.section {
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    background-color: #333;
    transition: background-color 0.3s ease;
}

.section-header {
    padding: 15px;
    margin: 0;
    cursor: pointer;
    background-color: #444;
    color: #fff;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header:hover {
    background-color: #555;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.section.open .section-content {
    max-height: 500px; /* Максимальная высота контента */
    padding: 15px;
}

.section.open {
    background-color: #444;
}

.arrow {
    transition: transform 0.3s ease;
}

.section.open .arrow {
    transform: rotate(180deg);
}

/* Стили для кнопки "Продолжить просмотр" */
.continue-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50; /* Зеленый цвет */
    color: #fff; /* Белый текст */
    text-decoration: none;
    border-radius: 25px; /* Закругляем углы */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.continue-button:hover {
    background-color: #45a049; /* Темнее зеленый при наведении */
    transform: translateY(-2px); /* Эффект поднятия */
}

/* Стили для кнопки "Удалить" */
.remove-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ff4444; /* Красный цвет */
    color: #fff; /* Белый текст */
    text-decoration: none;
    border-radius: 25px; /* Закругляем углы */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    margin-left: 10px; /* Отступ от кнопки "Продолжить просмотр" */
}

.remove-button:hover {
    background-color: #cc0000; /* Темнее красный при наведении */
    transform: translateY(-2px); /* Эффект поднятия */
}

/* Стили для кнопки "Перейти к аниме" */
.watch-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ffcc00; /* Желтый цвет */
    color: #000; /* Черный текст */
    text-decoration: none;
    border-radius: 25px; /* Закругляем углы */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.watch-button:hover {
    background-color: #e6b800; /* Темнее желтый при наведении */
    transform: translateY(-2px); /* Эффект поднятия */
}

/* Стили для кнопки "Удалить" */
.remove-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ff4444; /* Красный цвет */
    color: #fff; /* Белый текст */
    text-decoration: none;
    border-radius: 25px; /* Закругляем углы */
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    margin-left: 10px; /* Отступ от кнопки "Перейти к аниме" */
}

.remove-button:hover {
    background-color: #cc0000; /* Темнее красный при наведении */
    transform: translateY(-2px); /* Эффект поднятия */
}

.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #444;
}

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

.site-footer p {
    margin: 5px 0;
    font-size: 14px;
}
.status {
    font-weight: bold;
    margin: 10px 0;
}

.ongoing {
    color: #28a745; /* Зеленый для онгоинга */
}

.completed {
    color: #dc3545; /* Красный для завершенного */
}

/* Стили для статусов */
.status {
    margin: 10px 0;
    font-weight: bold;
}

.status .ongoing {
    color: #ffcc00; /* Желтый цвет для онгоинга */
}

.status .completed {
    color: #28a745; /* Зеленый цвет для завершенных */
}
