/* Shared catalog components for the standalone video 4 and video 5 shells. */
.video-type-4 {
  --vs-bg: var(--v4-bg);
  --vs-surface: var(--v4-surface);
  --vs-surface-alt: var(--v4-surface-alt);
  --vs-ink: var(--v4-ink);
  --vs-muted: var(--v4-muted);
  --vs-line: var(--v4-line);
  --vs-line-strong: var(--v4-line-strong);
  --vs-accent: var(--v4-accent);
  --vs-accent-ink: var(--v4-accent-ink);
  --vs-radius: var(--v4-radius);
  --vs-ui: var(--v4-ui);
}

.video-type-5 {
  --vs-bg: var(--v5-bg);
  --vs-surface: var(--v5-surface);
  --vs-surface-alt: var(--v5-surface-alt);
  --vs-ink: var(--v5-ink);
  --vs-muted: var(--v5-muted);
  --vs-line: var(--v5-line);
  --vs-line-strong: var(--v5-accent);
  --vs-accent: var(--v5-accent);
  --vs-accent-ink: var(--v5-accent-ink);
  --vs-radius: var(--v5-radius);
  --vs-ui: var(--v5-ui-font);
}

:is(.video-type-4, .video-type-5) :where(.section, .page-heading, .head, .head-title, .grid, .content-empty, .pager, .breadcrumb, .video-heading, .player, .player-tools, .tags, .tag-search, .tag-directory, .related-tags, .history-page, .history-head, .history-grid, .history-card, .library-tabs, .site-wide-ads, .category-ad-row, .category-ad-items, .category-ad-item, .ad-slot, .friend-links, .site-save-panel) {
  min-width: 0;
}

:is(.video-type-4, .video-type-5) .preview-bar {
  position: relative;
  z-index: 120;
  padding: 8px 16px;
  background: #f1c232;
  color: #17120a;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

:is(.video-type-4, .video-type-5) .preview-bar a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

:is(.video-type-4, .video-type-5) .section {
  margin: 0 0 52px;
}

:is(.video-type-4, .video-type-5) .page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
  padding: 18px 0;
  border-bottom: 2px solid var(--vs-line-strong);
}

:is(.video-type-4, .video-type-5) .page-heading > * {
  min-width: 0;
}

:is(.video-type-4, .video-type-5) :where(.page-heading span, .video-heading > span, .history-head span, .head-title > span) {
  display: block;
  color: var(--vs-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

:is(.video-type-4, .video-type-5) :where(.page-heading h1, .video-heading h1, .history-head h1) {
  margin: 5px 0;
  color: var(--vs-ink);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

:is(.video-type-4, .video-type-5) :where(.page-heading p, .history-head p) {
  margin: 5px 0 0;
  color: var(--vs-muted);
  font-size: 11px;
  line-height: 1.65;
}

:is(.video-type-4, .video-type-5) .page-heading > b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--vs-line-strong);
  color: var(--vs-muted);
  font-size: 9px;
  letter-spacing: .06em;
}

:is(.video-type-4, .video-type-5) .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--vs-line-strong);
}

:is(.video-type-4, .video-type-5) .head > * {
  min-width: 0;
}

:is(.video-type-4, .video-type-5) .head-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

:is(.video-type-4, .video-type-5) .head h2 {
  margin: 0;
  color: var(--vs-ink);
  font-size: clamp(20px, 2.5vw, 29px);
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

:is(.video-type-4, .video-type-5) .section-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--vs-line);
  background: var(--vs-surface);
  color: var(--vs-accent);
  font-size: 9px;
  font-weight: 800;
}

:is(.video-type-4, .video-type-5) .section-action:hover {
  border-color: var(--vs-accent);
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
}

:is(.video-type-4, .video-type-5) .section-action i {
  font-style: normal;
}

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

.video-type-5 .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 15px;
}

:is(.video-type-4, .video-type-5) .grid > * {
  min-width: 0;
}

:is(.video-type-4, .video-type-5) .content-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--vs-line-strong);
  background: var(--vs-surface);
  color: var(--vs-muted);
  text-align: center;
}

:is(.video-type-4, .video-type-5) .content-empty strong {
  color: var(--vs-ink);
  font-size: 21px;
}

:is(.video-type-4, .video-type-5) .content-empty p {
  max-width: 620px;
  margin: 0;
  line-height: 1.7;
}

:is(.video-type-4, .video-type-5) .content-empty a {
  display: inline-block;
  margin: 4px 3px 0;
  padding: 8px 12px;
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
  font-size: 10px;
  font-weight: 800;
}

:is(.video-type-4, .video-type-5) .pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 30px 0;
}

:is(.video-type-4, .video-type-5) .pager > :where(a, span) {
  display: grid;
  min-width: 36px;
  min-height: 36px;
  padding: 7px 9px;
  place-items: center;
  border: 1px solid var(--vs-line);
  background: var(--vs-surface);
  color: var(--vs-ink);
  font-size: 10px;
  text-align: center;
}

:is(.video-type-4, .video-type-5) :where(.pager > a:hover, .pager .current) {
  border-color: var(--vs-accent);
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
}

:is(.video-type-4, .video-type-5) .pager .pager-gap {
  min-width: auto;
  border-color: transparent;
  background: transparent;
}

:is(.video-type-4, .video-type-5) .pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 5px;
  color: var(--vs-muted);
  font-size: 9px;
}

:is(.video-type-4, .video-type-5) .pager-jump label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

:is(.video-type-4, .video-type-5) .pager-jump input {
  width: 58px;
  min-height: 36px;
  padding: 7px;
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-radius);
  background: var(--vs-surface);
  color: var(--vs-ink);
  text-align: center;
}

:is(.video-type-4, .video-type-5) .pager-jump button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--vs-accent);
  border-radius: var(--vs-radius);
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
  font-weight: 800;
}

:is(.video-type-4, .video-type-5) .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  color: var(--vs-muted);
  font-size: 9px;
  font-weight: 700;
}

:is(.video-type-4, .video-type-5) .breadcrumb a:hover,
:is(.video-type-4, .video-type-5) .breadcrumb i {
  color: var(--vs-accent);
}

:is(.video-type-4, .video-type-5) .breadcrumb i {
  font-style: normal;
}

:is(.video-type-4, .video-type-5) .video-heading {
  margin: 0 0 14px;
  padding: 0 0 16px;
  border-bottom: 2px solid var(--vs-line-strong);
}

:is(.video-type-4, .video-type-5) .video-heading > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

:is(.video-type-4, .video-type-5) .video-heading :where(b, em) {
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid var(--vs-line);
  color: var(--vs-muted);
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.video-type-4, .video-type-5) .video-heading b {
  border-color: var(--vs-accent);
  color: var(--vs-accent);
}

:is(.video-type-4, .video-type-5).player-fullscreen-open {
  overflow: hidden;
}

:is(.video-type-4, .video-type-5) .player {
  position: relative;
  width: 100%;
  min-height: 220px;
  margin-top: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--vs-line-strong);
  border-radius: var(--vs-radius);
  background: #000;
}

:is(.video-type-4, .video-type-5) .player video {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  max-width: none;
  max-height: none;
  background: #000;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

:is(.video-type-4, .video-type-5) .player[data-rotation="90"] video,
:is(.video-type-4, .video-type-5) .player[data-rotation="180"] video,
:is(.video-type-4, .video-type-5) .player[data-rotation="270"] video {
  transform-origin: center;
}

:is(.video-type-4, .video-type-5) .player-controls {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
}

:is(.video-type-4, .video-type-5) .player-controls button {
  min-width: 42px;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 2px;
  background: rgba(20, 20, 20, .9);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

:is(.video-type-4, .video-type-5) .player-controls button:hover {
  border-color: #fff;
  background: #fff;
  color: #111;
}

:is(.video-type-4, .video-type-5) .player-controls input[type="range"] {
  width: 100%;
  min-width: 60px;
  accent-color: var(--vs-accent);
}

:is(.video-type-4, .video-type-5) .player-controls span {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

:is(.video-type-4, .video-type-5) :where(.player:fullscreen, .player.is-pseudo-fullscreen) {
  width: 100vw;
  height: 100vh !important;
  min-height: 100vh;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

:is(.video-type-4, .video-type-5) .player.is-pseudo-fullscreen {
  position: fixed;
  z-index: 9999;
  inset: 0;
}

:is(.video-type-4, .video-type-5) .player-loading {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: 210px;
  max-width: calc(100% - 30px);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 11px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(8, 8, 8, .9);
  color: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

:is(.video-type-4, .video-type-5) .player-loading[hidden],
:is(.video-type-4, .video-type-5) .player-watermark-warning[hidden] {
  display: none;
}

:is(.video-type-4, .video-type-5) .player-loading > span {
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: video-shared-spin .75s linear infinite;
}

:is(.video-type-4, .video-type-5) .player-loading strong {
  min-width: 0;
  font-size: 12px;
}

:is(.video-type-4, .video-type-5) .player-loading small {
  min-width: 0;
  color: #bbb;
  font-size: 9px;
}

:is(.video-type-4, .video-type-5) .player-loading.is-error > span {
  animation: none;
  border-color: #ff4058;
}

:is(.video-type-4, .video-type-5) .player-watermark-warning {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: min(500px, calc(100% - 30px));
  padding: 14px;
  border: 2px solid #ffd43b;
  background: rgba(45, 10, 10, .96);
  color: #fff;
  transform: translate(-50%, -50%);
}

:is(.video-type-4, .video-type-5) .player-watermark-warning b {
  display: block;
  color: #ffd43b;
  font-size: 14px;
}

:is(.video-type-4, .video-type-5) .player-watermark-warning p {
  margin: 5px 0 9px;
  font-size: 10px;
  line-height: 1.55;
}

:is(.video-type-4, .video-type-5) .player-watermark-warning button {
  padding: 6px 10px;
  border: 0;
  background: #e83245;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

:is(.video-type-4, .video-type-5) .video-watermark-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 6px;
  padding: 12px 14px;
  border: 1px solid #d63243;
  border-left: 6px solid #d63243;
  background: #fff0f1;
  color: #57131a;
}

:is(.video-type-4, .video-type-5) .video-watermark-alert strong {
  flex: 0 0 auto;
  color: #a30e1d;
  font-size: 13px;
}

:is(.video-type-4, .video-type-5) .video-watermark-alert span {
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

:is(.video-type-4, .video-type-5) .player-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px 0;
}

:is(.video-type-4, .video-type-5) .player-tools :where(button, a) {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--vs-line-strong);
  border-radius: var(--vs-radius);
  background: var(--vs-surface);
  color: var(--vs-ink);
  font-size: 9px;
  font-weight: 800;
}

:is(.video-type-4, .video-type-5) .player-tools :where(button, a):hover,
:is(.video-type-4, .video-type-5) .player-tools .is-saved {
  border-color: var(--vs-accent);
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
}

:is(.video-type-4, .video-type-5) .resume-notice {
  min-width: 0;
  color: var(--vs-accent);
  font-size: 9px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

:is(.video-type-4, .video-type-5) .desc {
  margin: 15px 0 30px;
  padding: 20px;
  border: 1px solid var(--vs-line);
  border-top: 3px solid var(--vs-line-strong);
  background: var(--vs-surface);
}

:is(.video-type-4, .video-type-5) .desc h2 {
  margin: 0 0 9px;
  color: var(--vs-ink);
  font-size: 19px;
}

:is(.video-type-4, .video-type-5) .desc p {
  margin: 0;
  color: var(--vs-muted);
  font-size: 11px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

:is(.video-type-4, .video-type-5) .related-section {
  margin-top: 34px;
}

:is(.video-type-4, .video-type-5) .tags {
  display: flex;
  align-items: stretch;
  gap: 7px;
  flex-wrap: wrap;
  margin: 10px 0;
}

:is(.video-type-4, .video-type-5) .tag {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-radius);
  background: var(--vs-surface);
  color: var(--vs-ink);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

:is(.video-type-4, .video-type-5) .tag:hover {
  border-color: var(--vs-accent);
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
}

:is(.video-type-4, .video-type-5) .tag small {
  margin-left: 5px;
  color: inherit;
  opacity: .7;
}

:is(.video-type-4, .video-type-5) .tag-search {
  display: grid;
  max-width: 720px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 0 24px;
}

:is(.video-type-4, .video-type-5) .tag-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--vs-line-strong);
  border-radius: var(--vs-radius) 0 0 var(--vs-radius);
  background: var(--vs-surface);
  color: var(--vs-ink);
}

:is(.video-type-4, .video-type-5) .tag-search button {
  padding: 10px 15px;
  border: 1px solid var(--vs-accent);
  border-radius: 0 var(--vs-radius) var(--vs-radius) 0;
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
  font-size: 10px;
  font-weight: 800;
}

:is(.video-type-4, .video-type-5) .tag-directory {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

:is(.video-type-4, .video-type-5) .tag-directory .tag {
  min-height: 45px;
  margin: 0;
}

:is(.video-type-4, .video-type-5) .related-tags {
  margin: 35px 0 20px;
  padding: 18px;
  border: 1px solid var(--vs-line);
  border-top: 3px solid var(--vs-line-strong);
  background: var(--vs-surface);
}

:is(.video-type-4, .video-type-5) .history-page {
  min-height: 55vh;
}

:is(.video-type-4, .video-type-5) .history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
  padding: 18px 0;
  border-bottom: 2px solid var(--vs-line-strong);
}

:is(.video-type-4, .video-type-5) :where(.history-head button, .library-tabs button) {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--vs-line-strong);
  border-radius: var(--vs-radius);
  background: var(--vs-surface);
  color: var(--vs-ink);
  font-size: 9px;
  font-weight: 800;
}

:is(.video-type-4, .video-type-5) .library-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

:is(.video-type-4, .video-type-5) .library-tabs button.is-active,
:is(.video-type-4, .video-type-5) :where(.history-head button, .library-tabs button):hover {
  border-color: var(--vs-accent);
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
}

:is(.video-type-4, .video-type-5) .history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

:is(.video-type-4, .video-type-5) .history-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-radius);
  background: var(--vs-surface);
}

:is(.video-type-4, .video-type-5) .history-card > a {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

:is(.video-type-4, .video-type-5) .history-card figure {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
}

:is(.video-type-4, .video-type-5) .history-card figure img,
:is(.video-type-4, .video-type-5) .history-card > a > img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
}

:is(.video-type-4, .video-type-5) .history-card > a > span {
  display: flex;
  min-width: 0;
  min-height: 105px;
  flex: 1;
  flex-direction: column;
  padding: 11px;
}

:is(.video-type-4, .video-type-5) .history-card :where(em, small, .history-card-meta) {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--vs-muted);
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.video-type-4, .video-type-5) .history-card :where(strong, .history-card-title) {
  display: -webkit-box;
  margin: 6px 0;
  overflow: hidden;
  color: var(--vs-ink);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

:is(.video-type-4, .video-type-5) .history-card-progress {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--vs-line);
}

:is(.video-type-4, .video-type-5) .history-card-progress i {
  display: block;
  height: 100%;
  background: var(--vs-accent);
}

:is(.video-type-4, .video-type-5) .history-card-remove {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 7px;
  display: grid;
  width: 29px;
  height: 29px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  line-height: 1;
}

:is(.video-type-4, .video-type-5) .history-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 25px;
  border: 1px dashed var(--vs-line-strong);
  background: var(--vs-surface);
  color: var(--vs-muted);
  font-size: 11px;
  text-align: center;
}

:is(.video-type-4, .video-type-5) .history-empty strong {
  color: var(--vs-ink);
  font-size: 20px;
}

:is(.video-type-4, .video-type-5) .history-empty a {
  padding: 8px 12px;
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
  font-size: 9px;
  font-weight: 800;
}

:is(.video-type-4, .video-type-5) .ad-slot {
  width: min(100%, 1600px);
  margin: 10px auto;
  overflow: hidden;
  text-align: center;
}

:is(.video-type-4, .video-type-5) .ad-slot:empty {
  display: none;
}

:is(.video-type-4, .video-type-5) .ad-slot :where(img, iframe, video) {
  max-width: 100%;
}

:is(.video-type-4, .video-type-5) .site-wide-ads {
  width: 100%;
  max-width: 1600px;
  margin: 8px auto 0;
  padding: 0 clamp(12px, 4vw, 64px);
  overflow: hidden;
}

:is(.video-type-4, .video-type-5) .site-wide-ads.desktop-hidden {
  display: none;
}

:is(.video-type-4, .video-type-5) .category-ad-row {
  display: block;
  width: 100%;
  margin: 0 0 6px;
}

:is(.video-type-4, .video-type-5) .category-ad-items {
  display: grid;
  grid-template-columns: repeat(var(--ad-desktop-columns, 5), minmax(0, 1fr));
  align-items: start;
  gap: var(--ad-desktop-gap, 5px);
  width: 100%;
  max-width: var(--ad-desktop-row-width, 100%);
  margin: 0 auto;
}

:is(.video-type-4, .video-type-5) .category-ad-item {
  display: block;
  width: 100%;
  height: var(--ad-desktop-height, auto);
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: transparent;
}

:is(.video-type-4, .video-type-5) .category-ad-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

:is(.video-type-4, .video-type-5) .site-save-panel {
  display: grid;
  width: min(calc(100% - 32px), 1472px);
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px 28px;
  margin: 26px auto;
  padding: 20px 22px;
  border: 1px solid var(--vs-line-strong);
  border-top: 4px solid var(--vs-accent);
  border-radius: var(--vs-radius);
  background: var(--vs-surface);
  color: var(--vs-ink);
}

:is(.video-type-4, .video-type-5) .site-save-panel > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

:is(.video-type-4, .video-type-5) .site-save-panel > div:first-child span {
  color: var(--vs-accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

:is(.video-type-4, .video-type-5) .site-save-panel > div:first-child strong {
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.35;
}

:is(.video-type-4, .video-type-5) .site-save-panel > div:first-child small {
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: var(--vs-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.video-type-4, .video-type-5) .site-save-panel > div:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

:is(.video-type-4, .video-type-5) .site-save-panel :where(button, a) {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--vs-line-strong);
  border-radius: var(--vs-radius);
  background: transparent;
  color: var(--vs-ink);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

:is(.video-type-4, .video-type-5) .site-save-panel :where(button, a):hover {
  border-color: var(--vs-accent);
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
}

:is(.video-type-4, .video-type-5) .site-save-panel output {
  grid-column: 1 / -1;
  min-height: 1.4em;
  color: var(--vs-accent);
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

:is(.video-type-4, .video-type-5) .friend-links {
  width: min(calc(100% - 32px), 1472px);
  margin: 22px auto 28px;
  padding: 20px 22px;
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-radius);
  background: var(--vs-surface);
  color: var(--vs-ink);
}

:is(.video-type-4, .video-type-5) .friend-links header {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin-bottom: 13px;
}

:is(.video-type-4, .video-type-5) .friend-links header span {
  color: var(--vs-accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

:is(.video-type-4, .video-type-5) .friend-links header b {
  min-width: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

:is(.video-type-4, .video-type-5) .friend-links nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 7px;
}

:is(.video-type-4, .video-type-5) .friend-links a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--vs-line);
  background: var(--vs-bg);
}

:is(.video-type-4, .video-type-5) .friend-links a:hover {
  border-color: var(--vs-accent);
  background: var(--vs-surface-alt);
}

:is(.video-type-4, .video-type-5) .friend-links a i {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--vs-accent);
  color: var(--vs-accent-ink);
  font-style: normal;
}

:is(.video-type-4, .video-type-5) .friend-links a span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

:is(.video-type-4, .video-type-5) .friend-links a :where(strong, small) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.video-type-4, .video-type-5) .friend-links a strong {
  font-size: 10px;
}

:is(.video-type-4, .video-type-5) .friend-links a small {
  color: var(--vs-muted);
  font-size: 8px;
}

:is(.video-type-4, .video-type-5) .dmca-page {
  width: min(100%, 980px);
  margin: 0 auto;
}

:is(.video-type-4, .video-type-5) .dmca-panel {
  padding: clamp(22px, 5vw, 54px);
  border: 1px solid var(--vs-line);
  border-top: 4px solid var(--vs-line-strong);
  background: var(--vs-surface);
}

:is(.video-type-4, .video-type-5) .dmca-panel > header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--vs-line);
}

:is(.video-type-4, .video-type-5) .dmca-panel > header span {
  color: var(--vs-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

:is(.video-type-4, .video-type-5) .dmca-panel h1 {
  margin: 7px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

:is(.video-type-4, .video-type-5) .dmca-copy h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

:is(.video-type-4, .video-type-5) :where(.dmca-copy p, .dmca-copy li) {
  color: var(--vs-muted);
  font-size: 11px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

:is(.video-type-4, .video-type-5) .dmca-contact {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--vs-line);
}

:is(.video-type-4, .video-type-5) .dmca-contact a {
  color: var(--vs-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes video-shared-spin {
  to { transform: rotate(360deg); }
}

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

  :is(.video-type-4, .video-type-5) .tag-directory {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  :is(.video-type-4, .video-type-5) .site-wide-ads,
  :is(.video-type-4, .video-type-5) .site-wide-ads.desktop-hidden {
    display: block;
    padding-inline: 12px;
  }

  :is(.video-type-4, .video-type-5) .category-ad-items {
    grid-template-columns: repeat(var(--ad-mobile-columns, 5), minmax(0, 1fr));
    gap: var(--ad-mobile-gap, 4px);
    max-width: var(--ad-mobile-row-width, 100%);
  }

  :is(.video-type-4, .video-type-5) .category-ad-item {
    height: var(--ad-mobile-height, auto);
  }

  :is(.video-type-4, .video-type-5) .history-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is(.video-type-4, .video-type-5) .site-save-panel {
    grid-template-columns: 1fr;
  }

  :is(.video-type-4, .video-type-5) .site-save-panel > div:nth-child(2) {
    justify-content: flex-start;
  }

  :is(.video-type-4, .video-type-5) .site-save-panel output {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  :is(.video-type-4, .video-type-5) .section {
    margin-bottom: 38px;
  }

  :is(.video-type-4, .video-type-5) :where(.page-heading, .head, .history-head) {
    align-items: flex-start;
  }

  :is(.video-type-4, .video-type-5) :where(.page-heading h1, .video-heading h1, .history-head h1) {
    font-size: 30px;
  }

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

  :is(.video-type-4, .video-type-5) .tag-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is(.video-type-4, .video-type-5) .player {
    min-height: 180px;
  }

  :is(.video-type-4, .video-type-5) .player-controls {
    grid-template-columns: auto minmax(60px, 1fr) auto auto;
    gap: 6px;
    padding: 8px;
  }

  :is(.video-type-4, .video-type-5) .player-controls [data-player-time] {
    display: none;
  }

  :is(.video-type-4, .video-type-5) .video-watermark-alert {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  :is(.video-type-4, .video-type-5) .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  :is(.video-type-4, .video-type-5) .history-card figure img,
  :is(.video-type-4, .video-type-5) .history-card > a > img {
    height: 115px;
  }

  :is(.video-type-4, .video-type-5) .friend-links nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  :is(.video-type-4, .video-type-5) .page-heading,
  :is(.video-type-4, .video-type-5) .history-head {
    flex-direction: column;
    gap: 12px;
  }

  :is(.video-type-4, .video-type-5) .head {
    gap: 10px;
  }

  :is(.video-type-4, .video-type-5) .head h2 {
    font-size: 20px;
  }

  :is(.video-type-4, .video-type-5) .section-action {
    max-width: 45%;
    white-space: normal;
  }

  :is(.video-type-4, .video-type-5) .content-empty {
    min-height: 220px;
    padding: 20px 13px;
  }

  :is(.video-type-4, .video-type-5) .pager-jump {
    flex-basis: 100%;
    justify-content: center;
    margin: 5px 0 0;
  }

  :is(.video-type-4, .video-type-5) .tag-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(.video-type-4, .video-type-5) .player-controls button {
    min-width: 36px;
    padding-inline: 5px;
  }

  :is(.video-type-4, .video-type-5) .player-watermark-warning {
    width: calc(100% - 18px);
    padding: 10px;
  }

  :is(.video-type-4, .video-type-5) .player-tools :where(button, a) {
    flex: 1 1 calc(50% - 7px);
    text-align: center;
  }

  :is(.video-type-4, .video-type-5) .resume-notice {
    flex-basis: 100%;
  }

  :is(.video-type-4, .video-type-5) .related-tags,
  :is(.video-type-4, .video-type-5) .desc {
    padding: 14px;
  }

  :is(.video-type-4, .video-type-5) .site-save-panel,
  :is(.video-type-4, .video-type-5) .friend-links {
    width: calc(100% - 20px);
    margin-block: 18px;
    padding: 15px;
  }

  :is(.video-type-4, .video-type-5) .site-save-panel > div:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(.video-type-4, .video-type-5) .site-save-panel :where(button, a) {
    min-width: 0;
    padding-inline: 6px;
    overflow-wrap: anywhere;
  }

  :is(.video-type-4, .video-type-5) .site-save-panel a:last-child {
    grid-column: 1 / -1;
  }

  :is(.video-type-4, .video-type-5) .friend-links nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.video-type-4, .video-type-5),
  :is(.video-type-4, .video-type-5) *,
  :is(.video-type-4, .video-type-5) *::before,
  :is(.video-type-4, .video-type-5) *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  :is(.video-type-4, .video-type-5) .player-loading > span {
    animation: none;
  }
}
