:root {
  color-scheme: dark;
  font-family: "Roboto", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --page-gutter: 10px;
  --content-max-width: 430px;
  --vsl-max-width: 400px;
  --vsl-aspect-ratio: 3 / 4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #000;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  color: #fff;
  background: #000;
}

img,
picture,
svg,
video,
canvas,
iframe,
embed,
object {
  max-width: 100%;
}

img,
video {
  height: auto;
}

button {
  max-width: 100%;
  font: inherit;
}

.page {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: #000;
}

.vsl-section {
  width: 100%;
  max-width: 100%;
  padding: var(--page-gutter);
  background: #020000;
}

.vsl-slot,
.vsl-container {
  width: 100%;
  max-width: min(100%, var(--vsl-max-width));
  margin: 0 auto;
  background: #000;
}

.vsl-container vturb-smartplayer,
.vsl-container iframe,
.vsl-container video,
.vsl-container embed,
.vsl-container object {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
  border: 0;
}

.vsl-container video {
  height: auto !important;
}

.vsl-container iframe {
  aspect-ratio: var(--vsl-aspect-ratio);
  height: auto;
}

.vsl-placeholder {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--vsl-aspect-ratio);
  background: #000;
}

.vsl-placeholder[hidden] {
  display: none;
}

.details-section {
  width: 100%;
  max-width: 100%;
  padding: var(--page-gutter);
  background: #000;
}

.content-card {
  width: 100%;
  max-width: min(100%, var(--content-max-width));
  margin: 0 auto;
  padding: 16px;
  color: #fff;
  background: #0f0f0f;
  font-family: "Roboto", Arial, sans-serif;
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(18px, 4.7vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.views {
  margin-bottom: 18px;
  color: #aaa;
  font-size: 14px;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 18px;
}

.action-button {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #3f3f3f;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.action-button:hover,
.action-button:active,
.action-button.is-active {
  color: #fff;
  background: #4b4b4b;
}

.action-button svg {
  display: block;
  flex: 0 0 auto;
}

.dislike-button {
  min-width: 62px;
  padding: 8px 14px;
}

.divider {
  height: 1px;
  margin-bottom: 16px;
  background: #303030;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 16px;
}

.channel {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.channel-copy {
  min-width: 0;
}

.channel-avatar {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #22c55e;
  font-weight: 700;
}

.channel-name {
  color: #fff;
  font-size: clamp(15px, 3.8vw, 16px);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.subscribers {
  color: #aaa;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.subscribe-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 22px;
  border: 0;
  border-radius: 999px;
  color: #000;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.subscribe-button:hover,
.subscribe-button:active,
.subscribe-button.is-active {
  color: #000;
  background: #e7e7e7;
}

.description-box {
  width: 100%;
  max-width: 100%;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background: #4f4f4f;
  font-size: 14px;
  line-height: 1.5;
}

.description-meta {
  margin-bottom: 12px;
  font-weight: 600;
}

.description-box p {
  margin: 0 0 14px;
  overflow-wrap: break-word;
}

.description-box p:last-child {
  margin-bottom: 0;
}

.hashtags {
  color: #3ea6ff;
  overflow-wrap: anywhere;
}

button:focus-visible {
  outline: 2px solid #3ea6ff;
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  :root {
    --page-gutter: clamp(10px, 2vw, 16px);
  }
}

@media (max-width: 768px) {
  :root {
    --page-gutter: 10px;
  }
}

@media (max-width: 480px) {
  .details-section {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .action-bar {
    gap: 8px;
    margin-bottom: 16px;
  }

  .channel-row {
    gap: 10px;
  }

  .description-box {
    padding: 15px;
  }
}

@media (max-width: 375px) {
  .content-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .channel-row {
    gap: 8px;
  }

  .channel {
    gap: 9px;
  }

  .subscribe-button {
    padding-right: 14px;
    padding-left: 14px;
  }

  .description-box {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 340px) {
  .channel-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel-avatar {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .subscribe-button {
    align-self: flex-start;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 13px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .vsl-section {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .details-section {
    padding-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
