.video-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
}

.video-section__container {
  text-align: center;
  width: 100%;
}

.video-section__title {
  margin-top: 128px;
  font-family: "Akrobat", sans-serif;
  font-weight: 600;
  font-size: 72px;
  line-height: 100%;
  text-transform: uppercase;

  background: linear-gradient(
    135deg,
    rgb(0, 0, 0) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 1) 75%,
    rgb(26, 26, 26) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0;
}

.video-section__subtitle {
  font-family: "Astrados", sans-serif;
  color: #d6001c;
  font-weight: 400;
  font-size: 128px;
  line-height: 100%;
  position: relative;
  top: -54px;
}

.video-section__video-block-container {
  background-image: url("/assets/images/video-section/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding-bottom: 152px;
}

.video-section__video-block-container::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgb(0, 0, 0, 0) 0%,
    transparent 50%,
    transparent 75%,
    rgba(10, 0, 1, 255) 97%
  );
}

.video-section__video-block-content {
  max-width: 60%;
  aspect-ratio: 880 / 484;
  margin: 0 auto;

  position: relative;
  top: -30px;
  width: 100%;
  border-radius: 16px;
  background: #ffffff0d;
  backdrop-filter: blur(250px) brightness(0.8) contrast(1.2);
  -webkit-backdrop-filter: blur(250px) brightness(0.8) contrast(1.2);
  padding: 10px;
}

.video-section__video-block {
  background-color: #000000;
  width: 100%;
  height: 100%;
  border-radius: 16px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.video-section__block-text {
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  color: #fff;
  background: #ffffff1a;
  backdrop-filter: blur(50px) brightness(2);
  -webkit-backdrop-filter: blur(50px) brightness(2);
  position: absolute;
  padding: 10px;
  z-index: 100;
  border-radius: 4px;
}

.video-section__text-top {
  top: -10px;
  left: 35%;
  transform: rotate(3deg);
}

.video-section__text-bottom {
  bottom: -15px;
  transform: rotate(-5deg);
  left: 60%;
}

.video-section__text-left {
  left: -30px;
  top: 70%;
}

.video-section__video-button {
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  background-color: #e3ff00;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-section__video-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(227, 255, 0, 0.5);
}

@media (max-width: 500px) {
  .video-section__video-block-content {
    top: -10px;
    width: 320px;
    height: 320px;
    max-width: none;
  }

  .video-section__title {
    font-size: 40px;
  }

  .video-section__subtitle {
    font-size: 64px;
    top: -30px;
  }
}

/* YouTube Video Modal Styles */
.video-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-modal::after {
  content: "Натисніть поза відео або Escape, щоб закрити";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  font-weight: 400;
  pointer-events: none;
  z-index: 10001;
}

.video-modal-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 900px;
  height: 70vh;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(214, 0, 28, 0.3);
  cursor: default;
}

.video-modal-close {
  color: #fff;
  position: absolute;
  top: -40px;
  right: 0px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.3s ease;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-close:hover,
.video-modal-close:focus {
  color: #d6001c;
}

.video-modal-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.video-modal-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile responsive for video modal */
@media (max-width: 768px) {
  .video-modal-content {
    margin: 15% auto;
    width: 95%;
    height: 60vh;
  }
  
  .video-modal-close {
    font-size: 30px;
    width: 45px;
    height: 45px;
    top: -50px;
  }
  
  .video-modal::after {
    content: "Натисніть поза відео, щоб закрити";
    font-size: 12px;
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .video-modal-content {
    margin: 20% auto;
    width: 98%;
    height: 50vh;
  }
  
  .video-modal-close {
    font-size: 28px;
    width: 40px;
    height: 40px;
  }
  
  .video-modal::after {
    content: "Натисніть поза відео";
    font-size: 11px;
    bottom: 10px;
  }
}
