/* Общие стили */
body {
  background-color: #fff;
  color: #222;
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Все элементы унаследуют box-sizing */
*, *::before, *::after {
  box-sizing: inherit;
}

/* Контейнер с отступами */
.container {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background-color: #fff;
  padding: 20px; /* отступы внутри контейнера */
}

/* Хедер с отступами */
.header {
  display: flex;
  align-items: center;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0 20px;
  text-align: left;
  box-shadow: none;
}

/* Заголовок */
.title {
  color: #cc0000; /* Красный цвет */
  font-weight: 600; /* Средний вес шрифта */
  font-size: 18px; /* Умеренный размер текста */
  margin: 20px 0; /* Просторные отступы */
  padding: 5px 10px; /* Немного внутреннего отступа */
  background: none; /* Без фона */
  border: none; /* Без границы */
  text-align: center; /* По центру */
  text-transform: capitalize; /* Первая буква каждого слова заглавная */
  line-height: 1.3; /* Расстояние между строками */
}



/* Нижний футер */
.foot {
  text-align: center;
  padding: 15px 0;
  font-size: 13px;
  color: #666;
}
.foot a {
  text-decoration: none;
  color: #cc0000;
}
.foot a:hover {
  color: #990000;
  cursor: pointer;
}

/* Плей блок */
.play {
  background: #f9f9f9;
  padding: 10px 15px; /* добавил отступы слева/справа */
  margin: 5px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  color: #444;
}

/* Списки в линию */
.list-inline {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}
.list-inline > li {
  display: inline-block;
  padding: 0 8px;
}

/* Меню */
.menux {
  text-align: center;
  margin: 15px 0;
}
.menux a {
  border-radius: 3px;
  border: 1px solid #cc0000;
  font-weight: 700;
  color: #cc0000;
  margin: 5px 3px;
  padding: 8px 12px;
  text-decoration: none;
  background: #fff;
  transition: background-color 0.2s ease;
}
.menux a:hover {
  background: #cc0000;
  color: #fff;
  cursor: pointer;
}

/* Основной блок видео */
.videos {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0 15px; /* отступы слева и справа */
}

/* Разделы */
.razdel {
  font-size: 14px;
  width: 24.5%;
  display: inline-block;
  padding: 5px; /* немного пространства внутри */
  box-sizing: border-box;
}
.razdel a {
  text-decoration: none;
  color: #cc0000;
  display: block;
  padding: 10px 5px;
  text-align: center;
  font-weight: 700;
  border: 1px solid #cc0000;
  border-radius: 3px;
  margin: 5px 3px;
  background: #fff;
  transition: background-color 0.2s ease;
}
.razdel a:hover {
  background: #cc0000;
  color: #fff;
  cursor: pointer;
}

/* Карточка видео */
.video {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: inline-block;
  width: 100%;
  max-width: 23%;
  text-align: center;
  margin: 10px 8px; /* увеличил отступы, чтобы не прилегало к краю */
  box-shadow: none;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
}
.video a {
  display: block;
  color: #cc0000;
  text-decoration: none;
}
.video a:hover {
  cursor: pointer;
  color: #990000;
}
.video:hover {
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

/* Видео-скрин */
.vsc {
  position: relative;
  padding: 5px; /* отступ вокруг картинки */
  box-sizing: border-box;
}
.vsc img {
  max-width: 100%;
  width: 100%;
  display: block;
}

/* Название видео */
.name {
  white-space: normal; /* перенос строк */
  overflow: visible; /* убираем обрезание */
  height: auto; /* автоматическая высота */
  line-height: 1.2em;
  padding: 5px 10px;
  font-weight: 600;
  color: #222;
  box-sizing: border-box;
}

/* Ссылки и навигация */
a.lnk1, a.nav {
  border-radius: 3px;
  white-space: nowrap;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding: 8px 12px;
  color: #cc0000;
  border: 1px solid #cc0000;
  background: #fff;
  margin: 5px 3px;
  transition: background-color 0.2s ease;
}
a.lnk1:hover, a.nav:hover {
  cursor: pointer;
  background: #cc0000;
  color: #fff;
  text-decoration: none;
}

/* Активная навигация */
.navactive {
  border: 1px solid #990000;
  background: #cc0000;
  color: #fff;
}

/* Формы */
input, select, textarea {
  border-radius: 3px;
  padding: 7px;
  color: #222;
  margin: 2px 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: none;
  font-size: 14px;
  box-sizing: border-box;
}
input[type=submit] {
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  padding: 10px 16px;
  color: #fff;
  background: #cc0000;
  border: 1px solid #cc0000;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
input[type=submit]:hover {
  background: #990000;
  border-color: #990000;
}

/* Большие блоки ссылок */
.bigblock a {
  display: inline-block;
  margin: 5px 7px;
  padding: 8px 15px;
  border-radius: 3px;
  background: #f8f8f8;
  color: #555;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.bigblock a:hover {
  background: #e0e0e0;
  cursor: pointer;
}

/* Инфоблок и реклама */
.infoblock,
.adska {
  color: #444;
  text-align: left;
  padding: 10px 15px; /* добавил отступы слева и справа */
  margin: 5px 0;
  background-color: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
}

.adska a {
  text-decoration: none;
  color: #cc0000;
  font-size: 14px;
  line-height: 2;
}
.adska a:last-child {
  margin-bottom: 0;
}
.adska a:hover {
  cursor: pointer;
  color: #990000;
}

/* Время */
.time {
  position: absolute;
  right: 5px;
  top: 5px;
  background: #cc0000;
  height: 22px;
  border-radius: 4px;
  font-weight: 700;
  line-height: 22px;
  color: #fff;
  padding: 0 10px;
  z-index: 3;
}

/* Количество */
.kol {
  float: right;
  text-align: center;
  color: #fff;
  padding: 3px 6px 0;
  border-radius: 3px;
  font-size: 12px;
  height: 18px;
  background-color: #990000;
  border: 1px solid #660000;
}

/* Пагинация */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 1em 0;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 5px;
}

.pagination li a,
.pagination li span {
  padding: 6px 12px;
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.pagination li a:hover {
  background-color: #f0f0f0;
}

.pagination li.active span {
  background-color: #cc0000;
  color: #fff;
  font-weight: bold;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .video {max-width: 31%;}
}
@media (max-width: 800px) {
  .alltitle {font-size: 16px;}
  .video {max-width: 46%;}
}
@media (max-width: 550px) {
  .video {max-width: 47%;}
  .alltitle {font-size: 15px;}
  a.lnk1 {margin: 2px 0; display: block;}
}
@media (max-width: 467px) {
  .video {max-width: 95%; margin: 5px 0;}
  .vsc img {max-width: 100%;}
}
@media (max-width: 1100px) {
  .razdel {width: 32%;}
}
@media (max-width: 850px) {
  .razdel {width: 49%;}
}
@media (max-width: 570px) {
  .razdel {width: 99%; display: block; margin: 0;}
}
@media (max-width: 260px) {
  .razdel {font-size: 12px;}
}
/* Отступы для bigblock и category-block */
.bigblock, .category-block {
  padding: 15px 20px;
  margin: 10px 0;
  background: #fff;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Если иконки — это какой-то блок с классом icon или иконками внутри bigblock */
.icons, .иконки {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  justify-content: center;
}

/* videoinfo — добавим внутренние отступы */
.videoinfo {
  padding: 12px 15px;
  margin: 10px 0 15px 0;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  box-sizing: border-box;
  text-align: left;
}

.video-container {
  width: 720px;
  height: 405px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  border-radius: 8px; /* закругление углов */
  overflow: hidden;   /* чтобы видео не выходило за рамки */
}

/* Видео внутри занимает весь контейнер */
.video-container .video {
  margin: 0;          
  width: 100%;        
  height: 100%;       
}

/* Адаптив для планшетов и меньше */
@media (max-width: 768px) {
  .video-container {
    width: 100%;      /* растянуть на всю ширину экрана */
    height: auto;     /* высота будет рассчитываться автоматически */
    aspect-ratio: 16 / 9; /* сохраняем пропорции */
    border-radius: 8px;
  }
  
  .video-container .video {
    height: 100%;
  }
}


.plyr {
  position: relative;
  width: 100%;
  height: 100%;
}

.bigblock.category-block a {
  color: #cc0000;
  font-weight: 700;
  text-decoration: none; /* если надо убрать подчеркивание */
}

.bigblock.category-block a:hover {
  color: #990000; /* цвет при наведении */
}

/* ===== Адаптивная "капсула" поиска в стиле демо ===== */

/* Палитра под твой красный */
:root{
  --brand:#cc0000;
  --brand-2:#e34a4a;           /* светлее для градиента/ховера */
  --surface:#ffffff;
  --border:#eaeaea;
  --shadow:0 10px 22px rgba(0,0,0,.08);
}

/* Фоновая капсула вокруг поиска + кнопок (как в демо) */
.menux{
  max-width: 1220px;
  margin: 16px auto 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Центруем и делаем «гибкую» строку: поле растёт, кнопка компактная */
.search-form{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin: 6px auto 8px;
  max-width: 720px;          /* коридор по ширине, как в демо */
}

.search-form input[type="text"]{
  flex:1 1 420px;            /* на ПК поле длиннее */
  min-width: 220px;
  padding: 10px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background:#fafafa;
  font-size: 15px;
  height: 42px;              /* фиксируем высоту для совпадения с кнопкой */
  outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.search-form input[type="text"]:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(204,0,0,.12);
}

.search-form input[type="submit"],
.search-form button{
  height: 42px;              /* ровно как у input */
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color:#fff;
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  box-shadow: 0 6px 16px rgba(204,0,0,.25);
  transition: transform .06s ease, filter .12s ease;
}
.search-form input[type="submit"]:hover,
.search-form button:hover{
  filter: brightness(1.03);
}
.search-form input[type="submit"]:active,
.search-form button:active{
  transform: translateY(1px);
}

/* Кнопки под поиском */
.menu-links{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top: 6px;
}
.menu-links a{
  display:inline-block;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid var(--brand);
  color:var(--brand);
  background:#fff;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 3px 10px rgba(0,0,0,.06);
  transition: background .15s, color .15s;
}
.menu-links a:hover{
  background:var(--brand);
  color:#fff;
}

/* Мобильный вид: поле на всю ширину, кнопка компактная под ним */
@media (max-width: 560px){
  .search-form{ gap:8px; }
  .search-form input[type="text"]{ flex:1 1 100%; font-size:14px; }
  .search-form input[type="submit"],
  .search-form button{
    width:auto;              /* не растягиваем на всю ширину */
    padding:8px 14px;
    height: 40px;
    font-size:14px;
  }
  .menux{ margin:10px 8px; padding:12px; }
}

