
.contain_archive {
  width: 100%;
}

.row_nm_videos {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 22px 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(99, 213, 255, 0.10) 0%, rgba(99, 213, 255, 0) 55%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 195, 0, 0.08) 0%, rgba(255, 195, 0, 0) 55%),
    linear-gradient(180deg, #0a1628 0%, #060e1a 100%);
  border-top: 1px solid rgba(255, 195, 0, 0.18);
  border-bottom: 1px solid rgba(255, 195, 0, 0.18);
}

/* Soft fade on both edges */
.row_nm_videos::before,
.row_nm_videos::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 3;
  pointer-events: none;
}
.row_nm_videos::before {
  left: 0;
  background: linear-gradient(90deg, #08121f 0%, rgba(8, 18, 31, 0) 100%);
}
.row_nm_videos::after {
  right: 0;
  background: linear-gradient(270deg, #08121f 0%, rgba(8, 18, 31, 0) 100%);
}

.row_nm_videos::-webkit-scrollbar {
  display: none;
}

.row__inner {
  display: flex;
  width: max-content;
  font-size: 0;
  animation: skieVideoScroll 45s linear infinite;
  will-change: transform;
}
.row_nm_videos:hover .row__inner {
  animation-play-state: paused;
}

@keyframes skieVideoScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .row__inner { animation: none; }
  .row_nm_videos { overflow-x: auto; }
}

.tile {
  position: relative;
  flex: 0 0 auto;
  width: 250px;
  height: 140px;
  margin-right: 14px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #12264a 0%, #0b1730 100%);
  border: 1px solid rgba(255, 195, 0, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: #ffc300;
  box-shadow: 0 12px 28px rgba(255, 195, 0, 0.22);
}

.tile__media {
  position: absolute;
  inset: 0;
}

.tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.tile:hover .tile__img {
  transform: scale(1.06);
}

/* Shown when YouTube has no thumbnail (private / removed video) */
.tile__fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(99, 213, 255, 0.18) 0%, rgba(99, 213, 255, 0) 60%),
    linear-gradient(135deg, #14305c 0%, #0a1730 100%);
  color: rgba(255, 195, 0, 0.35);
  font-size: 54px;
}
.tile--nothumb .tile__img {
  display: none;
}
.tile--nothumb .tile__fallback {
  display: flex;
}

.tile__details {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(4, 10, 22, 0.92) 0%, rgba(4, 10, 22, 0.25) 55%, rgba(4, 10, 22, 0) 100%);
}

/* Play button */
.tile__details::after {
  content: '\25B6';
  position: absolute;
  top: 65%;
  right: 8%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: linear-gradient(#ffeb00, #ffc300, #ff9300);
  color: #1a1200;
  font-size: 17px;
  line-height: 46px;
  text-align: center;
  text-indent: 3px;
  box-shadow: 0 0 0 0 rgba(255, 195, 0, 0.55);
  animation: skiePlayPulse 2.2s ease-out infinite;
  transition: transform 0.3s ease;
}
.tile:hover .tile__details::after {
  transform: scale(1.12);
}

@keyframes skiePlayPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 195, 0, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 195, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 195, 0, 0); }
}

.tile__title {
  position: absolute;
  bottom: 0;
  padding: 10px;
}

.tile_desc {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
}
.tile_desc h4.badge {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent !important;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.tile_desc::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: #ffc300;
}

@media (max-width: 575.98px) {
  .row_nm_videos { padding: 16px 0; }
  .row_nm_videos::before,
  .row_nm_videos::after { width: 30px; }
  .tile {
    width: 200px;
    height: 115px;
    margin-right: 10px;
  }
  .tile__details::after {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    line-height: 38px;
    font-size: 14px;
  }
}
