body.mtv36-comments-open {
  overflow: hidden;
  touch-action: none;
}

.mtv36-comments {
  --comments-accent: #f36b27;
  --comments-accent-dark: #d64f12;
  --comments-ink: #151915;
  --comments-muted: #687068;
  --comments-line: #e3e7e1;
  --comments-surface: #fff;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
  background: rgba(12, 17, 14, .54);
  backdrop-filter: blur(4px);
  color: var(--comments-ink);
  font-family: inherit;
}

.mtv36-comments *, .mtv36-comments *::before, .mtv36-comments *::after { box-sizing: border-box; }
.mtv36-comments[hidden] { display: none !important; }
.mtv36-comments__panel {
  display: flex;
  width: min(820px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  max-height: min(860px, calc(100dvh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(227, 231, 225, .9);
  border-radius: 24px;
  background: var(--comments-surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
}
.mtv36-comments__body {
  min-height: 0;
  padding: 0 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.p-reactions--discussion-pilot {
  gap: 18px;
  padding: 16px 18px;
  box-shadow: 0 12px 34px rgba(24, 29, 34, .07);
}
.p-reactions--discussion-pilot .p-reactions-title {
  display: block;
  margin: 0;
  font-size: .94rem;
  font-weight: 500;
}
.p-reactions--discussion-pilot .p-reactions-list {
  flex: 1 1 auto;
  justify-content: center;
  gap: 5px;
}
.p-reactions--discussion-pilot .p-reaction-button {
  min-width: 44px;
  height: 52px;
  padding: 3px 5px;
  flex-direction: column;
  gap: 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.p-reactions--discussion-pilot .p-reaction-button:hover {
  border: 0;
  background: #f5f6f7;
}
.p-reactions--discussion-pilot .p-reaction-button[aria-pressed="true"] {
  border: 0;
  background: color-mix(in srgb, var(--p-accent) 7%, #fff);
}
.p-reactions--discussion-pilot .p-reaction-emoji {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 1.58rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .16));
}
.p-reactions--discussion-pilot .p-reaction-count {
  color: #72767d;
  font-size: .77rem;
  font-weight: 600;
}
.p-reactions-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-discuss-button {
  appearance: none;
  -webkit-appearance: none;
  min-width: 156px;
  min-height: 50px;
  padding: 10px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: var(--p-accent);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease;
}
.p-discuss-button:hover {
  filter: brightness(.92);
  transform: translateY(-1px);
}
.mtv36-comments-trigger {
  appearance: none;
  -webkit-appearance: none;
  min-width: 156px;
  min-height: 50px;
  padding: 10px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: var(--p-accent, #f36b27);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease;
}
.mtv36-comments-trigger:hover { filter: brightness(.92); transform: translateY(-1px); }
.mtv36-comments-trigger:focus-visible { outline: 3px solid rgba(243, 107, 39, .3); outline-offset: 2px; }

.mtv36-comments__loading {
  display: grid;
  grid-template-columns: repeat(3, 10px) 1fr;
  align-items: center;
  gap: 7px;
  min-height: 92px;
  padding: 24px;
  border: 1px solid var(--comments-line);
  border-radius: 22px;
  background: #fafbf9;
  color: var(--comments-muted);
}
.mtv36-comments__loading span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--comments-accent);
  animation: mtv36-comments-pulse 1.2s infinite ease-in-out;
}
.mtv36-comments__loading span:nth-child(2) { animation-delay: .15s; }
.mtv36-comments__loading span:nth-child(3) { animation-delay: .3s; }
.mtv36-comments__loading b { margin-left: 5px; font-size: 15px; }
@keyframes mtv36-comments-pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.7); } 40% { opacity: 1; transform: scale(1); } }

.mtv36-comments__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 0 0 auto;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--comments-line);
}
.mtv36-comments__header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(26px, 3.3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.mtv36-comments__header-controls { display: flex; align-items: center; gap: 10px; }
.mtv36-comments__dialog-close {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f0;
  color: var(--comments-ink);
  font: 400 29px/1 inherit;
  cursor: pointer;
}
.mtv36-comments__dialog-close:hover { background: #e8ebe6; }
.mtv36-comments__count {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f0f2ef;
  color: var(--comments-muted);
  font-size: 14px;
  letter-spacing: 0;
}
.mtv36-comments__sort {
  min-height: 42px;
  max-width: 210px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--comments-line);
  border-radius: 12px;
  background-color: #fff;
  color: var(--comments-ink);
  font: 600 14px/1 inherit;
}

.mtv36-comments__composer-host { position: relative; margin: 20px 0 8px; }
.mtv36-comments__write-prompt { display: flex; }
.mtv36-comments__write-prompt[hidden] { display: none; }
.mtv36-comments__write-button {
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #ffd2bc;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff7f2, #fff);
  color: var(--comments-ink);
  font: 750 15px/1 inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.mtv36-comments__write-button:hover { border-color: #f6a37a; background: #fff8f4; }
.mtv36-comments__write-button:disabled { cursor: default; opacity: .6; }
.mtv36-comments__login-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px solid #ffd8c4;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff9f5, #fff);
}
.mtv36-comments__login-prompt[hidden] { display: none; }
.mtv36-comments__login-prompt div { display: grid; gap: 4px; }
.mtv36-comments__login-prompt strong { font-size: 17px; }
.mtv36-comments__login-prompt span { color: var(--comments-muted); font-size: 14px; line-height: 1.45; }
.mtv36-comments__primary {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--comments-accent);
  color: #fff;
  font: 700 15px/1 inherit;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.mtv36-comments__primary:hover { background: var(--comments-accent-dark); }
.mtv36-comments__primary:active { transform: translateY(1px); }
.mtv36-comments__primary:disabled { opacity: .45; cursor: default; transform: none; }

.mtv36-comments__login {
  margin-top: 12px;
  padding: 20px;
  border: 1px solid var(--comments-line);
  border-radius: 20px;
  background: var(--comments-surface);
  box-shadow: 0 18px 60px rgba(25, 31, 24, .12);
}
.mtv36-comments__login-head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.mtv36-comments__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f4f1;
  color: var(--comments-ink);
  font-size: 25px;
  cursor: pointer;
}
.mtv36-comments__login > p { margin: 6px 0 16px; color: var(--comments-muted); font-size: 14px; }
.mtv36-comments__platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mtv36-comments__platform {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--comments-line);
  border-radius: 13px;
  background: #fff;
  color: var(--comments-ink);
  font: 650 13px/1.15 inherit;
  cursor: pointer;
}
.mtv36-comments__platform:hover { border-color: #bfc6bd; background: #fafbf9; }
.mtv36-comments__platform b {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  font-size: 10px;
}
.mtv36-comments__platform--telegram b { background: #2aabee; }
.mtv36-comments__platform--vk b { background: #07f; }
.mtv36-comments__platform--ok b { background: #ee8208; }
.mtv36-comments__platform--max b { background: #5d5fef; }
.mtv36-comments__platform:disabled { opacity: .55; cursor: wait; }
.mtv36-comments__login-status { min-height: 20px; margin: 14px 0 0 !important; }
.mtv36-comments__login-status a { color: var(--comments-accent-dark); font-weight: 700; }

.mtv36-comments__account { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; }
.mtv36-comments__account > span:nth-child(2) { display: grid; line-height: 1.2; }
.mtv36-comments__account small { margin-top: 3px; color: var(--comments-muted); }
.mtv36-comments__link { margin-left: auto; border: 0; background: transparent; color: var(--comments-muted); font: 600 13px/1 inherit; cursor: pointer; }
.mtv36-comments__avatar {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #eef1ec;
  color: #4f584f;
  font-size: 13px;
  font-weight: 750;
}
.mtv36-comments__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mtv36-comments__form {
  padding: 13px;
  border: 1px solid var(--comments-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(26, 33, 25, .055);
}
.mtv36-comments__form:focus-within { border-color: #f7aa83; box-shadow: 0 0 0 3px rgba(243, 107, 39, .1); }
.mtv36-comments__form textarea {
  display: block;
  width: 100%;
  min-height: 68px;
  max-height: 180px;
  resize: vertical;
  padding: 3px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--comments-ink);
  font: 400 16px/1.45 inherit;
}
.mtv36-comments__form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 9px; }
.mtv36-comments__form-footer > span { color: #919791; font-size: 12px; }
.mtv36-comments__reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; padding: 9px 12px; border-radius: 11px; background: #f3f5f1; color: var(--comments-muted); font-size: 13px; }
.mtv36-comments__reply-bar[hidden] { display: none; }
.mtv36-comments__reply-bar button { border: 0; background: transparent; color: var(--comments-accent-dark); font: 700 13px/1 inherit; cursor: pointer; }

.mtv36-comments__status { min-height: 22px; margin: 10px 0; color: var(--comments-muted); font-size: 14px; }
.mtv36-comments__status[data-tone="error"] { color: #ae2e24; }
.mtv36-comments__status[data-tone="success"] { color: #167546; }
.mtv36-comments__list { border-top: 1px solid var(--comments-line); }
.mtv36-comments__empty { display: grid; gap: 5px; padding: 32px 4px; text-align: center; }
.mtv36-comments__empty strong { font-size: 18px; }
.mtv36-comments__empty span { color: var(--comments-muted); font-size: 14px; }
.mtv36-comment {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--comments-line);
}
.mtv36-comment--pinned { margin: 9px 0; padding: 18px; border: 1px solid #ffd4be; border-radius: 16px; background: #fffaf7; }
.mtv36-comment__content { min-width: 0; }
.mtv36-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 22px; }
.mtv36-comment__meta strong { font-size: 15px; }
.mtv36-comment__meta time { color: #8b918a; font-size: 12px; }
.mtv36-comment__source { display: inline-grid; min-width: 21px; height: 18px; place-items: center; padding: 0 4px; border-radius: 5px; color: #fff; font-size: 8px; font-weight: 800; }
.mtv36-comment__source--telegram { background: #2aabee; }
.mtv36-comment__source--vk { background: #07f; }
.mtv36-comment__source--ok { background: #ee8208; }
.mtv36-comment__source--max { background: #5d5fef; }
.mtv36-comment__pinned { padding: 3px 7px; border-radius: 999px; background: #ffe1d2; color: #a53d0c; font-size: 10px; font-weight: 750; }
.mtv36-comment__text { margin: 5px 0 8px !important; color: var(--comments-ink); font-size: 15px !important; line-height: 1.55 !important; overflow-wrap: anywhere; }
.mtv36-comment__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.mtv36-comment__actions button { padding: 0; border: 0; background: transparent; color: var(--comments-muted); font: 650 12px/1.3 inherit; cursor: pointer; }
.mtv36-comment__actions button:hover { color: var(--comments-accent-dark); }
.mtv36-comment__actions span { color: #a06c00; font-size: 12px; }
.mtv36-comment__like { display: flex; align-items: center; gap: 4px; align-self: start; min-width: 34px; padding: 2px 4px; border: 0; background: transparent; color: #7b827b; cursor: pointer; }
.mtv36-comment__like span { font-size: 24px; line-height: 1; }
.mtv36-comment__like b { font-size: 12px; }
.mtv36-comment__like.is-active { color: #e43d48; }
.mtv36-comment__replies { grid-column: 2 / -1; margin-top: 4px; }
.mtv36-comment--reply { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 15px 0 4px; border: 0; }
.mtv36-comment--reply .mtv36-comments__avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 11px; }
.mtv36-comment__replies-more, .mtv36-comments__more { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--comments-line); border-radius: 11px; background: #fff; color: var(--comments-ink); font: 700 13px/1 inherit; cursor: pointer; }
.mtv36-comments__more { display: block; margin: 18px auto 0; }
.mtv36-comments__more[hidden] { display: none; }
.mtv36-comments__unavailable { padding: 18px; border-radius: 14px; background: #f4f5f3; color: var(--comments-muted); text-align: center; }

.mtv36-comments-dialog {
  --comments-accent: #f36b27;
  --comments-accent-dark: #d64f12;
  --comments-ink: #151915;
  width: min(480px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--comments-ink, #151915);
  box-shadow: 0 28px 100px rgba(0, 0, 0, .24);
}
.mtv36-comments-dialog::backdrop { background: rgba(13, 17, 13, .5); backdrop-filter: blur(3px); }
.mtv36-comments-dialog form { display: grid; gap: 13px; padding: 22px; }
.mtv36-comments-dialog h3 { margin: 0; font-size: 22px; }
.mtv36-comments-dialog select, .mtv36-comments-dialog textarea { width: 100%; padding: 12px; border: 1px solid #dfe3dd; border-radius: 11px; background: #fff; font: 400 15px/1.4 inherit; }
.mtv36-comments-dialog textarea { min-height: 96px; resize: vertical; }
.mtv36-comments-dialog form > div { display: flex; justify-content: flex-end; gap: 9px; }
.mtv36-comments-dialog form > div button:not(.mtv36-comments__primary) { min-height: 44px; padding: 0 18px; border: 1px solid #dfe3dd; border-radius: 12px; background: #fff; font-weight: 700; }
.mtv36-comments-dialog__error { min-height: 18px; margin: 0; color: #ae2e24; font-size: 13px; }

@media (max-width: 680px) {
  .mtv36-comments {
    align-items: end;
    padding: 0;
    background: rgba(12, 17, 14, .42);
    backdrop-filter: blur(2px);
  }
  .mtv36-comments__panel {
    width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
  }
  .mtv36-comments__header { gap: 10px; padding: 17px 16px 14px; }
  .mtv36-comments__header h2 { font-size: 25px; }
  .mtv36-comments__header-controls { gap: 7px; }
  .mtv36-comments__dialog-close { flex-basis: 40px; width: 40px; height: 40px; }
  .mtv36-comments__body { padding: 0 16px calc(18px + env(safe-area-inset-bottom)); }
  .mtv36-comments__sort { max-width: 154px; min-height: 40px; padding-left: 10px; font-size: 12px; }
  .mtv36-comments__login-prompt { align-items: stretch; flex-direction: column; gap: 14px; padding: 17px; }
  .mtv36-comments__login-prompt .mtv36-comments__primary { width: 100%; }
  .mtv36-comments__platforms { grid-template-columns: 1fr; }
  .mtv36-comments__login { padding: 17px; border-radius: 17px; box-shadow: none; }
  .mtv36-comment { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; padding: 17px 0; }
  .mtv36-comments__avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .mtv36-comment__replies { grid-column: 2 / -1; }
  .mtv36-comment--reply { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .mtv36-comment--reply .mtv36-comments__avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .mtv36-comment--pinned { padding: 14px 11px; }
  .mtv36-comment__actions { gap: 10px; }
}

@media (max-width: 820px) {
  .p-reactions--discussion-pilot {
    padding: 12px !important;
  }
  .p-reactions--discussion-pilot .p-reactions-title {
    display: none;
  }
  .p-reactions--discussion-pilot .p-reactions-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    overflow: visible;
  }
  .p-reactions--discussion-pilot .p-reaction-button {
    min-width: 0 !important;
    width: 100%;
    height: 50px !important;
    padding: 2px !important;
  }
  .p-reactions--discussion-pilot .p-reaction-emoji {
    width: 28px;
    height: 28px;
    font-size: 1.42rem;
  }
  .p-reactions-actions {
    width: 100%;
    margin-top: 9px;
    gap: 7px;
  }
  .p-discuss-button {
    width: auto;
    min-width: 0;
    min-height: 48px;
    flex: 1 1 auto;
    margin: 0;
  }
}

@media (max-width: 420px) {
  .p-reactions--discussion-pilot .p-reactions-list { gap: 2px; }
  .p-reactions--discussion-pilot .p-reaction-emoji {
    width: 27px;
    height: 27px;
  }
  .p-reactions--discussion-pilot .p-reaction-count {
    font-size: .74rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mtv36-comments__loading span { animation: none; opacity: .7; }
  .mtv36-comments__primary { transition: none; }
}

