/* =========================================================
   PRIVATE PUBLIC VIDEO PAGES
   Loaded after style.css so the video layout remains stable
   even when the main stylesheet on the server is cached.
   ========================================================= */

.video-page {
  --video-ink: #101828;
  --video-muted: #667085;
  --video-line: rgba(16, 24, 40, .09);
  --video-blue: #0b55d9;
  --video-blue-dark: #073ca2;
  --video-purple: #1c0770;
  --video-purple-dark: #100342;
  --video-purple-light: #4b26b6;
  --video-orange: #ff5b18;
  --video-surface: #ffffff;
  --video-soft: #f4f7fb;
  padding-top: 94px;
  min-height: 72vh;
  background:
    radial-gradient(circle at 8% 2%, rgba(11, 85, 217, .10), transparent 24rem),
    radial-gradient(circle at 94% 8%, rgba(255, 91, 24, .08), transparent 22rem),
    #f8fafc;
}

.video-page .container {
  width: min(100% - 32px, 1180px);
  max-width: 1180px !important;
  margin-inline: auto;
}

/* ---------- Listing hero ---------- */
.video-hero-section {
  padding: 26px 0 34px;
}

.video-hero-card {
  position: relative;
  min-height: 232px;
  max-width: none;
  margin: 0;
  padding: clamp(34px, 5vw, 58px) clamp(28px, 6vw, 70px);
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: #fff;
  background:
    linear-gradient(115deg, var(--video-purple-dark) 0%, var(--video-purple) 57%, var(--video-purple-light) 100%),
    var(--video-purple);
  box-shadow: 0 28px 70px rgba(28, 7, 112, .28);
}

.video-hero-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 390px;
  aspect-ratio: 1;
  right: -150px;
  top: -195px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, .045),
    0 0 0 92px rgba(255, 255, 255, .028);
}

.video-hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -70px;
  bottom: -110px;
  width: 270px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 91, 24, .52), transparent 68%);
  filter: blur(3px);
}

.video-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.video-hero-card h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.05rem, 4.8vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  font-weight: 850;
}

.video-hero-card h1 em {
  color: #ffc4aa;
  font-style: normal;
}

.video-hero-card p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(.96rem, 1.8vw, 1.08rem);
  line-height: 1.7;
}

.video-hero-icon {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .11);
  color: #fff;
  box-shadow:
    inset 0 0 0 12px rgba(255, 255, 255, .05),
    0 24px 44px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}

.video-hero-icon i {
  font-size: 4rem;
  filter: drop-shadow(0 10px 17px rgba(0, 0, 0, .25));
}

/* ---------- Listing ---------- */
.video-list-section {
  padding: 8px 0 76px;
}

/* ---------- Search and listing heading ---------- */
.video-list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(430px, 1.28fr);
  align-items: end;
  gap: clamp(24px, 4vw, 48px);
  margin: 4px 0 28px;
}

.video-list-heading {
  min-width: 0;
}

.video-list-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--video-orange);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.video-list-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
}

.video-list-toolbar h2 {
  margin: 0;
  color: var(--video-ink);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.video-result-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--video-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--video-muted);
  box-shadow: 0 8px 22px rgba(16, 24, 40, .05);
  font-size: .79rem;
  font-weight: 750;
  white-space: nowrap;
}

.video-search-panel {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(28, 7, 112, .10);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(28, 7, 112, .075);
  backdrop-filter: blur(12px);
}

.video-search-form {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 9px;
}

.video-search-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.video-search-field > i {
  position: absolute;
  z-index: 2;
  left: 17px;
  top: 50%;
  color: var(--video-purple);
  font-size: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.video-search-field input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 16px 11px 46px;
  border: 1px solid rgba(28, 7, 112, .15);
  border-radius: 14px;
  outline: 0;
  background: #f8f7fc;
  color: var(--video-ink);
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .025);
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  transition: border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.video-search-field input::placeholder {
  color: #8d93a1;
  font-weight: 550;
}

.video-search-field input:focus {
  border-color: rgba(28, 7, 112, .52);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 7, 112, .10);
}

.video-search-submit,
.video-search-reset {
  min-height: 50px;
  padding: 11px 17px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  font-weight: 850;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.video-search-submit {
  background: linear-gradient(135deg, var(--video-purple-light), var(--video-purple));
  color: #fff;
  box-shadow: 0 11px 23px rgba(28, 7, 112, .20);
}

.video-search-submit:hover,
.video-search-submit:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 15px 29px rgba(28, 7, 112, .29);
}

.video-search-reset {
  border: 1px solid rgba(28, 7, 112, .13);
  background: #f2effb;
  color: var(--video-purple) !important;
}

.video-search-reset:hover,
.video-search-reset:focus-visible {
  transform: translateY(-2px);
  background: #e9e3fa;
  box-shadow: 0 10px 22px rgba(28, 7, 112, .10);
}

.video-search-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 3px 0;
  color: var(--video-muted);
  font-size: .7rem;
  line-height: 1.4;
}

.video-search-hint i {
  color: var(--video-purple);
}

.video-public-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 30px !important;
  width: 100%;
}

.video-public-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--video-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 36px rgba(16, 24, 40, .075);
  transition:
    transform .34s cubic-bezier(.2, .8, .2, 1),
    box-shadow .34s ease,
    border-color .34s ease;
}

.video-public-card:hover {
  transform: translateY(-9px);
  border-color: rgba(11, 85, 217, .22);
  box-shadow: 0 28px 60px rgba(13, 61, 145, .16);
}

.video-card-link {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
}

.video-card-link:focus-visible {
  outline: 4px solid rgba(11, 85, 217, .26);
  outline-offset: 4px;
  border-radius: 24px;
}

.video-card-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07152f;
}

.video-card-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 8, 25, .03) 32%, rgba(1, 8, 25, .52) 100%);
}

.video-card-thumbnail img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  opacity: 1;
  transition:
    transform .62s cubic-bezier(.2, .8, .2, 1),
    filter .4s ease,
    opacity .38s ease;
}

.video-public-card:hover .video-card-thumbnail img {
  transform: scale(1.065);
  opacity: .70;
  filter: saturate(1.04) contrast(1.02);
}

.video-card-category {
  position: absolute;
  z-index: 3;
  left: 16px;
  top: 16px;
  max-width: calc(100% - 32px);
  padding: 7px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(7, 21, 47, .64);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(9px);
}

.video-card-play {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff7336, var(--video-orange));
  box-shadow: 0 15px 35px rgba(0, 0, 0, .32);
  transform: translate(-50%, -50%);
  isolation: isolate;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.video-card-play::before,
.video-card-play::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: inherit;
  opacity: 0;
  transform: scale(.82);
  pointer-events: none;
}

.video-card-play::after {
  border-color: rgba(255, 255, 255, .58);
}

.video-card-play i {
  margin-left: 4px;
  font-size: 2rem;
}

.video-public-card:hover .video-card-play {
  transform: translate(-50%, -50%) scale(1.09);
  background: linear-gradient(135deg, var(--video-purple-light), var(--video-purple));
  box-shadow:
    0 18px 40px rgba(28, 7, 112, .42),
    0 0 0 1px rgba(255, 255, 255, .18) inset;
}

.video-public-card:hover .video-card-play::before {
  animation: video-play-circle 1.45s cubic-bezier(.2, .7, .2, 1) infinite;
}

.video-public-card:hover .video-card-play::after {
  animation: video-play-circle 1.45s cubic-bezier(.2, .7, .2, 1) .48s infinite;
}

@keyframes video-play-circle {
  0% {
    opacity: .82;
    transform: scale(.78);
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(1.72);
  }
}

.video-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px 25px 25px !important;
}

.video-card-date,
.video-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--video-muted);
  font-size: .79rem;
  font-weight: 700;
}

.video-card-date i,
.video-detail-date i {
  color: var(--video-blue);
}

.video-card-content h2 {
  margin: 11px 0 14px !important;
  color: var(--video-ink) !important;
  font-size: clamp(1.08rem, 2vw, 1.32rem) !important;
  line-height: 1.38 !important;
  letter-spacing: -.018em;
  font-weight: 850 !important;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-search-highlight {
  display: inline;
  margin: 0 -.02em;
  padding: .03em .16em;
  color: inherit;
  border-radius: .28em;
  background: rgba(28, 7, 112, .12);
  box-shadow: inset 0 -1px 0 rgba(28, 7, 112, .16);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.video-tag-list,
.video-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.video-tag-list span,
.video-detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid rgba(11, 85, 217, .08);
  border-radius: 999px;
  background: #eef4ff;
  color: var(--video-blue);
  font-size: .73rem;
  font-weight: 800;
}

.video-watch-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: auto !important;
  padding-top: 21px;
  color: var(--video-orange) !important;
  font-size: .88rem;
  font-weight: 850;
}

.video-watch-link i {
  transition: transform .25s ease;
}

.video-public-card:hover .video-watch-link i {
  transform: translateX(5px);
}

/* ---------- Pagination ---------- */
.video-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 44px;
}

.video-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(11, 85, 217, .13);
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--video-blue) !important;
  box-shadow: 0 7px 19px rgba(16, 24, 40, .06);
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.video-page-btn:hover,
.video-page-btn.active {
  transform: translateY(-3px);
  background: var(--video-blue);
  color: #fff !important;
  box-shadow: 0 13px 28px rgba(11, 85, 217, .24);
}

.video-page-arrow {
  background: var(--video-orange);
  border-color: var(--video-orange);
  color: #fff !important;
}

.video-page-dots {
  padding-inline: 4px;
  color: #98a2b3;
  font-weight: 850;
}

/* ---------- Empty/error ---------- */
.video-empty-state,
.video-not-found,
.video-public-alert {
  max-width: 760px;
  margin: 10px auto 64px;
  padding: 54px 32px;
  border: 1px solid var(--video-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 48px rgba(16, 24, 40, .08);
  text-align: center;
}

.video-empty-state i,
.video-not-found > i {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--video-blue);
  font-size: 2.45rem;
}

.video-empty-state h2,
.video-not-found h1 {
  color: var(--video-ink);
  font-weight: 850;
}

.video-empty-state p,
.video-not-found p {
  color: var(--video-muted);
}

.video-public-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 24px;
  border-color: #ffd8c8;
  background: #fff4ef;
  color: #9f3514;
  font-weight: 750;
}

/* ---------- Detail: one-column grid ---------- */
.video-detail-page {
  background:
    radial-gradient(circle at 12% 6%, rgba(11, 85, 217, .09), transparent 27rem),
    #f7f9fc;
}

.video-detail-section {
  padding: 38px 0 82px !important;
}

.video-detail-section > .container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0;
  width: min(100% - 32px, 1080px);
  max-width: 1080px !important;
}

.video-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0 0 20px;
  padding: 11px 14px;
  border: 1px solid var(--video-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
  color: #7a8495;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .035);
  font-size: .84rem;
  white-space: nowrap;
  overflow: hidden;
}

.video-breadcrumb a {
  flex: 0 0 auto;
  color: var(--video-blue) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.video-breadcrumb span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-detail-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--video-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(16, 47, 111, .14);
}

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #030b1c;
}

.video-player-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.video-player-wrap iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.video-detail-content {
  padding: clamp(27px, 5vw, 48px) !important;
  background:
    linear-gradient(180deg, #fff, #fbfcff);
}

.video-detail-content h1 {
  max-width: 900px;
  margin: 12px 0 20px !important;
  color: var(--video-ink) !important;
  font-size: clamp(1.65rem, 4vw, 1.8rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -.04em;
  font-weight: 880 !important;
}

.video-detail-tags {
  margin-bottom: 28px;
}

.video-youtube-btn,
.video-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 19px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff7438, var(--video-orange));
  color: #fff !important;
  box-shadow: 0 13px 28px rgba(255, 91, 24, .24);
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.video-youtube-btn:hover,
.video-primary-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #1972ef, var(--video-blue));
  box-shadow: 0 16px 32px rgba(11, 85, 217, .25);
}

/* Related videos remain a single-column grid on detail page. */
.related-video-section {
  margin-top: 54px;
}

.related-video-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}

.related-video-heading span {
  color: var(--video-orange);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.related-video-heading h2 {
  margin: 5px 0 0;
  color: var(--video-ink);
  font-size: clamp(1.5rem, 3vw, 1.3rem);
  font-weight: 850;
  letter-spacing: -.03em;
}

.related-video-heading > a {
  color: var(--video-blue) !important;
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none !important;
}

.related-video-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
}

.related-video-card {
  display: grid !important;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: center;
  width: 100%;
  padding: 14px !important;
  border: 1px solid var(--video-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  color: inherit !important;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .065);
  text-decoration: none !important;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.related-video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 85, 217, .20);
  box-shadow: 0 20px 42px rgba(16, 47, 111, .13);
}

.related-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #07152f;
}

.related-video-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transition: transform .42s ease;
}

.related-video-card:hover .related-video-thumb img {
  transform: scale(1.05);
}

.related-video-thumb i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 91, 24, .94);
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 11px 25px rgba(0, 0, 0, .28);
  transform: translate(-50%, -50%);
}

.related-video-card h3 {
  margin: 0 0 9px;
  color: var(--video-ink) !important;
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  line-height: 1.42 !important;
  font-weight: 850 !important;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-video-card time {
  color: var(--video-muted);
  font-size: .78rem;
  font-weight: 700;
}

.video-footer-space {
  padding-bottom: 50px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .video-list-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
  }

  .video-search-panel {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .video-page {
    padding-top: 80px;
  }

  .video-page .container,
  .video-detail-section > .container {
    width: min(100% - 24px, 1180px);
  }

  .video-hero-section {
    padding: 16px 0 28px;
  }

  .video-hero-card {
    min-height: 210px;
    padding: 36px 25px;
    border-radius: 23px;
  }

  .video-hero-icon {
    display: none;
  }

  .video-list-toolbar {
    align-items: flex-start;
  }

  .video-public-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 21px !important;
  }

  .video-public-card {
    border-radius: 20px;
  }

  .video-card-content {
    padding: 21px 21px 23px !important;
  }

  .video-detail-section {
    padding: 24px 0 60px !important;
  }

  .video-detail-card {
    border-radius: 20px;
  }

  .related-video-heading {
    align-items: flex-start;
  }

  .related-video-card {
    grid-template-columns: 165px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 11px !important;
  }
}

@media (max-width: 540px) {
  .video-list-toolbar {
    display: grid;
    gap: 12px;
  }

  .video-result-count {
    justify-self: start;
  }

  .video-card-play {
    width: 57px;
    height: 57px;
  }

  .video-detail-content {
    padding: 24px 20px 27px !important;
  }

  .related-video-heading {
    display: grid;
    gap: 12px;
  }

  .related-video-heading > a {
    justify-self: start;
  }

  .related-video-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .related-video-card h3 {
    padding-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-public-card,
  .video-card-thumbnail img,
  .video-card-play,
  .video-watch-link i,
  .video-page-btn,
  .video-youtube-btn,
  .video-primary-btn,
  .related-video-card,
  .related-video-thumb img {
    transition: none !important;
  }

  .video-public-card:hover .video-card-play::before,
  .video-public-card:hover .video-card-play::after {
    animation: none !important;
  }
}

@media (max-width: 620px) {
  .video-search-panel {
    padding: 11px;
    border-radius: 18px;
  }

  .video-search-form {
    flex-wrap: wrap;
  }

  .video-search-field {
    flex: 1 1 100%;
  }

  .video-search-submit,
  .video-search-reset {
    flex: 1 1 0;
    padding-inline: 14px;
  }

  .video-search-hint {
    align-items: flex-start;
  }
}
