/*
 Theme Name:   Easy Magazine Pro Child
 Theme URI:    https://1tv.od.ua/easy-magazine-pro-child
 Description:  Дочерняя тема для Easy Magazine Pro
 Author:       1tv.od.ua
 Author URI:   1tv
 Template:     easy-magazine-pro
 Version:      1.0.0
*/
html,
body {
  overflow-x: hidden;
}

.byline,
.comments-link,
.comment-form-url {
  display: none !important;
}

.front-section {
  padding: 50px 0 5px 0;
}

#recommended-posts {
  padding-bottom: 0px;
}

.body-section {
  padding: 20px 0 20px 0;
}

#page-site-header {
  padding: 180px 0;
}

#recommended-posts .featured-image {
  padding-bottom: 125px;
}

.blog-posts-wrapper .featured-image {
  padding-top: 100px;
  padding-bottom: 150px;
}

.blog .blog-posts-wrapper .featured-image {
  padding-top: 100px;
  padding-bottom: 190px;
}

.body-section .section-title a {
  color: #fff;
}

.body-section .section-title a:hover {
  color: #000;
}

#slider-posts article {
  margin-bottom: 20px;
}

#slider-posts .recommended-post-item {
  position: relative;
  background-color: #000;
  border-radius: 5px;
}

#slider-posts .featured-image-front {
  background-size: cover;
  background-position: 50%;
  padding: 100px 0;
  border-radius: 5px;
}

#slider-posts .entry-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0, transparent);
}

#slider-posts .entry-title {
  font-size: 16px;
  margin: 0;
}

#slider-posts .entry-title a {
  color: #fff;
}

#slider-posts a {
  text-decoration: none;
}

#slider-posts .cat-links {
  margin-bottom: 10px;
  margin-right: 0;
  display: block;
}

#slider-posts .date a {
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

#slider-posts .entry-title a:hover,
#slider-posts .entry-title a:focus,
#slider-posts .date a:hover,
#slider-posts .date a:focus {
  color: #fff;
  opacity: 0.8;
}

#page-site-header .page-title {
  display: none;
}

.wrapper-online {
  display: flex;
  width: 95%;
  max-width: 1500px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.video-section {
  padding: 10px;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 50%;
  overflow: hidden;
}

.column-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

#video-efir {
  border-radius: 5px;
}

.live-label {
  position: absolute;
  top: 5%;
  left: 30%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;

  font-size: 14px;
  font-weight: bold;
}

.live-label-page {
  position: absolute;
  top: 2.5%;
  left: 14.4%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;

  font-size: 14px;
  font-weight: bold;
}

.live-label-page .pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #00aaff;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1s infinite;
}

.live-label .pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #00aaff;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1s infinite;
}

.h2-title-single {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Стили для пункта меню */
#menu-item-21047 a {
  padding-right: 30px !important;
}



.social-icons li a[href*="t.me"]::before {
  content: "\f2c6";
  /* Иконка для Телеграм */
}

.social-icons li a[href*="t.me"]:hover {
  background-color: #0088cc;
}

/* Пульсирующая точка */
.live-menu-item::before {
  content: "";
  position: absolute;
  top: 42%;
  left: 89%;
  transform: translateY(50%);
  width: 10px;
  height: 10px;
  background-color: #ff0000;
  /* Цвет точки */
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.live-menu-item-radio::before {
content: "";
position: absolute;
top: 39%;
left: 89%;
transform: translateY(50%);
width: 10px;
height: 10px;
background-color: #ff0000;
/* Цвет точки */
border-radius: 50%;
animation: pulse 1s infinite;
}

/* Анимация пульсации */
@keyframes pulse {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(-50%) scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}

.last_news-label {
  position: absolute;
  top: 5%;
  left: 70%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;

  font-size: 14px;
  font-weight: bold;
}

.last_news-label .last_news-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #00aaff;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.swiper-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 5px;
}

.slider-section {
  max-width: 100%;
  padding: 10px;
}

.swiper-container {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 1024px) {
  .post iframe {
    width: 860px;
    height: 484px;
  }

  .nav-menu .sub-menu {
    position: absolute;

    transform: translateX(-75%);
    background-color: #ffffff;
    padding: 10px;
    width: 950px;
    box-sizing: border-box;
    z-index: 1000;
  }

  .nav-menu li.menu-item:hover > .sub-menu {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
  }

  .nav-menu .sub-menu li a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu .sub-menu .menu-item {
    list-style: none;
  }

  .nav-menu .sub-menu li {
    width: 200px;
    height: 40px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav-menu .sub-menu .menu-item a {
    display: flex;
    align-items: center;

    color: #333;
    text-decoration: none;
    padding: 0 0;
  }

  .nav-menu .sub-menu .menu-item a:hover {
    color: #0073aa;
    /* Цвет при наведении */
  }

  /* 4. Обеспечиваем правильное позиционирование родительского элемента */
  .nav-menu li.menu-item {
    position: relative;
  }
}

/* Стили для слайдера */
.slider-section {
  /* Ваши стили для секции слайдера */
}

.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
  width: 100%;
  height: 400px;
  /* Настройте высоту слайдера */
  background-size: cover;
  background-position: center;
}

.slide-image {
  display: block;
  /* Добавляем display: block для ссылок */
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
  /* Убираем подчеркивание текста */
}

.slide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
}

.slide-title a {
  color: #fff;
  text-decoration: none;
}

.slide-title a:hover {
  text-decoration: underline;
}

.slide-image {
  cursor: pointer;
}

.featured-image-front {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 200px;
  /* Установите желаемую высоту */
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.featured-image-front a.post-thumbnail-link {
  display: block;
  width: 100%;
  height: 100%;
}

.site-details-wrapper {
  background-image: url("https://1tv.od.ua/wp-content/uploads/2024/11/baner-copy.png");
  padding: 10px 0;
}

.section-title {
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  padding: 10px 20px;
  background: linear-gradient(90deg, #4db2ec 0%, #1a4a78 100%);
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 1px,
    transparent 1px
  );
  background-size: 10px 10px;
  /* Больше точек в узоре */
  opacity: 0.7;
  transform: scale(1.5) translateX(60%);
  /* Сильнее сдвинуть к правому краю */
}

.main-navigation ul ul a {
  width: unset;
}

.footer-social {
  text-align: left;
  color: #fff;
  margin-top: 20px;
}

.footer-social p {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-social a {
  text-decoration: unset;
}

.social-icons {
  display: flex;
  justify-content: left;
  gap: 15px;
}

footer {
  margin-top: 20px;
}

footer p {
  font-size: 14px;
  line-height: 18px;
}

footer .widget-title {
  color: #04b2f2;
}

@media screen and (min-width: 992px) {
  #colophon .social-icons {
    margin-left: 0px;
    margin-top: 25px;
  }
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.social-icon.telegram {
  background-color: #0088cc;
}

.social-icon.facebook {
  background-color: #3b5998;
}

.social-icon.instagram {
  background-color: #e1306c;
}

.social-icon.youtube {
  background-color: #c4302b;
}

.social-icon:hover {
  opacity: 0.8;
}

/* Flex-контейнер для кнопки */
.button-container {
  display: flex;
  justify-content: flex-end;
  /* По умолчанию слева */
  align-items: center;
  margin-top: 20px;
  padding-right: 10px;
  position: relative;
  width: 100%;
}

/* Кнопка */
.view-all-btn {
  font-size: 14px;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  background: linear-gradient(90deg, #4db2ec 0%, #1a4a78 100%);
  overflow: hidden;
  transition: background-color 0.3s;
  display: inline-block;
}

/* Узор из точек на кнопке */
.view-all-btn::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 1px,
    transparent 1px
  );
  background-size: 8px 8px;
  opacity: 0.7;
  transform: scale(2) translateX(70%);
  pointer-events: none;
  transition: transform 0.3s;
}

.view-all-btn:hover::before {
  transform: scale(2.2) translateX(60%);
}

.view-all-btn:hover {
  background-color: #0056b3;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  /* Расположение по вертикали */
  gap: 10px;
  /* Расстояние между элементами */
  padding-top: 20px;
  color: #fff;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #fff;
}

.contact-item i {
  margin-right: 10px;
  font-size: 18px;
  /* Размер иконок */
  color: #4db2ec;
  /* Цвет иконок */
}

.blog .blog-posts-wrapper {
  /* Ваши стили */
  margin: 10px 150px;
}

.nav-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-30deg);
  animation: slide 5s linear infinite;
}

@keyframes slide {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@media screen and (min-width: 1024px) {
  .main-navigation ul ul li {
    border-bottom: none;
  }
}

.radio-toggle, .mobile-buttons-wrapper {
  display: none;
}


/* Адаптивное центрирование на мобильных устройствах */
@media (max-width: 768px) {
  
  .mobile-buttons-wrapper {
    display: block;
    display: flex;
    align-items: center;
    gap: 10px; /* Расстояние между кнопками */
  }
  
  /* Стили вашей новой кнопки */
  .radio-toggle {
    display: block;
    display: inline-flex;
    align-items: center;
    background-color: #4db2ec; /* Синий по умолчанию */
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-right: 20px;
  }
  
  .radio-toggle:hover {
    background-color: #fff;
    color: red;
  }
  
  /* Иконка внутри */
  .radio-icon {
    margin-right: 6px; /* отступ между иконкой и текстом, если будет текст */
    font-weight: bold;
    font-size: 16px;
  }
  
  /* Если хотите при нажатии менять цвет, можно добавить класс .active, .playing, и т.д. */
  .radio-toggle.playing {
    background-color: #ff2a2a;
  }
  

  .menu-item-radio {
    margin-bottom: 10px;
  }
  
  .blog-posts-wrapper .featured-image {
    padding-top: 100px;
    padding-bottom: 90px;
  }

  .blog .blog-posts-wrapper .featured-image {
    padding-top: 100px;
    padding-bottom: 90px;
  }

  .blog .blog-posts-wrapper {
    margin: 10px 10px;
  }

  #recommended-posts .featured-image {
    padding: 100px 0;
  }

  .featured-image-front {
    height: unset;
  }

  #colophon .widget-title {
    font-size: 20px;
  }

  #colophon a,
  #colophon p {
    font-size: 14px;
  }

  .button-container {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .nav-menu {
    flex-direction: column;
  }

  .nav-menu .sub-menu {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: none;
    grid-gap: 0;
    transform: none;
  }

  .nav-menu .sub-menu .menu-item {
    width: 100%;
  }

  #breaking-news,
  .page-section {
    padding: 10px 0;
  }

  .wrapper-online {
    flex-direction: column;
    align-items: center;
  }

  .video-section,
  .slider-section {
    width: 100%;
    /* Занимает всю ширину на мобильных */
    max-width: 100%;
    /* Ограничивает ширину, если нужно */
  }

  .video-section {
    margin-bottom: 20px;
    /* Отступ между блоками на мобильных */
  }

  .swiper-container {
    width: 100%;
    /* Полная ширина для слайдера */
  }

  .video-section {
    position: relative;
    padding-top: 56.25%;
    /* Соотношение 16:9 */
    background-color: black;
    overflow: hidden;
  }

  .video-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .live-label {
    position: absolute;
    transform: none;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    background-color: rgba(4, 178, 242, 0.5);
    color: white;
    padding: 5px 10px;

    font-size: 14px;
    font-weight: bold;
    z-index: 10;
  }

  .live-label .pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1s infinite;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }

    50% {
      transform: scale(1.5);
      opacity: 0.5;
    }

    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  .slider-section {
    width: 100%;
  }

  .swiper-container {
    width: 100%;
    height: 100%;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
  }

  .last_news-label {
    top: 57%;
    left: 61%;
    z-index: 1;
    width: 231px;
    background-color: rgba(4, 178, 242, 0.5);
  }
}

@media screen and (min-width: 768px) and (max-width: 1585px) {
  #page-site-header {
    padding: 120px 0;
    background-repeat: no-repeat;
    background-position: center;
  }
}

@media screen and (max-width: 768px) {
  #page-site-header {
    padding: 40px 0;
  }
}

.popular-post-view {
  position: relative; /* на всякий случай, если нужно позиционирование */
  animation: popularGlow 1.5s infinite;
  /* Можно задать outline или border, если хотите */
}

@keyframes popularGlow {
  0% {
    box-shadow: 0 0 5px 2px rgb(4, 178, 242);
  }
  50% {
    box-shadow: 0 0 15px 5px rgb(4, 178, 242);
  }
  100% {
    box-shadow: 0 0 5px 2px rgb(4, 178, 242);
  }
}

/* Базовый стиль кнопки */
.radio-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #4db2ec; /* Синий */
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.radio-button:hover {
  background-color: #fff; /* темнее */
  color: #4db2ec;
}

.radio-icon {
  font-weight: bold;
  font-size: 18px;
}

.radio-button.playing {
  background-color: #ff2a2a; /* Красный */
}

.radio-button.playing:hover {
  background-color: #cc2222;
}

/* Мигающий онлайн */
.online-indicator {
  margin-left: 8px;
  color: #ff2a2a;
  font-weight: bold;
  animation: blinkOnline 1.3s infinite;
  vertical-align: middle;
}

@keyframes blinkOnline {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

/* Прячем элемент, когда не нужно */
.hidden {
  display: none;
}

/* Дополнительная стилизация <li> (не обязательно) */
.menu-item-radio {
  list-style: none; /* или другими CSS-правилами */
  margin-left: 16px; /* при необходимости */
}

#radio-button {
  padding-right: 30px !important;
}

.radio-volume-slider {
  width: 80px; /* или нужное вам значение */
  cursor: pointer;
  position: relative;
  top: 6px;
  
}

.menu-osnovne-menyu-container input {
  padding: 0px !important;
}