/* Video pages. This file loads on every page and .item is also used by the album lists, so rules stay scoped to the video containers. */
.jb-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.videoClipRight { min-width: 0; }
/* 80 tag chips would make the side column twice as tall as the 3x3 grid, so the tag box takes its own full-width row. */
.contentRight { display: contents; }
.contentRight .asideBox + .asideBox { grid-column: 1 / -1; }

/* Tiles */
.videoContent001,
.videoContent003 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.contentLeft .videoContent001 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.videoContent002 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.videoContent001 > p,
.videoContent003 > p { grid-column: 1 / -1; margin: 0; color: var(--jb-muted); }
.videoContent001 .item,
.videoContent002 .item,
.videoContent003 .item { min-width: 0; }
.videoContent001 figure a,
.videoContent002 figure a,
.videoContent003 figure a {
  display: block;
  overflow: hidden;
  background: #1f0819;
  border-radius: 10px;
  transition: box-shadow 0.15s ease;
}
.videoContent001 figure img,
.videoContent002 figure img,
.videoContent003 figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (hover: hover) {
  .videoContent001 .item:hover figure a,
  .videoContent002 .item:hover figure a,
  .videoContent003 .item:hover figure a { box-shadow: 0 0 0 2px var(--jb-pink); }
}
.videoContent001 .itemData,
.videoContent003 .itemData {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 10px;
  margin-top: 10px;
  color: var(--jb-muted);
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.videoContent001 .itemData h2,
.videoContent003 .itemData h2 {
  flex: 1 0 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: 0 0 4px;
  overflow: hidden;
  font: 600 17px/1.2 var(--jb-display);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
body.jb .itemData h2 a { color: #fff; }
body.jb .itemData h2 a:hover { color: var(--jb-pink); }

/* Side column */
.videoContent004 .item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--jb-line); font-size: 14px; line-height: 1.4; }
.videoContent004 .item:first-child { padding-top: 2px; border-top: 0; }
.videoContent004 .item:last-child { padding-bottom: 0; }
.videoContent004 .left { flex: none; }
.videoContent004 .left span {
  display: block;
  width: 7px;
  height: 7px;
  margin: 6px 2px 0 0;
  border-top: 2px solid var(--jb-pink);
  border-right: 2px solid var(--jb-pink);
  transform: rotate(45deg);
}
.videoContent004 .right { min-width: 0; }
body.jb .videoContent004 .right a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--jb-ink);
  overflow-wrap: anywhere;
}
body.jb .videoContent004 .right a:hover { color: var(--jb-pink); }

/* Tag chips: the side tag cloud and the category strip */
#topTags { margin: 0 0 36px; }
.tagCloud ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.jb .tagCloud a,
.videoClipData .category span {
  display: block;
  padding: 6px 12px;
  color: var(--jb-ink);
  background: var(--jb-raise);
  border: 1px solid var(--jb-edge);
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}
body.jb .tagCloud a:hover { color: #fff; border-color: var(--jb-pink); }
body.jb .tagCloud a[aria-current] { color: var(--jb-on-mag); background: var(--jb-mag); border-color: var(--jb-mag); }

/* One video */
.jb-panel .videoClip h1 { margin-bottom: 20px; font-size: 32px; line-height: 1.1; overflow-wrap: anywhere; }
.videoClip .videoIframe { position: relative; overflow: hidden; background: #1f0819; border-radius: 14px; }
.videoClip .videoIframe iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
/* The thumbnail arrives as an inline background-image, so only the other background longhands are set here. */
.videoClip .videoIframe .videoConsent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 20px;
  color: #fff;
  background-color: #1f0819;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  cursor: pointer;
}
.videoClip .videoIframe .videoConsent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 4, 8, 0.3) 0%, rgba(10, 4, 8, 0.55) 55%, rgba(10, 4, 8, 0.88) 100%);
}
.videoClip .videoIframe .videoConsentPlay {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px 0 24px;
  color: var(--jb-on-mag);
  background: var(--jb-mag);
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  font: 600 20px/1 var(--jb-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.videoClip .videoIframe .videoConsentPlay::before {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--jb-on-mag);
}
.videoClip .videoIframe .videoConsent:hover .videoConsentPlay { background: var(--jb-mag-hover); }
.videoClip .videoIframe .videoConsent:focus-visible { outline: none; }
.videoClip .videoIframe .videoConsent:focus-visible .videoConsentPlay { outline: 2px solid var(--jb-pink); outline-offset: 3px; }
.videoClip .videoIframe .videoConsentNote {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  color: var(--jb-muted);
  font-size: 13px;
  line-height: 1.4;
}
.videoClipData .category { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.videoClipData .category strong {
  margin-right: 4px;
  color: var(--jb-muted);
  font: 600 15px/1.2 var(--jb-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .jb-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .videoContent001,
  .videoContent003,
  .contentLeft .videoContent001 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contentRight .videoContent002 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* 80 chips would push the heading off the first screen, so the strip scrolls sideways here. */
  #topTags { margin: 0 calc(var(--jb-gutter) * -1) 28px; }
  #topTags ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--jb-gutter) 8px; scrollbar-width: thin; scrollbar-color: var(--jb-edge) transparent; }
  #topTags li { flex: none; }
}

@media (max-width: 640px) {
  .videoContent001,
  .videoContent003 { gap: 20px 12px; }
  .contentRight .videoContent002 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jb-panel .videoClip h1 { margin-bottom: 16px; font-size: 26px; }
  .videoClip .videoIframe .videoConsentPlay { gap: 10px; min-height: 44px; padding: 0 22px 0 18px; font-size: 17px; }
  .videoClip .videoIframe .videoConsentPlay::before { border-width: 7px 0 7px 11px; }
  .videoClip .videoIframe .videoConsentNote { left: 12px; right: 12px; bottom: 10px; font-size: 12px; }
}
