/* SFlix reports and modal styles */

/* 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(0, 172, 193, .14);
  color: #00acc1;
  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: #00acc1;
  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: #00acc1;
  box-shadow: 0 0 0 3px rgba(0, 172, 193, .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: #00acc1;
  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: #00acc1;
  background: #00acc1;
  color: #fff;
}

.m2w-report-check input:focus-visible + span {
  outline: 3px solid rgba(0, 172, 193, .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: #00acc1;
  box-shadow: 0 0 0 3px rgba(0, 172, 193, .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(0, 172, 193, .35);
  border-radius: 9px;
  background: rgba(0, 172, 193, .12);
  color: #b7eef3;
  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 #00acc1;
  border-radius: 9px;
  background: linear-gradient(145deg, #17bed0, #00879a);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 22px -14px rgba(0, 172, 193, .95);
  cursor: pointer;
}

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

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

/* SFlix report modal containment/viewport fix v3.
   The report widget is rendered inside the related-content markup, so keep the
   actual Bootstrap modal attached to <body> and make the form scroll internally
   on shorter screens. */

.m2w-report-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 16px 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  z-index: 1100 !important;
}

.m2w-report-modal .modal-dialog,
.m2w-report-modal .modal-dialog.modal-dialog-centered {
  display: flex !important;
  width: calc(100% - 28px) !important;
  max-width: 560px !important;
  min-height: calc(100vh - 32px) !important;
  margin: 0 auto !important;
  align-items: center !important;
  transform: none !important;
  pointer-events: none;
}

.m2w-report-modal .modal-dialog-centered::before {
  display: none !important;
}

.m2w-report-modal .modal-content {
  display: flex !important;
  width: 100% !important;
  max-height: calc(100vh - 32px) !important;
  flex-direction: column !important;
  overflow: hidden !important;
  pointer-events: auto;
}

.m2w-report-modal .m2w-report-form {
  display: flex !important;
  width: 100%;
  min-height: 0;
  max-height: calc(100vh - 32px);
  flex-direction: column;
}

.m2w-report-modal .m2w-report-header,
.m2w-report-modal .m2w-report-subject,
.m2w-report-modal .m2w-report-footer {
  flex: 0 0 auto;
}

.m2w-report-modal .m2w-report-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Keep the whole dialog usable on laptop-height screens instead of clipping
   the lower issue fields / textarea / submit button. */
@media screen and (max-height: 720px) and (min-width: 576px) {
  .m2w-report-modal {
    padding: 10px 0 !important;
  }

  .m2w-report-modal .modal-dialog,
  .m2w-report-modal .modal-dialog.modal-dialog-centered {
    min-height: calc(100vh - 20px) !important;
  }

  .m2w-report-modal .modal-content,
  .m2w-report-modal .m2w-report-form {
    max-height: calc(100vh - 20px) !important;
  }

  .m2w-report-header {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
  }

  .m2w-report-subject {
    min-height: 66px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  .m2w-report-subject img {
    width: 36px !important;
    height: 50px !important;
    flex-basis: 36px !important;
  }

  .m2w-report-body {
    padding-top: 14px !important;
  }

  .m2w-report-player {
    margin-bottom: 14px !important;
  }

  .m2w-report-grid {
    gap: 12px 18px !important;
    margin-bottom: 14px !important;
  }

  .m2w-report-other textarea {
    min-height: 72px !important;
  }

  .m2w-report-footer {
    padding-top: 10px !important;
    padding-bottom: 12px !important;
  }
}

@media screen and (max-width: 575px) {
  .m2w-report-modal {
    padding: 8px 0 !important;
  }

  .m2w-report-modal .modal-dialog,
  .m2w-report-modal .modal-dialog.modal-dialog-centered {
    width: calc(100% - 16px) !important;
    min-height: calc(100vh - 16px) !important;
    align-items: flex-start !important;
  }

  .m2w-report-modal .modal-content,
  .m2w-report-modal .m2w-report-form {
    max-height: calc(100vh - 16px) !important;
  }
}

.m2w-report-select-wrap select option{background:#111219;color:#f4f4f7;}
.m2w-report-check input:not(:checked)+span i{opacity:0!important;}
.m2w-report-check input:checked+span i{opacity:1!important;}

/* Make the report action behave like the site's existing player toolbar links. */
.detail-tools .m2w-report-trigger{
  border:0;
  background:transparent;
  font-family:inherit;
}
