.vs-title-comments-card>header{align-items:flex-start!important}.vs-title-comments-card>header>div{min-width:0}.vs-title-comments-card>header .vs-title-engagement{display:flex!important;align-items:center!important;gap:24px!important;width:auto!important;max-width:none!important;margin:8px 0 5px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}.vs-title-comments-card .vs-title-engagement span{display:inline-flex!important;align-items:center!important;gap:7px!important;min-width:0!important;padding:0!important;border:0!important}.vs-title-comments-card .vs-title-engagement img{grid-row:auto!important;width:30px!important;height:30px!important;margin:0!important;object-fit:contain}.vs-title-comments-card .vs-title-engagement b{font-size:18px!important;font-weight:500!important;line-height:1!important;color:#e8e7ed!important;white-space:nowrap}.vs-title-comments-card .vs-title-engagement small{display:none!important}@media(max-width:700px){.vs-title-comments-card>header .vs-title-engagement{gap:17px!important;margin-top:7px!important}.vs-title-comments-card .vs-title-engagement span{flex:0 0 auto!important;gap:5px!important}.vs-title-comments-card .vs-title-engagement img{width:26px!important;height:26px!important}.vs-title-comments-card .vs-title-engagement b{font-size:16px!important}}

/* Lista contínua: sem balões ou divisórias por mensagem. */
.vs-title-comments-card .vs-title-comment{grid-template-columns:58px minmax(0,1fr)!important;column-gap:9px!important;margin:0!important;padding:11px 2px!important;border:0!important;background:transparent!important}
.vs-title-comments-card .vs-title-comment>.vs-comment-avatar{width:48px!important;height:48px!important;border-width:1px!important;box-shadow:none!important}
.vs-title-comments-card .vs-comment-content{min-width:0!important;padding:2px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.vs-title-comments-card .vs-title-replies{margin-left:10px!important;padding-left:6px!important;border:0!important}
.vs-title-comments-card .vs-title-reply{grid-template-columns:38px minmax(0,1fr)!important;column-gap:6px!important;margin-left:8px!important;padding-top:7px!important;padding-bottom:7px!important}
.vs-title-comments-card .vs-title-reply>.vs-comment-avatar{width:30px!important;height:30px!important;border-width:1px!important}
@media(max-width:700px){.vs-title-comments-card .vs-title-comment{grid-template-columns:52px minmax(0,1fr)!important;column-gap:7px!important}.vs-title-comments-card .vs-title-comment>.vs-comment-avatar{width:44px!important;height:44px!important}.vs-title-comments-card .vs-title-replies{margin-left:5px!important;padding-left:3px!important}.vs-title-comments-card .vs-title-reply{grid-template-columns:34px minmax(0,1fr)!important;margin-left:5px!important}.vs-title-comments-card .vs-title-reply>.vs-comment-avatar{width:27px!important;height:27px!important}}

/* v3: densidade inspirada em feeds sociais, preservando o tema VPlex. */
.vs-title-comments-card{width:min(760px,calc(100vw - 28px))!important}
.vs-title-comments-card .vs-title-comment{grid-template-columns:46px minmax(0,1fr)!important;column-gap:8px!important;padding:7px 2px!important}
.vs-title-comments-card .vs-title-comment>.vs-comment-avatar{width:38px!important;height:38px!important}
.vs-title-comments-card .vs-comment-content{padding:0!important}
.vs-title-comments-card .vs-comment-content>header{min-height:0!important;justify-content:flex-start!important;gap:6px!important}
.vs-title-comments-card .vs-comment-content>header>b{flex:0 1 auto!important;font-size:14px!important;line-height:1.2!important;white-space:normal!important}
.vs-title-comments-card .vs-comment-meta{display:inline-flex!important;align-items:center!important;gap:4px!important;margin:0!important;color:#9ba5b4!important}
.vs-title-comments-card .vs-comment-meta>small{font-size:12px!important;line-height:1.2!important}
.vs-title-comments-card .vs-comment-clock{display:none!important}
.vs-title-comments-card .vs-comment-source-wrap{font-size:11px!important}
.vs-title-comments-card .vs-comment-content>p{margin:3px 0 5px!important;font-size:14px!important;line-height:1.35!important;color:#e5e8ed!important}
.vs-title-comments-card .vs-comment-reactions{gap:16px!important;margin-top:2px!important}
.vs-title-comments-card .vs-comment-reactions button{gap:4px!important;font-size:12px!important;line-height:1.2!important}
.vs-title-comments-card .vs-comment-reactions button img{width:18px!important;height:18px!important}
.vs-title-comments-card .vs-comment-reactions button b{font-size:11px!important;font-weight:500!important}
.vs-title-comments-card .vs-comment-reactions .vs-reply-trigger{font-size:12px!important}
.vs-title-comments-card .vs-show-replies-wrap{justify-content:flex-start!important;gap:0!important;margin-top:3px!important}
.vs-title-comments-card .vs-show-replies-wrap:before,.vs-title-comments-card .vs-show-replies-wrap:after{display:none!important}
.vs-title-comments-card .vs-comment-reactions .vs-show-replies{padding:3px 0!important;border:0!important;font-size:12px!important}
.vs-title-comments-card .vs-title-replies{margin-left:18px!important;padding-left:8px!important;border-left:2px solid rgba(139,149,164,.28)!important}
.vs-title-comments-card .vs-title-reply{grid-template-columns:34px minmax(0,1fr)!important;column-gap:6px!important;margin-left:0!important;padding:5px 0!important}
.vs-title-comments-card .vs-title-reply>.vs-comment-avatar{width:27px!important;height:27px!important}
.vs-title-comments-card .vs-title-reply .vs-comment-content>header>b{font-size:13px!important}
.vs-title-comments-card .vs-title-reply .vs-comment-content>p{font-size:13px!important}
@media(max-width:700px){.vs-title-comments-card{width:100%!important}.vs-title-comments-card .vs-title-comment{grid-template-columns:42px minmax(0,1fr)!important;column-gap:7px!important;padding:6px 0!important}.vs-title-comments-card .vs-title-comment>.vs-comment-avatar{width:35px!important;height:35px!important}.vs-title-comments-card .vs-comment-content>header>b{font-size:13px!important}.vs-title-comments-card .vs-comment-content>p{font-size:13px!important;line-height:1.32!important}.vs-title-comments-card .vs-comment-meta>small{font-size:11px!important}.vs-title-comments-card .vs-title-replies{margin-left:14px!important;padding-left:6px!important}.vs-title-comments-card .vs-title-reply{grid-template-columns:31px minmax(0,1fr)!important;column-gap:5px!important}.vs-title-comments-card .vs-title-reply>.vs-comment-avatar{width:25px!important;height:25px!important}.vs-title-comments-card .vs-title-reply .vs-comment-content>header>b,.vs-title-comments-card .vs-title-reply .vs-comment-content>p{font-size:12px!important}}
.vs-comment-profile-link{appearance:none;border:0;background:none;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer}.vs-title-comment>.vs-comment-avatar-link{display:block;width:38px;height:38px;border-radius:50%}.vs-title-reply>.vs-comment-avatar-link{width:27px;height:27px}.vs-comment-name{font-weight:800;color:#b95cff!important;text-align:left}.vs-comment-name:hover{text-decoration:underline}.vs-comment-avatar-link .vs-comment-avatar{display:block;width:100%!important;height:100%!important;object-fit:cover;border-radius:50%}@media(max-width:700px){.vs-title-comment>.vs-comment-avatar-link{width:35px;height:35px}.vs-title-reply>.vs-comment-avatar-link{width:25px;height:25px}}
[data-open-favorites]{appearance:none;border:0;background:transparent;color:#c760ff;font-weight:800;cursor:pointer;padding:2px 4px}[data-open-favorites]:hover{text-decoration:underline}
.feed-comment-profile{appearance:none;border:0;background:none;padding:0;color:inherit;font:inherit;cursor:pointer;height:max-content}.feed-comment-name{display:block;color:#b95cff!important;font-weight:800;text-align:left}.feed-comment-name:hover{text-decoration:underline}
.vs-title-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.vs-title-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vs-title-name-row h2 {
  min-width: 0;
  margin-right: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-title-more-button {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 143, 92, .45);
  border-radius: 50%;
  background: rgba(255, 126, 69, .08);
  color: #ffd2bd;
  font-size: 26px;
  line-height: 30px;
  cursor: pointer;
}

.vs-title-more-button:hover,
.vs-title-more-button:focus-visible {
  border-color: #ff7e45;
  background: #ff7e45;
  color: #17191f;
  outline: none;
}

.vs-title-head-row h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-synopsis-toggle {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 143, 92, .5);
  border-radius: 6px;
  background: rgba(255, 126, 69, .1);
  color: #ffd2bd;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.vs-synopsis-toggle:hover,
.vs-synopsis-toggle:focus-visible,
.vs-synopsis-toggle.active {
  border-color: #ff7e45;
  background: #ff7e45;
  color: #17191f;
  outline: none;
}

.vs-synopsis-toggle:disabled {
  opacity: .55;
  cursor: wait;
}

.vs-comments-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px;
  text-align: center;
}

.vs-comments-empty img {
  width: min(220px, 58vw);
  height: auto;
  object-fit: contain;
}

.vs-comments-empty p,
.vs-metadata-unavailable {
  margin: 0;
  color: var(--vs-muted, #aeb4c4);
}

.vs-title-view-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

dialog.vs-title-details-dialog {
  width: min(920px, calc(100vw - 28px));
  max-width: none;
  max-height: min(88vh, 760px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #384253;
  border-radius: 8px;
  background: #10151e;
  color: #f5f6f8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72);
  pointer-events: auto !important;
  user-select: auto !important;
}

dialog.vs-title-details-dialog::backdrop {
  background: rgba(3, 5, 9, .78);
}

.vs-title-details-card {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 760px);
}

.vs-title-details-card>header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.vs-title-details-card>header small {
  color: #ff8c50;
  font-size: 10px;
  font-weight: 800;
}

.vs-title-details-card>header h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.vs-title-details-card>header>button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.vs-title-details-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.vs-title-details-tabs button {
  pointer-events: auto;
  touch-action: manipulation;
}

.vs-title-details-dialog .vs-title-metadata {
  flex: 1 1 auto;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
}

.vs-title-details-dialog .vs-title-metadata::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.vs-title-details-dialog .vs-title-metadata::-webkit-scrollbar-track {
  background: transparent;
}

.vs-title-details-dialog .vs-title-metadata::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
  transition: background-color .18s ease;
}

.vs-title-details-dialog .vs-title-metadata.is-scrolling {
  scrollbar-color: #8d43bd transparent;
}

.vs-title-details-dialog .vs-title-metadata.is-scrolling::-webkit-scrollbar-thumb {
  background: #8d43bd;
}

.vs-title-details-dialog .vs-title-metadata-cast {
  max-height: none;
}

.vs-title-metadata {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  max-height: 310px;
  margin: 0 18px 14px;
  padding: 14px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(12, 14, 20, .72);
}

.vs-title-metadata.hidden {
  display: none;
}

.vs-title-metadata-poster {
  width: 104px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #242833;
}

.vs-title-metadata-copy {
  min-width: 0;
}

.vs-title-metadata-tagline {
  margin: 0 0 8px;
  color: #ffb18d;
  font-style: italic;
}

.vs-title-metadata-copy h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.vs-title-metadata-overview {
  margin: 0;
  color: #e4e7ed;
  font-size: 14px;
  line-height: 1.55;
}

.vs-title-metadata-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  color: #aeb5c2;
  font-size: 12px;
}

.vs-title-metadata-original {
  margin: 9px 0 0;
  color: #8f97a5;
  font-size: 12px;
}

.vs-title-metadata-cast {
  display: block;
  grid-template-columns: none;
  max-height: min(520px, 58vh);
  padding: 0;
  overflow-x: hidden;
  background: #10151e;
}

.vs-cast-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 140px;
  padding: 22px;
  overflow: hidden;
  background-color: #191f2a;
  background-position: center 28%;
  background-size: cover;
}

.vs-cast-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(8, 12, 18, .96), rgba(8, 12, 18, .58) 58%, rgba(8, 12, 18, .78));
}

.vs-cast-hero>div {
  position: relative;
  z-index: 1;
}

.vs-cast-hero small {
  color: #ff8c50;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.vs-cast-hero h3 {
  margin: 5px 0 7px;
  font-size: 24px;
}

.vs-cast-hero p {
  margin: 0;
  color: #cbd2dd;
  font-size: 13px;
}

.vs-cast-section {
  padding: 18px 20px 22px;
}

.vs-cast-section>h3 {
  margin: 0 0 13px;
  font-size: 17px;
}

.vs-cast-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.vs-cast-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #303847;
  border-radius: 7px;
  background: #171d27;
}

.vs-cast-card img,
.vs-cast-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #242c39;
  color: #a767d1;
  font-size: 32px;
  place-items: center;
}

.vs-cast-card b,
.vs-cast-card small {
  display: block;
  overflow: hidden;
  padding-inline: 8px;
  text-overflow: ellipsis;
}

.vs-cast-card b {
  margin-top: 8px;
  color: #f5f6f8;
  font-size: 13px;
  white-space: nowrap;
}

.vs-cast-card small {
  min-height: 34px;
  padding-top: 4px;
  padding-bottom: 8px;
  color: #aeb6c4;
  font-size: 11px;
  line-height: 15px;
}

@media (max-width: 620px) {
  dialog.vs-title-details-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 24px);
  }

  .vs-title-details-card {
    max-height: calc(100vh - 24px);
  }

  .vs-title-details-card>header {
    padding: 14px 14px 10px;
  }

  .vs-title-details-card>header h2 {
    font-size: 18px;
  }

  .vs-title-details-tabs {
    padding: 10px 14px;
  }

  .vs-title-head-row {
    align-items: flex-start;
  }

  .vs-title-head-row h2 {
    white-space: normal;
  }

  .vs-title-metadata {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    margin-inline: 10px;
    padding: 10px;
  }

  .vs-title-metadata-poster {
    width: 72px;
  }

  .vs-title-view-actions {
    gap: 5px;
  }

  .vs-synopsis-toggle {
    padding: 7px 9px;
    font-size: 10px;
  }

  .vs-title-metadata-cast {
    display: block;
    margin-inline: 4px;
    max-height: 56vh;
  }

  .vs-cast-hero {
    min-height: 105px;
    padding: 16px;
  }

  .vs-cast-hero h3 {
    font-size: 19px;
  }

  .vs-cast-section {
    padding: 14px;
  }

  .vs-cast-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}
