/* Movies2Watch comments, reports and catalog filters */

/* Player action additions */
.watching_player-control .m2w-report-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.goto-comments .m2w-comment-button-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(155, 26, 41, .14);
  color: #9b1a29;
  font-size: 10px;
  font-weight: 800;
}

/* Report modal */
.m2w-report-modal {
  z-index: 1100;
}

.m2w-report-modal .modal-dialog {
  width: calc(100% - 28px);
  max-width: 540px;
  margin: 28px auto;
}

.m2w-report-modal .modal-content {
  overflow: hidden;
  border: 1px solid #2d2e3a;
  border-radius: 16px;
  background: #111219;
  color: #f4f4f7;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .48);
}

.m2w-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #2b2c37;
  background: #15161f;
}

.m2w-report-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.m2w-report-warning {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 196, 61, .12);
  color: #ffc43d;
  font-size: 13px;
}

.m2w-report-heading h2 {
  margin: 0;
  color: #f8f8fa;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.m2w-report-close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #aeb0bb;
  cursor: pointer;
}

.m2w-report-close:hover,
.m2w-report-close:focus {
  background: #22232d;
  color: #fff;
  outline: none;
}

.m2w-report-subject {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 14px 20px;
  border-bottom: 1px solid #292a34;
  background: #0e0f15;
}

.m2w-report-subject img {
  width: 42px;
  height: 58px;
  flex: 0 0 42px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.m2w-report-subject div {
  min-width: 0;
}

.m2w-report-subject strong,
.m2w-report-subject span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m2w-report-subject strong {
  color: #f4f4f7;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.m2w-report-subject span {
  margin-top: 4px;
  color: #7f8290;
  font-size: 12px;
}

.m2w-report-body {
  padding: 19px 20px 8px;
}

.m2w-report-label {
  display: block;
  margin-bottom: 8px;
  color: #f2f2f5;
  font-size: 12px;
  font-weight: 800;
}

.m2w-report-label strong {
  margin-left: 5px;
  color: #f09a35;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.m2w-report-player {
  display: block;
  margin: 0 0 19px;
}

.m2w-report-player small {
  display: block;
  margin-top: 7px;
  color: #7e818d;
  font-size: 11px;
  line-height: 1.4;
}

.m2w-report-select-wrap {
  position: relative;
  display: block;
}

.m2w-report-select-wrap > i:first-child {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  color: #e57834;
  transform: translateY(-50%);
  pointer-events: none;
}

.m2w-report-select-wrap > i:last-child {
  position: absolute;
  top: 50%;
  right: 13px;
  z-index: 1;
  color: #777b89;
  font-size: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.m2w-report-select-wrap select {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 38px;
  border: 1px solid #353743;
  border-radius: 10px;
  outline: none;
  appearance: none;
  background: #0a0b10;
  color: #f1f1f4;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.m2w-report-select-wrap select:focus {
  border-color: #a52a3a;
  box-shadow: 0 0 0 3px rgba(155, 26, 41, .18);
}

.m2w-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin-bottom: 19px;
}

.m2w-report-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.m2w-report-group legend {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  margin: 0 0 9px;
  color: #f4f4f7;
  font-size: 12px;
  font-weight: 800;
}

.m2w-report-group legend i {
  color: #e57834;
  font-size: 11px;
}

.m2w-report-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #a9abb5;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.m2w-report-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.m2w-report-check > span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #4b4e5c;
  border-radius: 4px;
  background: #f5f5f7;
  color: transparent;
  font-size: 9px;
  transition: .16s ease;
}

.m2w-report-check input:checked + span {
  border-color: #e57834;
  background: #e57834;
  color: #fff;
}

.m2w-report-check input:focus-visible + span {
  outline: 3px solid rgba(229, 120, 52, .25);
  outline-offset: 2px;
}

.m2w-report-other {
  position: relative;
  display: block;
  margin: 0;
}

.m2w-report-other textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 12px 13px 28px;
  border: 1px solid #353743;
  border-radius: 10px;
  outline: none;
  background: #090a0f;
  color: #f1f1f4;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.m2w-report-other textarea::placeholder {
  color: #777a86;
}

.m2w-report-other textarea:focus {
  border-color: #a52a3a;
  box-shadow: 0 0 0 3px rgba(155, 26, 41, .16);
}

.m2w-report-counter {
  position: absolute;
  right: 11px;
  bottom: 8px;
  color: #686b76;
  font-size: 10px;
}

.m2w-report-alert {
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(155, 26, 41, .35);
  border-radius: 9px;
  background: rgba(155, 26, 41, .12);
  color: #f0b7bf;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.m2w-report-alert.is-success {
  border-color: rgba(67, 166, 108, .36);
  background: rgba(67, 166, 108, .12);
  color: #a8e0bd;
}

.m2w-report-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.m2w-report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px 18px;
  border-top: 1px solid #292a34;
  background: #0f1016;
}

.m2w-report-footer p {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 280px;
  margin: 0;
  color: #727582;
  font-size: 10px;
  line-height: 1.4;
}

.m2w-report-footer p i {
  color: #8f929e;
}

.m2w-report-submit {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid #e57834;
  border-radius: 9px;
  background: linear-gradient(145deg, #f18a43, #dc6d29);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 22px -14px rgba(229, 120, 52, .95);
  cursor: pointer;
}

.m2w-report-submit:hover,
.m2w-report-submit:focus {
  border-color: #f29659;
  background: #f08a45;
  outline: none;
  transform: translateY(-1px);
}

.m2w-report-submit:disabled {
  border-color: #555763;
  background: #454752;
  box-shadow: none;
  color: #a8aab3;
  cursor: not-allowed;
  transform: none;
}

/* Filter modal */
.m2w-filter-modal .modal-dialog {
  width: calc(100% - 28px);
  max-width: 860px;
  margin: 24px auto;
}

.m2w-filter-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(20, 9, 12, .28);
}

.m2w-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid #eadfe1;
  background: linear-gradient(145deg, #fff, #fff7f8);
}

.m2w-filter-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.m2w-filter-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #ad2637, #821421);
  color: #fff;
  box-shadow: 0 12px 25px -16px rgba(155, 26, 41, .9);
}

.m2w-filter-heading p {
  margin: 0 0 4px;
  color: #9b1a29;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.m2w-filter-heading h2 {
  margin: 0;
  color: #241116;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.m2w-filter-close {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #eadfe1;
  border-radius: 11px;
  background: #fff;
  color: #76686b;
  cursor: pointer;
}

.m2w-filter-close:hover,
.m2w-filter-close:focus {
  border-color: #d6bfc4;
  color: #9b1a29;
  outline: none;
}

.m2w-filter-body {
  max-height: min(68vh, 660px);
  overflow-y: auto;
  padding: 24px;
  color: #241116;
}

.m2w-filter-section {
  margin: 0 0 21px;
  padding: 0;
  border: 0;
}

.m2w-filter-section legend,
.m2w-filter-label {
  display: block;
  width: auto;
  margin: 0 0 9px;
  color: #4d3b3f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.m2w-filter-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.m2w-filter-type-grid label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.m2w-filter-type-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.m2w-filter-type-grid label > span {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  min-height: 72px;
  padding: 13px;
  border: 1px solid #e6dadd;
  border-radius: 12px;
  background: #fcfafb;
  color: #6f6064;
  transition: .18s ease;
}

.m2w-filter-type-grid label > span > i {
  grid-row: 1 / 3;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f2e9eb;
  color: #9b1a29;
}

.m2w-filter-type-grid strong {
  color: #241116;
  font-size: 13px;
  font-weight: 800;
}

.m2w-filter-type-grid small {
  color: #8e7f83;
  font-size: 10px;
  line-height: 1.3;
}

.m2w-filter-type-grid input:checked + span {
  border-color: rgba(155, 26, 41, .55);
  background: #fff0f2;
  box-shadow: 0 0 0 3px rgba(155, 26, 41, .08);
}

.m2w-filter-type-grid input:focus-visible + span {
  outline: 3px solid rgba(155, 26, 41, .16);
  outline-offset: 2px;
}

.m2w-filter-search {
  display: block;
  margin: 0 0 21px;
}

.m2w-filter-input-wrap,
.m2w-filter-select-wrap {
  position: relative;
  display: block;
}

.m2w-filter-input-wrap > i,
.m2w-filter-select-wrap > i {
  position: absolute;
  top: 50%;
  z-index: 1;
  color: #9d8f92;
  transform: translateY(-50%);
  pointer-events: none;
}

.m2w-filter-input-wrap > i {
  left: 14px;
}

.m2w-filter-select-wrap > i {
  right: 13px;
  font-size: 10px;
}

.m2w-filter-input-wrap input,
.m2w-filter-select-wrap select {
  display: block;
  width: 100%;
  height: 46px;
  border: 1px solid #dfd2d5;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #241116;
  font-size: 13px;
  font-weight: 600;
}

.m2w-filter-input-wrap input {
  padding: 0 14px 0 42px;
}

.m2w-filter-select-wrap select {
  padding: 0 36px 0 13px;
  appearance: none;
  cursor: pointer;
}

.m2w-filter-input-wrap input:focus,
.m2w-filter-select-wrap select:focus {
  border-color: #9b1a29;
  box-shadow: 0 0 0 3px rgba(155, 26, 41, .1);
}

.m2w-filter-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
}

.m2w-filter-control-grid > label {
  min-width: 0;
  margin: 0;
}

.m2w-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 24px;
  border-top: 1px solid #eadfe1;
  background: #fbf8f9;
}

.m2w-filter-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #827377;
  font-size: 11px;
  font-weight: 650;
}

.m2w-filter-summary strong {
  display: inline-flex;
  min-width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #9b1a29;
  color: #fff;
  font-size: 11px;
}

.m2w-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m2w-filter-reset,
.m2w-filter-submit,
.m2w-filter-edit {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.m2w-filter-reset {
  border: 1px solid #d9cbce;
  background: #fff;
  color: #6f6064;
}

.m2w-filter-submit,
.m2w-filter-edit {
  border: 1px solid #9b1a29;
  background: linear-gradient(145deg, #ad2637, #821421);
  color: #fff !important;
  box-shadow: 0 10px 24px -16px rgba(155, 26, 41, .9);
}

.m2w-filter-submit:hover,
.m2w-filter-edit:hover {
  border-color: #75101d;
  background: #75101d;
  color: #fff !important;
}

/* Filter results page */
.m2w-filter-results-page {
  padding-top: 26px;
  padding-bottom: 48px;
}

.m2w-filter-results-page > .block_area {
  padding: 24px;
  border: 1px solid #eadfe1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 45px -36px rgba(36, 17, 22, .45);
}

.m2w-filter-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee4e6;
}

.m2w-filter-results-header p {
  margin: 0 0 5px;
  color: #9b1a29;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.m2w-filter-results-header h1 {
  margin: 0 0 6px;
  color: #241116;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.m2w-filter-results-header span {
  color: #887a7e;
  font-size: 12px;
}

.m2w-filter-active-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 21px;
}

.m2w-filter-active-list span,
.m2w-filter-active-list a {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.m2w-filter-active-list span {
  border: 1px solid #ead0d5;
  background: #fff3f5;
  color: #8b1a28;
}

.m2w-filter-active-list a {
  border: 1px solid #ddd1d4;
  background: #fff;
  color: #716266;
}

.m2w-filter-empty {
  padding: 58px 20px;
  border: 1px dashed #dbcbd0;
  border-radius: 13px;
  background: #fcfafb;
  text-align: center;
}

.m2w-filter-empty > i {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #f4e9eb;
  color: #9b1a29;
  font-size: 20px;
}

.m2w-filter-empty h2 {
  margin: 15px 0 7px;
  color: #241116;
  font-size: 20px;
  font-weight: 800;
}

.m2w-filter-empty p {
  margin: 0 0 18px;
  color: #887a7e;
  font-size: 12px;
}

.m2w-filter-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.m2w-filter-pagination a,
.m2w-filter-pagination span {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #e1d5d8;
  border-radius: 9px;
  background: #fff;
  color: #5f4e52;
  font-size: 12px;
  font-weight: 750;
}

.m2w-filter-pagination span {
  border-color: transparent;
  background: transparent;
}

.m2w-filter-pagination a:hover,
.m2w-filter-pagination a.active {
  border-color: #9b1a29;
  background: #9b1a29;
  color: #fff !important;
}

/* Search filter button */
#search .m2w-search-filter {
  position: absolute;
  top: 0;
  right: 80px;
  z-index: 3;
  width: 42px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f6064;
  line-height: 36px;
}

#search .m2w-search-filter:hover {
  color: #9b1a29;
}

#search input.search-input {
  padding-right: 132px;
}

@media screen and (max-width: 767px) {
  .m2w-report-grid,
  .m2w-filter-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m2w-filter-type-grid {
    grid-template-columns: 1fr;
  }

  .m2w-filter-footer,
  .m2w-filter-results-header {
    align-items: stretch;
    flex-direction: column;
  }

  .m2w-filter-actions,
  .m2w-filter-actions .btn,
  .m2w-filter-edit {
    width: 100%;
  }
}

@media screen and (max-width: 575px) {
  .m2w-report-modal .modal-dialog,
  .m2w-filter-modal .modal-dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .m2w-report-modal .modal-content,
  .m2w-filter-modal .modal-content {
    border-radius: 14px;
  }

  .m2w-report-body,
  .m2w-filter-body {
    padding-right: 15px;
    padding-left: 15px;
  }

  .m2w-report-header,
  .m2w-report-subject,
  .m2w-report-footer,
  .m2w-filter-header,
  .m2w-filter-footer {
    padding-right: 15px;
    padding-left: 15px;
  }

  .m2w-report-grid,
  .m2w-filter-control-grid {
    grid-template-columns: 1fr;
  }

  .m2w-report-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .m2w-report-footer p {
    max-width: none;
  }

  .m2w-report-submit {
    width: 100%;
  }

  .m2w-filter-results-page {
    padding: 16px 10px 38px;
  }

  .m2w-filter-results-page > .block_area {
    padding: 16px;
    border-radius: 12px;
  }

  .m2w-filter-results-header h1 {
    font-size: 22px;
  }

  .watching_player-control .m2w-report-trigger span,
  .goto-comments > span:not(.m2w-comment-button-count) {
    display: none;
  }
}
