.team-detail-coach-page__videos {
  padding: 55px 0;
  background: #1c1d1f;
  position: relative;
  overflow: visible;
  margin: 0px -55px 0 -55px;
}

.team-detail-coach-page__videos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../../../../img/main/telegram/telegram-bg.png") center/cover
    no-repeat;
}

.team-detail-coach__container {
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 0 55px;
  position: relative;
  z-index: 1;
  max-width: 1900px;
  margin: 0 auto;
}

.team-detail-coach__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 65px;
}

.team-detail-coach__title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
}

.team-detail-coach__link {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  transition: all 0.3s ease;
}

.team-detail-coach__link:hover {
  color: var(--color-primary-hover);
}

.team-detail-coach__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-gray-700);
  border-radius: 7px;
  backdrop-filter: blur(15px);
}

.team-detail-coach__link-icon:hover {
  border-color: var(--color-primary-hover);
}

.team-detail-coach__link:hover .team-detail-coach__link-icon {
  border-color: var(--color-primary-hover);
}

.team-detail-coach__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.team-detail-coach__post-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 330px;
  align-self: flex-end;
}

.team-detail-coach__post-wrapper--wide {
  grid-column: span 2;
}

.team-detail-coach__post {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 330px;
}

.team-detail-coach__post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-detail-coach__post:hover .team-detail-coach__post-thumbnail {
  transform: scale(1.05);
}

.team-detail-coach__post .team-detail-coach__post-thumbnail {
  height: 470px;
}

.team-detail-coach__post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-detail-coach__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.team-detail-coach__play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.team-detail-coach__post-info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
}

.team-detail-coach__category {
  display: block;
  max-width: fit-content;
  padding: 7px 15px;
  border-radius: 130px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  background-color: rgba(195, 172, 144, 0.45);
  backdrop-filter: blur(20px);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.team-detail-coach__post-main-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 13px;
  justify-content: flex-end;
}

.team-detail-coach__date {
  display: block;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-normal);
  color: var(--color-secondary);
  line-height: var(--line-height-tight);
}

.team-detail-coach__post-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: var(--line-height-normal);
}

.team-detail-coach__post--small {
  min-width: 300px;
  flex: 1;
}

.team-detail-coach__post-wrapper--small {
  min-width: 300px;
  flex: 1;
}

.team-detail-coach__link--mobile {
  display: none;
}

.team-detail-coach__categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.team-detail-coach__link-img {
  width: 14px;
  height: 23px;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.team-detail-coach__link:hover .team-detail-coach__link-img {
  color: var(--color-primary-hover);
}

@media (max-width: 1700px) {
  .team-detail-coach__link-img {
    width: 8px;
    height: 15px;
  }

  .team-detail-coach-page__videos {
    margin: 0 -40px;
  }

  .team-detail-coach__container {
    gap: 35px;
    padding: 0 40px;
  }

  .team-detail-coach__header {
    padding: 0 65px;
  }

  .team-detail-coach__link {
    gap: 20px;
  }

  .team-detail-coach__link-icon {
    width: 40px;
    height: 40px;
  }

  .team-detail-coach__link-img {
    height: 15px;
  }

  .team-detail-coach__content {
    gap: 20px;
  }

  .team-detail-coach__post {
    border-radius: 20px;
  }

  .team-detail-coach__post .team-detail-coach__post-thumbnail {
    height: 360px;
  }

  .team-detail-coach__post-info {
    padding: 20px;
  }

  .team-detail-coach__category {
    padding: 5px 12px;
    border-radius: 100px;
    backdrop-filter: blur(15px);
  }

  .team-detail-coach__post-main-info {
    gap: 10px;
  }

  .team-detail-coach__posts-grid {
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .team-detail-coach-page__videos {
    margin: 0 -16px;
  }

  .team-detail-coach__content {
    padding: 0 16px;
  }

  .team-detail-coach__container {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .team-detail-coach-page__videos {
    padding: 40px 0 40px 0;
  }

  .team-detail-coach__container {
    gap: 5px;
    padding: 0 16px;
  }

  .team-detail-coach__header {
    padding: 0;
    justify-content: center;
  }

  .team-detail-coach__link--desktop {
    display: none;
  }

  .team-detail-coach__link--mobile {
    display: flex;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .team-detail-coach__post-title {
    font-size: 18px;
  }

  .team-detail-coach__date {
    font-size: 14px;
  }

  .team-detail-coach__category {
    font-size: 12px;
  }
}
