@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.social-icon {
  display: inline-block;
  width: 34px;
  height: 30px;
  background: url(/img/icon/footer/social.png) no-repeat;
  margin-right: 6px;
}
.social-icon--twitter {
  background-position: 0 0;
  background-image: url(/img/icon/footer/twitter.png);
}
.social-icon--facebook {
  background-position: 0 0;
  background-image: url(/img/icon/footer/facebook.png);
}
.social-icon--google {
  background-position: 0 0;
  background-image: url(/img/icon/footer/google.png);
}
.social-icon--small {
  width: 16px;
  height: 16px;
  background-image: url(/img/icon/footer/social-small.png);
}
.social-icon--small.twitter {
  background-position: 0 0;
}
.social-icon--small.youtube {
  background-position: -16px 0;
}
.social-icon--small.flickr {
  background-position: -32px 0;
}
.social-icon--small.instagram {
  background-position: -48px 0;
}
.social-icon--small.rss {
  background-position: -64px 0;
}

body {
  margin: 0;
  background-color: #222222;
  font-family: "Oswald", sans-serif;
}

.header {
  width: 100%;
  background-color: #535455;
  padding: 20px 0;
}
.header__container {
  max-width: 1320px;
  margin: 0 auto !important;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.header nav {
  width: 100%;
}

.top-menu {
  display: flex !important;
  width: 100% !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #8a8988;
  border-radius: 4px;
}
.top-menu li {
  flex: 1 1 0;
  text-align: center;
  list-style: none !important;
  transition: background 0.3s ease;
}
.top-menu li a {
  display: block;
  padding: 15px 0;
  width: 100%;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font: 14px "Oswald", sans-serif;
}
.top-menu li.active, .top-menu li:hover {
  background-color: #f19e31;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .top-menu {
    display: none !important;
    flex-direction: column;
  }
  .top-menu.is-open {
    display: flex !important;
  }
  .top-menu li {
    flex: none;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .top-menu li a {
    text-align: center;
    padding: 15px 20px;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
}

.search-block {
  margin-bottom: 0px;
}
.search-block__input {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.news-section {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
  background-color: #3e3f40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 20px auto;
  padding: 20px;
  max-width: 750px;
  margin: 5 auto;
  padding: 40px 20px;
}
@media screen and (max-width: 768px) {
  .news-section {
    margin: 10px;
    padding: 15px;
  }
}
.news-section__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.news-section__title {
  text-align: center;
  color: #eee;
  padding: 10px;
}
@media screen and (max-width: 480px) {
  .news-section__title {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .fonts-item p {
    font-size: 14px;
  }
}
.fonts-item h3 a {
  color: #2980b9;
  text-decoration: none;
}
.fonts-item h3 a:hover {
  text-decoration: underline;
}
.fonts-item small {
  display: block;
  margin-top: 10px;
  color: #888;
  font-style: italic;
}

.rss-card {
  width: 100%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.rss-card:hover {
  transform: translateY(-5px);
}
.rss-card_image {
  width: 100%;
  height: 350px;
  overflow: hidden;
}
.rss-card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rss-card_content {
  padding: 25px 35px;
  display: flex;
  flex-direction: column;
}
.rss-card_content h3 {
  margin: 0 0 15px 0;
  font-size: 24px;
}
.rss-card_content h3 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}
.rss-card_content h3 a:hover {
  color: #ffcc00;
}
.rss-card_text {
  color: #d1d1d1;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.rss-card_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.rss-card_footer .rss-card_date {
  color: rgba(209, 209, 209, 0.6);
  font-size: 14px;
}
.rss-card_footer .rss-card_more {
  color: #ffcc00;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.rss-card_footer .rss-card_more:hover {
  text-decoration: underline;
}

button {
  color: #555;
  border: none;
  height: 32px;
}

.playlist button {
  background-color: #8a8988;
  border: 1px solid white;
  transition: 0.3s;
  color: white;
}
.playlist button.active {
  background-color: #f19e31;
}

.carousel-wrapper {
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
}

.slick-arrow {
  cursor: pointer;
  opacity: 0;
  position: absolute;
  font-size: 37px;
  color: #21f505;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
}

.player-title {
  color: #eee;
  margin-bottom: 20px;
  font-family: "Oswald", sans-serif;
  padding-left: 10px;
  border-left: 4px solid #f19e31;
}

.player-wrapper {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
}
@media (max-width: 992px) {
  .player-wrapper {
    grid-template-columns: 1fr;
  }
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.episodes-panel {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
  max-height: 450px;
  display: flex;
  flex-direction: column;
}
.episodes-panel__title {
  color: #ccc;
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
}

.episodes-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  overflow-y: auto;
  padding-right: 5px;
}
.episodes-list::-webkit-scrollbar {
  width: 5px;
}
.episodes-list::-webkit-scrollbar-thumb {
  background: #f19e31;
  border-radius: 10px;
}

.episode-btn {
  background: #4a4b4c;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Oswald", sans-serif;
}
.episode-btn:hover {
  background: rgb(99.16, 100.5, 101.84);
}
.episode-btn.active {
  background: #f19e31;
  box-shadow: 0 0 10px rgba(241, 158, 49, 0.4);
}

.footer {
  background: #535455;
  color: #dbdbdb;
  font-size: 11px;
  padding: 20px 0;
}
.footer__container {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 auto;
  gap: 20px;
}
.footer h3 {
  font: 14px "Oswald", sans-serif;
  color: #ffffff;
  border-bottom: 1px solid #919191;
  margin-bottom: 10px;
}
.footer a {
  color: #dbdbdb;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.footer__twitter {
  flex: 0 1 280px;
}
.footer__twitter time a {
  color: #b4aeae;
}
.footer__twitter p {
  padding-right: 15px;
  margin: 5px 0;
}
.footer__sitemap {
  flex: 0 1 150px;
}
.footer__sitemap .sitemap-links {
  display: flex;
  gap: 40px;
}
.footer__sitemap a {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.footer__social {
  flex: 0 1 130px;
}
.footer__logo {
  margin-top: 20px;
  font-size: 10px;
  text-align: right;
}

#wrapper {
  max-width: wrapper-max-width;
  margin: auto;
  background-color: #535455;
}

#main-page {
  background: #292929;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.anime-section {
  padding: 20px 0;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
  background-color: #3e3f40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 20px auto;
  padding: 20px;
}
.anime-section__title {
  color: #eee;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid #f19e31;
}

.anime-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(241, 158, 49, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: 0.3s;
}
.slider-btn:hover {
  background: #f19e31;
  transform: translateY(-50%) scale(1.1);
}
.slider-btn.prev-btn {
  left: -10px;
}
.slider-btn.next-btn {
  right: -10px;
}
@media (max-width: 768px) {
  .slider-btn {
    display: none;
  }
}

.anime-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px;
  scroll-behavior: smooth;
  width: 100%;
}
.anime-scroll-container::-webkit-scrollbar {
  display: none;
}
.anime-scroll-container::-webkit-scrollbar-thumb {
  background: #f19e31;
  border-radius: 10px;
}
.anime-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

/* Карточки выстроились в ряд */
.anime-container-mini {
  display: flex;
  gap: 15px; /* Расстояние между карточками */
}

.anime-card-mini {
  flex: 0 0 204px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
  transition: 0.3s;
  cursor: pointer;
}
.anime-card-mini:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.4);
}
.anime-card-mini__image {
  position: relative;
  height: 280px;
  margin-bottom: 10px;
}
.anime-card-mini__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.anime-card-mini__image .rating {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #f19e31;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
}
.anime-card-mini h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
  line-height: 1.4em;
  font-size: 14px;
  margin-top: 10px;
  color: #fff;
  text-align: center;
}

/* 1. Общий контейнер для кнопок (ширина как у плеера) */
.action-buttons {
  display: flex;
  flex-wrap: wrap; /* Позволяет элементам переноситься */
  gap: 10px;
  margin-top: 20px;
  max-width: 1280px; /* Ограничение по ширине плеера */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* 2. Секция "Порядок просмотра" — она управляет шириной списка */
.order-section {
  flex: 1 1 100%; /* Занимает всю ширину в контейнере */
  display: flex;
  flex-direction: column;
}

/* 3. Общий стиль для кнопок (чтобы были одинаковой высоты) */
.order-section .order-toggle,
.admin-add-btn {
  height: 42px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  border: none;
  width: fit-content; /* Кнопки по размеру текста, не растягиваются */
}

/* Оранжевая кнопка */
.order-section .order-toggle {
  background: #f19e31;
  color: #fff;
  white-space: nowrap;
}

/* Серая кнопка "Добавить" */
.admin-add-btn {
  background: #4a4b4c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-add-btn:hover {
  background: #f19e31;
}

/* 4. ВЫПАДАЮЩЕЕ МЕНЮ — на всю ширину секции */
.order-section .order-dropdown {
  width: 100%;
  box-sizing: border-box;
  max-height: 0; /* Изначально закрыто */
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease, margin-top 0.3s ease;
  background: #3e3f40;
  border-radius: 8px;
  margin-top: 0;
  border: 1px solid transparent;
  position: relative;
  z-index: 10;
}

/* Состояние при открытии (класс .show добавляется через JS) */
.order-section .order-dropdown.show {
  max-height: 1500px; /* Запас высоты для списка */
  opacity: 1;
  margin-top: 15px;
  border: 1px solid #4a4b4c;
}

/* 5. Стили самого списка внутри */
.order-section .order-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-section .order-list li {
  padding: 15px 25px;
  border-bottom: 1px solid #4a4b4c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.2s;
  color: #fff;
}

.order-section .order-list li:last-child {
  border-bottom: none;
}

.order-section .order-list li:hover {
  background: rgba(241, 158, 49, 0.1);
}

.order-section .order-info {
  font-size: 16px;
  line-height: 1.5;
  word-break: break-word;
}

.order-section .order-info b {
  color: #f19e31;
  margin-right: 8px;
}

/* Чтобы на мобилках всё было ровно */
@media (max-width: 992px) {
  .order-section, .order-dropdown {
    width: 100%;
  }
}
/* Кнопка "Добавить Аниме" (серая, как в вашем стиле) */
.admin-add-btn {
  background: #4a4b4c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap; /* Чтобы текст не переносился */
}

.admin-add-btn:hover {
  background: #f19e31; /* При наведении становится оранжевой */
}

/* Фоновая подложка (Overlay) */
#modal-overlay {
  display: none; /* По умолчанию скрыто */
  position: fixed;
  z-index: 10000; /* Поверх всего */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  /* Центрирование контента внутри */
  align-items: center;
  justify-content: center;
}

/* Когда добавлен класс .active (через твой JS) */
#modal-overlay.active {
  display: flex; /* Показываем как flex-контейнер */
}

/* Базовое состояние — окно скрыто */
#admin-modal.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  /* Эти свойства сработают только когда display изменится на flex */
  align-items: center;
  justify-content: center;
}

/* Контент окна */
#admin-modal .modal-content {
  background-color: #2b2d2f;
  padding: 30px;
  width: 95%;
  max-width: 500px;
  border-radius: 12px;
  position: relative;
  max-height: 90vh; /* Скролл при большой высоте */
  overflow-y: auto;
  margin: auto; /* Дополнительное центрирование */
  box-sizing: border-box;
}

/* Исправляем поля, чтобы они не «выдавливали» форму */
#admin-modal .modal-content input,
#admin-modal .modal-content textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
}

/* Основной фон-затемнение модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  /* Центрируем контент */
  justify-content: center;
  align-items: center;
}

/* Состояние, когда модалка открыта (добавляется через JS) */
.modal[style*="display: block"],
.modal[style*="display: flex"] {
  display: flex !important;
}

.modal-content {
  background-color: #2b2d2f;
  padding: 30px;
  border: 1px solid #4a4b4c;
  width: 95%;
  max-width: 550px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  /* СКРОЛЛ: Самая важная часть */
  max-height: 90vh; /* Высота не более 90% экрана */
  overflow-y: auto; /* Включаем прокрутку */
  box-sizing: border-box; /* Учитываем отступы в ширине */
}

/* Стили заголовка и полей внутри формы */
.modal-content h2 {
  font-family: "Oswald", sans-serif;
  color: #f19e31;
  margin-top: 0;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: #3e3f40;
  border: 1px solid #4a4b4c;
  border-radius: 5px;
  color: #fff;
  box-sizing: border-box; /* Чтобы padding не раздувал поля */
}

/* Красивый скроллбар для современных браузеров */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #f19e31;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: #2b2d2f;
}

/* Адаптация под совсем маленькие экраны */
@media (max-height: 500px) {
  .modal-content {
    padding: 15px;
    max-height: 95vh;
  }
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.admin-form .form-group {
  display: flex;
  flex-direction: column;
}
.admin-form .form-group label {
  color: #ccc;
  margin-bottom: 5px;
  font-size: 14px;
}
.admin-form .form-group input, .admin-form .form-group textarea {
  background: #2a2b2c;
  border: 1px solid #4a4b4c;
  padding: 10px;
  color: #fff;
  border-radius: 4px;
}
.admin-form .form-group input:focus, .admin-form .form-group textarea:focus {
  border-color: #f19e31;
  outline: none;
}
.admin-form .form-row {
  display: flex;
  gap: 10px;
}
.admin-form .form-row .form-group {
  flex: 1;
}
.admin-form .submit-btn {
  background: #f19e31;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}
.admin-form .submit-btn:hover {
  background: rgb(223.7909090909, 133.6227272727, 15.2090909091);
}
.admin-form select {
  background: #2a2b2c;
  border: 1px solid #4a4b4c;
  padding: 10px;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}
.admin-form select:focus {
  border-color: #f19e31;
  outline: none;
}
.admin-form select option {
  background: #3e3f40;
  color: #fff;
}

.anime-description-card {
  background: #3e3f40;
  padding: 20px;
  margin-top: 15px;
  font-family: "Oswald", sans-serif;
}
.anime-description-card .description-title {
  color: #f19e31;
  font-size: 18px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.anime-description-card .description-text {
  color: #ccc;
  font-size: 15px;
  line-height: 1.6;
  font-family: sans-serif;
  margin: 0;
}

/* Контейнер со скроллом, чтобы окно не растягивалось */
.genre-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 15px;
  max-height: 250px;
  overflow-y: auto;
}

/* Сетка: колонки подстраиваются под ширину окна автоматически */
.genre-grid-dynamic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

/* Скрываем стандартный квадрат чекбокса */
.genre-tag input {
  display: none;
}

/* Стиль плитки жанра */
.genre-box {
  display: block;
  background: #2a2a2a;
  color: #ccc;
  text-align: center;
  padding: 8px 5px;
  border-radius: 6px;
  border: 1px solid #444;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Эффект при наведении */
.genre-tag:hover .genre-box {
  border-color: #f19e31;
  color: #fff;
}

/* Стиль для ВЫБРАННОГО жанра */
.genre-tag input:checked + .genre-box {
  background: #f19e31;
  color: #000;
  border-color: #f19e31;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(241, 158, 49, 0.4);
}

/* Стилизация скроллбара для красоты */
.genre-container::-webkit-scrollbar {
  width: 6px;
}

.genre-container::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}/*# sourceMappingURL=styles.css.map */