@import url("https://fonts.googleapis.com/css2?family=Geologica:wght,CRSV@100..900,0&display=swap");
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background: #141722;
  color: #fff;
  font-family: "Arial", sans-serif;
}

a {
  color: #ff4500;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffa040;
}

.container {
  max-width: 1323px;
  padding: 0 15px;
  margin: 0 auto;
}

/* ===== ЗАГОЛОВОК СЕКЦИИ ===== */

.s1-title {
  margin: 20px 0 40px;
  text-align: center;
  font-size: 38px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.4px;
}

/* ===== СЕТКА ВИДЕО ===== */

.content_videos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding-bottom: 60px;
}

/* ===== КАРТОЧКА ВИДЕО ===== */

.block_video {
  background-color: #141722;
  border: 1px solid #1f2333;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.block_video:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Превью */
.block_video-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* Автор */
.block__video-avtorIcon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 0;
}

.block__video-avtor {
  font-size: 12.5px;
  color: #9aa1b5;
}

.block__video-avtorIcon img {
  width: 14px;
  height: 14px;
}

/* Название */
.block__video-title {
  padding: 5px 10px 10px;
  font-size: 14.5px;
  line-height: 1.4;
  color: #e6e6e6;
}

/* ===== АДАПТИВ ===== */

/* Большие планшеты / маленькие ноутбуки */
@media (max-width: 1200px) {
  .content_videos {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Планшеты */
@media (max-width: 992px) {
  .content_videos {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .block_video-img {
    height: 200px;
  }
}

/* Мобильные */
@media (max-width: 576px) {
  .s1-title {
    font-size: 28px;
    margin: 30px 0 20px;
  }

  .content_videos {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .block_video-img {
    height: 190px;
  }

  .block__video-title {
    font-size: 14px;
  }
}

/* header */

/* ===== HEADER ===== */

.header {
  background-color: #0e0f12;
  border-bottom: 1px solid #1a1d26;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 30px;
}

/* Логотип */
.title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
}

.title span {
  color: #2e7dff;
}

/* Навигация */
.header__nav {
  display: flex;
  gap: 24px;
}

.header__nav-item {
  color: #9aa1b5;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.header__nav-item:hover {
  color: #ffffff;
}

.header__nav-item.active {
  color: #ffffff;
  border-bottom: 2px solid #2e7dff;
  padding-bottom: 4px;
}

/* Контакты */
.header-contact a {
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid #2a2f44;
  border-radius: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-contact a:hover {
  background-color: #1a1f30;
  border-color: #3a4b88;
}

/* ===== SOCIALS ===== */

.socials {
  background: linear-gradient(180deg, #111318 0%, #0e0f12 100%);
  padding: 25px 0;
  border-bottom: 1px solid #1a1d26;
}

.socials__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 23px;
  color: #ffffff;
  text-decoration: none;
  background-color: #161922;
  border: 1px solid #222635;
  padding: 30px 22px;
  border-radius: 12px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.socials__title:hover {
  background-color: #1b2030;
  border-color: #2a2f44;
}

.socials__title img {
  width: 20px;
  height: 20px;
}

/* ===== АДАПТИВ ===== */

/* Планшеты */
@media (max-width: 992px) {
  .header__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    text-align: center;
  }

  .header__nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .header-contact {
    order: 2;
  }
}

/* Мобильные */
@media (max-width: 576px) {
  .header__inner {
    padding: 14px 0;
  }

  .title {
    font-size: 20px;
  }

  .header__nav-item {
    font-size: 14px;
  }

  .header-contact a {
    font-size: 13px;
    padding: 7px 12px;
  }

  .socials {
    padding: 20px 0;
  }

  .socials__title {
    font-size: 14px;
    padding: 12px 16px;
    gap: 10px;
    text-align: center;
  }
}
/* ===== PAGINATION ===== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 60px;
  user-select: none;
}

/* Кнопки < > */
.pag-btn {
  min-width: 38px;
  height: 38px;
  background-color: #161922;
  border: 1px solid #222635;
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pag-btn:hover {
  background-color: #1b2030;
  border-color: #2a2f44;
}

.pag-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Контейнер номеров */
.page-numbers {
  display: flex;
  gap: 8px;
}

/* Номер страницы */
.page-number {
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  background-color: #0f121a;
  border: 1px solid #1f2333;
  border-radius: 8px;
  color: #9aa1b5;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.page-number:hover {
  background-color: #1a1f30;
  color: #ffffff;
}

/* Активная страница */
.page-number.active {
  background-color: #2e7dff;
  border-color: #2e7dff;
  color: #ffffff;
  font-weight: 500;
}

/* ===== АДАПТИВ ===== */

/* Планшеты */
@media (max-width: 768px) {
  .pagination {
    gap: 8px;
  }

  .page-number,
  .pag-btn {
    min-width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

/* Мобильные */
@media (max-width: 480px) {
  .pagination {
    margin: 30px 0 45px;
  }

  /* Скрываем часть номеров, если их много */
  .page-numbers {
    gap: 6px;
    overflow-x: auto;
    max-width: 70vw;
    padding: 4px 0;
  }

  .page-number,
  .pag-btn {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
}
.footer {
  margin-top: 180px;
  background-color: #171a22;
  border-top: 1px solid #1a1d26;
  padding: 50px 0 30px;
  color: #c9cdd8;
  font-size: 14px;
}

.footer__social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

/* Заголовки колонок */
.footer__social p {
  margin-bottom: 14px;
  font-weight: 500;
  color: #ffffff;
}

/* Ссылки */
.footer-item,
.footer-contact {
  display: block;
  margin-bottom: 8px;
  color: #9aa1b5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-item:hover,
.footer-contact:hover {
  color: #ffffff;
}

/* Telegram иконка */
.footer__social img {
  width: 28px;
  height: 28px;
  margin-top: 10px;
}

/* Текст 18+ */
.footer-subtitle {
  max-width: 900px;
  margin: 0 auto;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7f8599;
  text-align: center;
}

/* ---------- АДАПТИВ ---------- */

/* Планшеты */
@media (max-width: 992px) {
  .footer__social {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Мобильные устройства */
@media (max-width: 576px) {
  .footer {
    padding: 35px 0 25px;
  }

  .footer__social {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }

  .footer__social img {
    margin: 10px auto 0;
    display: block;
  }

  .footer-item,
  .footer-contact {
    margin-bottom: 6px;
  }

  .footer-subtitle {
    font-size: 12px;
    padding: 0 10px;
  }
}

/* ===== PLAYER CONTAINER ===== */

.player-container {
  max-width: 920px;
  margin: 40px auto 30px;
  padding: 24px;
  background-color: #141722;
  border: 1px solid #1f2333;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* Заголовок видео */
.player__title {
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.3;
}

/* Видео */
.player-container video {
  width: 100%;
  max-height: 520px;
  border-radius: 12px;
  background-color: #000000;
  outline: none;
}

.player-container {
    position: relative;
    z-index: 1;
}

.video-wrapper {
    z-index: 2;
}

.player-container p {
    position: relative;
    z-index: 1;
}

/* Ссылка Telegram */
.player-container a {
  color: #2e7dff;
  text-decoration: none;
  word-break: break-all;
}

.player-container a:hover {
  text-decoration: underline;
}

/* Кнопка "Мен менен байланыш" */
.player__callme {
  display: block;
  max-width: 260px;
  margin: 25px auto 60px;
  text-align: center;
  padding: 14px 20px;
  background-color: #161922;
  border: 1px solid #222635;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.player__callme:hover {
  background-color: #1b2030;
  border-color: #2a2f44;
}

/* ===== АДАПТИВ ===== */

/* Планшеты */
@media (max-width: 992px) {
  .player-container {
    padding: 20px;
  }

  .player__title {
    font-size: 22px;
  }
}

/* Мобильные */
@media (max-width: 576px) {
  .player-container {
    margin: 25px auto 20px;
    padding: 16px;
    border-radius: 14px;
  }

  .player__title {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .player-container p {
    font-size: 14px;
  }

  .player__callme {
    font-size: 14px;
    padding: 12px 16px;
    margin-bottom: 45px;
  }
}

.block_video {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.block_video:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.block_video::after {
  content: "▶";
  position: absolute;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.8);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.block_video:hover::after {
  opacity: 1;
}

.block_video:hover .block__video-avtorIcon {
  opacity: 1;
}

.block_video {
  position: relative;
  overflow: hidden;
  border-radius: 10px; /* скругление углов */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: #020110; /* тёмный фон для контраста с тенью */
  box-shadow: 0 4px 8px rgba(40, 40, 40, 0.3); /* базовая тень */
}

.block_video:hover {
  transform: translateY(-5px) scale(1.03); /* лёгкое поднятие */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5); /* тень сильнее при hover */
}
.block_video-img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: box-shadow 0.3s ease;
}

.block_video:hover .block_video-img {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.block_video:hover {
  animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1.03);
    /* Темная, почти черная синяя тень */
    box-shadow: 0 12px 20px rgba(0, 8, 20, 0.6);
  }
  100% {
    transform: scale(1.06);
    /* Насыщенный темно-синий "неоновый" отсвет */
    box-shadow: 0 15px 25px rgba(0, 32, 92, 0.7);
  }
}

.block_video {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.block_video.visible {
  opacity: 1;
  transform: translateY(0);
}
.video-wrapper {
    position: relative;
    width: 100%;
}

#mainVideo {
    width: 100%;
    min-height: 220px; /* КРИТИЧНО для мобильных */
    background: #000;
    display: block;
}

/* Кнопка Play */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 5;
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}