.video-hub-hero,
.video-library,
.video-editorial-note,
.video-home-feature {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.video-hub-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: 1.4rem;
  padding: clamp(2.2rem, 5vw, 5rem);
  border: 1px solid rgba(66, 228, 210, .26);
  border-radius: 28px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 86% 18%, rgba(73, 103, 255, .28), transparent 32%),
    radial-gradient(circle at 8% 90%, rgba(66, 228, 210, .18), transparent 30%),
    linear-gradient(135deg, #070d1a 0%, #0b1626 55%, #0a3038 100%);
  box-shadow: 0 30px 90px rgba(7, 13, 26, .28);
}

.video-hub-hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(66, 228, 210, .18);
  border-radius: 50%;
}

.video-hub-kicker,
.video-home-kicker,
.video-library-kicker {
  margin: 0 0 .9rem;
  color: #6ef0e0;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.video-hub-hero h1,
.video-home-feature h2 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 6.2vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.video-hub-hero h1 em,
.video-home-feature h2 em {
  color: #42e4d2;
  font-style: normal;
}

.video-hub-lede,
.video-home-copy > p {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: #b9c6d8;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.video-hub-actions,
.video-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.video-hub-actions .button-secondary,
.video-home-actions .button-secondary {
  color: #f4f8ff;
  border-color: rgba(244, 248, 255, .28);
  background: rgba(255, 255, 255, .05);
}

.video-count-panel {
  position: relative;
  z-index: 1;
  padding: 1.15rem;
  border: 1px solid rgba(66, 228, 210, .22);
  border-radius: 22px;
  background: rgba(3, 10, 20, .6);
  backdrop-filter: blur(16px);
}

.video-count-panel > p {
  margin: 0 0 .8rem;
  color: #94a5bc;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.video-count-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}

.video-count-grid div {
  min-width: 0;
  padding: 1.05rem .8rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.video-count-grid strong,
.video-count-grid span {
  display: block;
}

.video-count-grid strong {
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1;
}

.video-count-grid span {
  margin-top: .4rem;
  color: #91a1b8;
  font-size: .76rem;
  line-height: 1.35;
}

.video-count-panel small {
  display: block;
  margin-top: 1rem;
  color: #9cacc1;
  line-height: 1.55;
}

.video-editorial-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d9ddec;
  border-radius: 14px;
  background: #fff;
  color: #465268;
  font-size: .9rem;
  line-height: 1.6;
}

.video-editorial-note strong { color: #0b1020; }

.video-library {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.video-library-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

.video-library-heading h2 {
  margin: 0;
  color: #0b1020;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -.045em;
}

.video-library-heading p:last-child {
  max-width: 620px;
  margin: 0;
  color: #5d687a;
  line-height: 1.65;
}

.video-filter-panel {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #d9ddec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(11, 16, 32, .06);
}

.video-search label {
  display: block;
  margin-bottom: .45rem;
  color: #293147;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.video-search input {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  border: 1px solid #cbd1df;
  border-radius: 12px;
  color: #0b1020;
  background: #f9faff;
  font: inherit;
}

.video-search input:focus {
  outline: 3px solid rgba(66, 228, 210, .24);
  border-color: #2bb9aa;
}

.video-filter-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.video-filter-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.video-filter {
  min-height: 38px;
  padding: .55rem .78rem;
  border: 1px solid #d2d8e5;
  border-radius: 999px;
  color: #343d52;
  background: #fff;
  font: inherit;
  font-size: .83rem;
  font-weight: 750;
  cursor: pointer;
}

.video-filter:hover,
.video-filter[aria-pressed="true"] {
  color: #071622;
  border-color: #42e4d2;
  background: #dffbf7;
}

.video-results-status {
  margin: 0;
  color: #5b6577;
  font-size: .88rem;
}

.video-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.video-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9ddec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(11, 16, 32, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: #a9dcd6;
  box-shadow: 0 18px 44px rgba(11, 16, 32, .12);
}

.video-card[hidden] { display: none; }

.video-card-media {
  position: relative;
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 12%, rgba(73, 103, 255, .38), transparent 38%),
    linear-gradient(140deg, #071622, #0b3640);
}

.video-card-media img {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: contain;
  padding: 1rem;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .24));
}

.video-card-play {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  color: #071622;
  background: rgba(66, 228, 210, .94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  appearance: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.video-card-play:hover {
  transform: translate(-50%, -50%) scale(1.07);
  background: #72f5e6;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.video-card-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.video-card-pending {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: .55rem .7rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #eef4fc;
  background: rgba(3, 10, 20, .82);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.video-card-badges {
  position: absolute;
  inset: .7rem .7rem auto;
  display: flex;
  justify-content: space-between;
  gap: .4rem;
}

.video-card-badges span {
  padding: .35rem .5rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #eaf1fb;
  background: rgba(3, 10, 20, .8);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.video-card-badges .is-live { color: #071622; background: #42e4d2; }

.video-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.video-card-profile {
  margin: 0 0 .55rem;
  color: #4b5f78;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.video-card h3 {
  margin: 0;
  color: #0b1020;
  font-size: 1.02rem;
  line-height: 1.35;
}

.video-card-summary {
  margin: .65rem 0 0;
  color: #5b6578;
  font-size: .84rem;
  line-height: 1.55;
}

.video-card-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .9rem;
  color: #4d576a;
  font-size: .76rem;
}

.video-card-score strong {
  color: #0b1020;
  font-size: 1rem;
}

.video-card-actions {
  display: flex;
  gap: .5rem;
  margin-top: .85rem;
}

.video-card-actions > * {
  flex: 1;
  padding: .68rem .7rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
}

.video-card-review-link { color: #fff; background: #0b1020; }
.video-card-youtube-link { color: #071622; background: #42e4d2; }
.video-card-pending-action { color: #596477; background: #eef1f6; }

.video-empty {
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px dashed #bec7d7;
  border-radius: 14px;
  color: #596477;
  background: #fff;
}

.video-home-feature {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: 1.2rem;
  padding: clamp(2rem, 5vw, 4.8rem);
  border: 1px solid rgba(66, 228, 210, .26);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(73, 103, 255, .24), transparent 35%),
    linear-gradient(135deg, #070d1a, #0b1626 60%, #0a3038);
}

.video-home-feature h2 { font-size: clamp(2.5rem, 5.2vw, 5.7rem); }

.video-home-queue {
  position: relative;
  z-index: 1;
  padding: 1rem;
  border: 1px solid rgba(66, 228, 210, .2);
  border-radius: 20px;
  background: rgba(3, 10, 20, .68);
}

.video-home-queue-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
  color: #8fa2b9;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.video-home-queue-head strong { color: #42e4d2; }

.video-home-queue ol {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-home-queue li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .8rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
}

.video-home-queue li > span:first-child {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #071622;
  background: #42e4d2;
}

.video-home-queue li strong,
.video-home-queue li small { display: block; }
.video-home-queue li strong { color: #fff; font-size: .88rem; line-height: 1.35; }
.video-home-queue li small { margin-top: .2rem; color: #8ea0b6; }
.video-home-queue li > b { color: #fff; font-size: .9rem; }

body.video-modal-open { overflow: hidden; }

.video-player-dialog {
  width: min(1000px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(110, 240, 224, .3);
  border-radius: 22px;
  color: #f8fbff;
  background: #071622;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
}

.video-player-dialog::backdrop {
  background: rgba(2, 7, 16, .82);
  backdrop-filter: blur(8px);
}

.video-player-shell { padding: clamp(1rem, 2.5vw, 1.5rem); }

.video-player-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.video-player-head p {
  margin: 0 0 .35rem;
  color: #6ef0e0;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.video-player-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.video-player-close {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.video-player-close:hover,
.video-player-close:focus-visible {
  color: #071622;
  background: #6ef0e0;
}

.video-player-close:focus-visible {
  outline: 3px solid rgba(110, 240, 224, .4);
  outline-offset: 3px;
}

.video-player-frame {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: #000;
}

.video-player-dialog.is-short { width: min(560px, calc(100% - 32px)); }

.video-player-dialog.is-short .video-player-frame {
  width: min(100%, 400px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.video-player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-player-youtube {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  color: #071622;
  background: #6ef0e0;
  font-size: .85rem;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .video-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .video-hub-hero,
  .video-home-feature { grid-template-columns: 1fr; }
  .video-library-heading { display: block; }
  .video-library-heading p:last-child { margin-top: .8rem; }
  .video-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .video-hub-hero,
  .video-library,
  .video-editorial-note,
  .video-home-feature { width: min(100% - 24px, 1320px); }
  .video-hub-hero,
  .video-home-feature { padding: 1.3rem; border-radius: 18px; }
  .video-count-grid { grid-template-columns: 1fr; }
  .video-card-grid { grid-template-columns: 1fr; }
  .video-home-queue li { grid-template-columns: 40px 1fr; }
  .video-home-queue li > b { grid-column: 2; }
  .video-player-dialog,
  .video-player-dialog.is-short {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
}

@media (max-height: 700px) {
  .video-player-dialog.is-short .video-player-frame {
    width: min(100%, calc(58dvh * 9 / 16));
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-card,
  .video-card-play { transition: none; }
}
