/* ---------- Videos page (videos.php) ---------- */

.pm-videos { max-width: 1200px; margin: 0 auto; padding: 0 40px 120px; }
.pm-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}

.pm-video { margin: 0; }
.pm-video__player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #0a0a0a;
  cursor: pointer;
}
.pm-video__player img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.pm-video__player::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35));
  transition: opacity .3s ease;
}
.pm-video__play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  padding-left: 3px;
  color: #fff;
  background: var(--primary, #FC4805);
  border-radius: 50%;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.pm-video__player:hover img { transform: scale(1.04); }
.pm-video__player:hover .pm-video__play { transform: translate(-50%, -50%) scale(1.1); }
.pm-video__player:focus-visible { outline: 3px solid var(--primary, #FC4805); outline-offset: 3px; }

/* once playing, the button is replaced by the iframe */
.pm-video__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
  background: #000;
}

.pm-video__title {
  margin: 14px 2px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #0a0a0a;
}

.pm-videos__more { display: flex; justify-content: center; margin-top: 56px; }
.pm-videos__channel {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 26px;
  font-size: 16px; font-weight: 600;
  color: #fff;
  background: #0a0a0a;
  border-radius: 16px;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}
.pm-videos__channel svg { color: #ff0000; transition: color .25s ease; }
.pm-videos__channel:hover { background: var(--primary, #FC4805); transform: translateY(-2px); }
.pm-videos__channel:hover svg { color: #fff; }

@media (max-width: 1023.98px) { .pm-videos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .pm-videos { padding: 0 16px 80px; }
  .pm-videos__grid { grid-template-columns: 1fr; gap: 28px; }
}
