html.mw-scroll-lock {
  overflow: hidden;
}

.mw-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 5, 1, 0.75);
  backdrop-filter: blur(6px);
}

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

.mw-viewer {
  background: rgba(6, 5, 1, 0.85);
}

.mw-composer { z-index: 3010; }
.mw-modal--report { z-index: 3020; }
.mw-modal--confirm { z-index: 3030; }

.mw-viewer__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  width: 100%;
  max-width: 1240px;
  height: min(820px, 90vh);
  overflow: hidden;
  border: 1px solid #243533;
  border-radius: 16px;
  background: #181f20;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.mw-viewer__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #060501;
}

.mw-viewer__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mw-viewer__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mw-round-btn {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(6, 5, 1, 0.6);
  color: #ffffff;
  cursor: pointer;
}

.mw-round-btn:hover:not(:disabled) {
  background: rgba(6, 5, 1, 0.85);
}

.mw-round-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.mw-viewer__nav {
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}

.mw-viewer__nav--prev { left: 14px; }
.mw-viewer__nav--next { right: 14px; }

.mw-viewer__counter {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.mw-viewer__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.mw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.mw-dot.is-active {
  background: #ee2445;
}

.mw-viewer__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid #243533;
}

.mw-viewer__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #243533;
}

.mw-viewer__scroll {
  flex: 1;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
}

.mw-caption--full {
  margin-bottom: 4px;
}

.mw-rule {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid #243533;
}

.mw-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mw-thread__empty {
  margin: 0;
  font-size: 10pt;
}

.mw-thread__more {
  margin-top: 12px;
}

.mw-comment--reply {
  margin-top: 10px;
}

.mw-comment--removed p {
  margin: 0;
  font-size: 10pt;
  font-style: italic;
}

.mw-replies {
  margin: 6px 0 0 0;
  padding-left: 12px;
  border-left: 2px solid #243533;
}

.mw-viewer .mw-replies {
  margin-left: 0;
}

.mw-replies__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9pt;
}

.mw-replies__toggle .material-symbols-outlined {
  font-size: 16px;
}

.mw-comment__menu {
  flex: none;
}

.mw-comment__menu .mw-dropdown {
  right: 0;
}

.mw-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.mw-edit__input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ee2445;
  border-radius: 8px;
  background: #0d1010;
  color: #ffffff;
  font-family: inherit;
  font-size: 10pt;
  outline: none;
}

.mw-edit__actions {
  display: flex;
  gap: 12px;
}

.mw-viewer__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid #243533;
}

.mw-viewer__stats {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-size: 10pt;
  font-weight: 700;
}

.mw-like-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.mw-like-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
}

.mw-like-btn:disabled {
  cursor: default;
  opacity: 0.55;
}

.mw-like-btn--big .material-symbols-outlined {
  font-size: 24px;
}

.mw-like-btn.is-liked {
  color: #ee2445;
}

.mw-replying {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9ca3af;
  font-size: 9.5pt;
}

.mw-replying strong {
  color: #ffffff;
}

.mw-player {
  position: relative;
  width: 100%;
  height: 100%;
}

.mw-player__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #060501;
}

.mw-player__big {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(6, 5, 1, 0.7);
  color: #ffffff;
  transform: translate(-50%, -50%);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.mw-player__big .material-symbols-outlined {
  font-size: 40px;
}

.mw-player.is-playing .mw-player__big {
  display: none;
}

.mw-player__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -20px 0 0 -20px;
}

.mw-player__bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(6, 5, 1, 0.85));
}

.mw-player__seek {
  display: flex;
  flex: 1;
  align-items: center;
  height: 20px;
  cursor: pointer;
}

.mw-player__track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.mw-player__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: #ee2445;
}

.mw-player__fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateY(-50%);
}

.mw-player__time {
  color: #ffffff;
  font-size: 9pt;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mw-composer__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 620px;
  max-height: min(820px, 90vh);
  overflow: hidden;
  border: 1px solid #243533;
  border-radius: 16px;
  background: #181f20;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.mw-composer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #243533;
}

.mw-composer__title,
.mw-dialog__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: #ffffff;
  font-size: 13pt;
  font-weight: 700;
}

.mw-composer__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
}

.mw-composer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #243533;
}

.mw-composer__foot-end {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.mw-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 16px;
  border: 2px dashed #2a3638;
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mw-dropzone.is-dragging {
  border-color: #ee2445;
  background: rgba(238, 36, 69, 0.08);
}

.mw-dropzone__icon {
  color: #ee2445;
  font-size: 36px;
}

.mw-dropzone__title {
  margin: 0;
  color: #ffffff;
  font-size: 11pt;
  font-weight: 700;
}

.mw-dropzone__spec {
  margin: 0 0 8px;
  color: #9ca3af;
  font-size: 9pt;
}

.mw-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mw-tiles__tile,
.mw-tiles__add {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #243533;
  border-radius: 10px;
  background: #060501;
}

.mw-tiles__tile img,
.mw-tiles__tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mw-tiles__tile.is-uploading img,
.mw-tiles__tile.is-uploading video {
  opacity: 0.6;
}

.mw-tiles__tile.is-failed {
  border-color: rgba(239, 68, 68, 0.5);
}

.mw-tiles__add {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: #2a3638;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.mw-tiles__add:hover {
  border-color: #ee2445;
  color: #ffffff;
}

.mw-mini-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 5, 1, 0.75);
  color: #ffffff;
  cursor: pointer;
}

.mw-mini-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.mw-mini-btn .material-symbols-outlined {
  font-size: 16px;
}

.mw-tiles__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
}

.mw-tiles__order {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 4px;
}

.mw-tiles__video {
  position: absolute;
  bottom: 6px;
  left: 6px;
}

.mw-tiles__progress {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mw-tiles__progress-label {
  color: #ffffff;
  font-size: 8.5pt;
  font-weight: 700;
}

.mw-progress {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.mw-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: #ee2445;
  transition: width 0.2s ease;
}

.mw-tiles__failed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(6, 5, 1, 0.75);
  color: #f87171;
  font-size: 9pt;
  font-weight: 700;
}

.mw-hint {
  margin: 0;
  color: #9ca3af;
  font-size: 9pt;
}

.mw-hint--error {
  color: #f87171;
}

.mw-errors {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mw-errors:empty {
  display: none;
}

.mw-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-size: 9.5pt;
}

.mw-error .material-symbols-outlined {
  font-size: 18px;
}

.mw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mw-field__label {
  margin: 0;
  color: #9ca3af;
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mw-field__optional {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.mw-field__foot {
  display: flex;
  justify-content: space-between;
}

.mw-textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  max-height: 220px;
  padding: 10px 12px;
  border: 1px solid #243533;
  border-radius: 10px;
  background: #0d1010;
  color: #ffffff;
  font-family: inherit;
  font-size: 10.5pt;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.mw-textarea:focus {
  border-color: #ee2445;
  box-shadow: 0 0 0 2px rgba(238, 36, 69, 0.25);
}

.mw-textarea.is-invalid {
  border-color: #ef4444;
}

.mw-composer .mw-mention-list {
  width: 280px;
}

.mw-add-match {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed #2a3638;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.mw-add-match:hover {
  border-color: #fbbf24;
}

.mw-add-match__label {
  display: block;
  font-size: 10.5pt;
  font-weight: 700;
}

.mw-linked {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  border: 1px solid rgba(238, 36, 69, 0.45);
  border-radius: 10px;
}

.mw-linked__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.mw-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mw-picker__group {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 8.5pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mw-picker__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.mw-picker__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #243533;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.mw-picker__item:hover,
.mw-picker__item.is-active {
  border-color: rgba(238, 36, 69, 0.45);
  background: rgba(238, 36, 69, 0.08);
}

.mw-picker__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mw-picker__line {
  overflow: hidden;
  font-size: 10.5pt;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mw-picker__meta {
  color: #9ca3af;
  font-size: 9pt;
}

.mw-picker__score {
  font-size: 10.5pt;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mw-picker__empty {
  margin: 0;
  color: #9ca3af;
  font-size: 10pt;
}

.mw-dialog {
  width: 100%;
  max-width: 440px;
  padding: 18px;
  border: 1px solid #243533;
  border-radius: 16px;
  background: #181f20;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.mw-dialog--small {
  max-width: 400px;
}

.mw-dialog__text {
  margin: 6px 0 14px;
  color: #9ca3af;
  font-size: 10.5pt;
}

.mw-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.mw-radio-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mw-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #243533;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 10.5pt;
  font-weight: 600;
  cursor: pointer;
}

.mw-radio:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mw-radio .mw-radio__on {
  display: none;
  color: #ee2445;
}

.mw-radio .mw-radio__off {
  color: #9ca3af;
}

.mw-radio:has(input:checked) {
  border-color: rgba(238, 36, 69, 0.45);
  background: rgba(238, 36, 69, 0.08);
}

.mw-radio input:checked ~ .mw-radio__on {
  display: inline-block;
}

.mw-radio input:checked ~ .mw-radio__off {
  display: none;
}

.mw-radio:has(input:focus-visible) {
  outline: 2px solid #ee2445;
  outline-offset: 2px;
}

.mw-report-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.mw-report-done__icon {
  color: #6ee7b7;
  font-size: 40px;
}

.mw-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3040;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  border-radius: 12px;
  background: rgba(24, 31, 32, 0.94);
  color: #ffffff;
  font-size: 10.5pt;
  font-weight: 600;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.mw-toast[hidden] {
  display: none;
}

.mw-toast .material-symbols-outlined {
  color: #6ee7b7;
}

.mw-toast--error {
  border-color: rgba(239, 68, 68, 0.45);
}

.mw-toast--error .material-symbols-outlined {
  color: #f87171;
}

@media (max-width: 759px) {
  .mw-viewer {
    padding: 0;
  }

  .mw-viewer__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 45% minmax(0, 1fr);
    height: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
  }

  .mw-viewer__side {
    border-top: 1px solid #243533;
    border-left: 0;
  }

  .mw-modal--sheet {
    align-items: flex-end;
    padding: 0;
  }

  .mw-modal--sheet .mw-composer__panel {
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

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

  .mw-modal--report,
  .mw-modal--confirm {
    padding: 16px;
  }
}
