.internal-page {
  min-height: 100vh;
  background: #080d16;
}

.videos-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 16%, rgba(213, 17, 35, 0.16), transparent 27rem),
    linear-gradient(180deg, #080d16 0, #0d1420 315px, #f6f8fc 315px, #eef1f7 100%);
}

.videos-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.videos-hero {
  position: relative;
  overflow: hidden;
  min-height: 315px;
  border-bottom: 1px solid rgba(213, 17, 35, 0.42);
  background: #07090d;
}

.videos-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.92), rgba(7, 9, 13, 0.62)),
    url("../images/uploads/sliders/1763709027603-271614278.png") center / cover no-repeat;
  opacity: 0.82;
}

.videos-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.05), #07090d 100%);
}

.videos-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 315px;
  padding: 54px 0;
}

.videos-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 26px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.videos-breadcrumbs a,
.videos-title-row h1,
.videos-count-chip strong {
  color: #fff;
}

.videos-breadcrumbs strong,
.videos-kicker,
.videos-eyebrow {
  color: var(--red);
}

.videos-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.videos-title-row h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  font-weight: 900;
}

.videos-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
}

.videos-count-chip {
  display: grid;
  gap: 6px;
  min-width: 132px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.videos-count-chip span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.videos-card {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  margin-bottom: 74px;
  border: 1px solid rgba(13, 21, 34, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.videos-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  background: #fff;
}

.videos-card h2 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
}

.videos-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 9px;
  background: #f8fafc;
}

.videos-tabs button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5b6472;
  font-weight: 900;
  cursor: pointer;
}

.videos-tabs button.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(213, 17, 35, 0.2);
}

.videos-feature {
  padding: 24px 26px 10px;
}

.video-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  overflow: hidden;
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.video-player {
  position: relative;
  min-height: 370px;
  background: #05070d;
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-feature-body {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 30px;
  color: #fff;
}

.video-feature-body span {
  color: #ffb3bd;
  font-size: 12px;
  font-weight: 900;
}

.video-feature-body h3 {
  margin: 0;
  font-size: clamp(22px, 2.45vw, 34px);
  line-height: 1.15;
  font-weight: 900;
}

.video-feature-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.video-feature-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 26px 28px;
}

.video-tile {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  text-align: inherit;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  display: block;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 7, 13, 0.58));
}

.video-play {
  position: absolute;
  inset-inline-start: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 32px rgba(213, 17, 35, 0.28);
}

.video-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.video-tile-body {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.video-tile-body small {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.video-tile-body strong {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

.video-tile-body em {
  color: #7d8796;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.videos-empty,
.videos-loading {
  padding: 38px 26px;
  color: #6b7280;
  font-weight: 900;
  text-align: center;
}

.videos-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  grid-column: 1 / -1;
}

.videos-loading span {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(213, 17, 35, 0.16);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: videos-spin 0.8s linear infinite;
}

@keyframes videos-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .videos-title-row,
  .videos-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .videos-tabs {
    justify-content: start;
  }

  .video-feature-card,
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .video-player {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }

  .videos-feature,
  .videos-grid {
    padding-inline: 14px;
  }
}

/* Videos page motion and interaction polish */
.site-shell-ready .videos-hero-content {
  animation: videosHeroIn 0.65s ease both;
}

.site-shell-ready .videos-card {
  animation: videosCardIn 0.72s ease both;
}

.video-feature-card,
.video-tile,
.videos-tabs button,
.video-play,
.video-thumb img {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.video-feature-card,
.video-tile {
  animation: videoCardIn 0.42s ease both;
}

.video-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(213, 17, 35, 0.2);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.13);
}

.video-tile:hover .video-thumb img {
  transform: scale(1.045);
}

.video-tile:hover .video-play {
  transform: scale(1.06);
}

.videos-tabs button:hover {
  color: var(--red);
}

.videos-tabs button.is-active:hover {
  color: #fff;
}

@keyframes videosHeroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes videosCardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes videoCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
