@font-face {
  font-family: "InterVariable";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --video-bg: #07101f;
  --video-panel: rgba(15, 28, 49, 0.9);
  --video-panel-solid: #0f1c31;
  --video-panel-soft: rgba(17, 34, 58, 0.7);
  --video-line: rgba(159, 181, 216, 0.18);
  --video-line-strong: rgba(67, 211, 255, 0.38);
  --video-text: #f5f8ff;
  --video-muted: #a9b8ce;
  --video-accent: #31d6ff;
  --video-accent-strong: #06b6d4;
  --video-violet: #818cf8;
  --video-success: #5eead4;
  --video-danger: #fda4af;
  --video-radius: 22px;
  --video-shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body.video-library-page {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(34, 211, 238, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 16%, rgba(99, 102, 241, 0.11), transparent 28rem),
    var(--video-bg);
  color: var(--video-text);
  font-family: "InterVariable", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.video-library,
.video-library * {
  box-sizing: border-box;
}

.video-library {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.video-library img {
  display: block;
  max-width: 100%;
}

.video-library a {
  color: inherit;
  text-decoration: none;
}

.video-library button,
.video-library input {
  font: inherit;
}

.video-library :where(a, button, input, summary):focus-visible {
  outline: 3px solid rgba(49, 214, 255, 0.75);
  outline-offset: 3px;
}

.video-breadcrumbs {
  margin-bottom: 18px;
  color: var(--video-muted);
  font-size: 0.86rem;
}

.video-breadcrumbs ol {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #60738f;
}

.video-breadcrumbs a:hover {
  color: var(--video-accent);
}

.video-notice {
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid var(--video-line);
  border-radius: 14px;
  font-weight: 700;
}

.video-notice--success {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(13, 148, 136, 0.12);
  color: #ccfbf1;
}

.video-notice--error {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(190, 24, 93, 0.12);
  color: #ffe4e6;
}

.video-kicker,
.video-badge,
.video-topic {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #a5f3fc;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.video-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.42fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--video-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(9, 23, 43, 0.96), rgba(17, 31, 58, 0.88)),
    var(--video-panel-solid);
  box-shadow: var(--video-shadow);
}

.video-hero::after {
  position: absolute;
  right: -130px;
  top: -190px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 214, 255, 0.18), transparent 67%);
  content: "";
  pointer-events: none;
}

.video-hero__copy,
.video-hero__stats {
  position: relative;
  z-index: 1;
}

.video-hero h1 {
  max-width: 850px;
  margin: 14px 0 13px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.35rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.video-hero__copy > p {
  max-width: 740px;
  margin: 0;
  color: #c5d2e5;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.72;
}

.video-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.video-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.video-button:hover {
  transform: translateY(-1px);
}

.video-button--primary {
  background: linear-gradient(135deg, var(--video-accent), var(--video-violet));
  color: #03111f !important;
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.2);
}

.video-button--secondary {
  border-color: var(--video-line);
  background: rgba(15, 28, 49, 0.78);
  color: #e7efff !important;
}

.video-button--secondary:hover {
  border-color: var(--video-line-strong);
  background: rgba(23, 43, 70, 0.95);
}

.video-hero__stats {
  display: grid;
  gap: 10px;
  margin: 0;
}

.video-hero__stats > div {
  padding: 15px 16px;
  border: 1px solid var(--video-line);
  border-radius: 14px;
  background: rgba(3, 12, 26, 0.44);
}

.video-hero__stats dt {
  color: #fff;
  font-size: 1.17rem;
  font-weight: 900;
}

.video-hero__stats dd {
  margin: 4px 0 0;
  color: var(--video-muted);
  font-size: 0.83rem;
}

.featured-video {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 0;
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid var(--video-line-strong);
  border-radius: var(--video-radius);
  background: var(--video-panel);
  box-shadow: var(--video-shadow);
}

.featured-video__media,
.video-card__media,
.popular-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020817;
}

.featured-video__media img,
.video-card__media img,
.popular-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.featured-video__media:hover img,
.video-card__media:hover img,
.popular-card:hover img {
  transform: scale(1.025);
  opacity: 0.9;
}

.featured-video__play,
.video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(2, 8, 23, 0.76);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
}

.featured-video__play svg,
.video-card__play svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.video-card__play {
  width: 46px;
  height: 46px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.video-card__play svg {
  width: 22px;
  height: 22px;
}

.video-card__media:hover .video-card__play,
.video-card__media:focus-visible .video-card__play {
  opacity: 1;
}

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(2, 8, 23, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 850;
}

.featured-video__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.featured-video__content > .video-topic {
  margin-top: 12px;
  color: #b9c9df;
  letter-spacing: 0.06em;
}

.video-badge--latest {
  padding: 7px 9px;
  border: 1px solid rgba(49, 214, 255, 0.35);
  border-radius: 999px;
  background: rgba(49, 214, 255, 0.1);
}

.featured-video h2 {
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(1.55rem, 2.7vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.featured-video__content > p {
  margin: 0;
  color: #bccae0;
  line-height: 1.68;
}

.featured-video__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  color: var(--video-muted);
  font-size: 0.82rem;
}

.featured-video__meta span + span::before {
  margin-right: 16px;
  color: #536984;
  content: "•";
}

.video-text-link {
  margin-top: 22px;
  color: var(--video-accent) !important;
  font-weight: 900;
}

.video-text-link:hover {
  color: #a5f3fc !important;
}

.video-discovery,
.video-alerts,
.video-faq {
  margin-top: 30px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--video-line);
  border-radius: var(--video-radius);
  background: var(--video-panel-soft);
}

.video-discovery__heading,
.video-section__heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
}

.video-discovery__heading h2,
.video-section__heading h2,
.video-alerts h2,
.video-faq h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.video-clear-link {
  color: var(--video-accent) !important;
  font-size: 0.88rem;
  font-weight: 800;
}

.video-search {
  margin-top: 20px;
}

.video-search > label,
.video-alert-form > label:not(.video-test-email) {
  display: block;
  margin-bottom: 8px;
  color: #d5e0ef;
  font-size: 0.84rem;
  font-weight: 800;
}

.video-search__control {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.video-search__control svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #8192aa;
  stroke-linecap: round;
  stroke-width: 2;
  transform: translateY(-50%);
}

.video-search input,
.video-alert-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(156, 178, 211, 0.28);
  border-radius: 12px;
  background: rgba(3, 12, 26, 0.72);
  color: #fff;
}

.video-search input {
  padding: 12px 14px 12px 46px;
}

.video-search button,
.video-alert-form button {
  min-height: 48px;
  padding: 11px 19px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--video-accent), var(--video-violet));
  color: #03111f;
  font-weight: 900;
  cursor: pointer;
}

.video-topics {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin-top: 18px;
  padding: 2px 2px 7px;
  scrollbar-width: none;
}

.video-topics::-webkit-scrollbar {
  display: none;
}

.video-topic-link {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--video-line);
  border-radius: 999px;
  background: rgba(5, 15, 31, 0.54);
  color: #c4d0e1 !important;
  font-size: 0.84rem;
  font-weight: 800;
}

.video-topic-link:hover,
.video-topic-link.is-active {
  border-color: var(--video-line-strong);
  background: rgba(34, 211, 238, 0.12);
  color: #d8fbff !important;
}

.video-section {
  margin-top: 44px;
  scroll-margin-top: 96px;
}

.video-section__heading {
  margin-bottom: 20px;
}

.video-section__heading > p {
  margin: 0;
  color: var(--video-muted);
  font-size: 0.87rem;
}

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

.video-card,
.popular-card {
  overflow: hidden;
  border: 1px solid var(--video-line);
  border-radius: 17px;
  background: var(--video-panel);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease;
}

.video-card:hover,
.popular-card:hover {
  border-color: var(--video-line-strong);
  transform: translateY(-3px);
}

.video-card__body {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 17px;
}

.video-card__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  color: #9fb1c9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-card h3,
.popular-card h3 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.video-card h3 a:hover {
  color: #a5f3fc;
}

.video-card__body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: #afbed3;
  font-size: 0.88rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.video-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: auto;
  padding-top: 16px;
  color: #8093ad;
  font-size: 0.77rem;
}

.video-empty {
  padding: 54px 22px;
  border: 1px dashed rgba(159, 181, 216, 0.3);
  border-radius: var(--video-radius);
  background: var(--video-panel-soft);
  text-align: center;
}

.video-empty h3 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
}

.video-empty p {
  margin: 9px 0 20px;
  color: var(--video-muted);
}

.video-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

.video-page-link {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 8px 11px;
  border: 1px solid var(--video-line);
  border-radius: 10px;
  background: rgba(15, 28, 49, 0.85);
  color: #d7e1ef !important;
  font-weight: 800;
}

.video-page-link--wide {
  min-width: 92px;
}

.video-page-link:hover,
.video-page-link.is-active {
  border-color: var(--video-line-strong);
  background: rgba(34, 211, 238, 0.14);
  color: #fff !important;
}

.video-page-link.is-disabled {
  opacity: 0.42;
}

.video-ad {
  min-height: 138px;
  margin-top: 36px;
  padding: 10px;
  border: 1px solid rgba(159, 181, 216, 0.12);
  border-radius: 16px;
  background: rgba(7, 17, 33, 0.58);
}

.video-ad > span {
  display: block;
  margin-bottom: 6px;
  color: #6f819b;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.video-alerts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr);
  gap: 34px;
  align-items: center;
  background: linear-gradient(135deg, rgba(8, 32, 53, 0.9), rgba(32, 31, 70, 0.72));
}

.video-alerts p,
.video-faq__heading p {
  margin: 11px 0 0;
  color: #afbed3;
  line-height: 1.65;
}

.video-social-proof {
  display: inline-flex;
  margin-top: 14px;
  color: #a5f3fc;
  font-size: 0.82rem;
  font-weight: 800;
}

.video-alert-form {
  position: relative;
}

.video-alert-form__control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.video-alert-form input[type="email"] {
  padding: 12px 13px;
}

.video-test-email {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  color: #93a5bd;
  font-size: 0.76rem;
  line-height: 1.35;
}

.video-test-email input {
  margin-top: 2px;
}

.video-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.video-alert-form__confirmation {
  margin: 0 0 14px !important;
  color: #dbe7f6 !important;
}

.video-carousel-actions {
  display: flex;
  gap: 8px;
}

.video-carousel-actions button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--video-line);
  border-radius: 11px;
  background: rgba(15, 28, 49, 0.86);
  color: #fff;
  cursor: pointer;
}

.video-carousel-actions button:hover {
  border-color: var(--video-line-strong);
  background: rgba(34, 211, 238, 0.13);
}

.video-carousel {
  display: grid;
  grid-auto-columns: minmax(255px, 28%);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 3px 3px 15px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(49, 214, 255, 0.35) transparent;
}

.popular-card {
  scroll-snap-align: start;
}

.popular-card > a {
  display: block;
  height: 100%;
}

.popular-card__body {
  padding: 14px;
}

.popular-card__body > span {
  color: #9fb2cb;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.popular-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.popular-card p {
  margin: 9px 0 0;
  color: #8093ad;
  font-size: 0.77rem;
}

.video-faq {
  display: grid;
  grid-template-columns: minmax(250px, 0.45fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  margin-top: 48px;
}

.video-faq__list {
  display: grid;
  gap: 10px;
}

.video-faq details {
  overflow: hidden;
  border: 1px solid var(--video-line);
  border-radius: 14px;
  background: rgba(4, 14, 29, 0.5);
}

.video-faq summary {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.video-faq summary::-webkit-details-marker {
  display: none;
}

.video-faq summary span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid rgba(49, 214, 255, 0.3);
  border-radius: 50%;
  color: #a5f3fc;
  transition: transform 160ms ease;
}

.video-faq details[open] summary span {
  transform: rotate(45deg);
}

.video-faq details p {
  margin: 0;
  padding: 0 17px 17px;
  color: #afbed3;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .video-hero,
  .featured-video,
  .video-alerts,
  .video-faq {
    grid-template-columns: 1fr;
  }

  .video-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-video__content {
    padding: 26px;
  }

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

  .video-carousel {
    grid-auto-columns: minmax(260px, 42%);
  }
}

@media (max-width: 640px) {
  .video-library {
    width: min(100% - 22px, 1240px);
    padding-top: 18px;
  }

  .video-hero {
    gap: 23px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .video-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .video-hero__actions,
  .video-hero__actions .video-button {
    width: 100%;
  }

  .video-hero__stats {
    grid-template-columns: 1fr;
  }

  .featured-video,
  .video-discovery,
  .video-alerts,
  .video-faq {
    border-radius: 17px;
  }

  .featured-video__play {
    width: 54px;
    height: 54px;
  }

  .featured-video__content {
    padding: 21px 17px 24px;
  }

  .featured-video__meta span + span::before {
    display: none;
  }

  .video-discovery,
  .video-alerts,
  .video-faq {
    padding: 20px 15px;
  }

  .video-discovery__heading,
  .video-section__heading {
    align-items: flex-start;
  }

  .video-search__control,
  .video-alert-form__control {
    grid-template-columns: 1fr;
  }

  .video-search__control svg {
    top: 24px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card__body {
    min-height: 0;
  }

  .video-card__play {
    opacity: 1;
  }

  .video-carousel-actions {
    display: none;
  }

  .video-carousel {
    grid-auto-columns: minmax(250px, 82%);
  }

  .video-page-link {
    min-width: 39px;
    min-height: 39px;
  }

  .video-page-link--wide {
    min-width: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .video-library *,
  .video-library *::before,
  .video-library *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
