.martlverse-videos-page,
.videos-index {
  background: #05070a;
}

.videos-overview-shell,
.videos-overview-shell > .wp-block-shortcode {
  width: 100%;
  max-width: none;
  margin: 0;
}

.videos-index {
  position: relative;
  overflow: hidden;
  padding: 104px 0 126px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    #05070a;
  background-size: 72px 72px;
}

.videos-index::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 20%, rgba(21, 153, 255, 0.08), transparent 25%),
    radial-gradient(circle at 100% 64%, rgba(255, 119, 15, 0.07), transparent 28%);
}

.videos-index > .category-shell {
  position: relative;
  z-index: 1;
}

.videos-index-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 510px);
  gap: 70px;
  align-items: end;
}

.videos-index-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.videos-index-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.videos-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 47px 0 34px;
}

.videos-filter {
  --filter-accent: #fff;
  min-width: 102px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #a8b1ba;
  background: rgba(8, 12, 17, 0.72);
  font: 850 10px var(--font-geist-mono), monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.videos-filter--play { --filter-accent: var(--play); }
.videos-filter--grow { --filter-accent: var(--grow); }
.videos-filter--build { --filter-accent: var(--build); }

.videos-filter:hover,
.videos-filter:focus-visible {
  color: #fff;
  border-color: color-mix(in srgb, var(--filter-accent) 70%, transparent);
  transform: translateY(-2px);
}

.videos-filter.is-active {
  color: #05070a;
  border-color: var(--filter-accent);
  background: var(--filter-accent);
}

.videos-featured,
.videos-archive-card {
  --accent: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(14, 20, 27, 0.97), rgba(7, 11, 16, 0.97));
}

.videos-world--play { --accent: var(--play); }
.videos-world--grow { --accent: var(--grow); }
.videos-world--build { --accent: var(--build); }

.videos-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  min-height: 470px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.videos-featured-visual,
.videos-archive-visual {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(2, 4, 7, 0.78)),
    url("../images/hero-three-worlds.webp") left center / 300% 100% no-repeat;
}

.videos-world--grow :is(.videos-featured-visual, .videos-archive-visual) {
  background-position: center;
}

.videos-world--build :is(.videos-featured-visual, .videos-archive-visual) {
  background-position: right center;
}

.videos-featured-visual img,
.videos-archive-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 480ms ease;
}

.videos-featured:hover .videos-featured-visual img,
.videos-featured:focus-within .videos-featured-visual img,
.videos-archive-card:hover .videos-archive-visual img,
.videos-archive-card:focus-within .videos-archive-visual img {
  transform: scale(1.035);
}

.videos-card-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 45%),
    linear-gradient(180deg, transparent, rgba(2, 4, 7, 0.7));
}

.videos-card-placeholder::after {
  content: "";
  position: absolute;
  inset: 19%;
  opacity: 0.13;
  background: url("../images/martlverse-m-transparent.webp") center / contain no-repeat;
}

.videos-world-label,
.videos-duration {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  background: rgba(3, 6, 9, 0.76);
  font: 850 9px var(--font-geist-mono), monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.videos-world-label {
  left: 24px;
  top: 24px;
  border-color: color-mix(in srgb, var(--accent) 75%, transparent);
  color: var(--accent);
}

.videos-duration {
  right: 22px;
  bottom: 20px;
}

.videos-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(3, 6, 9, 0.72);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.videos-featured-visual:hover .videos-play-button,
.videos-archive-visual:hover .videos-play-button {
  color: #05070a;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.06);
}

.videos-play-button i {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.videos-play-button--small {
  width: 58px;
  height: 58px;
}

.videos-play-button--small i {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 11px;
}

.videos-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 4.5vw, 70px);
}

.videos-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #8d98a4;
  font: 800 9px var(--font-geist-mono), monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.videos-card-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.videos-featured-label {
  margin: 26px 0 0 !important;
  color: var(--accent) !important;
  font: 850 10px var(--font-geist-mono), monospace !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
}

.videos-featured-copy h3 {
  margin: 14px 0 20px;
  font-size: clamp(30px, 3vw, 45px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.videos-featured-copy > p:not(.videos-featured-label) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.videos-watch-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 30px;
  color: var(--accent);
  font: 900 10px var(--font-geist-mono), monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.videos-watch-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.videos-watch-link:hover svg,
.videos-watch-link:focus-visible svg {
  transform: translateX(4px);
}

.videos-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.videos-archive-card {
  min-width: 0;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.videos-archive-card:hover,
.videos-archive-card:focus-within {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.videos-archive-visual {
  aspect-ratio: 16 / 9;
}

.videos-archive-copy {
  min-height: 205px;
  display: flex;
  flex-direction: column;
  padding: 26px 27px 28px;
}

.videos-archive-copy h3 {
  margin: 15px 0 0;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.videos-archive-copy .videos-watch-link {
  margin-top: auto;
  padding-top: 24px;
}

.videos-pagination {
  margin-top: 48px;
}

.videos-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.videos-pagination a,
.videos-pagination span {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #aeb7c0;
  background: #090d12;
  font: 800 10px var(--font-geist-mono), monospace;
}

.videos-pagination .current {
  color: #05070a;
  border-color: #fff;
  background: #fff;
}

.videos-empty-state {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 34px;
  padding: clamp(44px, 7vw, 90px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(120deg, rgba(21, 153, 255, 0.055), transparent 34%),
    linear-gradient(240deg, rgba(255, 119, 15, 0.05), transparent 34%),
    #090d12;
}

.videos-empty-mark {
  position: absolute;
  right: clamp(-80px, 2vw, 30px);
  top: 50%;
  width: min(520px, 48vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.055;
  background: url("../images/martlverse-m-transparent.webp") center / contain no-repeat;
}

.videos-empty-state > :not(.videos-empty-mark) {
  position: relative;
  z-index: 1;
  max-width: 710px;
}

.videos-empty-state h2 {
  margin: 18px 0 22px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.videos-empty-state > p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.videos-empty-worlds {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
  font: 850 10px var(--font-geist-mono), monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.videos-empty-worlds .play { color: var(--play); }
.videos-empty-worlds .grow { color: var(--grow); }
.videos-empty-worlds .build { color: var(--build); }

@media (max-width: 980px) {
  .videos-index-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .videos-featured {
    grid-template-columns: 1fr;
  }

  .videos-featured-visual {
    min-height: 420px;
  }

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

@media (max-width: 700px) {
  .videos-index {
    padding: 78px 0 88px;
  }

  .videos-index > .category-shell {
    width: calc(100% - 36px);
  }

  .videos-filters {
    margin-top: 34px;
  }

  .videos-filter {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding-inline: 10px;
  }

  .videos-featured-visual {
    min-height: 270px;
  }

  .videos-featured-copy {
    padding: 30px 24px 36px;
  }

  .videos-archive-grid {
    grid-template-columns: 1fr;
  }

  .videos-empty-state {
    min-height: 440px;
    padding: 36px 24px;
  }

  .videos-empty-mark {
    right: -125px;
    width: 420px;
  }
}
