.watch-page {
  left: 50%;
  margin: -17px 0 0;
  max-width: none;
  position: relative;
  transform: translateX(-50%);
  width: calc(100dvw - 48px);
}

.watch-layout {
  align-items: start;
  display: grid;
  column-gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  row-gap: 15px;
}

.watch-tags-shell {
  align-items: center;
  display: grid;
  gap: 0;
  grid-column: 1 / -1;
  grid-template-columns: 0 minmax(0, 1fr) 0;
  margin-bottom: 0;
  min-width: 0;
  transition: grid-template-columns 160ms ease;
}

.watch-tags-shell.has-prev {
  grid-template-columns: 26px minmax(0, 1fr) 0;
}

.watch-tags-shell.has-next {
  grid-template-columns: 0 minmax(0, 1fr) 26px;
}

.watch-tags-shell.has-prev.has-next {
  grid-template-columns: 26px minmax(0, 1fr) 26px;
}

.watch-tags {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
  min-width: 0;
  margin-bottom: 0;
  padding-inline: 0;
}

.watch-tags-shell.is-at-start .watch-tags,
.watch-tags-shell.is-not-scrollable .watch-tags {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
}

.watch-tags-shell.is-at-end .watch-tags {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 100%);
}

.watch-tags-shell.is-not-scrollable .watch-tags {
  -webkit-mask-image: none;
  mask-image: none;
}

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

.watch-player {
  background: #05070b;
  border: 1px solid rgba(168, 179, 199, 0.18);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  width: 100%;
}

.player,
.player-frame {
  aspect-ratio: 16 / 9;
  background: #05070b;
  display: block;
  width: 100%;
}

.player-frame {
  position: relative;
}

.player-poster {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: opacity 160ms ease;
  width: 100%;
}

.player-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.player-frame .deferred-player {
  opacity: 0;
  transition: opacity 160ms ease;
}

.player-loader {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  transition: opacity 200ms ease;
}

.player-dots {
  display: flex;
  gap: 8px;
}

.player-dots span {
  animation: player-bounce 1s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: block;
  height: 10px;
  width: 10px;
}

.player-dots span:nth-child(2) { animation-delay: 0.15s; }
.player-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes player-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-10px); opacity: 1; }
}

.player-frame.is-player-ready .deferred-player {
  opacity: 1;
}

.player-frame.is-player-ready .player-poster {
  opacity: 0;
  pointer-events: none;
}

.player-frame.is-player-ready .player-loader {
  opacity: 0;
}

.watch-info {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
}

.watch-info h1 {
  color: var(--site-text);
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
  max-width: 860px;
}

.watch-meta {
  align-items: center;
  color: var(--site-muted);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
}

.metric-counter {
  display: inline-block;
  min-width: 1ch;
  text-align: center;
}

.metric-counter.is-counting {
  animation: metric-number-drop 110ms cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-counter.is-loading {
  color: rgba(168, 179, 199, 0.58);
}

@keyframes metric-number-drop {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.like-form {
  margin: 0;
}

.watch-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.more-actions,
.more-actions-menu {
  align-items: center;
  display: contents;
}

.more-actions-toggle {
  display: none;
}

.share-action {
  position: relative;
}

.like-button,
.share-button,
.report-button,
.more-actions-toggle {
  align-items: center;
  background: rgba(168, 179, 199, 0.1);
  border: 1px solid rgba(168, 179, 199, 0.18);
  border-radius: 999px;
  color: var(--site-muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.share-button {
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
}

.report-button:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.share-button:hover,
.share-button.is-copied {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.34);
  color: #93c5fd;
}

.like-button:hover,
.like-button.is-liked {
  background: rgba(225, 29, 72, 0.16);
  border-color: rgba(225, 29, 72, 0.34);
  color: #fb7185;
}

.like-button:active {
  transform: scale(0.98);
}

.like-button svg,
.share-button svg,
.report-button svg,
.more-actions-toggle svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.more-actions-toggle {
  display: none;
}

.report-modal-backdrop {
  align-items: center;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: rgba(2, 6, 14, 0.76);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 100;
}

.report-modal-backdrop[hidden] {
  display: none;
}

.report-modal {
  background: #151a23;
  border: 1px solid rgba(168, 179, 199, 0.2);
  border-radius: 14px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.22);
  color: var(--site-text);
  max-height: calc(100vh - 36px);
  max-width: 620px;
  overflow: auto;
  padding: 22px;
  position: relative;
  width: 100%;
}

.report-modal-close {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--site-muted);
  cursor: pointer;
  display: flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  width: 30px;
}

.report-modal-close:hover {
  background: rgba(168, 179, 199, 0.1);
  border-color: rgba(168, 179, 199, 0.14);
  color: var(--site-text);
}

.report-modal-close svg {
  fill: currentColor;
  height: 17px;
  width: 17px;
}

.report-modal-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  padding-right: 38px;
}

.report-modal-heading h2,
.report-modal-heading p {
  margin: 0;
}

.report-modal-heading h2 {
  font-size: 20px;
  line-height: 1.25;
}

.report-modal-heading p {
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 5px;
}

.report-modal-icon {
  align-items: center;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 50%;
  color: #fbbf24;
  display: flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.report-modal-icon svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.report-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.report-form fieldset {
  border: 0;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.report-form legend,
.report-comment > span {
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.report-reason {
  align-items: center;
  background: rgba(168, 179, 199, 0.06);
  border: 1px solid rgba(168, 179, 199, 0.12);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  padding: 10px 11px;
  transition: background 160ms ease, border-color 160ms ease;
}

.report-reason:has(input:checked) {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(251, 191, 36, 0.28);
}

.report-reason input {
  accent-color: #f59e0b;
  height: 15px;
  margin: 0;
  width: 15px;
}

.report-comment {
  display: grid;
}

.report-comment[hidden] {
  display: none;
}

.report-comment textarea {
  background: rgba(168, 179, 199, 0.06);
  border: 1px solid rgba(168, 179, 199, 0.16);
  border-radius: 8px;
  color: var(--site-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  max-height: 160px;
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
}

.report-comment textarea:focus {
  border-color: rgba(96, 165, 250, 0.55);
  outline: 2px solid rgba(59, 130, 246, 0.14);
}

.report-honeypot {
  left: -10000px;
  position: absolute;
}

.report-form-status {
  color: #86efac;
  display: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.report-form-status.is-visible {
  display: block;
}

.report-form-status.is-error {
  color: #fca5a5;
}

.report-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.report-cancel,
.report-submit {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 9px 14px;
}

.report-cancel {
  background: rgba(168, 179, 199, 0.08);
  border-color: rgba(168, 179, 199, 0.14);
  color: var(--site-muted);
}

.report-submit {
  background: #2563eb;
  color: #fff;
}

.report-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.share-feedback {
  background: rgba(20, 26, 36, 0.96);
  border: 1px solid rgba(168, 179, 199, 0.2);
  border-radius: 6px;
  bottom: calc(100% + 8px);
  color: var(--site-text);
  font-size: 11px;
  font-weight: 700;
  left: 50%;
  opacity: 0;
  padding: 7px 9px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.share-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tag-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.tag-row::-webkit-scrollbar {
  display: none;
}

.tag-row .tag {
  background: rgba(168, 179, 199, 0.1);
  border: 1px solid rgba(168, 179, 199, 0.18);
  border-radius: 999px;
  color: var(--site-muted);
  font-size: 13px;
  flex: 0 0 auto;
  font-weight: 800;
  padding: 8px 11px;
  white-space: nowrap;
}

.tag-row .tag:hover {
  background: rgba(168, 179, 199, 0.16);
  color: var(--site-text);
}

.tag-scroll-button {
  align-items: center;
  background: rgba(168, 179, 199, 0.1);
  border: 1px solid rgba(168, 179, 199, 0.18);
  border-radius: 999px;
  color: var(--site-muted);
  cursor: pointer;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  line-height: 1;
  min-height: 24px;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
  visibility: hidden;
  width: 24px;
}

.watch-tags-shell.has-prev .tag-scroll-prev,
.watch-tags-shell.has-next .tag-scroll-next {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.tag-scroll-prev {
  grid-column: 1;
  justify-self: start;
}

.tag-scroll-next {
  grid-column: 3;
  justify-self: end;
}

.tag-scroll-button svg {
  fill: currentColor;
  height: 14px;
  width: 14px;
}

.tag-scroll-button:hover {
  background: rgba(168, 179, 199, 0.16);
  border-color: rgba(168, 179, 199, 0.28);
  color: var(--site-text);
}

.tag-scroll-button.is-hidden {
  border: 0;
  cursor: default;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  width: 0;
}

.description {
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 820px;
}

.related-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.related-panel h2 {
  color: var(--site-text);
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

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

.related-card {
  align-items: start;
  color: var(--site-text);
  display: grid;
  gap: 10px;
  grid-template-columns: 180px minmax(0, 1fr);
}

.related-thumb {
  border-radius: 7px;
  position: relative;
}

.related-duration {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 5px;
  bottom: 6px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 5px;
  position: absolute;
  right: 6px;
}

.related-new-badge {
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(10, 14, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  font-size: 8px;
  font-weight: 700;
  gap: 4px;
  left: 6px;
  line-height: 1;
  padding: 5px 6px;
  position: absolute;
  top: 6px;
}

.related-new-badge i {
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.15);
  display: block;
  flex: 0 0 auto;
  height: 4px;
  width: 4px;
}

.related-card:hover .related-title {
  color: #ffffff;
}

.related-thumb {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #05070b;
  color: var(--site-muted);
  display: flex;
  font-size: 22px;
  font-weight: 900;
  justify-content: center;
  overflow: hidden;
}

.related-thumb picture,
.related-thumb img {
  display: block;
  height: 100%;
  width: 100%;
}

.related-thumb img {
  object-fit: cover;
}

.related-title {
  color: var(--site-muted);
  display: -webkit-box;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.related-empty {
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.video-disabled-panel {
  align-items: center;
  background: linear-gradient(145deg, rgba(32, 38, 55, 0.86), rgba(16, 19, 26, 0.96));
  border: 1px solid rgba(168, 179, 199, 0.2);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 28px;
  grid-template-columns: 160px minmax(0, 1fr);
  margin-top: 40px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.video-disabled-panel::before,
.video-disabled-panel::after {
  background: rgba(168, 179, 199, 0.14);
  content: "";
  height: 1px;
  left: 28px;
  position: absolute;
  right: 28px;
}

.video-disabled-panel::before {
  top: 28%;
}

.video-disabled-panel::after {
  bottom: 28%;
}

.video-disabled-code {
  align-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(168, 179, 199, 0.2);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.video-disabled-code span {
  color: var(--site-text);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.video-disabled-code i {
  background: #38bdf8;
  border-radius: 999px;
  bottom: 16px;
  height: 9px;
  position: absolute;
  right: 16px;
  width: 9px;
}

.video-disabled-eyebrow {
  color: #38bdf8;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.video-disabled-panel h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.video-disabled-panel p:last-child {
  color: var(--site-muted);
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 620px;
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .watch-page {
    margin-top: -7px;
    width: calc(100dvw - 36px);
  }

  .watch-layout {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .watch-player {
    border-radius: 0;
    margin-inline: -18px;
    width: calc(100% + 36px);
  }

  .watch-info {
    margin-top: 18px;
  }

  .watch-info h1 {
    font-size: 17px;
  }

  .watch-meta {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }

  .watch-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    position: relative;
    width: auto;
  }

  .report-button,
  .share-button,
  .like-button,
  .more-actions-toggle {
    font-size: 12px;
    min-height: 34px;
    padding: 7px 10px;
  }

  .like-form {
    margin-right: 0;
  }

  .more-actions {
    display: block;
    position: relative;
  }

  .more-actions-toggle {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    min-height: 36px;
    padding: 0;
    width: 36px;
  }

  .more-actions-toggle svg {
    height: 19px;
    width: 19px;
  }

  .more-actions.is-open .more-actions-toggle {
    background: rgba(168, 179, 199, 0.18);
    border-color: rgba(168, 179, 199, 0.3);
    color: var(--site-text);
  }

  .more-actions-menu {
    background: #191e27;
    border: 1px solid rgba(168, 179, 199, 0.18);
    border-radius: 7px;
    bottom: calc(100% + 8px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    display: none;
    gap: 3px;
    min-width: 174px;
    padding: 5px;
    position: absolute;
    right: 0;
    z-index: 20;
  }

  .more-actions.is-open .more-actions-menu {
    display: grid;
  }

  .more-actions-menu .share-action {
    display: contents;
  }

  .more-actions-menu .share-button,
  .more-actions-menu .report-button {
    background: transparent;
    border: 0;
    border-radius: 5px;
    justify-content: flex-start;
    width: 100%;
  }

  .more-actions-menu .share-feedback {
    bottom: auto;
    left: auto;
    right: calc(100% + 8px);
    top: 4px;
    transform: translateX(4px);
  }

  .more-actions-menu .share-feedback.is-visible {
    transform: translateX(0);
  }

  .watch-tags-shell {
    margin-inline: -18px;
    padding-inline: 18px;
    width: calc(100% + 36px);
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .related-card {
    grid-template-columns: 144px minmax(0, 1fr);
  }

  .video-disabled-panel {
    gap: 18px;
    grid-template-columns: 1fr;
    margin-top: 22px;
    padding: 20px;
  }

  .video-disabled-code {
    aspect-ratio: 16 / 6;
  }

  .video-disabled-panel p:last-child {
    font-size: 16px;
  }

  .report-modal {
    border-radius: 14px;
    max-width: none;
    padding: 18px;
  }

  .report-modal-backdrop {
    align-items: center;
    padding: 10px;
  }

  .report-modal-heading {
    gap: 10px;
    padding-right: 30px;
  }

  .report-modal-heading h2 {
    font-size: 18px;
  }

  .report-modal-heading p {
    font-size: 12px;
  }

  .report-modal-icon {
    flex-basis: 34px;
    height: 34px;
    width: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .metric-counter.is-counting {
    animation: none;
  }
}
