/* ==========================================================
   VÍDEOS — CASA DE SOSSEGO VÓ TEREZA
========================================================== */

.videos-page-body {
  margin: 0;
  color: #161616;
  background: #fff;
  font-family: "filson-soft", Arial, sans-serif;
}

.videos-hero {
  position: relative;
  width: 100%;
  height: 870px;
  min-height: 870px;
  padding: 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-sizing: border-box;
}

.videos-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 23%), transparent 34%, rgb(0 0 0 / 9%));
  pointer-events: none;
}

.videos-hero__frame {
  position: relative;
  z-index: 1;
  width: calc(100% - 56px);
  max-width: 1600px;
  height: calc(100% - 148px);
  margin: 120px auto 28px;
  border: 3px solid var(--lime, #c9dd00);
  box-sizing: border-box;
}

.videos-hero__content {
  width: 100%;
  height: 100%;
}

.videos-hero h1 {
  position: absolute;
  top: 55px;
  left: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--pink, #df0067);
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: lowercase;
}

.videos-hero h1 span {
  display: inline-block;
  padding: 7px 14px 9px;
  color: var(--pink, #df0067);
  background: var(--lime, #c9dd00);
  line-height: 1.04;
}

.videos-hero__content > p {
  position: absolute;
  top: 247px;
  left: 60px;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 2px 9px rgb(0 0 0 / 48%);
}

.videos-content {
  padding: 90px 20px 125px;
  background: #fff;
}

.videos-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.videos-content h2 {
  margin: 0 0 28px;
  color: var(--pink, #df0067);
  font-size: clamp(36px, 3.2vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: lowercase;
}

.videos-intro {
  max-width: 980px;
  margin: 0 auto 55px;
  font-size: 20px;
  line-height: 1.28;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 38px;
}

.video-card {
  min-width: 0;
}

.video-card > a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: #ececec;
}

.video-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.video-card > a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 8%);
  transition: background-color 220ms ease;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 82px;
  height: 82px;
  border: 4px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 7px rgb(0 0 0 / 25%));
}

.video-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
  transform: translate(-40%, -50%);
}

.video-card > a:hover img,
.video-card > a:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.video-card > a:hover::after,
.video-card > a:focus-visible::after {
  background: rgb(0 0 0 / 18%);
}

.video-card > a:focus-visible {
  outline: 4px solid var(--lime, #c9dd00);
  outline-offset: 4px;
}

.video-card h3 {
  margin: 13px 2px 0;
  color: #161616;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.videos-channel-link {
  display: table;
  margin: 62px auto 0;
  padding: 14px 26px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--pink, #df0067);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.videos-channel-link:hover,
.videos-channel-link:focus-visible {
  color: #fff;
  filter: brightness(0.92);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .videos-hero {
    height: 640px;
    min-height: 640px;
  }

  .videos-hero__frame {
    width: calc(100% - 40px);
    height: 512px;
    margin: 100px auto 28px;
  }

  .videos-hero h1 {
    top: 35px;
    left: 32px;
    font-size: clamp(31px, 5.5vw, 44px);
  }

  .videos-hero__content > p {
    top: 218px;
    left: 32px;
  }

  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .videos-hero {
    height: 600px;
    min-height: 600px;
    background-position: 58% center;
  }

  .videos-hero__frame {
    width: calc(100% - 28px);
    height: 486px;
    margin: 92px auto 22px;
  }

  .videos-hero h1 {
    top: 25px;
    right: 18px;
    left: 18px;
    gap: 7px;
    font-size: clamp(26px, 8vw, 34px);
  }

  .videos-hero h1 span {
    padding: 5px 9px 7px;
  }

  .videos-hero__content > p {
    top: 174px;
    right: 18px;
    left: 18px;
    font-size: 19px;
  }

  .videos-content {
    padding: 65px 20px 85px;
  }

  .videos-content h2 {
    font-size: 37px;
  }

  .videos-intro {
    margin-bottom: 42px;
    font-size: 17px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .video-card__play {
    width: 68px;
    height: 68px;
  }

  .video-card h3 {
    font-size: 17px;
  }
}
