.nf-video-watch-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.nf-video-watch-subline {
  margin-top: 0.35rem;
}

.nf-video-watch-owner {
  color: inherit;
}

.nf-video-watch-actions .btn {
  font-weight: 600;
  padding-inline: 0.85rem;
}

.nf-video-watch-description {
  background: var(--bs-tertiary-bg, #f6f7f8);
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  padding: 1rem;
}

.nf-video-watch-description-inner {
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-line;
}

[data-bs-theme="dark"] .nf-video-watch-description {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.1);
}



/* Modern single video watch page */
.nf-video-watch-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.nf-video-watch-main {
  min-width: 0;
}

.nf-video-watch-sidebar {
  min-width: 0;
}

.nf-video-watch-player-card {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
}

.nf-video-watch-player-card video,
.nf-video-watch-player-card iframe,
.nf-video-watch-player-card .plyr,
.nf-video-watch-player-card .plyr__video-wrapper {
  width: 100%;
  max-width: 100%;
}

.nf-video-watch-info {
  padding-top: 1rem;
}

.nf-video-watch-title {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 750;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.015em;
}

.nf-video-watch-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: var(--bs-secondary-color);
  font-size: 0.92rem;
}

.nf-video-watch-owner {
  color: var(--bs-body-color);
  font-weight: 650;
  text-decoration: none;
}

.nf-video-watch-owner:hover {
  text-decoration: underline;
}

.nf-video-watch-dot {
  color: var(--bs-secondary-color);
}

.nf-video-watch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.nf-video-watch-action-btn {
  font-weight: 650;
  padding: 0.42rem 0.85rem;
}

.nf-video-watch-description {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  font-size: 0.96rem;
  line-height: 1.6;
  white-space: pre-line;
}

.nf-video-watch-sidebar-sticky {
  position: static;
}

.nf-video-watch-sidebar-header {
  font-size: 1rem;
  font-weight: 750;
  margin-bottom: 0.75rem;
}


@media (max-width: 767.98px) {
  .nf-video-watch-player-card {
    border-radius: 12px;
  }

  .nf-video-watch-title {
    font-size: 1.2rem;
  }

  .nf-video-watch-description {
    border-radius: 14px;
    padding: 0.85rem;
  }
}

[data-bs-theme="dark"] .nf-video-watch-player-card {
  box-shadow: 0 14px 36px rgba(0,0,0,0.55);
}

[data-bs-theme="dark"] .nf-video-watch-description {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.1);
}


/* Modern video watch sidebar suggestions */
.nf-video-watch-suggestions-card {
  padding-bottom: 1rem;
}

.nf-video-watch-suggestions-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.nf-video-watch-suggestions-head .section-title {
  margin-bottom: 0;
}

.nf-video-watch-suggestions-all {
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nf-video-watch-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nf-video-watch-suggestion {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
}

.nf-video-watch-suggestion-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.nf-video-watch-suggestion-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nf-video-watch-suggestion:hover .nf-video-watch-suggestion-thumb img {
  transform: scale(1.035);
  opacity: 0.92;
}

.nf-video-watch-suggestion-duration {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  padding: 0.15rem 0.38rem;
  border-radius: 5px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.1;
}

.nf-video-watch-suggestion-body {
  min-width: 0;
  padding-top: 0.05rem;
}

.nf-video-watch-suggestion-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-width: 0;
  overflow: hidden;
  color: var(--bs-body-color);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.nf-video-watch-suggestion-title:hover {
  color: var(--bs-primary);
  text-decoration: none;
}

.nf-video-watch-suggestion-author {
  display: block;
  margin-top: 0.35rem;
  overflow: hidden;
  color: var(--bs-secondary-color);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.81rem;
  line-height: 1.25;
}

.nf-video-watch-suggestion-author:hover {
  color: var(--bs-body-color);
  text-decoration: underline;
}

/* Kill old vertical sidebar video layout inside watch sidebar */
.nf-video-watch-aside .nerofix-sidebar-video,
.nf-video-watch-aside .media-list > li {
  width: 100%;
  max-width: none;
  margin: 0;
}

.nf-video-watch-aside .media-list {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

/* Dark mode */
[data-bs-theme="dark"] .nf-video-watch-suggestion-thumb {
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

@media (max-width: 575.98px) {
  .nf-video-watch-suggestion {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 0.65rem;
  }

  .nf-video-watch-suggestion-title {
    font-size: 0.88rem;
  }
}







.nerofix-video-suggestion {
  display: flex;
  margin-bottom: 12px;
}

.nerofix-video-thumbnail {
  position: relative;
  flex-shrink: 0;
  width: 168px;
  height: 94px;
  background: #000;
  overflow: hidden;
  border-radius: 8px;
}

.nerofix-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nerofix-video-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: bold;
}

.nerofix-video-info {
  margin-left: 12px;
  overflow: hidden;
  flex: 1;
}

.nerofix-video-title {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: block;
  line-height: 1.2em;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nerofix-video-author {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  color: #606060;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nerofix-video-author span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
}


.nerofix-video-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 6px;
  object-fit: cover;
}

.nerofix-video-meta {
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nerofix-video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.nerofix-video-suggestion {
  display: flex;
  flex-direction: row;
  min-height: 94px;
}

.nerofix-sidebar-video {
  width: 100%;
  max-width: 224px;
  margin-bottom: 10px;
}

.nerofix-sidebar-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background-color: #ddd;
}

.nerofix-sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nerofix-sidebar-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: bold;
}

.nerofix-sidebar-info {
  margin-top: 6px;
  line-height: 1.2;
}

.nerofix-sidebar-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nerofix-sidebar-author {
  font-size: 11px;
  color: #666;
  text-decoration: none;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nerofix-video-manage-item {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.nerofix-video-manage-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

[data-bs-theme="dark"] .nerofix-video-manage-item {
  background: var(--nf-dark-surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

[data-bs-theme="dark"] .nerofix-video-manage-item:hover {
  background: var(--nf-dark-surface-2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

.nerofix-video-manage-item .video-thumbnail {
  width: 160px;
  flex-shrink: 0;
  position: relative;
}

.nerofix-video-manage-item .video-thumbnail img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  height: auto;
}

.nerofix-sidebar-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: bold;
}



@media (min-width: 1024px) {
  .nerofix-video-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nerofix-video-suggestion {
    width: calc(50% - 15px);
    margin-right: 10px;
    min-height: 84px;
  }

  .nerofix-video-list .nerofix-video-suggestion:nth-child(odd):last-child {
    width: 100%;
  }
  
  .nerofix-video-thumbnail {
  width: 148px;
  height: 84px;
}
}


.plyr-lazy-thumbnail {
  cursor: pointer;
  position: relative;
}
.plyr-lazy-thumbnail .play-button-overlay {
  pointer-events: none;
}

/* Legacy Plyr styling remains with the video area during the transition. */
:root {
  --plyr-color-main: var(--color-primary);
  --plyr-video-control-background-hover: var(--color-primary-hover);
  --plyr-range-fill-background: var(--color-primary);
}

.plyr__control--overlaid {
  background: var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--color-primary))) !important;
}

.plyr--video .plyr__control.plyr__tab-focus,
.plyr--video .plyr__control:hover,
.plyr--video .plyr__control[aria-expanded="true"] {
  background: var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--color-primary))) !important;
}

.plyr--full-ui input[type="range"] {
  color: var(--plyr-range-fill-background, var(--plyr-color-main, var(--color-primary))) !important;
}

/* Native Nerofix video player: browser media element with site-owned controls. */
video.nerofix-video-player:not([data-nerofix-player-initialized="1"]) {
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.nf-video-player {
  aspect-ratio: 16 / 9;
  background-color: #16181a;
  border-radius: .5rem;
  container-type: inline-size;
  overflow: hidden;
  position: relative;
  transition: background-color .22s ease;
  width: 100%;
}

.nf-video-player.has-uniform-backdrop {
  background-color: var(--nf-video-player-backdrop-color, #16181a);
}

.nf-video-player:focus-visible {
  outline: 3px solid var(--bs-primary, #0d6efd);
  outline-offset: 3px;
}

.nf-video-player-media {
  background: transparent;
  display: block;
  height: 100%;
  max-height: none;
  object-fit: contain;
  position: relative;
  width: 100%;
  z-index: 1;
}

.nf-video-player-backdrop {
  filter: blur(1.25rem) brightness(.72);
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: .86;
  pointer-events: none;
  position: absolute;
  transform: scale(1.08);
  transition: opacity .22s ease;
  width: 100%;
  z-index: 0;
}

.nf-video-player.has-uniform-backdrop .nf-video-player-backdrop {
  opacity: 0;
}

.nf-video-player.is-loading::after {
  animation: nf-video-player-spinner .75s linear infinite;
  border: .2rem solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  border-top-color: #fff;
  content: '';
  height: 2rem;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 2rem;
  z-index: 2;
}

.nf-video-player-seek-feedback {
  align-items: center;
  background: rgba(0, 0, 0, .66);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  height: 4.25rem;
  justify-content: center;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(.78);
  transition: opacity .16s ease, transform .16s ease;
  width: 4.25rem;
  z-index: 4;
}

.nf-video-player.is-seek-feedback-visible .nf-video-player-seek-feedback {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.nf-video-player-seek-feedback[data-direction="backward"] {
  left: 28%;
}

.nf-video-player-seek-feedback[data-direction="forward"] {
  left: 72%;
}

@keyframes nf-video-player-spinner {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.nf-video-player-controls {
  align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .88) 38%);
  color: #fff;
  display: flex;
  gap: .55rem;
  inset: auto 0 0;
  line-height: 1;
  padding: 1.25rem .75rem .65rem;
  position: absolute;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 3;
}

.nf-video-player-big-play {
  align-items: center;
  background: rgba(0, 0, 0, .62);
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 4.25rem;
  justify-content: center;
  left: 50%;
  padding: 0 0 0 .2rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: background .18s ease, opacity .18s ease, transform .18s ease;
  width: 4.25rem;
  z-index: 1;
}

.nf-video-player-big-play:hover,
.nf-video-player-big-play:focus-visible {
  background: var(--bs-primary, #0d6efd);
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.nf-video-player.is-playing .nf-video-player-big-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.82);
}

.nf-video-player.is-controls-hidden .nf-video-player-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(.45rem);
}

.nf-video-player.is-controls-hidden .nf-video-player-settings {
  opacity: 0;
  pointer-events: none;
}

.nf-video-player.is-controls-hidden {
  cursor: none;
}

.nf-video-player:focus-visible .nf-video-player-controls {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nf-video-player-control {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: .3rem;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  width: 2.5rem;
}

.nf-video-player-control:hover,
.nf-video-player-control:focus-visible {
  background: rgba(255, 255, 255, .18);
  outline: 0;
}

.nf-video-player-control:focus-visible,
.nf-video-player-seek:focus-visible,
.nf-video-player-volume:focus-visible,
.nf-video-player-settings-option:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nf-video-player-range {
  align-items: center;
  display: flex;
  min-width: 0;
  position: relative;
}

.nf-video-player-seek-range {
  flex: 1 1 auto;
  min-width: 4rem;
}

.nf-video-player-volume-range {
  flex: 0 1 5rem;
  min-width: 3rem;
}

.nf-video-player-seek,
.nf-video-player-volume {
  accent-color: var(--bs-primary, #0d6efd);
  min-width: 0;
  width: 100%;
}

.nf-video-player-range-value {
  background: rgba(0, 0, 0, .8);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: .25rem;
  bottom: calc(100% + .45rem);
  color: #fff;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  left: var(--nf-video-player-range-value-position, 50%);
  line-height: 1;
  opacity: 0;
  padding: .3rem .4rem;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, .2rem);
  transition: opacity .14s ease, transform .14s ease;
  white-space: nowrap;
  z-index: 1;
}

.nf-video-player-range.is-adjusting .nf-video-player-range-value {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nf-video-player-seek:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.nf-video-player-time {
  flex: 0 0 auto;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nf-video-player-settings {
  background: rgba(22, 22, 22, .96);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: .45rem;
  bottom: 4.05rem;
  box-sizing: border-box;
  box-shadow: 0 .4rem 1.25rem rgba(0, 0, 0, .42);
  color: #fff;
  display: none;
  min-width: 13rem;
  padding: .65rem;
  position: absolute;
  right: .75rem;
  z-index: 4;
}

.nf-video-player.is-settings-open .nf-video-player-settings {
  display: block;
}

.nf-video-player-settings-section + .nf-video-player-settings-section {
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin-top: .65rem;
  padding-top: .65rem;
}

.nf-video-player-settings-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  margin: 0 0 .45rem;
}

.nf-video-player-settings-value {
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border-radius: .3rem;
  display: flex;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  min-height: 2rem;
  padding: .25rem .5rem;
}

.nf-video-player-settings-options {
  display: grid;
  gap: .35rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nf-video-player-settings-option {
  background: rgba(255, 255, 255, .08);
  border: 1px solid transparent;
  border-radius: .3rem;
  color: inherit;
  cursor: pointer;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  min-height: 2rem;
  padding: .25rem;
}

.nf-video-player-settings-option:hover,
.nf-video-player-settings-option:focus-visible {
  background: rgba(255, 255, 255, .2);
}

.nf-video-player-settings-option.is-selected {
  background: var(--bs-primary, #0d6efd);
  border-color: rgba(255, 255, 255, .65);
  color: #fff;
}

.nf-video-player:fullscreen {
  align-items: center;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.nf-video-player:fullscreen .nf-video-player-media {
  height: 100%;
  max-height: none;
}

.nf-video-player:fullscreen .nf-video-player-controls {
  width: 100%;
}

/* Loaded after the Netmail stylesheet, so this also wins over its legacy fit rule. */
.netmail-attachment-video-wrap video.nf-video-player-media {
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .nf-video-player-big-play {
    font-size: 1.1rem;
    height: 3.75rem;
    width: 3.75rem;
  }

  .nf-video-player:fullscreen .nf-video-player-media,
  .netmail-attachment-video-wrap .nf-video-player:fullscreen video.nf-video-player-media {
    object-fit: contain;
  }

  .nf-video-player-controls {
    gap: .35rem;
    padding-inline: .45rem;
  }

  .nf-video-player-volume-range {
    display: none;
  }

  .nf-video-player-time {
    font-size: .72rem;
  }

  .nf-video-player-settings {
    bottom: 3.9rem;
    max-width: calc(100% - .9rem);
    min-width: 0;
    padding: .45rem;
    right: .45rem;
    width: min(11.5rem, calc(100% - .9rem));
  }

  .nf-video-player-settings-section + .nf-video-player-settings-section {
    margin-top: .45rem;
    padding-top: .45rem;
  }

  .nf-video-player-settings-label {
    font-size: .72rem;
    margin-bottom: .3rem;
  }

  .nf-video-player-settings-value {
    font-size: .75rem;
    min-height: 1.75rem;
    padding: .2rem .4rem;
  }

  .nf-video-player-settings-options {
    gap: .22rem;
  }

  .nf-video-player-settings-option {
    font-size: .66rem;
    min-height: 1.85rem;
    padding: .15rem;
  }
}

@media (max-width: 390px) {
  .nf-video-player-time {
    display: none;
  }
}

@media (pointer: coarse) {
  .nf-video-player-control {
    height: 2.75rem;
    width: 2.75rem;
  }

  .nf-video-player-settings-option {
    min-height: 2.5rem;
  }
}

@media (pointer: coarse) and (max-width: 575.98px) {
  .nf-video-player-settings-option {
    min-height: 1.85rem;
  }
}

@supports (width: 1cqi) {
  .nf-video-player-big-play {
    aspect-ratio: 1;
    font-size: min(1.25rem, 5cqi);
    height: auto;
    width: min(4.25rem, 18cqi);
  }

  @media (max-width: 575.98px) {
    .nf-video-player-big-play {
      font-size: min(1.1rem, 5cqi);
      width: min(3.75rem, 20cqi);
    }
  }
}
