/*
 * Site designs (inc/designs.php, inc/design-parts.php). <html data-vc-design="…"> picks the structure;
 * the colours (--vc-*, schemes.css) and the layout options (layouts.css) keep applying inside it.
 * The classic design is the base stylesheets alone: nothing here keys on it.
 */

/* =============================================================================================
 * Shared pieces
 * =========================================================================================== */

/* ---------- Shell: side menu | content | widgets ---------- */

.vc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.vc-shell__main {
  min-width: 0;
}

@media screen and (min-width: 1024px) {
  .vc-shell--tube {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .vc-shell--portal {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .vc-shell--feed {
    grid-template-columns: 236px minmax(0, 1fr) 300px;
  }

  .vc-shell--feed > .vc-shell__main {
    width: 100%;
    max-width: 700px;
    margin-inline: auto;
  }

  html.vc-nav-mini .vc-shell--tube {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}

/* ---------- Side menu ---------- */

.vc-sidenav {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 0.75rem);
  max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 1.5rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

[data-vc-sticky="on"] .vc-sidenav {
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 5.5rem);
  max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 6.5rem);
}

.vc-sidenav__inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem;
  border: 1px solid var(--vc-border);
  border-radius: calc(12px * var(--vc-r, 1));
  background: var(--vc-surface);
}

.vc-sidenav__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vc-sidenav__title {
  margin: 0.85rem 0.75rem 0.3rem;
  color: var(--vc-text-muted) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.vc-sidenav__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: calc(8px * var(--vc-r, 1));
  color: var(--vc-text) !important;
  font-size: 0.92rem;
  line-height: 1.3;
  transition: background-color 0.15s ease;
}

.vc-sidenav__link i {
  flex: 0 0 1.2rem;
  color: var(--vc-text-muted);
  text-align: center;
}

.vc-sidenav__link span {
  overflow: hidden;
  color: inherit !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-sidenav__link:hover,
.vc-sidenav__link:focus-visible {
  background: var(--vc-surface-3);
  color: var(--vc-text) !important;
}

.vc-sidenav__link.is-active {
  background: rgba(var(--vc-accent-rgb), 0.14);
  color: var(--vc-link) !important;
  font-weight: 600;
}

.vc-sidenav__link.is-active i {
  color: var(--vc-link);
}

.vc-sidenav__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0.75rem 0.25rem;
  border-top: 1px solid var(--vc-border);
  font-size: 0.75rem;
}

.vc-sidenav__foot a {
  color: var(--vc-text-muted) !important;
}

.vc-sidenav__foot a:hover {
  color: var(--vc-link) !important;
}

/* Wide screens: the menu folds to its first group of icons (tube design, remembered per browser). */
@media screen and (min-width: 1024px) {
  html.vc-nav-mini .vc-sidenav__link {
    justify-content: center;
    padding-inline: 0;
  }

  html.vc-nav-mini .vc-sidenav__link span,
  html.vc-nav-mini .vc-sidenav__title,
  html.vc-nav-mini .vc-sidenav__foot,
  html.vc-nav-mini .vc-sidenav__group ~ .vc-sidenav__group {
    display: none;
  }

  .vc-sidenav__backdrop {
    display: none !important;
  }
}

/* Phones and tablets: a drawer from the left, opened by the menu button. */
@media screen and (max-width: 1023px) {
  .vc-sidenav,
  [data-vc-sticky="on"] .vc-sidenav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10001;
    width: min(300px, 86vw);
    max-height: none;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }

  .vc-sidenav__inner {
    min-height: 100%;
    padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 0.75rem);
    padding-bottom: 5rem;
    border-width: 0 1px 0 0;
    border-radius: 0;
  }

  html.vc-nav-open {
    overflow: hidden;
  }

  html.vc-nav-open .vc-sidenav {
    transform: none;
    box-shadow: 12px 0 32px var(--vc-shadow-strong);
  }

  .vc-sidenav__backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
  }

  .vc-sidenav__backdrop[hidden] {
    display: none;
  }
}

/* The drawer button takes the place of the menu button. */
.vc-drawer-button {
  border: 0;
  background: none;
  cursor: pointer;
}

@media screen and (max-width: 999px) {
  #vc-drawer-button {
    order: -1;
    margin-inline-start: 0.375rem;
    margin-inline-end: auto;
  }
}

/* ---------- Widget column ---------- */

.vc-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.vc-widget {
  padding: 1rem;
  border: 1px solid var(--vc-border);
  border-radius: calc(10px * var(--vc-r, 1));
  background: var(--vc-surface);
  box-shadow: 0 2px 8px var(--vc-shadow);
}

.vc-widget__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
}

.vc-widget__title i {
  color: var(--vc-link);
}

.vc-widget__more,
.vc-row__more,
.vc-section__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--vc-link) !important;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.vc-widget__more {
  margin-top: 0.85rem;
}

.vc-widget__more:hover i,
.vc-row__more:hover i,
.vc-section__more:hover i {
  transform: translateX(2px);
}

.vc-ranked {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vc-ranked__item a {
  display: grid;
  grid-template-columns: 1.5rem 96px minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
}

.vc-ranked__rank {
  color: var(--vc-link) !important;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}

.vc-ranked__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: calc(5px * var(--vc-r, 1));
  background: var(--vc-sunken);
}

.vc-ranked__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc-ranked__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.vc-ranked__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--vc-text) !important;
  font-size: 0.85rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vc-ranked__item a:hover .vc-ranked__name {
  color: var(--vc-link) !important;
}

.vc-ranked__meta {
  overflow: hidden;
  color: var(--vc-text-muted) !important;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-catlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vc-catlist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px dashed var(--vc-border);
  color: var(--vc-text) !important;
  font-size: 0.9rem;
}

.vc-catlist a:hover {
  color: var(--vc-link) !important;
}

.vc-catlist a span {
  color: inherit !important;
}

.vc-catlist .vc-catlist__count {
  padding: 0 0.5rem;
  border-radius: var(--vc-pill, 999px);
  background: var(--vc-surface-3);
  color: var(--vc-text-muted) !important;
  font-size: 0.75rem;
}

.vc-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vc-cloud__tag {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--vc-border-strong);
  border-radius: var(--vc-pill, 999px);
  background: var(--vc-surface-2);
  color: var(--vc-text-2) !important;
  font-size: 0.8rem;
  line-height: 1.3;
}

.vc-cloud__tag:hover {
  border-color: var(--vc-link);
  color: var(--vc-link) !important;
}

/* ---------- Rows of cards that scroll sideways ---------- */

.vc-row {
  margin-bottom: 1.75rem;
}

.vc-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.vc-row__title {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Top 10: a big outlined number beside each card. */
.vc-row--ranked .swiper-slide {
  flex-basis: calc((100% - 10px) / 1.5);
}

@media screen and (min-width: 768px) {
  .vc-row--ranked .swiper-slide {
    flex-basis: calc((100% - 10px * 2) / 2.6);
  }
}

@media screen and (min-width: 1024px) {
  .vc-row--ranked .swiper-slide {
    flex-basis: calc((100% - 10px * 3) / 4.3);
  }
}

.vc-rank-slide {
  display: flex;
  align-items: center;
}

.vc-rank-slide__number {
  flex: 0 0 auto;
  margin-right: -0.55rem;
  color: transparent !important;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 2px var(--vc-text-faint);
}

.vc-rank-slide .thumb-block {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}

/* ---------- Buttons, tabs and chips ---------- */

.vc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.4rem;
  border-radius: calc(6px * var(--vc-r, 1));
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vc-btn:hover {
  transform: translateY(-1px);
}

.vc-btn--play {
  background: #fff;
  color: #000 !important;
}

.vc-btn--play:hover {
  background: rgba(255, 255, 255, 0.82);
  color: #000 !important;
}

.vc-btn--ghost {
  background: rgba(109, 109, 110, 0.7);
  color: #fff !important;
}

.vc-btn--ghost:hover {
  background: rgba(109, 109, 110, 0.5);
  color: #fff !important;
}

.vc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vc-tab {
  padding: 0.45rem 1rem;
  border: 1px solid var(--vc-border-strong);
  border-radius: var(--vc-pill, 999px);
  background: var(--vc-surface-2);
  color: var(--vc-text-2) !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.vc-tab:hover {
  border-color: var(--vc-link);
  color: var(--vc-link) !important;
}

.vc-tab.is-active {
  border-color: var(--vc-accent);
  background: var(--vc-accent);
  color: var(--vc-on-accent) !important;
}

.vc-chips {
  margin-bottom: 1rem;
}

.vc-chips__track {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  padding-bottom: 2px;
}

.vc-chip {
  padding: 0.38rem 0.9rem;
  border-radius: calc(8px * var(--vc-r, 1));
  background: var(--vc-surface-3);
  color: var(--vc-text) !important;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.vc-chip:hover {
  background: var(--vc-border-strong);
  color: var(--vc-text) !important;
}

.vc-chip.is-active {
  background: var(--vc-text);
  color: var(--vc-bg) !important;
}

/* ---------- Card meta line (tube, portal) ---------- */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.65rem;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.post-meta span {
  color: var(--vc-text-muted) !important;
}

.post-meta i {
  margin-right: 0.3rem;
}

/* ---------- Footers ---------- */

footer.vc-footer--columns {
  padding: 2.5rem 1.25rem 1.5rem !important;
  border-top: 1px solid var(--vc-border);
  background: var(--vc-surface) !important;
}

.vc-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.vc-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--vc-text) !important;
  font-size: 1.25rem;
  font-weight: 700;
}

.vc-footer__brand i {
  color: var(--vc-link);
}

.vc-footer__text,
.vc-footer__text p {
  margin-top: 0.6rem;
  color: var(--vc-text-muted) !important;
  font-size: 0.88rem;
  line-height: 1.7;
}

.vc-footer__title {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.vc-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.vc-footer__col > a {
  color: var(--vc-text-2) !important;
  font-size: 0.88rem;
}

.vc-footer__col > a:hover {
  color: var(--vc-link) !important;
}

.vc-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--vc-border);
  color: var(--vc-text-muted) !important;
  font-size: 0.8rem;
  text-align: center;
}

footer.vc-footer--minimal {
  padding: 1.5rem 1rem 2rem !important;
  border-top: 1px solid var(--vc-border);
}

.vc-footer__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
}

.vc-footer__line .vc-footer__copy {
  color: var(--vc-text-muted) !important;
}

.vc-footer__inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.vc-footer__inline a {
  color: var(--vc-text-muted) !important;
}

.vc-footer__inline a:hover {
  color: var(--vc-link) !important;
}

@media screen and (max-width: 768px) {
  .vc-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .vc-footer__about {
    grid-column: 1 / -1;
  }

  .vc-footer__line {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Boxless pages (streaming, tube, gallery, feed): content sits on the page itself ---------- */

[data-vc-design="streaming"] .site-main.box,
[data-vc-design="tube"] .site-main.box,
[data-vc-design="gallery"] .site-main.box,
[data-vc-design="feed"] .site-main.box {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Without the classic box around the content, phones and tablets keep a margin at the screen edges
   (the full-width pieces, billboard and theater band, reach past it on their own). */
@media screen and (max-width: 1023px) {
  [data-vc-design]:not([data-vc-design="classic"]) .site-content {
    padding-inline: 0.75rem;
  }
}

/* The quick buttons and tag rail are part of the classic design only. */
[data-vc-design]:not([data-vc-design="classic"]) .specialNav {
  padding: 0 !important;
  margin: 0 !important;
}

/* =============================================================================================
 * Streaming
 * =========================================================================================== */

[data-vc-design="streaming"],
[data-vc-design="streaming"] body {
  overflow-x: clip;
}

/* The header floats above the page; over the home page's picture it is transparent until scrolled. */
[data-vc-design="streaming"] .site-header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  right: 0;
  left: 0;
  z-index: 40;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-vc-design="streaming"] .site-branding.box {
  margin: 0 !important;
  padding: 10px 0 !important;
  border-bottom: 0 !important;
}

[data-vc-design="streaming"] .site-branding.box::after {
  display: none;
}

[data-vc-design="streaming"] #page {
  padding-top: calc(var(--vc-header-h, 84px) + 1rem);
}

[data-vc-design="streaming"] .home #page {
  padding-top: 0;
}

[data-vc-design="streaming"]:not(.vc-scrolled) .home .site-header {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0)) !important;
}

[data-vc-design="streaming"]:not(.vc-scrolled) .home .site-header .navbar-item,
[data-vc-design="streaming"]:not(.vc-scrolled) .home .site-header .navbar-link,
[data-vc-design="streaming"]:not(.vc-scrolled) .home .site-header .site-title-text,
[data-vc-design="streaming"]:not(.vc-scrolled) .home .site-header .button {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

[data-vc-design="streaming"]:not(.vc-scrolled) .home .site-header .navbar-burger span {
  background-color: #fff !important;
}

[data-vc-design="streaming"].vc-scrolled .site-header {
  box-shadow: 0 4px 18px var(--vc-shadow-strong);
}

/* The billboard: the most watched video across the whole width. */
.vc-billboard {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 78vh, 820px);
  margin: 0 calc(50% - 50vw);
  overflow: hidden;
  background: #000;
}

.vc-billboard__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc-billboard__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(to top, var(--vc-bg) 0%, rgba(0, 0, 0, 0) 32%);
}

.vc-billboard__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: min(640px, 100%);
  padding: calc(var(--vc-header-h, 84px) + 2rem) max(1.5rem, calc((100vw - 1344px) / 2)) 5.5rem;
  box-sizing: content-box;
}

.vc-billboard__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vc-billboard__kicker i {
  color: var(--vc-accent);
}

.vc-billboard__title {
  color: #fff !important;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.vc-billboard__facts {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.vc-billboard__desc {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vc-billboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* The rows ride up over the bottom of the billboard. */
.vc-rows {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

@media screen and (max-width: 768px) {
  .vc-billboard {
    min-height: 0;
  }

  .vc-billboard__body {
    padding: calc(var(--vc-header-h, 64px) + 10rem) 1rem 3.5rem;
  }

  .vc-billboard__desc {
    -webkit-line-clamp: 2;
  }

  .vc-rows {
    margin-top: -1.5rem;
  }
}

/* Theater: the player in a black band across the whole width, larger than in the other designs. */
.watch__stage {
  margin: 0 calc(50% - 50vw) 1.25rem;
  padding: 1rem max(1rem, calc((100vw - 1440px) / 2)) 0.75rem;
  background: #000;
}

.watch__stage .video-player {
  margin-bottom: 0 !important;
}

.watch__stage .responsive-player {
  width: min(100%, calc(min(78vh, 820px) * 16 / 9));
  max-height: min(78vh, 820px);
  margin-inline: auto;
}

.watch__stage .video-servers,
.watch__stage .video-player-note {
  justify-content: center;
  text-align: center;
}

/* =============================================================================================
 * Tube (video platform)
 * =========================================================================================== */

[data-vc-design="tube"] .site-branding.box,
[data-vc-design="feed"] .site-branding.box {
  margin-bottom: 1rem !important;
  padding: 8px 0 !important;
}

[data-vc-design="tube"] .main-logo img,
[data-vc-design="feed"] .main-logo img {
  max-height: 46px !important;
}

[data-vc-design="tube"] .site-title-text,
[data-vc-design="feed"] .site-title-text {
  font-size: 1.3rem;
}

@media screen and (min-width: 1024px) {
  /* The links live in the side menu; the search box takes the middle of the header. */
  [data-vc-design="tube"] #primaryNavbar .navbar-start,
  [data-vc-design="feed"] #primaryNavbar .navbar-start {
    display: none;
  }

  [data-vc-design="tube"] #primaryNavbar .navbar-end,
  [data-vc-design="feed"] #primaryNavbar .navbar-end {
    margin-inline: auto;
  }

  [data-vc-design="tube"] #primaryNavbar .navbar-end #searchform input,
  [data-vc-design="feed"] #primaryNavbar .navbar-end #searchform input {
    width: clamp(260px, 38vw, 600px);
  }

  [data-vc-design="tube"] .vc-drawer-button {
    display: inline-flex !important;
    order: -1;
    align-self: center;
    margin-right: 0.25rem;
  }
}

[data-vc-design="tube"] .loop-video .post-header h3 {
  font-weight: 600;
}

[data-vc-design="tube"] .thumb-block .post-thumbnail {
  border-radius: calc(10px * var(--vc-r, 1));
}

/* Watch page: the "up next" column beside the player. */
.watch-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media screen and (min-width: 1024px) {
  .watch-cols {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.watch-cols__main {
  min-width: 0;
}

.watch-cols__title {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.vc-upnext {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vc-upnext__item a {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0.6rem;
}

.vc-upnext__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: calc(8px * var(--vc-r, 1));
  background: var(--vc-sunken);
}

.vc-upnext__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc-upnext__duration {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  padding: 0 0.3rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff !important;
  font-size: 0.72rem;
}

.vc-upnext__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.vc-upnext__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--vc-text) !important;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vc-upnext__item a:hover .vc-upnext__name {
  color: var(--vc-link) !important;
}

.vc-upnext__meta {
  overflow: hidden;
  color: var(--vc-text-muted) !important;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-cols__aside .videos-related__more {
  margin-top: 1rem;
}

@media screen and (max-width: 1023px) {
  .vc-upnext__item a {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

/* =============================================================================================
 * Portal (news and magazine)
 * =========================================================================================== */

.vc-topbar {
  border-bottom: 1px solid var(--vc-border);
  background: var(--vc-surface);
  font-size: 0.8rem;
}

.vc-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.75rem;
}

.vc-topbar__tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
  color: var(--vc-text-muted) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-topbar__tagline i {
  color: var(--vc-link);
}

.vc-topbar__links {
  display: flex;
  flex: 0 0 auto;
  gap: 0.9rem;
}

.vc-topbar__links a {
  color: var(--vc-text-muted) !important;
}

.vc-topbar__links a:hover {
  color: var(--vc-link) !important;
}

@media screen and (max-width: 768px) {
  .vc-topbar__links {
    display: none;
  }
}

[data-vc-design="portal"] .site-branding.box {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

[data-vc-design="portal"] .site-branding.box::after {
  display: none;
}

@media screen and (min-width: 1024px) {
  /* A big logo in the middle, then the menu as a full-width bar with an accent top line. */
  [data-vc-design="portal"] .site-branding .navbar {
    flex-wrap: wrap;
  }

  [data-vc-design="portal"] .site-branding .navbar-brand {
    flex: 0 0 100%;
    justify-content: center;
    padding: 0.35rem 0 0.5rem;
  }

  [data-vc-design="portal"] .main-logo img {
    max-height: 96px !important;
  }

  [data-vc-design="portal"] .site-title-text {
    font-size: 2.2rem;
  }

  [data-vc-design="portal"] .site-branding .navbar-menu {
    flex: 1 0 100%;
    margin-top: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-top: 3px solid var(--vc-accent);
    border-bottom: 1px solid var(--vc-border);
    border-radius: 0;
    background: var(--vc-surface) !important;
  }

  [data-vc-design="portal"] #primaryNavbar .navbar-start > .navbar-item {
    font-weight: 600;
  }
}

/* Mosaic: one large and four small pictures. */
.vc-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  aspect-ratio: 32 / 9.6;
  margin-bottom: 1.75rem;
}

.vc-mosaic__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: calc(6px * var(--vc-r, 1));
  background: var(--vc-sunken);
}

.vc-mosaic__item.is-lead {
  grid-column: span 2;
  grid-row: span 2;
}

.vc-mosaic__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vc-mosaic__item:hover img {
  transform: scale(1.04);
}

.vc-mosaic__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0) 80%);
}

.vc-mosaic__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.75rem;
}

.vc-mosaic__cat {
  padding: 0.12rem 0.5rem;
  border-radius: calc(3px * var(--vc-r, 1));
  background: var(--vc-accent);
  color: var(--vc-on-accent) !important;
  font-size: 0.72rem;
  font-weight: 700;
}

.vc-mosaic__title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.is-lead .vc-mosaic__title {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.vc-mosaic__meta {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.75rem;
}

.vc-mosaic:not(.vc-mosaic--5) {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-template-rows: none;
  aspect-ratio: auto;
}

.vc-mosaic:not(.vc-mosaic--5) .vc-mosaic__item {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 16 / 9;
}

@media screen and (max-width: 768px) {
  .vc-mosaic,
  .vc-mosaic:not(.vc-mosaic--5) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    aspect-ratio: auto;
  }

  .vc-mosaic__item {
    aspect-ratio: 16 / 9;
  }

  .vc-mosaic__item.is-lead {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .vc-mosaic__meta {
    display: none;
  }
}

/* Sections: one per popular category. */
.vc-section {
  margin-bottom: 2rem;
}

.vc-section__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--vc-border);
}

.vc-section__head::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--vc-accent);
}

.vc-section__title {
  font-size: 1.15rem;
  font-weight: 700;
}

/* =============================================================================================
 * Gallery
 * =========================================================================================== */

[data-vc-design="gallery"] .site-branding.box {
  border-bottom: 0 !important;
}

[data-vc-design="gallery"] .site-branding.box::after {
  display: none;
}

@media screen and (min-width: 1024px) {
  [data-vc-design="gallery"] .site-branding .navbar {
    flex-wrap: wrap;
  }

  [data-vc-design="gallery"] .site-branding .navbar-brand {
    flex: 0 0 100%;
    justify-content: center;
  }

  [data-vc-design="gallery"] .site-branding .navbar-menu {
    flex: 1 0 100%;
    margin-top: 0.35rem;
  }

  [data-vc-design="gallery"] #primaryNavbar .navbar-start > .navbar-item {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
  }
}

.vc-gallery-head {
  padding: 1rem 1rem 1.75rem;
  text-align: center;
}

.vc-gallery-head__kicker {
  color: var(--vc-link) !important;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.vc-gallery-head__title {
  margin: 0.35rem auto 1.1rem;
  max-width: 820px;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
}

.vc-gallery-head .vc-tabs {
  justify-content: center;
}

/* Mosaic grid: every seventh video takes a double-size tile; titles rise on hover. */
@media screen and (min-width: 769px) {
  [data-vc-design="gallery"] .fixed-grid > .grid {
    grid-auto-flow: dense;
  }

  [data-vc-design="gallery"] .fixed-grid:not(.has-2-cols-desktop) > .grid > .cell:nth-child(7n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

[data-vc-design="gallery"] .thumb-block .post-video {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: calc(8px * var(--vc-r, 1));
}

[data-vc-design="gallery"] .thumb-block .post-thumbnail {
  height: 100%;
  border-radius: 0;
}

[data-vc-design="gallery"] .thumb-block .post-video::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  z-index: 5;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

[data-vc-design="gallery"] .loop-video .post-header {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  left: 0.75rem;
  z-index: 6;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

[data-vc-design="gallery"] .thumb-block .post-header h3 {
  color: #fff !important;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* On the dark fade the accent takes its light shade, whatever the colour scheme. */
[data-vc-design="gallery"] .thumb-block a:hover .post-header h3 {
  color: var(--vc-accent-lite) !important;
}

[data-vc-design="gallery"] .thumb-block a:hover .post-header,
[data-vc-design="gallery"] .thumb-block a:focus-visible .post-header,
[data-vc-design="gallery"] .thumb-block a:hover::after,
[data-vc-design="gallery"] .thumb-block a:focus-visible::after {
  opacity: 1;
  transform: none;
}

/* Touch screens have no hover: the titles stay visible. */
@media (hover: none) {
  [data-vc-design="gallery"] .loop-video .post-header,
  [data-vc-design="gallery"] .thumb-block .post-video::after {
    opacity: 1;
    transform: none;
  }
}

[data-vc-design="gallery"] .watch-page--centered {
  max-width: 1040px;
  margin-inline: auto;
}

[data-vc-design="gallery"] .watch-page--centered .video-header {
  text-align: center;
}

[data-vc-design="gallery"] .watch-page--centered .video-breadcrumb ul {
  justify-content: center;
}

/* =============================================================================================
 * Feed
 * =========================================================================================== */

.vc-feed-head {
  margin-bottom: 1rem;
}

/* The base stylesheet gives every <header> and <footer> the page's background and footer padding. */
.vc-feed-item__head,
.vc-feed-item__foot,
.vc-gallery-head {
  background: transparent !important;
}

footer.vc-feed-item__foot {
  margin-top: 0.75rem;
  padding: 0.65rem 0 0 !important;
}

.vc-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vc-feed-item {
  padding: 1rem;
  border: 1px solid var(--vc-border);
  border-radius: calc(12px * var(--vc-r, 1));
  background: var(--vc-surface);
  box-shadow: 0 2px 8px var(--vc-shadow);
}

.vc-feed-item__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.vc-feed-item__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--vc-accent);
  color: var(--vc-on-accent) !important;
  font-weight: 700;
}

.vc-feed-item__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.vc-feed-item__name {
  color: var(--vc-text) !important;
  font-weight: 700;
}

a.vc-feed-item__name:hover {
  color: var(--vc-link) !important;
}

.vc-feed-item__date {
  color: var(--vc-text-muted) !important;
  font-size: 0.78rem;
}

.vc-feed-item__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: calc(10px * var(--vc-r, 1));
  background: var(--vc-sunken);
}

.vc-feed-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vc-feed-item__media:hover img {
  transform: scale(1.03);
}

.vc-feed-item__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  margin: auto;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff !important;
  font-size: 1.2rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vc-feed-item__media:hover .vc-feed-item__play {
  background: var(--vc-accent);
  color: var(--vc-on-accent) !important;
  transform: scale(1.08);
}

.vc-feed-item__duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff !important;
  font-size: 0.78rem;
}

.vc-feed-item__title {
  margin: 0.8rem 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.vc-feed-item__title a {
  color: var(--vc-text) !important;
}

.vc-feed-item__title a:hover {
  color: var(--vc-link) !important;
}

.vc-feed-item__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--vc-text-soft) !important;
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vc-feed-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.86rem;
}

.vc-feed-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--vc-border);
  font-size: 0.86rem;
}

.vc-feed-item__foot > span {
  color: var(--vc-text-muted) !important;
}

.vc-feed-item__foot i {
  margin-right: 0.35rem;
}

.vc-feed-item__watch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.vc-feed-item__watch i {
  margin: 0 0 0 0.35rem;
}

/* In the feed design the watch page and the listings sit in the middle column as cards of their own. */
[data-vc-design="feed"] .watch,
[data-vc-design="feed"] .category-title-section,
[data-vc-design="feed"] .static-page,
[data-vc-design="feed"] .not-found {
  padding: 1rem;
  border: 1px solid var(--vc-border);
  border-radius: calc(12px * var(--vc-r, 1));
  background: var(--vc-surface);
}

[data-vc-design="feed"] .category-title-section {
  margin-bottom: 1rem !important;
}

[data-vc-design="feed"] .pagination {
  margin-top: 1.25rem !important;
}
